On 04.02.2021 23:56, Johannes Lundberg wrote: > Hi > > We're experiencing unstable lacp lagg and not seeing BPDU packets coming > to the switch we when expect them to. Can anyone answer what is the > priority of those packets? Could it be that they are not being sent from > the FreeBSD host because they are stuck in outgoing queue? > > Please cc me since I'm not subscribed.
Hi, recently we faced with somehow similar problem, but with BGP and BFD packets. In our case BFD packets from neighbor do not reach bird daemon in expected time window, and this leads to BFD failure. We did some research and found, that BFD packets were received by the adapter, but then they seems stalled in the adapter queues for at least 2-3 seconds, then all packets passed to the bird daemon in several microseconds, but failure has already happened. First of we configured port mirroring on the switch to capture all packets on the another host. In the mirrored traffic we can see that all packets were send and received in correct time windows. We use Mellanox network adapters, they have ability to attach hardware timestamps to mbufs, so we can know the time when packets were received. I made the patch to libpcap and bpf(4) to be able use these timestamps in tcpdump. https://people.freebsd.org/~ae/bpf_adapter.diff Then we have started two instances of tcpdump, one with host's timestamps (-j host), second with adapter's timestamps (-j adapter). When BFD failure happened, we saw equal ordering in both packet captures. But timestamps are different - packets that were arrived too late have correct receiving timestamp, so if they would not stalled in the queues, then BFD failer would not happened. I know that this story will not help you, but it might be useful for the mail archives :) -- WBR, Andrey V. Elsukov _______________________________________________ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"