The following
example shows how to enable GTP tunnel load balancing by configuring Layer 4
load-balancing for the 7-tuple hash algorithm:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# cef load-balancing fields L4
RP/0/RP0/CPU0:router(config)# commit
The following
example shows how to verify summary information for the IPv4 or IPv6 CEF table:
RP/0/RP0/CPU0:router# show cef ipv4 summary
Router ID is 10.2.2.2
IP CEF with switching (Table Version 0) for node0_RP0_CPU0
Load balancing: L4
Tableid 0xe0000000 (0x9cdbc1dc), Flags 0x21
Refcount 527
293 routes, 0 protected, 0 reresolve, 0 unresolved (0 old, 0 new), 23440 bytes
222 load sharing elements, 64376 bytes, 85 references
14 shared load sharing elements, 4064 bytes
208 exclusive load sharing elements, 60312 bytes
0 route delete cache elements
2036 local route bufs received, 1264 remote route bufs received, 0 mix bufs d
117 local routes, 0 remote routes
8762 total local route updates processed
0 total remote route updates processed
0 pkts pre-routed to cust card
0 pkts received from core card
0 CEF route update drops, 2151 revisions of existing leaves
0 CEF route update drops due to version mis-match
Resolution Timer: 15s
0 prefixes modified in place
0 deleted stale prefixes
0 prefixes with label imposition, 0 prefixes with label information
159 next hops
0 incomplete next hops
0 PD backwalks on LDIs with backup path
RP/0/RP0/CPU0:router# show cef ipv6 summary
Router ID is 10.2.2.2
IP CEF with switching (Table Version 0) for node0_RP0_CPU0
Load balancing: L4
Tableid 0xe0800000 (0x9cdee368), Flags 0x21
Refcount 39
17 routes, 0 protected, 0 reresolve, 0 unresolved (0 old, 0 new), 1360 bytes
17 load sharing elements, 4876 bytes, 4 references
4 shared load sharing elements, 1072 bytes
13 exclusive load sharing elements, 3804 bytes
0 route delete cache elements
199321 local route bufs received, 49838 remote route bufs received, 0 mix bud
9 local routes, 0 remote routes
1046420 total local route updates processed
0 total remote route updates processed
0 pkts pre-routed to cust card
0 pkts received from core card
0 CEF route update drops, 1 revisions of existing leaves
0 CEF route update drops due to version mis-match
Resolution Timer: 15s
0 prefixes modified in place
0 deleted stale prefixes
0 prefixes with label imposition, 0 prefixes with label information
3 next hops
0 incomplete next hops
0 PD backwalks on LDIs with backup path
Use the
show cef {ipv4 | ipv6}
exact-route command in
XR EXEC mode
to verify that the interface selected for load balancing matches with the
output from this command. The following examples show the exact route for the
Layer 4 information:
 Note |
Use 16MSBist of
TEID in source port and 16LSBits of TEID in destination port in place of L4
protocol source and destination port number.
For example:
If TEID=241210E1
(in hexadecimal), then source-port=9234 (Decimal equivalent of 16MSBits of TEID
2412) and destination-port=4321 (Decimal equivalent of 16LSBits of TEID 10E1)
If TEID=0069012F
(in hexadecimal), then source-port= 105 (Decimal equivalent of 16MSBits of TEID
0069) and destination-port= 303 (Decimal equivalent of 16LSBits of TEID 012F)
|
RP/0/RP0/CPU0:router# show cef ipv4 exact-route 20.0.0.2 60.0.0.2 protocol udp source-port 9234 destination-port 4321 ingress-interface HundredGigE 0/6/5/0
0.0.0.0/0, version 12, proxy default, internal 0x4000021 (ptr 0x9d760060) [1], )
Updated Jul 17 03:12:35.566
local adjacency 172.29.52.1
Prefix Len 0, traffic index 0, precedence routine (0), priority 3
via MgmtEth0/RP0/CPU0/0
via 172.29.52.1, 5 dependencies, recursive [flags 0x0]
path-idx 0 [0x9d760648 0x0]
next hop 172.29.52.1 via 172.29.52.1/32
RP/0/RP0/CPU0:router# show cef ipv6 exact-route 20:6:1::9 22:6:1::9 protocol udp source-port 105 destination-port 303 ingress-interface HundredGigE 0/6/5/4
::/0, version 8, proxy default, internal 0x4000021 (ptr 0x9d6ac06c) [1], 0x0 (0)
Updated Jul 17 03:14:49.695
remote adjacency to HundredGigE0/6/5/0.22
Prefix Len 0, traffic index 0, precedence routine (0), priority 3
via HundredGigE0/6/5/0.22
via 5001:db8::1, HundredGigE0/6/5/0.22, 4 dependencies, weight 0, class ]
path-idx 0 [0x9dd7e0c4 0x0]
next hop 5001:db8::1
remote adjacency