not have good control over the receiving queue, So we generally only use the sending queue, that is, "sending control is not controlled ". It encapsulates the other two main TC components (class and classifier ). If the kernel needs to send packets through a network interface, it needs to add the packets to the queue according to the qdisc (queuing rule) configured for this interface. Then, the kernel extracts data packets from qdisc as much as possi
Summary
TC is a tool for setting Linux kernel traffic control.
Name
TC-display/maintain traffic control settings
Summary
TC qdisc [add | change | replace | link] Dev [Parent qdisc-ID |
Root] [Handle qdisc-id] qdisc [qdisc specific parameters]
TC class [add | change | replace] Dev parent qdisc-ID [classid cla
Recent work more or less with Linux flow control a bit of a relationship, since a few years ago know have TC such a thing and some understand its principle, I did not move it, because I do not like TC command line, is too cumbersome, iptables command line is also more cumbersome, But the TC command line is more intuitive than the
Recent work more or less with Linux flow control a bit of a relationship, since a few years ago know have TC such a thing and some understand its principle, I did not move it, because I do not like TC command line, is too cumbersome, iptables command line is also more cumbersome, But the TC command line is more intuitive than the
Recent work is somewhat related to the Linux flow control. Since I knew about TC a few years ago and more or less understood its principle, I did not move it, because I do not like the TC command line, it is too cumbersome. iptables command line is also more cumbersome, but more intuitive than the TC command line, and the TC
[Blog recommendations] Analysis of the principles of the Linux TC (Traffic Control) Framework
This blog post is from the Bkjia blog dog250 blogger. If you have any questions, go to the blog homepage for an interactive discussion!Blog: http://dog250.blog.51cto.com/2466061/1568267
Recently, my work is more or less related to Linux throttling. Since I learned about TC a few years ago and
tool TC for flow control, and gives several representative examples.first, related concepts packet packets are received from the input network card (ingress), routed through the lookup to determine whether it is sent to the local, or need to be forwarded. If it is sent to the local, it is directly up to the upper layer of the Protocol, such as TCP, if it is forwarded, it will be sent from the output network card (egress). The control of network traff
Original from: http://blog.chinaunix.net/u/9284/showart.php?id=220696
use TC for flow control (Qos)
(2006-12-13) Kang Daoyu
Objective:
I see the network on the Linux system flow control article a lot of not practical, even if the reference can not quickly write traffic control rules, and there are many errors. I have also written an article, is a lot of web sites cited, thanks to my support, I put an example to write out for everyone to reference
As we all know, at the beginning of the birth of the Internet are all universities and research institutions communicate with each other, and there is no Linux traffic control considerations and design, the principle of IP protocol is as good as possible for all data flow services, different data flow is equal. However, years of practice have shown that this principle is not ideal, and some data streams should be given special care, for example, the interactive data stream of Telnet should have
According to many documents of TC, I have also compiled a configuration record. In actual use, the effect is good. I would like to share it with you for your reference.Environment: the local area network is not large enough to support more than 40 machines. Nat Internet sharing (Intranet: eth0 Internet: eth2)CBQ uses the idle time of hardware to calculate the queue. The hardware is different and the effect is different. It is better to use htb for a l
[It168]As we all know, at the beginning of the Internet, colleges and research institutions communicate with each other, and there is no consideration or design for network traffic control. The principle of IP protocol is to serve all data streams as well as possible, different data streams are equal. However, many years of practice show that this principle is not the most ideal, and some data streams should be taken special care of. For example, interactive data streams with remote logon shou
Adapter mode Adapter): Converts an interface of a class to another interface that the customer wants. The A d a p t e r mode makes those classes that cannot work together due to interface incompatibility work together.
Applicable scenarios:
1. Existing class interfaces do not meet our needs;
2. Create a reusable class so that the class can work collaboratively with other unrelated classes or unforeseen clas
TC is the abbreviation of Linux traffic control, the principle is that when the protocol stack out of the packet, through the Qdisc (Queue discipline) and filter mechanism to the different rules of the definition of the exile to the different class Qdisc (for classful Qdisc is so, for classless Qdisc only one root qdisc). There are a lot of data on TC on the Internet, this article does not discuss the use o
A: Overview:The flow controller (TC) in a Linux system is mainly to establish a queue at the output port for flow control.TC is a tool that can classify a packet according to its characteristics, and can provide different bandwidths for various types of data, thus controlling their transmission speed. TC is part of the IPROUTE2, integrated in the 2.2 and above versions of the kernel, and can also work with
You need to control the traffic of the gateway, control the IP address and network segment, and use iptables to implement the traffic. You may also have the server for the Intranet and Internet, and the rules are easy to understand.
The following is a shell script, not in iptables mode:
#! /Bin/bash
# Set the following values to somewhat less than your actual download
# And uplink speed. In kilobits. Also set the device that is to be shaped.
# INGOING traffic (gateway)
IN = eth0
# What ip do you
Tc introduction under linux-Linux Enterprise Application-Linux server application information. The following is a detailed description. Linux supports QOS from kernel 2.1.105. However, you need to recompile the kernel. When running 'make config', set EXPERIMENTAL _ OPTIONS to 'y' and set Class Based Queueing (CBQ), Token Bucket Flow, and Traffic Shapers to 'y ', run 'make dep; make clean; make bzilo' to generate a new kernel.
In Linux, the traffic con
Many small and medium-sized enterprises server access bandwidth is often only 10Mbps usually servers also run other services, such as the DNS service, when the site is large and many people download at the same time, the bandwidth is easily exhausted, resulting in server delay increase or drop packets. How do I limit the speed of 80 ports and ensure that other services work?You can use the TC command to adjust restrictions on the ports and servers spe
Recently have a colleague with BT and electric donkey crazy download, we hit CS on the internet has been greatly affected, so the NAT Internet to do a flow control, will be a bit of experience to introduce to netizens, I hope to help the CS fans.
Our Internet environment is as follows:
eth0 External Network Ip:a.b.c.d
Eth1 intranet IP1:192.168.0.0/24 to Boss and BT
Eth2 intranet ip2:192.168.1.0/24 to me and Csfans
Use Linux to do the NAT command as follows:
Echo 1 >; /proc/sys/net/ipv4/ip_forwar
The following figure shows the class adapter and Object Adapter. The adapter mode is used to solve the problem of using incompatible interfaces. The following shows that the two adapters have three classes: Target, adaptee, and adapter.The client wants to use target. Request ()The existing classes use adaptee. specificrequest ()Request () and specificrequest () m
Linux supports QoS from kernel 2.1.105. However, you need to recompile the kernel. When running 'make config ',
Set experimental _ options to 'y', and set class based Queueing (CBQ), Token
Bucket flow, set traffic shapers to 'y', and run 'make Dep; make clean; make
Bzilo 'to generate a new kernel.
In Linux, the traffic controller (TC) is mainly used to set up a queue at the output port for traffic control.
Route, that is, traffic control based on the
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.