[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1463495288.18194.89.camel@edumazet-glaptop3.roam.corp.google.com>
Date: Tue, 17 May 2016 07:28:08 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Tuvia Rosenberg <rtuvia197@...il.com>
Cc: Neil Horman <nhorman@...driver.com>,
netem@...ts.linux-foundation.org,
"David S. Miller" <davem@...emloft.net>,
Jamal Hadi Salim <jhs@...atatu.com>, netdev@...r.kernel.org
Subject: Re: Reorder of packets
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
Powered by blists - more mailing lists