Interface Egress Queues – When a physical interface tries to send more traffic than its bandwidth permits, packets are queued in one of a few different numbered queues
Interface Bandwidth Definition – You should manually define the bandwidth of an interface if it is lower than the line speed. For example, a 1gbit interface connected to a 200mbit fibre ethernet line needs to be defined as being 200mbit else it will assume 1gbit and QoS will not work
Forwarding Classes – These effectively assign a name to a numbered queue, for example assured-forwarding
Assignment of traffic to a forwarding class – This can be done in a number of ways:
Classifiers – These observe DSCP, Inet Precedence or other marker types to assign ingress traffic to forwarding classes
Firewall Rules – Ingress traffic can be matched with firewall rules and assigned to forwarding classes
Drop Profiles – A drop profile defines the probability of packets being dropped when a queue reaches a certain size
Schedulers – These define how differently queued egress traffic is prioritized
Scheduler Maps – These link forwarding classes to schedulers
設定規劃目標如下
一、DB封包的服務保證擁有15%專線總頻寬
二、DB封包的服務在專線總頻寬滿載時,會優先傳送
三、BFD封包的Hello Packet偵測封包保證擁有5%專線總頻寬
四、BFD封包的Hello Packet偵測封包在專線總頻寬滿載時,會優先傳送
五、專線總頻寬滿載時, BFD的封包優先級會比DB封包來的高
六、DB與BFD的實際使用流量,若未使用達到保證頻寬時,剩下來的流量可分配給其它一般流量做使用(Best-effort)
set interfaces ge-0/0/8 unit 190 bandwidth 40m
set interfaces ge-0/0/8 unit 190 vlan-id 190
set interfaces ge-0/0/8 unit 190 family inet filter output Traffic-To-Qos
set interfaces ge-0/0/8 unit 190 family inet address 172.16.0.1/30
set firewall filter Traffic-To-Qos term DB-Packet from protocol tcp
set firewall filter Traffic-To-Qos term DB-Packet from port 3260
set firewall filter Traffic-To-Qos term DB-Packet from port 6379
set firewall filter Traffic-To-Qos term DB-Packet from port 26379-26480
set firewall filter Traffic-To-Qos term DB-Packet from port 27017-27019
set firewall filter Traffic-To-Qos term DB-Packet from port 28000-28100
set firewall filter Traffic-To-Qos term DB-Packet then forwarding-class expedited-forwarding
set firewall filter Traffic-To-Qos term BFD-Packet from protocol udp
set firewall filter Traffic-To-Qos term BFD-Packet from port 3784-3785
set firewall filter Traffic-To-Qos term BFD-Packet from port 4784-4785
set firewall filter Traffic-To-Qos term BFD-Packet then forwarding-class network-control
set firewall filter Traffic-To-Qos term Other-Packet then accept
set class-of-service drop-profiles low_drop fill-level 95 drop-probability 0
set class-of-service drop-profiles low_drop fill-level 100 drop-probability 100
set class-of-service drop-profiles med_drop fill-level 75 drop-probability 0
set class-of-service drop-profiles med_drop fill-level 95 drop-probability 30
set class-of-service drop-profiles high_drop fill-level 50 drop-probability 0
set class-of-service drop-profiles high_drop fill-level 95 drop-probability 50
set class-of-service interfaces ge-0/0/8 unit 190 scheduler-map Test-Map-Qos
set class-of-service interfaces ge-0/0/8 unit 190 shaping-rate 40m
set class-of-service scheduler-maps Test-Map-Qos forwarding-class expedited-forwarding scheduler ef
set class-of-service scheduler-maps Test-Map-Qos forwarding-class assured-forwarding scheduler af
set class-of-service scheduler-maps Test-Map-Qos forwarding-class best-effort scheduler be
set class-of-service scheduler-maps Test-Map-Qos forwarding-class network-control scheduler nc
set class-of-service schedulers ef transmit-rate percent 15
set class-of-service schedulers ef buffer-size percent 15
set class-of-service schedulers ef priority medium-high
set class-of-service schedulers ef drop-profile-map loss-priority high protocol any drop-profile high_drop
set class-of-service schedulers ef drop-profile-map loss-priority medium-high protocol any drop-profile med_drop
set class-of-service schedulers ef drop-profile-map loss-priority medium-low protocol any drop-profile med_drop
set class-of-service schedulers ef drop-profile-map loss-priority low protocol any drop-profile low_drop
set class-of-service schedulers nc transmit-rate percent 5
set class-of-service schedulers nc buffer-size percent 5
set class-of-service schedulers nc priority high
set class-of-service schedulers nc drop-profile-map loss-priority high protocol any drop-profile high_drop
set class-of-service schedulers nc drop-profile-map loss-priority medium-high protocol any drop-profile med_drop
set class-of-service schedulers nc drop-profile-map loss-priority medium-low protocol any drop-profile med_drop
set class-of-service schedulers nc drop-profile-map loss-priority low protocol any drop-profile low_drop
set class-of-service schedulers be transmit-rate remainder
set class-of-service schedulers be buffer-size remainder
set class-of-service schedulers be priority low
set class-of-service schedulers be drop-profile-map loss-priority high protocol any drop-profile high_drop
set class-of-service schedulers be drop-profile-map loss-priority medium-high protocol any drop-profile med_drop
set class-of-service schedulers be drop-profile-map loss-priority medium-low protocol any drop-profile med_drop
set class-of-service schedulers be drop-profile-map loss-priority low protocol any drop-profile low_drop
set class-of-service schedulers af transmit-rate percent 50
set class-of-service schedulers af buffer-size percent 50
set class-of-service schedulers af priority medium-low
set class-of-service schedulers af drop-profile-map loss-priority high protocol any drop-profile high_drop
set class-of-service schedulers af drop-profile-map loss-priority medium-high protocol any drop-profile med_drop
set class-of-service schedulers af drop-profile-map loss-priority medium-low protocol any drop-profile med_drop
set class-of-service schedulers af drop-profile-map loss-priority low protocol any drop-profile low_drop
沒有留言:
張貼留言