|
accessible by lift #
This post was last edited by the wooden bird on 2010-7-27 10:22
OpenWrt QoS is based on HSFC. Features such as classification marking, flow control, and possibly shaping The actual use of the effect is very good. Like a priority-based fair queue.
OpenWrt provides four queue levels by default Class Packets bytes Priority 17172 1666639 (1.6 MiB) Express 2784325 270790491 (258.2 MiB) Normal 3993830 3667146683 (3.4 GiB) Bulk 7539946 6768585796 (6.3 GiB) Highest priority, manrk=01 Express Second, mark=02 Normal, mark=03. Bulk can support delay transmission or discard more data, mark=04
L7 recognition rate is low, mainly by ipp2p and the default priority method to control the download traffic. You can try to add more priority by editing the/etc/config/qos file. This first implements a filter based on l7+ipp2p. In addition, it is used in conjunction with port priority and IP-priority.
To achieve the effect, users can freely bt or thunder download, when the bandwidth is not used, peer-to traffic can occupy a full bandwidth, when the user uses HTTP and other high-priority services, peer-to traffic is automatically reduced speed. This QoS does not provide speed control for individual users.
Call for mice one to two, requires the use of the Forum version of OpenWrt.
--------------------------------------------------------------------------------------------------------------- ----------------------------------------------------- Installing components
- OPKG Update
- opkg Install iptables-mod-ipp2p kmod-ipt-ipp2p kmod-ipt-ipopt iptables-mod-ipopt Luci-app-qos
Copy CodeDownload L7-PROTOCOLS_2009-05-28-1_BRCM63XX.IPK Package After decompression, extract all of the PAT files inside the/etc/l7-protocols directory
My QoS configuration file Provide reference for everyone
- Config ' interface ' WAN '
- Option ' Classgroup ' ' Default '
- Option ' enabled ' 1 '
- Option ' overhead ' 1 '
- option ' Download ' 2048 '
- Option ' upload ' 1000 '
- Config ' classify '
- Option ' target ' priority '
- Option ' Ports ' 22,23,53,3389,5060,5900,8000 '
- Config ' classify '
- Option ' target ' priority '
- Option ' Layer7 ' Dazhihui '
- Config ' classify '
- Option ' target ' priority '
- Option ' Layer7 ' h323 '
- Config ' classify '
- Option ' target ' priority '
- Option ' Layer7 ' Msnmessenger '
- Config ' classify '
- Option ' target ' priority '
- Option ' Layer7 ' pcanywhere '
- Config ' classify '
- Option ' target ' priority '
- Option ' Layer7 ' QQ '
- Config ' classify '
- Option ' target ' priority '
- Option ' Layer7 ' radmin '
- Config ' classify '
- Option ' target ' priority '
- Option ' Layer7 ' RDP '
- Config ' classify '
- Option ' target ' priority '
- Option ' Layer7 ' rlogin '
- Config ' classify '
- Option ' target ' priority '
- Option ' layer7 ' SIP '
- Config ' classify '
- Option ' target ' priority '
- Option ' Layer7 ' SkypeOut '
- Config ' classify '
- Option ' target ' priority '
- Option ' Layer7 ' Skypetoskype '
- Config ' classify '
- Option ' target ' priority '
- Option ' Layer7 ' Tonghuashun '
- Config ' classify '
- Option ' target ' priority '
- Option ' Layer7 ' VNC
- Config ' classify '
- Option ' target ' ' Express '
- Option ' Layer7 ' HTML '
- Config ' classify '
- Option ' target ' ' Express '
- Option ' Layer7 ' jpeg
- Config ' classify '
- Option ' target ' ' Express '
- Option ' Layer7 ' png
- Config ' classify '
- Option ' target ' ' Express '
- Option ' layer7 ' gif '
- Config ' classify '
- Option ' target ' ' Express '
- option ' Layer7 ' flash
- Config ' classify '
- Option ' target ' ' Express '
- Option ' Ports ' 500,1194,1701,1720,1723,4500,5000 '
- Config ' classify '
- Option ' target ' ' Express '
- Option ' Layer7 ' Msn-filetransfer '
- Config ' classify '
- Option ' target ' ' Express '
- Option ' layer7 ' socks '
- Config ' classify '
- Option ' target ' ' Express '
- Option ' Layer7 ' SSL '
- Config ' classify '
- Option ' target ' ' Express '
- Option ' Layer7 ' Ciscovpn '
- Config ' classify '
- Option ' Target ' Normal '
- Option ' Srchost ' 192.168.0.100 '
- Config ' classify '
- Option ' Target ' Normal '
- Option ' Proto ' TCP '
- Option ' Ports ' 20,21,25,80,110,443,993,995 '
- Config ' classify '
- Option ' Target ' Normal '
- Option ' Layer7 ' RTP
- Config ' classify '
- Option ' Target ' Normal '
- Option ' Layer7 ' RTSP '
- Config ' reclassify '
- Option ' target ' ' Express '
- Option ' proto ' UDP '
- Option ' pktsize '-500 '
- Config ' default '
- Option ' target ' priority '
- Option ' Proto ' ICMP '
- Config ' reclassify '
- Option ' target ' priority '
- Option ' Proto ' TCP '
- Option ' Mark '! Bulk '
- Option ' tcpflags ' SYN '
- Option ' pktsize '-128 '
- Config ' classgroup ' ' Default '
- Option ' Classes ' priority Express Normal Bulk Drop '
- Option ' Default ' ' Bulk '
- Config ' class ' priority '
- Option ' packetsize ' 400 '
- Option ' maxsize ' 400 '
- Option ' avgrate ' 10 '
- Option ' priority ' ' 20 '
- Config ' class ' ' Priority_down '
- Option ' packetsize ' 1000 '
- Option ' avgrate ' 10 '
- Config ' class ' Express '
- Option ' packetsize ' 1000 '
- Option ' maxsize ' 800 '
- Option ' avgrate ' 50 '
- Option ' priority ' ' 10 '
- Config ' class ' Normal '
- Option ' packetsize ' 1500 '
- Option ' packetdelay ' 100 '
- Option ' avgrate ' 10 '
- Option ' priority ' ' 5 '
- Config ' class ' ' Normal_down '
- Option ' avgrate ' 20 '
- Config ' class ' ' Bulk '
- Option ' avgrate ' 5 '
- Option ' packetdelay ' 100 '
- Config ' class ' Drop '
- Option ' avgrate ' 1 '
- Option ' Packetdelay ' 200 '
- Config ' classify '
- Option ' Layer7 ' Xunlei '
- Option ' Target ' Drop '
- Config ' classify '
- Option ' Layer7 ' BitTorrent '
- Option ' Target ' Drop '
- Config ' classify '
- Option ' Layer7 ' edonkey '
- Option ' Target ' Drop '
- Config ' classify '
- Option ' Layer7 ' Directconnect '
- Option ' Target ' Drop '
- Config ' classify '
- Option ' ipp2p ' all '
- Option ' Target ' Bulk '
|
|