Article title: Linux Traffic control application example. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
At present, the internal LAN of many enterprises has been established, and many have also established the internal MIS system and email server on the basis of the LAN, the system even carries out services with large data traffic, such as on-demand video streaming. How to use it has become a topic of interest. let's take a look at the specific application instances of Linux traffic control.
Linux Traffic control application instance
Assume that an enterprise is currently facing a complex network environment. In this environment, both a 802.11 mb Lan and a microwave or wireless link network are included, as shown in figure 3. In such an environment, to ensure the traffic of business data and achieve Linux traffic control, you need to control the transmission and service of each Lan.
Enterprise Network topology
The system uses the Linux 2.2.14 kernel to support QoS. First, you need to re-compile the kernel. Run make config and perform the following settings:
EXPERIMENTAL _ OPTIONS = y
Class Based Queueing (CBQ) = y
QoS and/or fair queueing = y
CBQ packet scheduler = y
Rate estimator = y
Packet classifier API = y
Compile and generate a new kernel:
# Make dep
# Make clean
# Make bzImage
In Linux, the traffic controller (TC) establishes a queue at the output port for traffic control. The Linux Traffic control method is based on the destination IP address, destination subnet network number, and port number, or the network number and port number of the source subnet based on the source IP address.
The basic functional modules of Linux Traffic Controller TC are queue, classification, and filter. The queues supported In the Linux kernel include Class Based Queue, Token Bucket Flow, CSZ, First In First Out, Priority, TEQL, SFQ, ATM, and RED. The Queue and classification discussed here are Based on CBQ (Class Based Queue), while the filters are Based on U32 and FW.