Traffic Management
Feature Overview
Traffic Management (located at Control Panel > Network > Traffic Management) provides flexible bandwidth control functions, allowing users to limit the outgoing bandwidth of specific ports and prevent certain applications or services from occupying excessive network resources.
Core Concept Explanation
Bandwidth Parameter Definitions
- Guaranteed Bandwidth: The outgoing traffic that the service is guaranteed to obtain when the system bandwidth is sufficient.
- Maximum Bandwidth: The maximum outgoing traffic that the service can use when the system bandwidth is sufficient and there is remaining bandwidth available.
Configuration Principles
- System Outgoing Bandwidth = Sum of guaranteed bandwidth of all services + Remaining system bandwidth
- Guaranteed Bandwidth of each service ≤ Maximum Bandwidth of each service
Note
It is recommended to ensure that the total guaranteed bandwidth of all services does not exceed the system's outgoing bandwidth; otherwise, the configuration may not work properly.
Create a Traffic Management Rule
- Basic Steps
- Go to [Control Panel] > [Network Settings] > [Traffic Management];
- Click the [Add] button to open the rule configuration window.
- Port Configuration Options
- All: Apply traffic restrictions to all ports.
- Select from built-in service list: Choose ports used by common services (e.g., SMB, WebDAV) from the list.
- Custom: Manually enter specific ports or port ranges for precise control.
- Description for Custom Port Selection
- Port Type: Specify the direction source of the port to which the rule applies. (Source Port / Destination Port)
- Protocol Type: Specify the network protocol type applicable to the rule. (All Protocols / TCP / UDP)
- Port Number: Specify specific ports or port ranges.
- Single Port: (e.g., 8080)
- Multiple Ports: (e.g., 80, 443, 5000)
- Port Range: (e.g., 10000-10100)
- Select the Physical Network Card Interface for Traffic Restriction
- ALL: All network interfaces.
- LAN1, LAN2: Specify a specific interface.
- Set Bandwidth Restrictions (Outgoing Only)
- Minimum Bandwidth: Set the minimum outgoing speed (traffic) for traffic matching the rule. Ensures that traffic matching the rule occupies at least the specified bandwidth to prevent speeds below this value.
- Maximum Bandwidth: Limit the maximum outgoing speed (traffic) for traffic matching the rule. Restricts traffic matching the rule from exceeding the specified bandwidth to prevent excessive resource occupation.
After confirming all settings are correct, click [OK] to complete the creation of the traffic control rule.
Usage Tips
- Outgoing Traffic refers to the data traffic sent from the NAS to other devices;
- All created rules can be viewed, edited, or deleted on the Traffic Management page;
- When multiple rules exist, the higher the order of the rules (i.e., the earlier they appear), the higher their priority—the system will match rules in sequence.
Difference Between Destination Port and Source Port
When setting "Custom Port" in traffic control rules, it is necessary to clearly distinguish between "Source Port" and "Destination Port". Their differences are as follows:
Destination Port (Most Commonly Used)
- Definition: Refers to the port number that the NAS listens on to provide services. It is the target that external devices connect to when accessing a specific service on the NAS, and is used to limit the bandwidth traffic of services provided by the NAS to the outside;
- Scenarios: For example, when an external client accesses a website service in a container via HTTP, the destination port accessed may be 8080; when using the SMB (File Sharing) service, the destination port accessed is 445; when using WebDAV, the destination ports are usually 5005 or 5006. Setting the destination port can limit the outgoing speed of these ports.
Source Port
- Definition: Refers to the port number used by the device initiating the connection, which is generally randomly generated by the client system;
- Scenarios: For example, when an external computer accesses a service on the NAS via a web browser, its source port may be 52345 (a random port);
- Source ports change frequently and are generally not suitable as a basis for restrictions in rules, unless you clearly know that the client uses a professional program with a fixed port.
How to Choose Which to Use?
- When you need to limit the traffic of a specific service (e.g., container HTTP, FTP, SMB), select the Destination Port.
- Source Port is generally not recommended for use unless you have a thorough understanding of the client communication structure.