找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4429|回复: 5

英语好的大侠,帮个忙!

[复制链接]
发表于 2006-4-26 12:00:25 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
下面是PFsense 的Firewall: Shaper: Queues: Edit中的一部分文字,看得似懂非懂,能否帮我翻译一下,先谢了!

PFsense的资料太少了,啃起来实在费劲.
fy.JPG
routeros
 楼主| 发表于 2006-4-26 12:01:52 | 显示全部楼层
主要是2~5几个选项的意思.
routeros
回复

使用道具 举报

发表于 2006-4-27 11:14:00 | 显示全部楼层

回复 #2 舒心 的帖子

不知你有没有看这几项链到openbsd的链接内容,关于RED的,我把它摘过来,如果你把下文看懂了,就应该知道它们的功用了。

Random Early Detection

Random Early Detection (RED) is a congestion avoidance algorithm. Its job is to avoid network congestion by making sure that the queue doesn't become full. It does this by continually calculating the average length (size) of the queue and comparing it to two thresholds, a minimum threshold and a maximum threshold. If the average queue size is below the minimum threshold then no packets will be dropped. If the average is above the maximum threshold then all newly arriving packets will be dropped. If the average is between the threshold values then packets are dropped based on a probability calculated from the average queue size. In other words, as the average queue size approaches the maximum threshold, more and more packets are dropped. When dropping packets, RED randomly chooses which connections to drop packets from. Connections using larger amounts of bandwidth have a higher probability of having their packets dropped.
RED is useful because it avoids a situation known as global synchronization and it is able to accommodate bursts of traffic. Global synchronization refers to a loss of total throughput due to packets being dropped from several connections at the same time. For example, if congestion occurs at a router carrying traffic for 10 FTP connections and packets from all (or most) of these connections are dropped (as is the case with FIFO queueing), overall throughput will drop sharply. This isn't an ideal situation because it causes all of the FTP connections to reduce their throughput and also means that the network is no longer being used to its maximum potential. RED avoids this by randomly choosing which connections to drop packets from instead of choosing all of them. Connections using large amounts of bandwidth have a higher chance of their packets being dropped. In this way, high bandwidth connections will be throttled back, congestion will be avoided, and sharp losses of overall throughput will not occur. In addition, RED is able to handle bursts of traffic because it starts to drop packets before the queue becomes full. When a burst of traffic comes through there will be enough space in the queue to hold the new packets.

RED should only be used when the transport protocol is capable of responding to congestion indicators from the network. In most cases this means RED should be used to queue TCP traffic and not UDP or ICMP traffic.

For a more detailed look at the theory behind RED, please see References on RED.


今天有点时间,我把这些内容翻译成中文了,供你参考。


随机早期检测 (RANDOM EARLY DETECTION)

随机早期检测(以下简称RED)是一种拥塞减除算法(也包含一些功能协议)。它的功用是通过保证数据队列不致于排满来避免网络阻塞。它的实现方式是不断地计算队列的长度,并拿它与设定的两个阀值(一个最小值和一个最大值)进行比较。

如果队列平均长度小于最小阀值,那么就不动作,自然也没有数据包会丢失。
如果这个值超过了最大阀值,那么所有新抵达的数据包就会被丢弃。
而如果这个值处于这两者之间(关键在这里),那么RED就会按照由队列长度中得到的一些信息来决定丢弃什么包。

笼统地讲,当队列长度趋近于最大值时,就会有越来越多的包会被丢弃。RED会从这些连接中随机地抽取包来丢弃。占用较大带宽的连接被丢包的可能性要大。

RED特别对避免一种叫“全局同步降速”的情形很有用,同时也能增强容纳突发流量的能力。

“全局同步降速”是指在网络阴塞时,由于一般是所有连接都有丢包现象发生,进而会导致这些连接都中断,最后整体流量会迅速下降的情形。例如:一个路由器正承载10个FTP连接,当发生阻塞时,每个连接都会有丢包(按FIFO排队),这样10个连接都会中断,最后总流量急剧下降。

显然这不是我们所想要的情况,这种现象的发生会导致我们的带宽不能始终被充分利用。

RED解决这一问题的方法是:有选择地选取一些连接来丢包,而不是平均对待。占用较大带宽的连接会有较高的机会被选中丢包。这样高流量的连接就会被减速,也就避免了拥塞的发生,同时也不会出现“全局同步降速”问题。

另外,由于RED是在数据包队列未满的时候就开始丢包,这使得系统增强了应对突发流量的能力。当有突发流量进入时,队列始终是有空间来容纳新进的数据包。

RED只能用于有处理拥塞能力的传输协议,也即它适合被用于TCP而不适合UDP或ICMP协议。

=============
哦还有一段:

Explicit Congestion Notification

Explicit Congestion Notification (ECN) works in conjunction with RED to notify two hosts communicating over the network of any congestion along the communication path. It does this by enabling RED to set a flag in the packet header instead of dropping the packet. Assuming the sending host has support for ECN, it can then read this flag and throttle back its network traffic accordingly.
For more information on ECN, please refer to RFC 3168.

拥塞通知(ECN)

ECN与RED一起工作,它的功用是通知两台正在通过一个有拥塞的网络通信的主机有拥塞发生。RED在ECN作用下会采用在数据报头将相关位置位而不是丢包的办法来处理拥塞。这一方法的前提是正在发包的主机也要支持ECN,能读懂这个拥塞信息并相应主动减少流量。 关于ECN的祥情,请参阅RFC 3168。

[ 本帖最后由 bsdfan 于 2006-4-27 12:06 编辑 ]
routeros
回复

使用道具 举报

发表于 2006-4-27 11:54:11 | 显示全部楼层

回复 #3 bsdfan 的帖子

附带说一声,OpenBSD的资料是最翔实的,而且深入浅出,很适合一般用户,建议大家多从它的网站上参考。
routeros
回复

使用道具 举报

发表于 2006-4-28 16:12:32 | 显示全部楼层
汉化是辛苦的,感谢楼上。
routeros
回复

使用道具 举报

 楼主| 发表于 2006-4-30 10:16:30 | 显示全部楼层
非常感谢bsdfan,回得非常详细,呵呵,这个坛子里热心人可真多。
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-5-19 14:03 , Processed in 0.068115 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表