Red Flag asianux Server 3 System Management: Flow control

Source: Internet
Author: User
Keywords Asianux Flow control
Tags access address bandwidth based basic class control ip

Red Flag asianux Server 3 system has a mature bandwidth supply system, known as traffic control (flow controls), referred to as TC. Flow control supports sorting, sorting, sharing, and restricting access to traffic in a variety of ways.

7.5.1 Introduction

In the Linux operating system, the flow controller (TC) is mainly in the output port to establish a queue for traffic control, the way to control is based on routing, that is, based on the destination IP address or network number of destination subnet traffic control. The basic functional modules of TC are queues, classes, and filters. The queues supported in the Linux kernel are: Class Based queue,token Bucket Flow,csz,first in-one out,priority,teql,sfq,atm,red. The queues and classes we discuss here are based on CBQ (class Based queue), and the filters are based on routing (Route). For better use of TC, the following instructions for the commonly used units in TC.

bandwidth or velocity unit:
Kbps: Kbytes/sec
Mbps: Megabytes/sec
kbit:kbits/seconds
mbit:mbits/seconds
BPS or a no unit number: Bytes/sec

Number of data units:

KB or K: kilobytes
MB or M: Megabytes
Mbit: Mega bit
Kbit: thousand bit
b or a no unit number: bytes

Unit of measurement of time:

S, sec or secs: sec
MS, msec or msecs: minutes
US, USEC, usecs, or a no unit number: microseconds

7.5.2 Configuration

The configuration and use of the flow controller TC is mainly divided into the following areas: building queues, creating classes, creating filters and routing, and monitoring existing queues, classes, filters, and routes.

The basic steps to use are:

1, for network physical devices (such as Ethernet card eth0) binding a CBQ queue, 2, set up the class on the queue, 3, for each class to establish a routing based filter, 4, and finally with the filter to establish a specific routing table.

Here is an example of a simple environment, as shown in the following figure:

Fig. 1-1 Flow control diagram

The IP address of the Ethernet card (eth0) on the flow controller is 192.9.200.66, and a CBQ queue is established on it. Suppose the average packet size is 1000 bytes, packet interval send unit size is 8 bytes, the number of packets that can receive conflicts is 20 bytes. If there are three types of traffic that need to be controlled:

The IP address of the host 1 is 192.9.200.11. Its flow bandwidth control in 8Mbit, priority is 2;

The IP address of the host 2 is 192.9.200.21. Its flow bandwidth control in 1Mbit, priority is 1;

To Subnet 1, its subnet number is 192.9.200.0/24 and the subnet mask is 255.255.255.0. Traffic bandwidth control in 1Mbit, priority is 6.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.