Skip to content

SD-WAN

SD-WAN builds an overlay of edges that a vSmart controller programs. In netverdict the control plane is OMP: edges advertise routes and TLOCs, the vSmart reflects them, and every edge picks one path. The vSmart’s policies then decide which routes an edge hears and what it does with each packet.

The grammar is Cisco IOS-XE SD-WAN (cEdge and vSmart configuration). A config with an sdwan block is an edge. A config with a top-level omp block and no sdwan block is a controller.

AreaLevelNotes
System identitySupportedsystem-ip, site-id, overlay-id, organization-name, vbond. A node without a system-ip and a site-id joins no overlay.
TLOCsSupportedA tunnel-interface turns a WAN port into a TLOC with a colour and an encapsulation.
OMP peeringBehaviour modelAn edge that names a vBond connects to every controller of its overlay and organisation. The DTLS/TLS handshake is not modelled.
Route originationSupportedadvertise connected, static, ospf [external], bgp, eigrp, per service VPN. One route per TLOC. See Service VPNs.
Best pathSupportedThe seven OMP rungs, ECMP up to ecmp-limit.
Centralized control policySupportedLists, sequences, default-action, apply-policy … in and out.
Centralized data policySupportedDrop, accept, DSCP rewrite, TLOC steering, direct internet access.
Application-aware routingSupportedSLA classes judged against link loss, latency and jitter.
Service VPNsSupportedA service VPN is a VRF. OMP routes are advertised and installed per VPN.
Overlay encapsulationSupportedESP or GRE between the two TLOC addresses. See Overlay tunnels.

A TLOC is the triple (system-ip, colour, encapsulation). It is the next hop of the overlay. Whether two TLOCs form a tunnel decides whether two sites can talk at all.

RuleStatusNotes
Same colour pairsSupportedAlways, with or without restrict.
Different colours pairSupportedOnly if neither end says restrict. One restricted end is enough to refuse.
Encapsulation must matchSupportedipsec and gre. An ipsec TLOC and a gre TLOC form nothing. Default is ipsec.
Same siteSupportedTwo edges at one site build no overlay tunnel.
Different overlaysSupportedEdges with different overlay-id form no tunnel.
Colour namesSupportedThe Cisco colour set (mpls, biz-internet, public-internet, lte, private1–6, gold and so on). An unknown colour is refused by name.
Private and public coloursPartialThe split is kept and shown. There is no NAT between transports, so both resolve to the interface address.
TLOC preference, weightSupportedpreference is rung 3 of the best path.

Each edge runs the decision per route, in this order:

RungRule
1The TLOC forms a tunnel from this edge. A route with no tunnel is not installed.
2Higher OMP route preference.
3Higher TLOC preference.
4Lower origin type: connected, static, eBGP, OSPF, EIGRP, iBGP.
5Lower origin metric.
6Higher originator system-ip, compared as a number.
7Higher TLOC address.

An edge refuses a route that originated at its own site. That is OMP’s loop guard, in the role AS_PATH has in BGP.

On a cEdge a service VPN is a VRF: vrf definition 10 and vrf forwarding 10 are VPN 10. netverdict models it the same way.

  • OMP routes are advertised per VPN. They are installed in the receiving edge’s VRF of the same VPN. Two VPNs may carry the same prefix, and neither reaches the other.
  • An edge without a VPN neither advertises nor installs that VPN’s routes.
  • advertise directly under omp covers every service VRF of the edge.
  • omp / address-family ipv4 vrf N scopes the advertise connected, static, ospf [external], bgp and eigrp lines below it to VPN N.
  • An edge with no service VRF keeps VPN 1 in its global table.

The running config writes the advertisement per VPN: address-family ipv4 for what every service VRF advertises, address-family ipv4 vrf N for the rest.

Traffic on an OMP route, or steered onto a tunnel by a data or app-route policy, is encapsulated:

  • encapsulation ipsec sends ESP, encapsulation gre sends GRE. The outer packet goes from the local TLOC address to the remote one.
  • The transport only has to route between TLOC addresses. Edges behind ISPs on different subnets reach each other.
  • The outer packet copies the inner DSCP.
  • The VPN rides with the packet as a label, 1000 + VPN. In a capture it is an MPLS label inside GRE. Inside ESP it is part of the payload.
  • The far edge unwraps the packet and routes it in the label’s VPN.
  • Each edge spends a TTL. A traceroute across the overlay names both edges. The time-exceeded message is routed back inside the VPN.
  • The capture decodes cleanly in Wireshark.

