▲ | jcalvinowens 3 days ago | |
> Even if you dropped all packets from that client you would need to still process the packets to figure out what client they belong to before dropping the packets? In modern Linux you can write BPF-XDP programs to drop traffic at the lowest level in the driver before any computation is spent on them at all. Nearly the first thing the driver does after getting new packets in the rx ring buffer is run your program on them. | ||
▲ | __turbobrew__ 2 days ago | parent [-] | |
Say you have a BPF-XDP program which processes the packet to figure out what client the packet is coming from and selectively drops those packets. Is that really going to be faster than just forwarding the packet from the edge router to the next hop? I find it hard to believe that running such a program would actually alleviate full queues when all the edge router is doing is just forwarding to the next hop? |