[LARTC] Using Token Bucket Filter to simulate a low bandwidth radio link

hclfm@pricol.co.in hclfm@pricol.co.in
Thu, 1 Jul 2004 16:44:45 +0530


<P><BR></P><P><FONT FACE=3D"Monospace,Courier">!!Hello,<BR></FONT><BR><FONT=
 FACE=3D"Monospace,Courier">!!I am attempting to use the LARTC traffic cont=
rol to simulate a radio link that<BR>!!has variable bandwidth and availabil=
ity. The basic bandwidth could be as low<BR>!!as 500 bits/sec but will gene=
rally be about 4000 bits/sec. If the simulated<BR>!!radio link is unavailab=
le (zero bandwidth) then packets should be queued<BR>!!until a link is re-e=
stablished.<BR></FONT><BR><FONT FACE=3D"Monospace,Courier">!!i.e. Initial b=
andwidth is 5000bits/sec<BR>!!then to 0 bits/sec<BR>!!and back to 5000bits/=
sec<BR></FONT><BR><FONT FACE=3D"Monospace,Courier">!!However, I am having s=
everal different problems<BR></FONT><BR><FONT FACE=3D"Monospace,Courier">!!=
Problem 1:<BR>!!Setting a very low bandwidth tbf - if the rate is less than=
 my ethernet MTU<BR>!!size then packets appear to just get thrown away<BR><=
/FONT></P><P>Hi ,</P><P>the module for simulating delay is sch=5Fdelay .</P=
><P>tc qdisc add dev eth0 root delay latency 300ms rate 100mbit</P><P>regar=
ds,</P><P>U.SivaKumar,</P><P>HCL Infosystems Limited.</P><P>&nbsp;</P><P>&n=
bsp;</P><P>&nbsp;</P><P></P>=