- 论坛徽章:
- 15
|
这个没研究过。先放些基础。 慢慢看。
DESCRIPTION
Tc is used to configure Traffic Control in the Linux kernel. Traffic
Control consists of the following:
SHAPING
When traffic is shaped, its rate of transmission is under con-
trol. Shaping may be more than lowering the available bandwidth
- it is also used to smooth out bursts in traffic for better
network behaviour. Shaping occurs on egress.
SCHEDULING
By scheduling the transmission of packets it is possible to
improve interactivity for traffic that needs it while still
guaranteeing bandwidth to bulk transfers. Reordering is also
called prioritizing, and happens only on egress.
POLICING
Where shaping deals with transmission of traffic, policing per-
tains to traffic arriving. Policing thus occurs on ingress.
DROPPING
Traffic exceeding a set bandwidth may also be dropped forthwith,
both on ingress and on egress.
Processing of traffic is controlled by three kinds of objects: qdiscs,
classes and filters.
QDISCS
qdisc is short for 'queueing discipline' and it is elementary to under-
standing traffic control. Whenever the kernel needs to send a packet to
an interface, it is enqueued to the qdisc configured for that inter-
face. Immediately afterwards, the kernel tries to get as many packets
as possible from the qdisc, for giving them to the network adaptor
driver.
A simple QDISC is the 'pfifo' one, which does no processing at all and
is a pure First In, First Out queue. It does however store traffic when
the network interface can't handle it momentarily. |
|