Changes between Version 6 and Version 7 of GENIEducation/SampleAssignments/TcpAssignment/ExerciseLayout/Execute


Ignore:
Timestamp:
05/10/13 11:48:09 (12 years ago)
Author:
shuang@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIEducation/SampleAssignments/TcpAssignment/ExerciseLayout/Execute

    v6 v7  
    4646{{{
    4747[shufeng@center ~]$ sudo /sbin/tc qdisc
    48 qdisc mq 0: dev eth0 root
    49 qdisc htb 150: dev eth1 root refcnt 9 r2q 10 default 1 direct_packets_stat 0
    50 qdisc netem 140: dev eth1 parent 150:1 limit 1000
    51 qdisc htb 170: dev eth2 root refcnt 9 r2q 10 default 1 direct_packets_stat 0
    52 qdisc netem 160: dev eth2 parent 170:1 limit 1000
    53 qdisc htb 130: dev eth3 root refcnt 9 r2q 10 default 1 direct_packets_stat 0
    54 qdisc netem 120: dev eth3 parent 130:1 limit 1000
    55 }}}
    56 Now if the ethernet card you want to change is eth3, you can find the "parent qdisc id" you want to use is "120:1" by looking at the following line:
    57 {{{
    58 qdisc netem 120: dev eth3 parent 130:1 limit 1000
     48qdisc htb 270: dev mv6.47 root refcnt 2 r2q 10 default 1 direct_packets_stat 0
     49qdisc netem 260: dev mv6.47 parent 270:1 limit 1000
     50qdisc htb 150: dev mv6.41 root refcnt 2 r2q 10 default 1 direct_packets_stat 0
     51qdisc netem 140: dev mv6.41 parent 150:1 limit 1000
     52qdisc htb 190: dev mv6.43 root refcnt 2 r2q 10 default 1 direct_packets_stat 0
     53qdisc netem 180: dev mv6.43 parent 190:1 limit 1000
     54qdisc htb 230: dev mv6.45 root refcnt 2 r2q 10 default 1 direct_packets_stat 0
     55qdisc netem 220: dev mv6.45 parent 230:1 limit 1000
     56}}}
     57Now if the ethernet card you want to change is mv6.43, you can find from following line:
     58{{{
     59qdisc htb 190: dev mv6.43 root refcnt 2 r2q 10 default 1 direct_packets_stat 0
     60qdisc netem 180: dev mv6.43 parent 190:1 limit 1000
    5961}}}
    6062As a result, you change the delay/loss by executing the following:
    6163{{{
    62 sudo /sbin/tc qdisc add dev eth3 parent 120:1 netem delay 100ms loss 5%
    63 sudo /sbin/tc qdisc change dev eth3 parent 120:1 netem delay 100ms loss 5%
    64 sudo /sbin/tc qdisc del dev eth3 parent 120:1 netem delay 100ms loss 5%
     64sudo /sbin/tc -s qdisc change dev mv6.43 parent 190:1 handle 180: netem limit 1000 delay 100ms loss 5%
     65sudo /sbin/tc -s qdisc change dev mv6.43 parent 190:1 handle 180: netem limit 1000
    6566}}}
    6667