network emulation
hi,
I am really a newbie in linux traffic control.But i have task to implement a tool similar to the nistnet tool used for netwok emulation tests but which emulates a wireless environment. I was exploring the use of the traffic control subsystem for this task.In this regard i have a few questions i need to post in order to clarify my thoughts on how to do this.I am using tcng to classify traffic and generate the commands necessary to set up the traffic control structures.
1. A simple task to add say a delay of 10ms to packets goin to a particular destination.I tried this using a simple fifo queue and a tbf queue but was not able to obtain the required results.The queue parameters dont have an explicit delay/latency parameter so basically i want to know how to add a delay/latency to packets goin out thro a particular interface. A simple script that i tried
dev INTERFACE{
egress{
class(<$latency>) if ip_dst == 10.0.0.14;
class(<$other>) if 1;
prio{
$latency=class {
//how to set these parameters here to achieve the required delay
tbf(limit 10kB, rate 20kbps, burst 2 kB, mtu 1500B);
}
$other=class {
fifo(limit 10kB); }
}
}
}
2.The second part is similar to the first but involves dropping a percentage of packets instead of adding a delay to them.Example i need a 10% packet drop for packets coming from source 1 and heading to dest 2. Example i use a simple fifo queue with a limit of 2 kB in order to just test random drop capability.When i use the ping utility with a packet size greater than 2kB i get the message that 0 packets sent and 0 packets received and when the packet sizes are < 2048 bytes then there is no drop or delay at all.Ne ideas on this one.
3.To implement bandwidth sharing among different hosts.Example 4 hosts are communicating to each other and all traffic between them is routed through a router which is like the bottleneck and acts as the wireless network environment with the bottleneck capacity as the
known wireless link capacity.I was thinking and am currently trying this using the HTB
queuing discipline.I wanted to know if this idea can be effectively implemented using the
HTB queuing discipline.
Also im having some problems with installation and working of tcng on my Suse 9.2 system
which is running with a 2.6.8 kernel version.Ok the simulator could not be compiled. But
when i tried using the commands generated by the tcng compiler i get the error that dsmark
queuing discipline is not supported.However when i use the root keyword using the tc tool there seems to be no problem.I read that root and dsmark are the same ...or am i wrong about this. Also my kernel has all the parameters enabled for QoS support.I tried compiling iproute2 from source but im not able to since im getting errors while compiling.Can neone throw some light on this.Or is it that there are some compatibility problems with the newer 2.6 kernels. Im sorry for the long content of the mail.But im a newbie and want to get my thoughts rite
on this and whether its possible.Thanx a million in advance.
regards
vinay
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
I am really a newbie in linux traffic control.But i have task to implement a tool similar to
the nistnet tool used for netwok emulation tests but which emulates a wireless environment.
Interesting project. I'd suspect that 90% of the effort will be in determining
models for wireless path characteristics ;)
1. A simple task to add say a delay of 10ms to packets goin to a particular destination.I
http://developer.osdl.org/shemminger/netem/
2.The second part is similar to the first but involves dropping a percentage of packets
instead of adding a delay to them.Example i need a 10% packet drop for packets coming from
netem will do this too.
3.To implement bandwidth sharing among different hosts.Example 4 hosts are communicating to each other and all traffic between them is routed through a router which is like the bottleneck and acts as the wireless network environment with the bottleneck capacity as the
known wireless link capacity.I was thinking and am currently trying this using the HTB
queuing discipline.I wanted to know if this idea can be effectively implemented using the
HTB queuing discipline.
Probably. You might try using imq devices with HTB to get the traffic
to go through the shaper the way you want. Real wireless networks have
quite complex characteristics though, which I suspect will require custom code.
Quoted 8 lines · On Sat, 22 Jan 2005 05:46:19 -0800 (PST) vinay mathew…
hi,
I am really a newbie in linux traffic control.But i have task to implement a tool similar to the nistnet tool used for netwok emulation tests but which emulates a wireless environment. I was exploring the use of the traffic control subsystem for this task.In this regard i have a few questions i need to post in order to clarify my thoughts on how to do this.I am using tcng to classify traffic and generate the commands necessary to set up the traffic control structures.
Quoted 5 lines
1. A simple task to add say a delay of 10ms to packets goin to a particular destination.I tried this using a simple fifo queue and a tbf queue but was not able to obtain the required results.The queue parameters dont have an explicit delay/latency parameter so basically i want to know how to add a delay/latency to packets goin out thro a particular interface. A simple script that i tried
Use netem (http://developer.osdl.org/shemminger/netem)
it is already in 2.6.8
Quoted 7 lines
2.The second part is similar to the first but involves dropping a percentage of packets instead of adding a delay to them.Example i need a 10% packet drop for packets coming from source 1 and heading to dest 2. Example i use a simple fifo queue with a limit of 2 kB in order to just test random drop capability.When i use the ping utility with a packet size greater than 2kB i get the message that 0 packets sent and 0 packets received and when the packet sizes are < 2048 bytes then there is no drop or delay at all.Ne ideas on this one.
ditto
Quoted 6 lines
3.To implement bandwidth sharing among different hosts.Example 4 hosts are communicating to each other and all traffic between them is routed through a router which is like the bottleneck and acts as the wireless network environment with the bottleneck capacity as the
known wireless link capacity.I was thinking and am currently trying this using the HTB
queuing discipline.I wanted to know if this idea can be effectively implemented using the
HTB queuing discipline.
Quoted 8 lines
Also im having some problems with installation and working of tcng on my Suse 9.2 system
which is running with a 2.6.8 kernel version.Ok the simulator could not be compiled. But
when i tried using the commands generated by the tcng compiler i get the error that dsmark
queuing discipline is not supported.However when i use the root keyword using the tc tool there seems to be no problem.I read that root and dsmark are the same ...or am i wrong about this. Also my kernel has all the parameters enabled for QoS support.I tried compiling iproute2 from source but im not able to since im getting errors while compiling.Can neone throw some light on this.Or is it that there are some compatibility problems with the newer 2.6 kernels. Im sorry for the long content of the mail.But im a newbie and want to get my thoughts rite
on this and whether its possible.Thanx a million in advance.
regards
vinay
Tcng depends on tclsim as part of the build process but it doesn't seem to build on 2.6.
Quoted 4 lines
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Signature · 4 lines
Stephen Hemminger <[email protected]> _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/