Peer-to-Peer (P2P) Throttling
From DD-WRT Wiki
Revision as of 18:52, 24 September 2012 (edit) JNavas (Talk | contribs) (→Quality of Service (QoS) - add images and introduction) ← Previous diff |
Revision as of 18:58, 24 September 2012 (edit) (undo) JNavas (Talk | contribs) (add content) Next diff → |
||
Line 6: | Line 6: | ||
When configuring a router for shared access to the Internet, users of peer-to-peer file sharing applications like [http://en.wikipedia.org/wiki/BitTorrent BitTorrent] and [http://en.wikipedia.org/wiki/EMule eMule] can seriously degrade performance for other users, particularly on asymmetric connections like cable and DSL. (This is because [http://www.rfc-editor.org/rfc/rfc3449.txt saturation of the slower uplink can greatly slow the normally much faster downlink].) To ensure fairer allocation of network capacity for all users, it may be desirable to throttle (degrade) peer-to-peer file sharing. (It's difficult if not impossible to block it completely.) | When configuring a router for shared access to the Internet, users of peer-to-peer file sharing applications like [http://en.wikipedia.org/wiki/BitTorrent BitTorrent] and [http://en.wikipedia.org/wiki/EMule eMule] can seriously degrade performance for other users, particularly on asymmetric connections like cable and DSL. (This is because [http://www.rfc-editor.org/rfc/rfc3449.txt saturation of the slower uplink can greatly slow the normally much faster downlink].) To ensure fairer allocation of network capacity for all users, it may be desirable to throttle (degrade) peer-to-peer file sharing. (It's difficult if not impossible to block it completely.) | ||
- | [[Image:Access Restrictions.png|thumb|right|Access Restrictions]]Enter the following settings in the DD-WRT Web GUI, click Apply Settings, and | + | [[Image:Access Restrictions.png|thumb|right|Access Restrictions]]Enter the following settings in the DD-WRT Web GUI, click Apply Settings, and Reboot Router after all settings have been made. (It's a good idea to set a strong password to prevent unauthorized access to the DD-WRT Web Gui, and to save the configuration settings once desired results have been achieved.) |
Line 18: | Line 18: | ||
== Quality of Service (QoS) == | == Quality of Service (QoS) == | ||
- | [[Image:P2P Bulk.png|thumb|right|P2P Bulk]][[Image:P2PTCP.PNG|thumb|left|P2PTCP]][[Image:P2PUDP.PNG|thumb|left|P2PUDP]]Most standard network protocols use ports below 1024, whereas peer-to-peer protocols normally use ports above 1023, so giving lower priority to traffic above port 1023 will tend to throttle peer-to-peer traffic without adverse affect on standard protocols. | + | [[Image:P2P Bulk.png|thumb|right|P2P Bulk]][[Image:P2PTCP.PNG|thumb|left|P2PTCP]][[Image:P2PUDP.PNG|thumb|left|P2PUDP]]Most standard network protocols use ports below 1024, whereas peer-to-peer protocols normally use ports above 1023, so giving lower priority to traffic above port 1023 will tend to throttle peer-to-peer traffic without adverse affect on standard protocols. Define (Add) these two QoS services for the port range 1024-65535 and then Apply Settings: |
+ | * '''P2PTCP''': TCP | ||
+ | * '''P2PUDP''': UDP | ||
+ | Then Add these two services to QoS with Priority set to Bulk, and again Apply Settings. | ||
+ | |||
== Administration == | == Administration == | ||
'''TO BE PROVIDED''' | '''TO BE PROVIDED''' |
Revision as of 18:58, 24 September 2012
THIS ARTICLE IS A WORK-IN-PROGRESS. CHECK BACK FOR MORE COMPLETE INFORMATION.
How to throttle peer-to-peer file sharing in DD-WRT so as to provide fairer allocation of network capacity for all users of a shared Internet connection. Tested with Build 14929.
Contents |
Introduction
When configuring a router for shared access to the Internet, users of peer-to-peer file sharing applications like BitTorrent and eMule can seriously degrade performance for other users, particularly on asymmetric connections like cable and DSL. (This is because saturation of the slower uplink can greatly slow the normally much faster downlink.) To ensure fairer allocation of network capacity for all users, it may be desirable to throttle (degrade) peer-to-peer file sharing. (It's difficult if not impossible to block it completely.)
Enter the following settings in the DD-WRT Web GUI, click Apply Settings, and Reboot Router after all settings have been made. (It's a good idea to set a strong password to prevent unauthorized access to the DD-WRT Web Gui, and to save the configuration settings once desired results have been achieved.)
Access Restrictions
On the Access Restrictions page of the Web GUI, check the box for "Catch All P2P Protocols". While this can be defeated fairly easily by determined users (e.g., with protocol obfuscation/encryption, VPN tunneling, etc.), it's still worth doing.
Universal Plug and Play (UPnP)
Universal Plug and Play is used by peer-to-peer file sharing applications to map incoming ports in order to permit incoming file sharing connections, and it has no value for most other typical Internet uses, so disabling it thus degrades the performance of peer-to-peer file sharing without adverse affects to most other users. In addition, it can be a security risk, so it's a good idea to disable it for that reason as well.
Quality of Service (QoS)
Most standard network protocols use ports below 1024, whereas peer-to-peer protocols normally use ports above 1023, so giving lower priority to traffic above port 1023 will tend to throttle peer-to-peer traffic without adverse affect on standard protocols. Define (Add) these two QoS services for the port range 1024-65535 and then Apply Settings:- P2PTCP: TCP
- P2PUDP: UDP
Then Add these two services to QoS with Priority set to Bulk, and again Apply Settings.
Administration
TO BE PROVIDED