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.
Support level
Section titled “Support level”| Area | Level | Notes |
|---|---|---|
| System identity | Supported | system-ip, site-id, overlay-id, organization-name, vbond. A node without a system-ip and a site-id joins no overlay. |
| TLOCs | Supported | A tunnel-interface turns a WAN port into a TLOC with a colour and an encapsulation. |
| OMP peering | Behaviour model | An edge that names a vBond connects to every controller of its overlay and organisation. The DTLS/TLS handshake is not modelled. |
| Route origination | Supported | advertise connected, static, ospf [external], bgp, eigrp, per service VPN. One route per TLOC. See Service VPNs. |
| Best path | Supported | The seven OMP rungs, ECMP up to ecmp-limit. |
| Centralized control policy | Supported | Lists, sequences, default-action, apply-policy … in and out. |
| Centralized data policy | Supported | Drop, accept, DSCP rewrite, TLOC steering, direct internet access. |
| Application-aware routing | Supported | SLA classes judged against link loss, latency and jitter. |
| Service VPNs | Supported | A service VPN is a VRF. OMP routes are advertised and installed per VPN. |
| Overlay encapsulation | Supported | ESP or GRE between the two TLOC addresses. See Overlay tunnels. |
TLOCs and colours
Section titled “TLOCs and colours”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.
| Rule | Status | Notes |
|---|---|---|
| Same colour pairs | Supported | Always, with or without restrict. |
| Different colours pair | Supported | Only if neither end says restrict. One restricted end is enough to refuse. |
| Encapsulation must match | Supported | ipsec and gre. An ipsec TLOC and a gre TLOC form nothing. Default is ipsec. |
| Same site | Supported | Two edges at one site build no overlay tunnel. |
| Different overlays | Supported | Edges with different overlay-id form no tunnel. |
| Colour names | Supported | The 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 colours | Partial | The split is kept and shown. There is no NAT between transports, so both resolve to the interface address. |
TLOC preference, weight | Supported | preference is rung 3 of the best path. |
OMP best path
Section titled “OMP best path”Each edge runs the decision per route, in this order:
| Rung | Rule |
|---|---|
| 1 | The TLOC forms a tunnel from this edge. A route with no tunnel is not installed. |
| 2 | Higher OMP route preference. |
| 3 | Higher TLOC preference. |
| 4 | Lower origin type: connected, static, eBGP, OSPF, EIGRP, iBGP. |
| 5 | Lower origin metric. |
| 6 | Higher originator system-ip, compared as a number. |
| 7 | Higher 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.
Service VPNs
Section titled “Service VPNs”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.
advertisedirectly underompcovers every service VRF of the edge.omp/address-family ipv4 vrf Nscopes theadvertise connected,static,ospf [external],bgpandeigrplines 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.
Overlay tunnels
Section titled “Overlay tunnels”Traffic on an OMP route, or steered onto a tunnel by a data or app-route policy, is encapsulated:
encapsulation ipsecsends ESP,encapsulation gresends 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.
Feature matrix
Section titled “Feature matrix”| Feature | Status | Notes |
|---|---|---|
ecmp-limit | Supported | Caps the equal paths installed. Default 4. |
send-path-limit | Supported | Caps the paths per prefix an edge sends to the controller, highest ranked first. Default 4. |
timers holdtime, timers advertisement-interval | No effect | Read, checked, shown and written back. No timer runs. A holdtime below the advertisement interval is refused. |
graceful-restart | No effect | Read, shown and written back. |
| Lost controller | Supported | Model a vSmart as a device. Without it the overlay stops learning. |
| Organisation name | Supported | An edge only joins controllers with the same organization-name. |
| Service VPNs | Supported | A VPN is the VRF of the same number. VPN 0 and 512 are refused. See Service VPNs. |
| Interface roles | Behaviour model | An interface with a TLOC is transport. Every other addressed interface is service-side. |
redistribute omp [route-map RM] in OSPF | Supported | Brings the OMP routes of the OSPF process’s VRF into OSPF as externals. Written back. |
ip visibility … flow monitor | Supported | Feeds the NetFlow export, like a flow exporter’s destination <ip> vrf <n>. |
| Unread edge lines | No effect | Endpoint trackers, NBAR custom applications, OMP and SD-WAN service routes, flow-record options and similar lines are carried with the reason and written back. |
Centralized control policy
Section titled “Centralized control policy”A control policy lives on the vSmart. It decides which routes an edge hears. An edge never applies one.
| Feature | Status | Notes |
|---|---|---|
site-list, prefix-list, tloc-list, color-list | Supported | Under policy / lists. An empty list is refused. |
ip-prefix members | Supported | Without ge/le the member matches exactly. A bare ge means up to /32. |
control-policy NAME sequences | Supported | The first sequence whose match clauses all hold decides. Clauses are ANDed. A sequence with no match clause matches every route. |
action accept / reject | Supported | A reject that also sets something loses the set. |
default-action | Supported | reject unless the config says accept. |
set preference | Supported | OMP route preference, rung 2. |
set tloc-list | Supported | Steers the route onto the list’s first TLOC. |
set omp-tag | No effect | Read and shown. |
apply-policy site-list S control-policy NAME in | Supported | Judges routes from the sites in S. |
apply-policy site-list S control-policy NAME out | Supported | Judges routes sent to the sites in S. |
Undefined policy in apply-policy | Supported | Decides nothing, and the audit reports it. |
Centralized data policy
Section titled “Centralized data policy”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.
| Feature | Status | Notes |
|---|---|---|
vpn-list, data-prefix-list, app-list | Supported | app-list matches a small protocol and port table. See Known limits. |
data-policy NAME / vpn-list | Supported | A flow is in the ingress interface’s VRF, or else in every VPN the edge advertises. |
Match source-ip, destination-ip | Supported | Prefix or address. |
Match source-data-prefix-list, destination-data-prefix-list | Supported | |
Match protocol, source-port, destination-port, dscp | Supported | Values and ranges as written, for example 1000-2000 80. |
Match app-list | Partial | No DPI. Matches by protocol and port. |
action accept / drop | Supported | A drop that also sets something loses the set. |
default-action | Supported | drop if the policy does not state one. |
set dscp | Supported | Rewrites the marking on the wire. |
set local-tloc color C | Supported | Prefers that colour. Falls back to the normal path when it is down. |
set local-tloc-list color … restrict | Supported | Drops the flow when no listed colour is up. |
set tloc, set tloc-list | Supported | Steers toward a remote TLOC. |
set next-hop | Supported | Steers to an underlay next hop. |
nat use-vpn 0 | Supported | Direct internet access out of a transport, source translated to that transport’s address. The reply is translated back. |
nat fallback | Supported | Routes as usual when no transport can break out. Without it the flow is dropped. |
set vpn | No effect | Read and reported. The flow stays in its own VPN. |
count | No effect | Read and written back. Nothing is counted. |
apply-policy site-list S data-policy NAME from-service | Supported | Judges packets from service-side interfaces. |
apply-policy site-list S data-policy NAME from-tunnel | Supported | Judges packets from the overlay: the inner packet, after the edge unwraps it. |
apply-policy site-list S data-policy NAME all | Supported | Judges both. |
A data policy outranks application-aware routing. A flow a data policy steered is not steered again by an SLA class.
Application-aware routing
Section titled “Application-aware routing”| Feature | Status | Notes |
|---|---|---|
sla-class NAME with loss, latency, jitter | Supported | Loss in percent, latency and jitter in milliseconds. An axis that is not stated is not checked. |
app-route-policy NAME sequences | Supported | Same match clauses as a data policy. |
sla-class NAME preferred-color C | Supported | The preferred colour wins while it meets the class. |
sla-class NAME strict | Supported | Drops the flow when no tunnel meets the class. |
apply-policy site-list S app-route-policy NAME | Supported | Applies 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:
- A preferred colour that meets the class wins.
- If every tunnel meets the class and none is preferred, the normal path is kept.
- Otherwise the best tunnel that meets the class is used.
- If none meets it,
strictdrops the flow. Withoutstrictevery tunnel stays usable.
Show commands
Section titled “Show commands”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.
Running config
Section titled “Running config”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.
Audit findings
Section titled “Audit findings”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.
Analysis
Section titled “Analysis”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.
Known limits
Section titled “Known limits”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.