Does FreeBSD do proactive ARP refresh?,Re: Does FreeBSD do proactive ARP refresh?
sthaug at nethelp.no
sthaug at nethelp.no
Fri Mar 16 10:58:21 UTC 2018
> Can you show your config and stats after the test?
> # sysctl net.link.ether
> # netstat -sp arp
> # netstat -sp ip
> # netstat -sp udp
OK, below is the output from these commands, run on the iperf3 sender,
from before and after one test run. I ran the test for 370 seconds,
and had 3 periods of packet loss, spaced 120 seconds apart.
Steinar Haug, Nethelp consulting, sthaug at nethelp.no
----------------------------------------------------------------------
# Before
sthaug at pondus% sysctl net.link.ether
net.link.ether.inet.allow_multicast: 0
net.link.ether.inet.log_arp_permanent_modify: 1
net.link.ether.inet.log_arp_movements: 1
net.link.ether.inet.log_arp_wrong_iface: 1
net.link.ether.inet.garp_rexmit_count: 0
net.link.ether.inet.max_log_per_second: 1
net.link.ether.inet.maxhold: 1
net.link.ether.inet.wait: 20
net.link.ether.inet.proxyall: 0
net.link.ether.inet.maxtries: 5
net.link.ether.inet.max_age: 120
net.link.ether.ipfw: 0
sthaug at pondus% netstat -sp arp
arp:
67 ARP requests sent
812 ARP replies sent
54274 ARP requests received
63 ARP replies received
54337 ARP packets received
339 total packets dropped due to no ARP entry
63 ARP entrys timed out
0 Duplicate IPs seen
sthaug at pondus% netstat -sp ip
ip:
52434 total packets received
0 bad header checksums
0 with size smaller than minimum
0 with data size < data length
0 with ip length > max ip packet size
0 with header length < data size
0 with data length < header length
0 with bad options
0 with incorrect version number
0 fragments received
0 fragments dropped (dup or out of space)
0 fragments dropped after timeout
0 packets reassembled ok
51339 packets for this host
0 packets for unknown/unsupported protocol
33 packets forwarded (18 packets fast forwarded)
1 packet not forwardable
0 packets received for unknown multicast group
0 redirects sent
109204414 packets sent from this host
0 packets sent with fabricated ip header
0 output packets dropped due to no bufs, etc.
23551 output packets discarded due to no route
0 output datagrams fragmented
0 fragments created
0 datagrams that can't be fragmented
0 tunneling packets that can't find gif
0 datagrams with bad address in header
sthaug at pondus% netstat -sp udp
udp:
2750 datagrams received
0 with incomplete header
0 with bad data length field
0 with bad checksum
440 with no checksum
2138 dropped due to no socket
0 broadcast/multicast datagrams undelivered
0 dropped due to full socket buffers
0 not for hashed pcb
612 delivered
109160018 datagrams output
0 times multicast source filter matched
# After
sthaug at pondus% sysctl net.link.ether
net.link.ether.inet.allow_multicast: 0
net.link.ether.inet.log_arp_permanent_modify: 1
net.link.ether.inet.log_arp_movements: 1
net.link.ether.inet.log_arp_wrong_iface: 1
net.link.ether.inet.garp_rexmit_count: 0
net.link.ether.inet.max_log_per_second: 1
net.link.ether.inet.maxhold: 1
net.link.ether.inet.wait: 20
net.link.ether.inet.proxyall: 0
net.link.ether.inet.maxtries: 5
net.link.ether.inet.max_age: 120
net.link.ether.ipfw: 0
sthaug at pondus% netstat -sp arp
arp:
70 ARP requests sent
813 ARP replies sent
54297 ARP requests received
66 ARP replies received
54363 ARP packets received
351 total packets dropped due to no ARP entry
66 ARP entrys timed out
0 Duplicate IPs seen
sthaug at pondus% netstat -sp ip
ip:
52527 total packets received
0 bad header checksums
0 with size smaller than minimum
0 with data size < data length
0 with ip length > max ip packet size
0 with header length < data size
0 with data length < header length
0 with bad options
0 with incorrect version number
0 fragments received
0 fragments dropped (dup or out of space)
0 fragments dropped after timeout
0 packets reassembled ok
51432 packets for this host
0 packets for unknown/unsupported protocol
33 packets forwarded (18 packets fast forwarded)
1 packet not forwardable
0 packets received for unknown multicast group
0 redirects sent
111059559 packets sent from this host
0 packets sent with fabricated ip header
0 output packets dropped due to no bufs, etc.
23551 output packets discarded due to no route
0 output datagrams fragmented
0 fragments created
0 datagrams that can't be fragmented
0 tunneling packets that can't find gif
0 datagrams with bad address in header
sthaug at pondus% netstat -sp udp
udp:
2751 datagrams received
0 with incomplete header
0 with bad data length field
0 with bad checksum
440 with no checksum
2138 dropped due to no socket
0 broadcast/multicast datagrams undelivered
0 dropped due to full socket buffers
0 not for hashed pcb
613 delivered
111015060 datagrams output
0 times multicast source filter matched
More information about the freebsd-net
mailing list