| Back to logs list 
 
 136808 2010 年 06 月 23 日 16:32 Reading (loading. ..) Comments (0) Category: Personal Diary 
 
First, let us look 
 QoS necessary knowledge: 
 network protocol: TCP / UDP, TCP protocol requires a complete after a three-way handshake to complete,
各种女宝宝的发型 - Qzone日志, which is the current mainstream applications, such as looking web pages, the QQ, with the Thunder ... ... All these agreements will be used. 
 TCP (Transmission Control Protocol, Transmission Control Protocol) is connection-based protocol 
 TCP simple demonstration is as follows: 
 PC1 to PC2 connection request ---> PC2 response to the request (consultation delivery time )---> PC1 sends data after receiving consent 
 UDP (User Data Protocol, User Datagram Protocol) 
 correspond with the TCP protocol. It is the protocol for non-connected, it does not establish a connection with each other, but directly put the packet in the past,
XXXXX绿坝-花季护航 - Qzone日志! We often use the \Because the UDP protocol is not connected to the process and send the base point days, so it's communication efficiency; but also because of this, its high reliability as TCP protocol. QQ on the use of UDP message, so sometimes the situation can not receive messages. 
 IPP2P agreement: analysis of the specific characteristics of each package, filter P2P signatures. But efficiency is not high, so set the QoS in the following tutorial, I used multiple methods and accurate control of BT. 
 Layer7 agreement, based on the regular type of content. Determine the top-level analysis by which program to control the data sent, this is the advantage of linux. The disadvantage is to analyze more data packets,
new new balance shoes, and low efficiency, impact performance, while there may be other programs manslaughter. 
 protocol briefly here, to talk about the main block QoS objectives: 
 1, based on MAC 
 2, based on the port 
 3, based on IP 
 4, based on protocol 
 setup process (Figure 1): 
 
 QoS basic settings 
 open QoS enabled bandwidth management 
 given priority flag ACK SYN FIN RST 
 
 here I do not choose the whole, P2P software will generate a large number of ACK packets, if enabled will interfere with other programs. 
 
 ICMP to give priority to not vote for network testing, faster response, no help. Worried that some programs continue to send ICMP data interference network. 
 
 Strict Rule Ordering strict accordance with the rules is the order of QoS implementation in the 1.18 version that has not, and if so, on the other version first. 
 
 settings change automatically updated classification system enabled real time in order to see the changes effect. 
 
 default priority (level): select the lowest level the default QoS level, this refers to all the agreements have not been defined priority. This should be set inside the set with the classification determined, the default is low, I changed to the lowest level. 
 
 upload rate / data reference operator in fact limited to your package,
new balance shoes, in my case 1M down, 512k upload 
 
 maximum rate of 320 kbit / s 
 
Do not mess 
 to fill in,
盗窟版至理名言(笑破你肚皮) - Qzone日记, it directly determines whether qos to work properly. QoS fill too large, then the network will send more than you can afford more data, so that network congestion, QoS has lost a role. 
 General ADSL 512kbit upload the theoretical value is actually used in the loss of about 10%, taking it to 70% to 90%. 
 If you do not know to use the Thunder and the BT high-speed downloads, and then look at the \
 
downstream rate limiting 
 1200 kbit / s the opposite, the speed of downlink always sooner the better, 1M 100M within the network for the downlink, it is really trivial, but also friends proposed to be located a great value, but for I am here to better control set 1200kbit / s 
 
 
 the most advanced 100% 
 High 90% 
 Intermediate 80% 
 lower 70% 
 lowest 60% 
 A Grade 50% 
 B Grade 40% 
 C-level 30% 
 D-level 20% 
 E-class 10% 
 
 this setting is to allow the application of high priority as soon as possible downstream, does not limit the use of low-level procedures for network speed. 
 
 save the settings, enter the category set 
 
 TCP / UDP 
 Dst Port: 53 
 Transferred: 0 - 2KB most advanced DNS 
 DNS is very important, be sure to set the highest,
new balance 574, and on top. Not the case when a large number of downloads, DNS packets may be sent does not go out because of network congestion, resulting in page can not access. 
 
 
 TCP / UDP 
 Src Port: 5800 Advanced VPN 
 I occasionally use the VPN,
new balance mens, to ensure a smooth set to High 
 
 TCP 
 Src Port: 2782,2752 Advanced Tdxw 
 This is the stock software port is set to Advanced. 
 
 TCP 
 Dst Port: 80,443 
 Transferred: 0 - 512KB Intermediate WWW 
When the WWW application 
 intermediate response time less than 512KB, 512KB reduced to lower than see below 
 
 TCP / UDP 
 L7: qq 
 Transferred: 0 - 512KB low-QQ 
 L7 protocol based on low-level response when QQ less than 512KB. 
 
 UDP 
 Src Port: 6000-6020,8000 low-QQ 
This is the QQ 
 common source port,
new balance sneakers, when L7 is not accurate in the low-level run again to ensure QQ 
 
 TCP 
 Dst Port: 80,443 
 Transferred: 512KB + low-level WWW (512K +) 
 camouflage port 80 to download now very large, when the traffic is reduced to 512K above the low-level 
 
 TCP / UDP 
 Dst Port: 53 
 Transferred: 2KB + lowest DNS (2K +) 
 DNS packets in general is not, so put into the lowest level of more than 2KB 
 
 TCP / UDP 
 Port: 21 lowest level FTP 
 FTP application to put the lowest level 
 
 TCP / UDP 
 L7: xunlei A class xunlei 
L7 Protocol Analysis xunlei 
 set based on A-response. 
 
 UDP 
 Src Port: 3500,4863,4867,4881,4883,15000,26411 A class xunlei 
This is xunlei 
 common source port, when the L7 inaccurate reassurance xunlei run on low-level 
 remember the election here and QQ are the source port 
 TCP 
 Src Port: 8000,36897 A-level xunlei 
 now have control of the control TCP UDP ports, if just select TCP / UDP, then many programs will be friendly fire. 
 
 TCP / UDP 
 L7: bittorrent C-level BT 
 L7 protocol analysis based on BT is set to C-level response. 
 
 TCP / UDP 
 Src Port: 25000,6881-6889 C-level BT 
 protocol analysis based on the port is set to C-level response to BT. 
 
 TCP / UDP 
 Dst Port: 36898-65535 B Grade Bulk Traffic 
 
 
Bulk Traffic 
 a lot of friends that this plan is set, your other settings are invalid. In fact, the implementation of L7 protocol is preferred, and the end of the original rule is 1024-65535, common control. So here I was transferred to 36898-65535, set to B grade. 
 After the completion of the above,
new balance running shoes, the Internet and download the BT to things correct. We can be adjusted as needed. Reprinted Wireless Forum