A tunnel is up while both TLOC interfaces are up and the transport reaches the remote TLOC. When a tunnel dies, traffic moves to another tunnel to the same edge. With none left the packet is dropped (omp.overlay.tunnel-down).

A TLOC on a shut port or a cut cable is withdrawn. It forms no tunnel, and no route is advertised over it. show sdwan omp tlocs marks it.

FeatureStatusNotes
ecmp-limitSupportedCaps the equal paths installed. Default 4.
send-path-limitSupportedCaps the paths per prefix an edge sends to the controller, highest ranked first. Default 4.
timers holdtime, timers advertisement-intervalNo effectRead, checked, shown and written back. No timer runs. A holdtime below the advertisement interval is refused.
graceful-restartNo effectRead, shown and written back.
Lost controllerSupportedModel a vSmart as a device. Without it the overlay stops learning.
Organisation nameSupportedAn edge only joins controllers with the same organization-name.
Service VPNsSupportedA VPN is the VRF of the same number. VPN 0 and 512 are refused. See Service VPNs.
Interface rolesBehaviour modelAn interface with a TLOC is transport. Every other addressed interface is service-side.
redistribute omp [route-map RM] in OSPFSupportedBrings the OMP routes of the OSPF process’s VRF into OSPF as externals. Written back.
ip visibility … flow monitorSupportedFeeds the NetFlow export, like a flow exporter’s destination <ip> vrf <n>.
Unread edge linesNo effectEndpoint trackers, NBAR custom applications, OMP and SD-WAN service routes, flow-record options and similar lines are carried with the reason and written back.

A control policy lives on the vSmart. It decides which routes an edge hears. An edge never applies one.

FeatureStatusNotes
site-list, prefix-list, tloc-list, color-listSupportedUnder policy / lists. An empty list is refused.
ip-prefix membersSupportedWithout ge/le the member matches exactly. A bare ge means up to /32.
control-policy NAME sequencesSupportedThe first sequence whose match clauses all hold decides. Clauses are ANDed. A sequence with no match clause matches every route.
action accept / rejectSupportedA reject that also sets something loses the set.
default-actionSupportedreject unless the config says accept.
set preferenceSupportedOMP route preference, rung 2.
set tloc-listSupportedSteers the route onto the list’s first TLOC.
set omp-tagNo effectRead and shown.
apply-policy site-list S control-policy NAME inSupportedJudges routes from the sites in S.
apply-policy site-list S control-policy NAME outSupportedJudges routes sent to the sites in S.
Undefined policy in apply-policySupportedDecides nothing, and the audit reports it.

A data policy judges packets that enter an edge whose site is in the bound site-list. It is pushed only by a controller the edge holds a control connection to.

FeatureStatusNotes
vpn-list, data-prefix-list, app-listSupportedapp-list matches a small protocol and port table. See Known limits.
data-policy NAME / vpn-listSupportedA flow is in the ingress interface’s VRF, or else in every VPN the edge advertises.
Match source-ip, destination-ipSupportedPrefix or address.
Match source-data-prefix-list, destination-data-prefix-listSupported
Match protocol, source-port, destination-port, dscpSupportedValues and ranges as written, for example 1000-2000 80.
Match app-listPartialNo DPI. Matches by protocol and port.
action accept / dropSupportedA drop that also sets something loses the set.
default-actionSupporteddrop if the policy does not state one.
set dscpSupportedRewrites the marking on the wire.
set local-tloc color CSupportedPrefers that colour. Falls back to the normal path when it is down.
set local-tloc-list color … restrictSupportedDrops the flow when no listed colour is up.
set tloc, set tloc-listSupportedSteers toward a remote TLOC.
set next-hopSupportedSteers to an underlay next hop.
nat use-vpn 0SupportedDirect internet access out of a transport, source translated to that transport’s address. The reply is translated back.
nat fallbackSupportedRoutes as usual when no transport can break out. Without it the flow is dropped.
set vpnNo effectRead and reported. The flow stays in its own VPN.
countNo effectRead and written back. Nothing is counted.
apply-policy site-list S data-policy NAME from-serviceSupportedJudges packets from service-side interfaces.
apply-policy site-list S data-policy NAME from-tunnelSupportedJudges packets from the overlay: the inner packet, after the edge unwraps it.
apply-policy site-list S data-policy NAME allSupportedJudges both.

