Peer-to-Peer (P2P) Throttling

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 18:59, 24 September 2012 (edit)
JNavas (Talk | contribs)
m (minor edit)
← Previous diff
Revision as of 19:12, 24 September 2012 (edit) (undo)
JNavas (Talk | contribs)
(delete image and revise content)
Next diff →
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 effects on standard protocols.+[[Image:P2P Bulk.png|thumb|right|P2P Bulk]][[Image:P2PTCP.PNG|thumb|left|P2PTCP]]Most standard network protocols use [http://en.wikipedia.org/wiki/Port_%28computer_networking%29 computer networking ports] below 1024, whereas peer-to-peer protocols normally use computer networking ports above 1023, so giving lower priority to Internet traffic above computer networking port 1023 will tend to throttle peer-to-peer traffic without significant adverse effects on other Internet traffic.
-Define (Add) these two QoS services for the port range 1024-65535 and then Apply Settings:+From Add/Edit Service on QoS, define (Add) these two QoS service types for the computer networking port range 1024 to 65535 (as in the screen shot on the left), and then Apply Settings:
* '''P2PTCP''': TCP * '''P2PTCP''': TCP
* '''P2PUDP''': UDP * '''P2PUDP''': UDP
-Then Add these two services to QoS with Priority set to Bulk, and again Apply Settings.+Then Add these two services to QoS with Priority set to Bulk (as in the screen shot on the right), and again Apply Settings.
== Administration == == Administration ==
'''TO BE PROVIDED''' '''TO BE PROVIDED'''

Revision as of 19:12, 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.)

Access Restrictions
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.)


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)

UPnP
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)

P2P Bulk
P2P Bulk
P2PTCP
P2PTCP
Most standard network protocols use computer networking ports below 1024, whereas peer-to-peer protocols normally use computer networking ports above 1023, so giving lower priority to Internet traffic above computer networking port 1023 will tend to throttle peer-to-peer traffic without significant adverse effects on other Internet traffic.

From Add/Edit Service on QoS, define (Add) these two QoS service types for the computer networking port range 1024 to 65535 (as in the screen shot on the left), and then Apply Settings:

  • P2PTCP: TCP
  • P2PUDP: UDP

Then Add these two services to QoS with Priority set to Bulk (as in the screen shot on the right), and again Apply Settings.


Administration

TO BE PROVIDED