OMP graceful restart allows OMP peers to continue operating if one of the peers becomes unavailable for some reason. If a vSmart controller becomes unavailable, its peer vEdge router continues to forward traffic, using the last-known good routing information received from the vSmart controller. Similarly, if a vEdge router becomes unavailable, its peer vSmart controller continues to use the last-known good routing information that it received from that vEdge router.
OMP graceful restart is enabled by default on vSmart controllers and vEdge routers. The default graceful restart time is 43,200 seconds (12 hours).
The graceful restart timer is set up independently on each OMP peer; that is, it is set up separately on each vEdge router and vSmart controller. To illustrate what this means, let’s consider a vSmart controller that uses a graceful restart time of 300 seconds, or 5 minutes, and a vEdge router that is configured with a timer of 600 seconds (10 minutes). Here, the vSmart controller retains the OMP routes learned from that router for 10 minutes—the graceful restart timer value that is configured on the router and that the router has sent to the vSmart controller during the setup of the OMP session. The vEdge router retains the routes it learns from the vSmart controller for 5 minutes, which is the default graceful restart time value that is used on the vSmart controller and that the controller sent to the router, also during the setup of the OMP session.
https://sdwan-docs.cisco.com/Product_Documentation/Software_Features/SD-WAN_Release_16.2/03Routing/02Configuring_OMP
vEdge-INET-SA200# show omp peers 1.1.1.2 detail
peer 1.1.1.2
type vsmart
domain-id 1
site-id 10
overlay-id 1
state up
version 1
legit yes
control-up yes
staging no
upcount 2
downcount 1
last-uptime 2021-07-11T15:31:43+00:00
last-downtime 2021-07-11T15:27:25+00:00
uptime 0:00:06:21
hold-time 60
graceful-restart supported
graceful-restart-interval 43200
refresh supported
hello-sent 35
hello-received 29
handshake-sent 2
handshake-received 2
alert-sent 1
alert-received 0
inform-sent 10
inform-received 10
update-sent 16
update-received 8
policy-sent
policy-received
total-packets-sent 64
total-packets-received 50
routes-received 2
routes-installed 2
routes-sent 2
routes-received-ipv6 0
routes-installed-ipv6 0
routes-sent-ipv6 0
tlocs-received 2
tlocs-installed 2
tlocs-sent 2
services-received 0
services-installed 0
services-sent 2
services-received-ipv6 0
services-installed-ipv6 0
services-sent-ipv6 0
mcast-routes-received 0
mcast-routes-installed 0
mcast-routes-sent 0
vEdge-INET-SA200# show omp peers
R -> routes received
I -> routes installed
S -> routes sent
PEER TYPE ID ID ID STATE UPTIME R/I/S
1.1.1.2 vsmart 1 1 10 up 0:00:08:42 2/2/2
sh omp route 10.0.10.0/24
sh ip route 10.0.10.0/24
sh omp route 10.0.20.0/24
sh ip route 10.0.20.0/24
vEdge-INET-SA200# show ip routes 10.0.10.0/24 detail
Codes Proto-sub-type:
IA -> ospf-intra-area, IE -> ospf-inter-area,
E1 -> ospf-external1, E2 -> ospf-external2,
N1 -> ospf-nssa-external1, N2 -> ospf-nssa-external2,
e -> bgp-external, i -> bgp-internal
Codes Status flags:
F -> fib, S -> selected, I -> inactive,
B -> blackhole, R -> recursive
“”——————————————–
VPN 1 PREFIX 10.0.10.0/24
proto connected
distance 0
metric 0
uptime 0:00:07:14
nexthop-ifname ge0/2
status F,S
vEdge-INET-SA200# sh omp route 10.0.10.0/24
omp route entries for vpn 1 route 10.0.10.0/24
peer 0.0.0.0
path-id 66
label 1004
status C,Red,R
loss-reason not set
lost-to-peer not set
lost-to-path-id not set
Attributes:
originator 1.1.200.1
type installed
tloc 1.1.200.1, mpls, ipsec
ultimate-tloc not set
domain-id not set
overlay-id 1
site-id 200
preference not set
tag not set
origin-proto connected
origin-metric 0
as-path not set
unknown-attr-len not set
RECEIVED FROM:
peer 0.0.0.0
path-id 68
label 1004
status C,Red,R
loss-reason not set
lost-to-peer not set
lost-to-path-id not set
Attributes:
originator 1.1.200.1
type installed
tloc 1.1.200.1, biz-internet, ipsec
ultimate-tloc not set
domain-id not set
overlay-id 1
site-id 200
preference not set
tag not set
origin-proto connected
origin-metric 0
as-path not set
unknown-attr-len not set
vEdge-INET-SA200# sh ip route 10.0.10.0/24.
———————————^
syntax error: unknown element
vEdge-INET-SA200# sh ip route 10.0.10.0/24
Codes Proto-sub-type:
IA -> ospf-intra-area, IE -> ospf-inter-area,
E1 -> ospf-external1, E2 -> ospf-external2,
N1 -> ospf-nssa-external1, N2 -> ospf-nssa-external2,
e -> bgp-external, i -> bgp-internal
Codes Status flags:
F -> fib, S -> selected, I -> inactive,
B -> blackhole, R -> recursive
PROTOCOL NEXTHOP NEXTHOP NEXTHOP
VPN PREFIX PROTOCOL SUB TYPE IF NAME ADDR VPN TLOC IP COLOR ENCAP STATUS
1 10.0.10.0/24 connected – ge0/2 – – – – – F,S
shutdown vsmart
vEdge-INET-SA200# show omp peers 1.1.1.2
R -> routes received
I -> routes installed
S -> routes sent
PEER TYPE ID ID ID STATE UPTIME R/I/S
1.1.1.2 vsmart 1 1 10 init-in-gr 2/2/0
vEdge-INET-SA200# sh omp route 10.0.10.0/24
omp route entries for vpn 1 route 10.0.10.0/24
peer 0.0.0.0
path-id 66
label 1004
status C,Red,R
loss-reason not set
lost-to-peer not set
lost-to-path-id not set
Attributes:
originator 1.1.200.1
type installed
tloc 1.1.200.1, mpls, ipsec
ultimate-tloc not set
domain-id not set
overlay-id 1
site-id 200
preference not set
tag not set
origin-proto connected
origin-metric 0
as-path not set
unknown-attr-len not set
RECEIVED FROM:
peer 0.0.0.0
path-id 68
label 1004
status C,Red,R
loss-reason not set
lost-to-peer not set
lost-to-path-id not set
Attributes:
originator 1.1.200.1
type installed
tloc 1.1.200.1, biz-internet, ipsec
ultimate-tloc not set
domain-id not set
overlay-id 1
site-id 200
preference not set
tag not set
origin-proto connected
origin-metric 0
as-path not set
unknown-attr-len not set
vEdge-INET-SA200#
vEdge-INET-SA200# sh ip route 10.0.10.0/24
Codes Proto-sub-type:
IA -> ospf-intra-area, IE -> ospf-inter-area,
E1 -> ospf-external1, E2 -> ospf-external2,
N1 -> ospf-nssa-external1, N2 -> ospf-nssa-external2,
e -> bgp-external, i -> bgp-internal
Codes Status flags:
F -> fib, S -> selected, I -> inactive,
B -> blackhole, R -> recursive
PROTOCOL NEXTHOP NEXTHOP NEXTHOP
VPN PREFIX PROTOCOL SUB TYPE IF NAME ADDR VPN TLOC IP COLOR ENCAP STATUS
1 10.0.10.0/24 connected – ge0/2 – – – – – F,S
vEdge-INET-SA200# show bfd sessions
SOURCE TLOC REMOTE TLOC DST PUBLIC DST PUBLIC DETECT TX
SYSTEM IP SITE ID STATE COLOR COLOR SOURCE IP IP PORT ENCAP MULTIPLIER INTERVAL(msec) UPTIME TRANSITIONS
1.1.201.1 300 up mpls mpls 60.1.1.1 60.1.2.1 12386 ipsec 7 1000 0:00:09:19 0
1.1.201.1 300 up mpls biz-internet 60.1.1.1 200.1.20.1 12386 ipsec 7 1000 0:00:09:19 0
1.1.201.1 300 up biz-internet mpls 200.1.10.1 60.1.2.1 12386 ipsec 7 1000 0:00:11:39 1
1.1.201.1 300 up biz-internet biz-internet 200.1.10.1 200.1.20.1 12386 ipsec 7 1000 0:00:11:39 1
vEdge-INET-SA200# show ipsec outbound-connections
SOURCE SOURCE DEST DEST REMOTE REMOTE AUTHENTICATION NEGOTIATED
IP PORT IP PORT SPI TUNNEL MTU TLOC ADDRESS TLOC COLOR USED KEY HASH ENCRYPTION ALGORITHM TC SPIs
60.1.1.1 12366 60.1.2.1 12386 258 1442 1.1.201.1 mpls AH_SHA1_HMAC b876 AES-GCM-256 8
60.1.1.1 12366 200.1.20.1 12386 259 1442 1.1.201.1 biz-internet AH_SHA1_HMAC eb3f AES-GCM-256 8
60.1.1.1 12386 60.1.2.1 12386 258 1441 1.1.201.1 mpls AH_SHA1_HMAC b876 AES-GCM-256 8
60.1.1.1 12386 200.1.20.1 12386 259 1441 1.1.201.1 biz-internet AH_SHA1_HMAC eb3f AES-GCM-256 8
200.1.10.1 12346 60.1.2.1 12386 258 1441 1.1.201.1 mpls AH_SHA1_HMAC b876 AES-GCM-256 8
200.1.10.1 12346 200.1.20.1 12386 259 1441 1.1.201.1 biz-internet AH_SHA1_HMAC eb3f AES-GCM-256 8
vEdge-INET-SA200# ping vpn 1 10.0.20.250 rapid
Defaulting count to 5
Ping in VPN 1
!!!!!
— 10.0.20.250 statistics —
5 packets transmitted, 5 received, 0% packet loss
** Result: vEdge can still reach the remote vedge. BFD/IPSEC is up and routes still present on vEdge RIB.
## SET THE OMP GRACEFUL RESTART TO 10SEC
vEdge-INET-SA200(config)# omp
vEdge-INET-SA200(config-omp)# timers graceful-restart-timer 1
vEdge-INET-SA200(config-timers)# commit
Commit complete.
omp
no shutdown
graceful-restart
timers
holdtime 3
graceful-restart-timer 1
eor-timer 1
exit
vEdge-INET-SA200# show omp peers 1.1.1.2 detail <—- Peer to vsmart
peer 1.1.1.2
type vsmart
domain-id 1
site-id 10
overlay-id 1
state init-in-gr
version 1
legit yes
control-up no
staging no
upcount 1
downcount 1
last-uptime 2021-07-11T16:04:07+00:00
last-downtime 2021-07-11T16:10:07+00:00
downtime 0:00:02:28
hold-time 3
graceful-restart in-progress
graceful-restart-interval 43200
refresh supported
hello-sent 21
hello-received 16
handshake-sent 1
handshake-received 1
alert-sent 1
alert-received 0
inform-sent 7
inform-received 7
update-sent 6
update-received 5
policy-sent
policy-received
total-packets-sent 36
total-packets-received 29
routes-received 2
routes-installed 2
routes-sent 0
routes-received-ipv6 0
routes-installed-ipv6 0
routes-sent-ipv6 0
tlocs-received 2
tlocs-installed 2
tlocs-sent 0
services-received 0
services-installed 0
services-sent 0
services-received-ipv6 0
services-installed-ipv6 0
services-sent-ipv6 0
mcast-routes-received 0
mcast-routes-installed 0
mcast-routes-sent 0
vsmart# show omp peers 1.1.200.1 detail <—- Peer to vedge
peer 1.1.200.1
type vedge
domain-id 1
site-id 200
overlay-id 1
state up
version 1
legit yes
control-up yes
staging no
upcount 7
downcount 6
last-uptime 2021-07-11T16:04:09+00:00
last-downtime 2021-07-11T15:50:47+00:00
uptime 0:00:03:08
hold-time 60
graceful-restart supported
graceful-restart-interval 1 <—–
refresh supported
hello-sent 3227
hello-received 3222
handshake-sent 7
handshake-received 7
alert-sent 5
alert-received 1
inform-sent 29
inform-received 33
update-sent 39
update-received 59
policy-sent
policy-received
total-packets-sent 3308
total-packets-received 3322
routes-received 2
routes-installed 0
routes-sent 2
routes-received-ipv6 0
routes-installed-ipv6 0
routes-sent-ipv6 0
tlocs-received 2
tlocs-installed 2
tlocs-sent 2
services-received 2
services-installed 2
services-sent 0
services-received-ipv6 0
services-installed-ipv6 0
services-sent-ipv6 0
mcast-routes-received 0
mcast-routes-installed 0
mcast-routes-sent 0
vsmart# sh omp route 10.0.10.0/24 <– Routes from vEdge vEdge-INET-SA200
% No entries found.
vsmart# sh omp route 10.0.20.0/24
omp route entries for vpn 1 route 10.0.20.0/24
peer 1.1.201.1
path-id 66
label 1002
status C,R,S
loss-reason not set
lost-to-peer not set
lost-to-path-id not set
Attributes:
originator 1.1.201.1
type installed
tloc 1.1.201.1, mpls, ipsec
ultimate-tloc not set
domain-id not set
overlay-id 1
site-id 300
preference not set
tag not set
origin-proto connected
origin-metric 0
as-path not set
unknown-attr-len not set
RECEIVED FROM:
peer 1.1.201.1
path-id 68
label 1002
status C,R,S
loss-reason not set
lost-to-peer not set
lost-to-path-id not set
Attributes:
originator 1.1.201.1
type installed
tloc 1.1.201.1, biz-internet, ipsec
ultimate-tloc not set
domain-id not set
overlay-id 1
site-id 300
preference not set
tag not set
origin-proto connected
origin-metric 0
as-path not set
unknown-attr-len not set
FROM VEDGE ROUTES STILL EXIST SINCE THE GRACEFUL RESTART IS 43200
vEdge-INET-SA200# sh omp route | t
Code:
C -> chosen
I -> installed
Red -> redistributed
Rej -> rejected
L -> looped
R -> resolved
S -> stale
Ext -> extranet
Inv -> invalid
Stg -> staged
U -> TLOC unresolved
VPN PREFIX FROM PEER ID LABEL STATUS TYPE TLOC IP COLOR ENCAP PREFERENCE
1 10.0.10.0/24 0.0.0.0 66 1002 C,Red,R installed 1.1.200.1 mpls ipsec –
0.0.0.0 68 1002 C,Red,R installed 1.1.200.1 biz-internet ipsec –
1 10.0.20.0/24 1.1.1.2 15 1002 C,I,R,S installed 1.1.201.1 biz-internet ipsec –
1.1.1.2 16 1002 C,I,R,S installed 1.1.201.1 mpls ipsec –
:: WHAT IF WE CHANGE THE OMP TIMERS ON VSMART
vsmart(config)# omp
vsmart(config-omp)# timers graceful-restart-timer 1
vsmart(config-timers)# commit
vEdge-INET-SA200# show omp peers 1.1.1.2 detail
peer 1.1.1.2
type vsmart
domain-id 1
site-id 10
overlay-id 1
state up
version 1
legit yes
control-up yes
staging no
upcount 2
downcount 1
last-uptime 2021-07-11T16:19:00+00:00
last-downtime 2021-07-11T16:10:07+00:00
uptime 0:00:00:21
hold-time 60
graceful-restart supported
graceful-restart-interval 1
refresh supported
hello-sent 24
hello-received 18
handshake-sent 2
handshake-received 2
alert-sent 1
alert-received 0
inform-sent 14
inform-received 10
update-sent 12
update-received 9
policy-sent
policy-received
total-packets-sent 53
total-packets-received 39
routes-received 2
routes-installed 2
routes-sent 2
routes-received-ipv6 0
routes-installed-ipv6 0
routes-sent-ipv6 0
tlocs-received 2
tlocs-installed 2
tlocs-sent 2
services-received 0
services-installed 0
services-sent 2
services-received-ipv6 0
services-installed-ipv6 0
services-sent-ipv6 0
mcast-routes-received 0
mcast-routes-installed 0
mcast-routes-sent 0
SHUTDOWN VSMART
vEdge-INET-SA200# ping vpn 1 10.0.20.250 count 10000 rapid
Ping in VPN 1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!……………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………..^C
— 10.0.20.250 statistics —
1580 packets transmitted, 177 received, 89% packet loss
vEdge-INET-SA200# show omp routes | t
Code:
C -> chosen
I -> installed
Red -> redistributed
Rej -> rejected
L -> looped
R -> resolved
S -> stale
Ext -> extranet
Inv -> invalid
Stg -> staged
U -> TLOC unresolved
VPN PREFIX FROM PEER ID LABEL STATUS TYPE TLOC IP COLOR ENCAP PREFERENCE
1 10.0.10.0/24 0.0.0.0 66 1002 C,Red,R installed 1.1.200.1 mpls ipsec –
0.0.0.0 68 1002 C,Red,R installed 1.1.200.1 biz-internet ipsec –
** RESULT: After we detected that the vSmart peer went down the timers kicks and after it reaches the graceful-restart value (1sec) omp cache expires.
https://sdwan-docs.cisco.com/Product_Documentation/vManage_Help/Release_18.1/Configuration/Templates/OMP
https://sdwan-docs.cisco.com/Product_Documentation/Software_Features/SD-WAN_Release_16.2/03Routing/02Configuring_OMP