yjyjyjcel 发表于 2007-6-13 11:45:19

有关限速问题

大家好,我是ROS新手,老纯了,关于ROS限速我想请教一下,如果网吧是10M的带宽,有100台机器,那么在ROS里面

应该把限速设成多少呢?怎么算出来这个限速多少的值?(这个例子是瞎编的,只求算法)

谢谢大哥们~~~~~~~~~~~~~~~~`

xzping 发表于 2007-6-14 03:36:28

# may/07/2007 02:39:03 by RouterOS 2.9.27
# software id = IB6V-21N
#
/ system script
add name="1300kbps" source=":for aaa from 0 to 200 do={/queue simple add \
    name=\(pc . \$aaa\) dst-address=\(192.168.0. . \$aaa\) burst-time=5/5 \
    burst-threshold=800000/800000 max-limit=1300000/1300000 \
    burst-limit=1500000/1500000}
\n" \
    policy=ftp,reboot,read,write,policy,test,winbox,password
add name="290k" source=":for aaa from 0 to 200 do={/queue simple add name=\(pc \
    . \$aaa\) dst-address=\(192.168.0. . \$aaa\) burst-time=15/15 \
    burst-threshold=200000/180000 max-limit=290000/240000 \
    burst-limit=310000/260000}
\n" \
    policy=ftp,reboot,read,write,policy,test,winbox,password
add name="350k" source=":for aaa from 0 to 200 do={/queue simple add name=\(pc \
    . \$aaa\) dst-address=\(192.168.0. . \$aaa\) burst-time=15/15 \
    burst-threshold=240000/200000 max-limit=350000/250000 \
    burst-limit=380000/280000}" \
    policy=ftp,reboot,read,write,policy,test,winbox,password
add name="400k" source=":for aaa from 0 to 200 do={/queue simple add name=\(pc \
    . \$aaa\) dst-address=\(192.168.0. . \$aaa\) burst-time=15/15 \
    burst-threshold=300000/210000 max-limit=400000/256000 \
    burst-limit=520000/260000}" \
    policy=ftp,reboot,read,write,policy,test,winbox,password
add name="800k" source=":for aaa from 0 to 200 do={/queue simple add name=\(pc \
    . \$aaa\) dst-address=\(192.168.0. . \$aaa\) burst-time=15/15 \
    burst-threshold=400000/300000 max-limit=800000/330000 \
    burst-limit=810000/440000}" \
    policy=ftp,reboot,read,write,policy,test,winbox,password
add name="260k" source=":for aaa from 0 to 200 do={/queue simple add name=\(pc \
    . \$aaa\) dst-address=\(192.168.0. . \$aaa\) burst-time=15/15 \
    burst-threshold=200000/180000 max-limit=260000/230000 \
    burst-limit=310000/240000}
\n" \
    policy=ftp,reboot,read,write,policy,test,winbox,password
页: [1]
查看完整版本: 有关限速问题