A data policy outranks application-aware routing. A flow a data policy steered is not steered again by an SLA class.

FeatureStatusNotes
sla-class NAME with loss, latency, jitterSupportedLoss in percent, latency and jitter in milliseconds. An axis that is not stated is not checked.
app-route-policy NAME sequencesSupportedSame match clauses as a data policy.
sla-class NAME preferred-color CSupportedThe preferred colour wins while it meets the class.
sla-class NAME strictSupportedDrops the flow when no tunnel meets the class.
apply-policy site-list S app-route-policy NAMESupportedApplies to flows from the service side.

Tunnel quality comes from the topology document, not from probes. A link may state delayMicros, lossPercent and jitterMicros. A link that states nothing is perfect. A tunnel’s figures are its two access links composed: latency and jitter add, loss compounds. Figures are rounded up to whole milliseconds and percent.

The decision for one flow:

  1. A preferred colour that meets the class wins.
  2. If every tunnel meets the class and none is preferred, the normal path is kept.
  3. Otherwise the best tunnel that meets the class is used.
  4. If none meets it, strict drops the flow. Without strict every tunnel stays usable.

show sdwan omp summary, show sdwan omp peers, show sdwan omp tlocs, show sdwan omp routes, show sdwan policy, show sdwan policy from-vsmart, show sdwan policy data-policy-filter, show sdwan app-route sla-class, show sdwan policy app-route-policy-filter, show sdwan bfd sessions and show sdwan tunnel statistics.

show sdwan bfd sessions lists one session per pair of local and remote TLOCs, up or down. show sdwan tunnel statistics lists each tunnel that is up, with the SPI of an IPsec tunnel. show ip route marks OMP routes m, with the remote TLOC as next hop. It lists the global table only. show ip route vrf N shows a VPN’s OMP routes.

show sdwan policy from-vsmart on an edge names the controller and policy that removed or rewrote a route. show sdwan policy app-route-policy-filter shows each tunnel against the SLA class.

show running-config writes the identity, the OMP block with its advertisement per VPN, the TLOCs, the lists, the control policies, the data and app-route policies, the SLA classes and the apply-policy bindings. Defaults are not written. Re-importing the text gives the same fabric.

The audit reports SD-WAN faults that look healthy from the box:

  • a TLOC that forms no tunnel with any other TLOC;
  • an edge with no control connection, or a fabric with no controller;
  • two edges sharing a site-id, so OMP refuses their routes to each other;
  • a control policy nothing applies, a binding that names an undefined policy, and a list nothing uses.

Symbolic reachability follows an OMP route through the tunnel to the unwrapping edge, and on in the label’s VPN. It applies the from-tunnel data policy there, as the packet does. It sees data-policy drops at the edge they are applied to. It does not follow steering: local-tloc, nat use-vpn 0 and SLA classes choose a path, and the walk follows destination-based forwarding. Transport ACLs are not checked against ESP in the symbolic walk. The whole-topology reach view is not overlay-aware. See Analysis.

The overlay sends plain ESP (IP protocol 50), not the UDP-12346 form a cEdge uses. There is no NAT traversal.

A from-tunnel data policy that steers to internet breakout is ignored at the unwrapping edge.

A vEdge vpn N block only sets the VPN of the advertise lines in it. It makes no VRF.

Ping and UDP errors sent by a far edge are not VPN-aware. Traceroute’s are.

There is no DPI. An app-list matches a small table of well-known protocols and ports (dns, http, https, ssh, telnet, ftp, smtp, ntp, snmp, sip, rdp, icmp). Other names match nothing, and the import says so.

count does not count. The vBond and DTLS handshakes, BFD probes on tunnels, and NAT between transports are not modelled. Tunnel state comes from the interfaces and the transport, not from probes.

There are no SD-WAN labs yet.