lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<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

Powered by Openwall GNU/*/Linux Powered by OpenVZ