Linux: package reordering modeling

I would like to model packet reordering for UDP packets in Linux to measure the performance and fault tolerance of my application. Is there an easy way to do this?

+3
source share
3 answers

take a look at WANEM

Thus, the WAN allows the application to the development team for a transparent application gateway, which can be used to simulate WANs such as network latency, packet loss, packet corruption, outages, packet reordering, jitter, etc.

+4
source

"netem", ​​Linux. . netem - , , .

( ), netem netem ( , ).

- netem VM. , .

+3

scapy. python . pcap, tcpdump, wirehark, , scapy.

a=rdpcap("/spare/captures/isakmp.cap")
for pkt in a.reverse():
   sendp(pkt)

Depending on how you count the packets, you may need to send (level 3) rather than sendp (level 2)

+2
source

Source: https://habr.com/ru/post/1768904/


All Articles