-
Notifications
You must be signed in to change notification settings - Fork 0
/
netem-rule
45 lines (30 loc) · 1.31 KB
/
netem-rule
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# in dirserver container
# one
$ tc qdisc add dev eth0 root netem delay 5ms 4ms distribution normal
$ tc qdisc change dev eth0 root netem delay 5ms 4ms distribution normal corrupt 1%
$ tc qdisc show
qdisc netem 8012: dev eth0 root refcnt 2 limit 1000 delay 5.0ms 4.0ms corrupt 1%
# two
$ tc qdisc add dev eth0 root netem delay 1ms 1ms distribution normal corrupt 2%
$ tc qdisc show
qdisc netem 8013: dev eth0 root refcnt 2 limit 1000 delay 1.0ms 1.0ms corrupt 2%
# three
$ tc qdisc add dev eth0 root netem delay 25ms 25ms distribution normal
$ tc qdisc show
qdisc netem 8015: dev eth0 root refcnt 2 limit 1000 delay 25.0ms 25.0ms
# four
$ tc qdisc add dev eth0 root netem delay 10ms 8ms distribution normal
$ tc qdisc show
qdisc netem 8014: dev eth0 root refcnt 2 limit 1000 delay 10.0ms 8.0ms
# five
$ tc qdisc add dev eth0 root netem delay 2ms 1ms distribution normal
$ tc qdisc show
qdisc netem 8016: dev eth0 root refcnt 2 limit 1000 delay 2.0ms 1.0ms
# six
$ tc qdisc add dev eth0 root netem delay 1ms 1ms distribution normal corrupt 1%
$ tc qdisc show
qdisc netem 8017: dev eth0 root refcnt 2 limit 1000 delay 1.0ms 1.0ms corrupt 1%
# seven
$ tc qdisc add dev eth0 root netem delay 5ms 4ms distribution normal corrupt 1%
$ tc qdisc show
qdisc netem 8018: dev eth0 root refcnt 2 limit 1000 delay 5.0ms 4.0ms corrupt 1%