这句应该翻译成"符合/匹配给出的包号码"比较确切吧~还有counter应该翻译成"计数器"
个人认为~要正确理解首先应该尽量正确翻译~
我大致翻译一下是这样的:
符合/匹配给出的包号码.这个数值明显的前提必须是0和Every之间的.如果这个选项被用在给定的计数器,那么这里必须至少Every+1条和这个选项一致的规则,涵盖0到Every中的所有数值.
明天去问下英语老师~~
[ 本帖最后由 louyc 于 2007-5-10 22:00 编辑 ] ;P 。。。。
终于找到个例子。。。献身了。。。高手把它翻译一下吧。。
example:
nth=Every,Counter,Packet
nth=2,3,0.
2,3,1
2,3,2
divide all packets into groups of three (2+1). The packets will be numbered from 0 to 2. So, a sequence of packets the rule matches looks like:
(0 1 2)(0 1 2)(0 1 2)(0 1 2)(0 1 2)...
the first rule will match the first packet in each group ("Packet"=0). The second rule will match the second packet in each group ("Packet"=1) and so on. Each successful match increments the counter. When a value of "Every" is reached, the counter is reset to 0. For this to work, the "Counter" should be the same for all rules (you can pick any value from 0 to 15, IIRC).
看完这个大家应该明白许多。。。
divide all packets into groups of three (2+1). The packets will be numbered from 0 to 2. So, a sequence of packets the rule matches looks like:
(0 1 2)(0 1 2)(0 1 2)(0 1 2)(0 1 2)...
the first rule will match the first packet in each group ("packet"=0). The second rule will match the second packet in each group ("packet"=1) and so on. Each successful match increments the counter. When a value of "Every" is reached, the counter is reset to 0. For this to work, the "Counter" should be the same for all rules (you can pick any value from 0 to 15, IIRC).
大致翻译一下先:
把所有的包放到组中划分为三个部分(2+1).包将被标号成为0到2.那么包的序列匹配像这样的规则:
(0 1 2)(0 1 2)(0 1 2)(0 1 2)(0 1 2)...
第一条规则将匹配每个组的第一个包("packet"=0).第二条规则将匹配每个组的第二个包("packet"=1)...以此类推.每次成功的匹配增加计数.当数值达到"Every"的时候,这个计数被重置为0.为了让其正常工作,"Counter"的值应该在所有规则中都相同(你可以挑选在0到15之间的任何值,IIRC?).
第一句翻译没把握
[ 本帖最后由 louyc 于 2007-5-10 22:24 编辑 ] Counter = any value from 0 to 15
意指可以是任意數0-15, 至於提出的只是範例!! 经过这样的讨论~这个功能基本上有点数了~接下来要找时间试验一下了~ 期待你的验证结果,,,
小弟发表一下个人的见解!
个人觉得,NTH有点像HD的RAID,我们常用到的只是RAID 0,其它还有很多其它的算法! 5条AD线`不是```4,5,0
4,5,1
4,5,2
........
4,5,4 明白了! 原帖由 younger 于 2007-5-9 17:30 发表 http://bbs.routerclub.com/images/common/back.gif
Nth有3个参数Every,Counter,Packet
就从英文说明书上翻译不是很懂,个人理解为
Every频数,每几个数循环一次,这些数是从0开始计算的。
如:01010101的循环
Counter是一个计数器,ROS共有16个计数器(0-15)
Pa ...
学习! 谁能给个比较智能的脚本来处理因N个ADSL中有个别掉线后的nth负载处理方法. 即一条断线另几条能接换上.而且还能平分流量.我相信一条断了,如果没有处理的话,有部分包是没有正常连出的. 如果是20条线路,NTH的值是什么?可以设置吗?
页:
1
[2]