岁月联盟 - 技术社区 - BBS.SYUE.COM's Archiver

猪猪 发表于 2007-1-28 16:13

谁能讲讲Linux内核中shaper的有关概念

问:在include/linux/if_shaper.h中定义了诸如:
struct shaper {
....
}
等与shaper有关的东西;
在下不知这个shaper东西在内核中到底是干什么的??


答:Shaper是一个限制网络速率的虚拟网络设备:


Traffic Shaper (EXPERIMENTAL)
CONFIG_SHAPER
The traffic shaper is a virtual network device that allows you to
limit the rate of outgoing data flow over some other network
device. See Documentation/networking/shaper.txt for more
information. To set up and configure shaper devices, you need the
shapecfg program, available via FTP (user: anonymous) from
[url]ftp://shadow.cabi.net/pub/Linux[/url] in the shaper package.

This driver is also available as a module ( = code which can be
inserted in and removed from the running kernel whenever you want).
The module will be called shaper.o. If you want to compile it as a
module, say M here and read Documentation/modules.txt. If unsure,
say N.

页: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.