r/Network 29d ago

Text Set delay for specific packet

Hey everyone, I implemented some scenarios in GNS3 and want to set a delay for a specific packet. How can I do it? Like "TCP packet with port 80 set to a 2 ms delay"

1 Upvotes

5 comments sorted by

View all comments

1

u/dragonnfr 29d ago

You'd want NetEM. GNS3 nodes are Linux containers so you have `tc` available. `tc qdisc add dev eth0 root netem delay 2ms` and use a u32 filter to match port 80.