Bug 259635

Summary: netstat(8): Displays impossible transfer rate in lagg failover configuration with em(4) ethernet and wireless interface
Product: Base System Reporter: Jason W. Bacon <jwb>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: needs-qa
Priority: ---    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Jason W. Bacon freebsd_committer freebsd_triage 2021-11-03 23:59:58 UTC
Lenovo T430:

ifconfig_em0="ether 6c:88:14:a7:59:0c"
wlans_iwn0="wlan0"
ifconfig_wlan0="WPA"
create_args_wlan0=""
cloned_interfaces="lagg0"
ifconfig_lagg0="up laggproto failover laggport em0 laggport wlan0 DHCP"
ifconfig_lagg0_ipv6="inet6 accept_rtadv"

After plugging in and starting a transfer of video files from a desktop system over NFS, netstat shows almost 200 MB/s sustained:

FreeBSD moray.acadix  bacon ~ 1015: netstat 1
            input        (Total)           output
   packets  errs idrops      bytes    packets  errs      bytes colls
    106994     0     0  161901590      55324     0    3320082     0
    134136     0     0  202975988      69376     0    4164680     0
    135402     0     0  204893698      70032     0    4202918     0
    130116     0     0  196886320      67271     0    4037274     0
    128795     0     0  194881488      66635     0    4005910     0
    126675     0     0  191687146      65502     0    3931348     0
    116430     0     0  176186388      60218     0    3613532     0
    128540     0     0  194515260      66479     0    3990266     0

iostat 1 shows about half this rate, as expected.

I use netstat regularly and never see this kind of behavior on a simple wired connection.  After disconnecting Ethernet, wireless transfers are also showing double the expected rate.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2021-11-04 00:05:58 UTC
Thanks for your report Jason. Could you add additional information, including:

 - uname -a output
 - /var/run/dmesg.boot output (as an attachment)
 - netstat output of the em0 interface, not in lagg0 configuration
 - netstat output of the wlan0 interface, not in lagg0 configuration
 - Confirmation that the netstat output from comment 0 is with em0 "up" and primary (am assuming so, given "After plugging in" comment)
Comment 2 Jason W. Bacon freebsd_committer freebsd_triage 2024-04-26 11:50:15 UTC
(In reply to Kubilay Kocak from comment #1)

Oops, never saw your response.  Seems to have been resolved not long after I reported it.