diff options
author | araujo <araujo@FreeBSD.org> | 2016-01-23 04:18:44 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2016-01-23 04:18:44 +0000 |
commit | a1319b3488144e197659231fc31c2faf78d916a4 (patch) | |
tree | 3b63e586885747ce4a58a6bd68574755c0ad2399 /share | |
parent | 7e5d57d7f131dab88d272d449b72eee8d68773b0 (diff) | |
download | FreeBSD-src-a1319b3488144e197659231fc31c2faf78d916a4.zip FreeBSD-src-a1319b3488144e197659231fc31c2faf78d916a4.tar.gz |
Add an IOCTL rr_limit to let users fine tuning the number of packets to be
sent using roundrobin protocol and set a better granularity and distribution
among the interfaces. Tuning the number of packages sent by interface can
increase throughput and reduce unordered packets as well as reduce SACK.
Example of usage:
# ifconfig bge0 up
# ifconfig bge1 up
# ifconfig lagg0 create
# ifconfig lagg0 laggproto roundrobin laggport bge0 laggport bge1 \
192.168.1.1 netmask 255.255.255.0
# ifconfig lagg0 rr_limit 500
Reviewed by: thompsa, glebius, adrian (old patch)
Approved by: bapt (mentor)
Relnotes: Yes
Differential Revision: https://reviews.freebsd.org/D540
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man4/lagg.4 | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/share/man/man4/lagg.4 b/share/man/man4/lagg.4 index da070f1..c1a1bef 100644 --- a/share/man/man4/lagg.4 +++ b/share/man/man4/lagg.4 @@ -16,7 +16,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 6, 2015 +.Dd January 23, 2016 .Dt LAGG 4 .Os .Sh NAME @@ -110,6 +110,11 @@ available, the VLAN tag, and the IP source and destination address. Distributes outgoing traffic using a round-robin scheduler through all active ports and accepts incoming traffic from any active port. +Using +.Ic roundrobin +mode can cause unordered packet arrival at the client. +Throughput might be limited as the client performs CPU-intensive packet +reordering. .It Ic broadcast Sends frames to all ports of the LAG and receives frames on any port of the LAG. @@ -161,6 +166,19 @@ Gigabit Ethernet interfaces: 192.168.1.1 netmask 255.255.255.0 .Ed .Pp +Create a link aggregation using ROUNDROBIN with two +.Xr bge 4 +Gigabit Ethernet interfaces and set the limit of 500 packets +per interface: +.Bd -literal -offset indent +# ifconfig bge0 up +# ifconfig bge1 up +# ifconfig lagg0 create +# ifconfig lagg0 laggproto roundrobin laggport bge0 laggport bge1 \e + 192.168.1.1 netmask 255.255.255.0 +# ifconfig lagg0 rr_limit 500 +.Ed +.Pp The following example uses an active failover interface to set up roaming between wired and wireless networks using two network devices. Whenever the wired master interface is unplugged, the wireless failover |