FortiOS Traffic Shaping and How it Work
2008-02-23 04:55:14来源:互联网 阅读 ()
Every FortiGate physical interface has its own queues, FortiOS uses three different ones: high, medium, and low priority. The priority value indicates which queue the packet is added to and in what order the packets exit that interface.
Virtual interfaces (for example, VLANs) share the physical interface queues. Virtual interfaces do not have their own queues. All virtual interfaces bound to a particular physical interface will share the same queues of the physical interface.
Inter-VDOM links have a single FIFO (First in, first out) queue (No QoS or traffic shaping).
When the packet is queued it chooses a queue and checks the queue length against the aggregate queue size for the interface, not the length of that particular queue.
There is a single maximum length on the device, but each queue can have up to that many packets.
So, if the queue length is X there can be 3X packets queued, X packets at each of the 3 priorities.
Thus the low priority traffic does not affect the high priority traffic except indirectly on low end units because memory is tight and the more packets that are allocated the more time it takes to find free memory.
How priority is assigned :
- All traffic received from a device defaults to the system default. The default is "high" (see
tos-based-priority
inconfig system global
).
- During input processing the priority is re-calculated based on the TOS (Type of Service) bits and the current TOS setting. The default maps all traffic to the high priority. This can be changed using
config system tos-based-priority
. You can check the default setting using a diagnose command :-# diag sys tos-based-priority list
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0Where 0 means high, 1 means medium and 2 means low. For example, if I change the global default :
# config system global
(global)# set tos-based-priority low
(global)# end
# diag sys tos-based-priority list
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2- If traffic shaping is enabled then the packet priority is set to whatever value is in the shaper configuration. However, if the packet does not push the bandwidth over the guaranteed bandwidth for that shaper then the priority is unconditionally set to high (0).
- During input processing the priority is re-calculated based on the TOS (Type of Service) bits and the current TOS setting. The default maps all traffic to the high priority. This can be changed using
So, even if you give VoIP traffic a high priority, unless you change the global default then all the FTP traffic will also be high and be on the same queue. As a result the high priority VoIP traffic can get interrupted by the FTP traffic.
You can change the global priority as described above to fix this problem. You can also adjust the TOS based priority if the traffic has different TOS bits assigned for different traffic types. FortiOS traffic shaping acts more like traffic limiting and the guaranteed bandwidth is a best effort.
By adjusting the priorities as described above, it should be possible to shape traffic to meet your requirements.
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash