Reset Search
 

 

Article

How To Rate limit Specific Protocols on S-Series

« Go Back

Information

 
TitleHow To Rate limit Specific Protocols on S-Series
Objective
The following config rate limits HTTP traffic to prevent it from saturating the uplink and preventing other protocols from functioning due to lack of bandwidth.

The CoS configuration sets both inbound and outbound rate limiters to 2mb.

The policy Role is applied to all ports and elevates all traffic to 802.1p 3. The rules which
classify tcp/udp ports 80 & 443 set a priority of 802.1p  so they have a lower priority than all
other traffic and also rate limit per the CoS applied to 2mb.
The policy is applied to all ports.
Environment
S-Series
Procedure
# policy
set policy profile 1 name CoS_Priority_Role cos-status enable cos 6
set policy rule admin-profile ipdestsocket 10.10.10.0 mask 24 admin-pid 1
# cos port-resource
set cos port-resource irl 0.1 0 unit mbps rate 2
set cos port-resource orl 0.1 0 unit mbps rate 2
!
# cos reference
set cos reference txq 0.1 13 queue 13
set cos reference txq 0.1 14 queue 14
set cos reference irl 0.1 2 rate-limit 0
set cos reference orl 0.1 0 rate-limit 0
!
# cos settings
set cos settings 0 irl-reference 0
set cos settings 1 txq-reference 1 irl-reference 1
set cos settings 2 txq-reference 2 irl-reference 2 orl-reference 0
set cos settings 3 txq-reference 3 irl-reference 3
set cos settings 4 txq-reference 4 irl-reference 4
set cos settings 5 txq-reference 5 irl-reference 5
set cos settings 6 txq-reference 6 irl-reference 6
set cos settings 7 txq-reference 7 irl-reference 7
!
# cos state
set cos state enable
!
# cos syslog
!
end
# policy
set policy profile 1 name DefaultPortRole pvid-status enable pvid 4095 cos-status enable cos 3
set policy rule 1 udpsourceportIP 80 mask 16 cos 2
set policy rule 1 udpsourceportIP 443 mask 16 cos 2
set policy rule 1 udpdestportIP 80 mask 16 cos 2
set policy rule 1 udpdestportIP 443 mask 16 cos 2
set policy rule 1 tcpsourceportIP 80 mask 16 cos 2
set policy rule 1 tcpsourceportIP 443 mask 16 cos 2
set policy rule 1 tcpdestportIP 80 mask 16 cos 2
set policy rule 1 tcpdestportIP 443 mask 16 cos 2
set policy rule admin-profile port ge.1.1 mask 16 port-string ge.1.1 admin-pid 1 (

!
end
Additional notes

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255