Verifying the Operation of INET Load Balancing
Action
On the ingress router, to verify the operation of the hash key, enter the following JUNOS CLI operational mode commands:
user@host>show configurationuser@host#show route forwarding-table destinationdestinationOn the transit router, to verify the operation of the hash key, enter the following JUNOS CLI operational mode commands:
user@host>show routeuser@host>monitor interface trafficuser@host>show mpls lsp statisticsSample Output
The following sample output is for ingress router R1:
user@R1>show configuration forwarding-optionshash-key {family inet{ #Port data configurationlayer-3;layer-4;}}user@R1>show configuration routing-optionsstatic {[...Output truncated...]autonomous-system 65432;forwarding-table {export lbpp;#Load balancing policy applied}user@R1>show configuration policy-optionspolicy-statementlbpp{ #Load balancing policy definedthen {load-balance per-packet;}}[...Output truncated...]What It Means
The sample output from ingress router R1 for the three
show configurationcommands (forwarding-options,routing-options, andpolicy-options) shows that load balancing is correctly configured for the INET hash key and the load-balancing policy (lbpp).Sample Output
The following sample output is for ingress router R1:
user@R1>show route forwarding-table destination 10.0.90.14Routing table: inetInternet:Destination Type RtRef Next hop Type Index NhRef Netif10.0.90.14/32 user 0ulst 262144210.0.12.14 Push 100688 fe-0/1/0.010.0.12.14 Push 100656 fe-0/1/0.010.0.12.14 Push 100672 fe-0/1/0.010.0.12.14 Push 100704 fe-0/1/0.0What It Means
The sample output from ingress router R1 for the
show route forwarding-table destinationcommand shows unilist (ulst)in theTypefield, indicating that load balancing is working. In this case, theTypefield shows the operation performed on packets. The push operation adds a new label to the top of the packet before the packets are pushed out of interfacefe-0/1/0.0.Sample Output
The following sample output is for transit router R2:
user@R2>show route 10.0.90.14inet.0: 25 destinations, 27 routes (25 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both10.0.90.12/30 *[OSPF/10] 03:06:04, metric 3via so-0/0/1.0> via so-0/0/2.0What It Means
The sample output from transit router R2 for the
show routecommand shows two OSPF routes to the destination interface on egress routerR0. Even though the route with the greater than sign (>) is the selected route, traffic will be balanced across both interfaces, as shown in the output for the followingshow route forwarding-tableandmonitor trafficcommands.Sample Output
The following sample output is for transit router R2:
user@R2>show route forwarding-table destination 10.0.90.14Routing table: inetInternet:Destination Type RtRef Next hop Type Index NhRef Netif10.0.90.12/30 user 0ulst 262144 6ucst345 5 so-0/0/1.0ucst339 2 so-0/0/2.0What It Means
The sample output from transit router R2 for the
show route forwarding-table destinationcommand shows unilist (ulst)in theTypefield, indicating that load balancing is working. A packet sent to this next hop (R2) goes to any next hop in the unicast (ucst) list,so-0/0/1.0andso-0/0/2.0.Sample Output
The following sample output is for transit router R2:
user@R2>monitor interface trafficR2 Seconds: 123 Time: 21:28:29Interface Link Input packets (pps) Output packets (pps)so-0/0/0 Up 0 (0) 0 (0)so-0/0/1 Up 95 (0)50012(1)so-0/0/2 Up 100132 (19)50217(0)so-0/0/3 Up 0 (0) 0 (0)fe-0/1/0 Up 100127 (17) 100128 (1)fe-0/1/1 Up 0 (0) 0 (0)fe-0/1/2 Up 0 (0) 0 (0)fe-0/1/3 Up 0 (0) 0 (0)[...Output truncated...]What It Means
The sample output from transit router R2 for the
monitor interface trafficcommand shows that traffic is balanced across interfacesso-0/0/1.0andso-0/0/2.0.Sample Output
The following sample output is for transit router R2:
user@R2>show mpls lsp statisticsIngress LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0Egress LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0Transit LSP: 5 sessionsTo From State Packets Bytes LSPname192.168.0.1 192.168.1.1 Up24874 2188912 lsp1192.168.0.1 192.168.1.1 Up24471 2153448 lsp2192.168.0.1 192.168.1.1 Up25613 2253944 lsp3192.168.0.1 192.168.1.1 Up25042 2203696 lsp4192.168.1.1 192.168.0.1 Up 0 0 r0-r1Total 5 displayed, Up 5, Down 0What It Means
The sample output from transit router R2 for the
show mpls lsp statisticscommand shows that traffic is balanced across the four LSPs (lsp1,lsp2,lsp3, andlsp4) transiting R2.