User Tools

Site Tools


documentation:examples:ecmp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
documentation:examples:ecmp [2019/10/30 14:59] olivierdocumentation:examples:ecmp [2019/10/30 15:40] – [Testing Load balancing] olivier
Line 110: Line 110:
  
 VM 2 is a router with ECMP: 2 static routes toward the same destination but using 2 different next-hop. VM 2 is a router with ECMP: 2 static routes toward the same destination but using 2 different next-hop.
 +Need to disable fastforward by re-enabling ICMP redirect (disabled on BSDRP by default).
  
 <code> <code>
Line 129: Line 130:
 sysrc ipv6_route_VM4VM6="2001:db8:56:: -prefixlen 64 2001:db8:24::4" sysrc ipv6_route_VM4VM6="2001:db8:56:: -prefixlen 64 2001:db8:24::4"
 sysrc ipv6_route_VM4VM5="2001:db8:45:: -prefixlen 64 2001:db8:24::4" sysrc ipv6_route_VM4VM5="2001:db8:45:: -prefixlen 64 2001:db8:24::4"
 +sed -i '' -e '/net.inet.ip.redirect=0/d' /etc/sysctl.conf
 +sed -i '' -e '/net.inet6.ip6.redirect=0/d' /etc/sysctl.conf
 +sysctl net.inet.ip.redirect=1
 +sysctl net.inet6.ip6.redirect=1
 service hostname restart service hostname restart
 service netif restart service netif restart
Line 201: Line 206:
 sysrc ipv6_route_VM4VM1="2001:db8:12:: -prefixlen 64 2001:db8:45::4" sysrc ipv6_route_VM4VM1="2001:db8:12:: -prefixlen 64 2001:db8:45::4"
 sysrc ipv6_route_VM4VM2="2001:db8:24:: -prefixlen 64 2001:db8:45::4" sysrc ipv6_route_VM4VM2="2001:db8:24:: -prefixlen 64 2001:db8:45::4"
 +sed -i '' -e '/net.inet.ip.redirect=0/d' /etc/sysctl.conf
 +sed -i '' -e '/net.inet6.ip6.redirect=0/d' /etc/sysctl.conf
 +sysctl net.inet.ip.redirect=1
 +sysctl net.inet6.ip6.redirect=1
 service hostname restart service hostname restart
 service netif restart service netif restart
Line 237: Line 246:
 ==== Testing Load balancing ==== ==== Testing Load balancing ====
  
-Flows from VM1 to VM6 should be load-balanced by VM2 toward VM3 and VM4. Let's check using multiple sources and destination IP addresses:+Flows from VM1 to VM6 should be load-balanced by VM2 toward VM3 and VM4. Let's check using multiple sources and destination IP addresses
 +Using ping record feature like with this example: 
 +<code> 
 +[root@VM1]~# ping -c1 -R -S 10.0.12.21 10.0.56.26 
 +PING 10.0.56.26 (10.0.56.26) from 10.0.12.21: 56 data bytes 
 +64 bytes from 10.0.56.26: icmp_seq=0 ttl=61 time=0.358 ms 
 +RR:     10.0.23.2 
 +        10.0.35.3 
 +        10.0.56.5 
 +        10.0.56.26 
 +        10.0.35.5 
 +        10.0.23.3 
 +        10.0.12.2 
 +        10.0.12.21 
 + 
 +--- 10.0.56.26 ping statistics --- 
 +1 packets transmitted, 1 packets received, 0.0% packet loss 
 +round-trip min/avg/max/stddev = 0.358/0.358/0.358/0.000 ms 
 +</code>
  
 ^ Source ^ Destination ^ Ongoing path selected by VM2 ^ Returning path selected by VM5^ ^ Source ^ Destination ^ Ongoing path selected by VM2 ^ Returning path selected by VM5^
Line 254: Line 281:
 | 10.0.12.1 | 10.0.45.5 | VM4 | VM3 | | 10.0.12.1 | 10.0.45.5 | VM4 | VM3 |
  
-<note>There is no flow load-balancing with RADIX MPATH on FreeBSD 11, [[https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225792|seems broken with tryforward]], put proposed patch disable tryforward(fastforward) if RADIX_MPATH is enabled.</note>+<note>There is no flow load-balancing with RADIX MPATH since FreeBSD 11, [[https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225792|seems broken with tryforward]], put proposed patch disable tryforward(fastforward) if RADIX_MPATH is enabled.</note>
  
documentation/examples/ecmp.txt · Last modified: 2024/03/28 23:19 by olivier

Except where otherwise noted, content on this wiki is licensed under the following license: BSD 2-Clause
Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki