Tc throttling-bad boy

Source: Internet
Author: User
Authorization: 0htbtcclassadddeveth0parent1: 0classid1: Authorization: 1classid1: 10htbrate128kbitceil384kbittcclassadddevet

Tc qdisc del dev eth0 root
Tc qdiscDdDev eth0 root handle 1:0 htb
Tc class add dev eth0 parent 1:0 classIdHtb rate 384 kbit ceil 384 kbit
Tc class add dev eth0 parent classid htb rate 128 kbit ceil 384 kbit
Tc class add dev eth0 parent 1:0 classid htb rate 128 kbit ceil 256 kbit
Tc class add dev eth0 parent classid htb rate 64 kbit ceil 128 kbit
Tc filter add dev eth0 parent 1:0 protoColIp prio 1 u32 match ip sport 80 0 xffff flowid
Tc filter add dev eth0 parent 1:0 protocol ip u32 match ip dst 192.168.x.y flowid :20

In this way, the maximum access speed of 80 is 384 kb and the access speed is 128 kb. Limits the outbound uplink bandwidth.

For reference only.

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.