Thread (1 message) 1 message, 1 author, 2016-05-17

Re: Reorder of packets

From: Eric Dumazet <hidden>
Date: 2016-05-17 14:28:11

On Tue, 2016-05-17 at 14:45 +0300, Tuvia Rosenberg wrote:
Hi,
I need example of reordering incoming UPD/IP packets with netem
command.
Can someone write an example ?
Thanks,Tuvia R.
Simple one would be :

# netem based setup, installed at receiver side only
ETH=eth0
IFB=ifb10
DELAY=200us
JITTER=100us

ip link add ifb10 numtxqueues $TXQ type ifb
ip link set dev $IFB up

tc qdisc del dev $ETH ingress 2>/dev/null
tc qdisc add dev $ETH ingress

tc filter add dev $ETH parent ffff: \
   protocol ip u32 match u32 0 0 flowid 1:1 \
	action mirred egress redirect dev $IFB

tc qdisc del dev $IFB root 2>/dev/null
tc qdisc add dev $IFB root netem limit 10000 delay $DELAY $JITTER
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help