Professional Documents
Culture Documents
ViberSAT QoS
ViberSAT QoS
ADVANCED
QUALITY OF SERVICE (QoS)
OPTION
L.1 Overview
Advanced Quality of Service (QoS) enables a network to use WAN bandwidth more efficiently by
managing delay, jitter (delay variation), throughput, and packet loss. It is based on OSI model to
Layer 7 protocol header parameters.
Advanced QoS requires that you install the optional IP Packet Processor, and that you purchase
and activate the Advanced QoS FAST Option. Contact Comtech EF Data Product Support for
further information.
QoS scheduling operates on modem Tx bandwidth with 1-byte resolution, so there is no further
trimming or clipping data rate after the QoS scheduler.
QoS is implemented with at least one 1-second burst at maximum data rate.
QoS systems use a strict priority QoS scheduling algorithm. Excluding the default queue, the
QoS system has up to 32 QoS queues with eight configurable priorities rules. The QoS system
creates a separate queue for each rule to store the incoming stream of packets. (In this appendix,
‘QoS rules’ and ‘QoS queues’ are interchangeable).
QoS systems incorporates WRED (Weighted Random Early Detection) based congestion
avoidance algorithm in addition to tail drop.
The CDM-570A/L-IP incorporates four Per Hop Behavior (PHP) QoS modes of operation:
L–1
CDM-570A/570AL Satellite Modem with Optional Packet Processor MN-CDM570A
Appendix L Revision 4
Priority – The IP Packet Processor classifies each packet that is to be forwarded over the
satellite; the packet is then assigned a Priority Number (Priority level from 1 to 8) according to the
defined QoS Rules:
• The lower the Priority Number, the higher that priority is (i.e., Priority 1 = highest priority;
Priority 9 = lowest priority).
• Any latency critical traffic such as VoIP/RTP should always be assigned Priority 1.
• Priority 1 packets are forwarded immediately; Priority 2 packets are forwarded as soon as
there are no Priority 1 packets in the Queue; and so on through Priority 8.
• Any packet that does not meet a QoS Rule is assigned to the Default Rule with
Priority = 9.
Maximum Bandwidth – This can also be assigned to a flow to restrict the Maximum Bandwidth
that any particular flow will utilize; otherwise, the default of no bandwidth restriction can be
selected.
Filtering – QoS allows specific flows to be designated as “filtered” – this instructs the IP Packet
Processor to discard traffic that is otherwise not wanted for forwarding over a satellite link.
When you enable the FILTER option for a rule, QoS provides the ability to filter the packet
completely.
QoS Rule Hierarchy – It is quite possible to have traffic that meets the definitions of several QoS
Rules. All traffic will be classified into the first QoS Rule that is a match, or fall into the Default
Rule. The most specific QoS Rule will always be first. For example, a QoS Rule that identified a
Source and Destination IP Address would be assigned ahead of a rule that just defined RTP
protocol.
L–2
CDM-570A/570AL Satellite Modem with Optional Packet Processor MN-CDM570A
Appendix L Revision 4
QoS Rules having the same amount of defined variables are sorted as follows:
The IP Packet Processor will sort each QoS rule as they are added and the QoS Configuration
display will be updated to reflect the order with which rules are matched.
QoS Statistics – Every defined QoS Rule can be monitored to see the traffic flow for each
queue. These statistics display the traffic sent in each queue, the amount of dropped traffic, and
the number of Active Flows.
Protocol and Port Number Considerations – When defining QoS Rules, it is important to be
aware of specifics of the traffic for which the rule is intended. When selecting a protocol for a QoS
Rule, be aware that the IP Packet Processor allows for a very broad selection (such as IP) or a
very specific protocol. For example, RTP traffic can consist of UDP portion (for voice or video)
and a TCP portion (for RTP signaling). These could have separate QoS Rules created or all be
included in a single Rule by selecting RTP as the protocol.
L–3
CDM-570A/570AL Satellite Modem with Optional Packet Processor MN-CDM570A
Appendix L Revision 4
VOCE SNMP
UDP
VDEO
IP RTP
RTPS FTP HTTP
TCP
TELN SMTP SAP
Non IP
Selection of Source/Destination Ports should be done only if you are aware of the port usage of
the desired protocol or application. There are well known ports for various protocols, but often
only the ‘command’ messaging is transacted on these ports and the ‘data’ is transferred through a
negotiated port.
Once the QoS Rules are defined, each type of traffic flow should be isolated
and sent to verify that it is being sent in the intended QoS Rule.
WRED – When WRED is enabled for a specific queue, QoS randomly drops packets after
reaching 50% of the QoS queue.
L–4
CDM-570A/570AL Satellite Modem with Optional Packet Processor MN-CDM570A
Appendix L Revision 4
Stream Protocol Src IP Dest IP Src Port Dest Port Steam Data Rate
1 UDP ***/* ***/* *** *** 1024
2 TCP ***/* ***/* *** *** 1024
3 HTTP ***/* ***/* *** *** 1024
4 IP ***/* ***/* *** *** 64
QUESTION: What are the total output data rates and the individual stream data rates?
L–5
CDM-570A/570AL Satellite Modem with Optional Packet Processor MN-CDM570A
Appendix L Revision 4
Minimum Bandwidth – Minimum specification that allows a committed information rate (CIR) to
be applied to user-defined classes of traffic; otherwise, the default of no minimum bandwidth can
be selected.
Maximum Bandwidth – This can be assigned to a flow to restrict the Maximum Bandwidth that
any particular flow will utilize; otherwise, the default of no bandwidth restriction can be selected.
WRED – The Min/Max QoS mode allows selection of Weighted Random Early Detection
(WRED).
When WRED is enabled for a specific queue, QoS randomly drops packets after reaching 50% of
the QoS queue.
Filtering – Any specific flow can be designated as filtered (see Max/Pri QoS Mode).
When the FILTER option is enabled for a rule, QoS provides the ability to filter the packet
completely.
QoS Rule Hierarchy – The QoS Rule Hierarchy is the same as Maximum Bandwidth/Priority
QoS.
Src IP/ Dest IP/ Min Max Min Dst Max Dst Min Max
Index Protocol Filter WRED
mask mask Src Port Src Port Port Port BW BW
1 UDP ***/* ***/* 0 65535 0 65535 2500 4000 N N
Stream Protocol Src IP Dest IP Src Port Dest Port Steam Data Rate
1 UDP ***/* ***/* *** *** 10000 Kbps
2 TCP ***/* ***/* *** *** 5000 Kbps
3 HTTP ***/* ***/* *** *** 7000 Kbps
4 def ***/* ****/* *** *** 10000 Kbps
L–6
CDM-570A/570AL Satellite Modem with Optional Packet Processor MN-CDM570A
Appendix L Revision 4
QUESTION: What are the total output data rates and the individual stream data rates?
ANSWER:
• In Min-Max QoS mode, other than the default rule, which is configured as Priority 9, all
QoS rules are configured as Priority 8.
• In this mode, the minimum bandwidth for all rules – the excluding the default rule – will be
served first in round robin fashion. In this example, the total minimum BW for Rules 1 and
2 is 5000 Kbps. Since the total bandwidth is 20 Mbps, it has enough bandwidth to serve.
• After serving the minimum bandwidth, the leftover bandwidth is 15 Mbps (20,000 Kbps–
5000 Kbps).
• Leftover bandwidth will be served among all rules in round robin fashion until it hits
maximum bandwidth limitations.
• Each rule’s bandwidth is 15/3 = 5000 Kbps.
• Since Rule 1 maximum clipping was set to 4000 Kbps, and minimum bandwidth has
already taken 2500 bytes, it will use 1500 Kbps more before reaching the maximum
clipping. The leftover 3500 Kbps (5000-1500=3500) is again given to the main pool.
• Rule 2 does not have enough traffic coming in, so it will use only 2500 kbps (5000-2500);
the remaining bandwidth (5000-2500=2500) is again given to the main pool.
• Rule 3’s input stream is 7000 bytes; it will take its share of the 5000 allocation. Still, it
needs 7000-5000=2000).
• After serving the fair share, the total leftover bandwidth is 6000 kbps (3500+2500=6000).
• Since Rule 3 needs the bandwidth, the leftover bandwidth is applied to that rule.
• After serving Rule 3, the leftover bandwidth 4000 Kbps will be applied to the default
queue.
• The default rule will see the data rate of4000 Kbps.
QoS Rule QoS Priority Input Data Rate QoS Output Data Rate
1 1 1000 Kbps 4000 Kbps
2 2 5000 Kbps 5000 Kbps
3 3 7000 Kbps 7000 Kbps
4 9 10000 Kbps 4000 Kbps
Total NA 3136 Kbps 20000 Kbps
L–7
CDM-570A/570AL Satellite Modem with Optional Packet Processor MN-CDM570A
Appendix L Revision 4
Class Selector DiffServ Code Points (DSCP) – Some implementations of DiffServ will prioritize
traffic by Class Selector assignment. This is defined in the DiffServ Code Points (DSCP) within
the IP header. The first three bits of the DSCP define the Class Selector Precedence (or Priority):
IP Packet IP Packet
Class Selector DSCP Processor Class Selector DSCP Processor
Priority Priority
Precedence 1 001 000 7 Precedence 5 101 000 3
Precedence 2 010 000 6 Precedence 6 110 000 2
Precedence 3 011 000 5 Precedence 7 111 000 1
Precedence 4 100 000 4 Default 000 000 9
The IP Packet Processor will prioritize the traffic based upon the DSCP Class Selector
Precedence.
All traffic that does not have the DSCP Class Selector Precedence defined
(000 000) will be placed in the Default Queue and have a Precedence of 9.
Expedited Forwarding (EF) DSCP – This defines premium service and is recommended for real
time traffic applications such as VoIP and video conferencing.
Assured Forwarding (AF) DSCP – This defines four service levels and also uses the last three
bits of the DSCP to define the Drop Precedence (Low, Medium, or High). The Drop Precedence
determines which packets will most likely be dropped during periods of over congestion, similar to
Weighted Random Early Detection (WRED). As a result, each of the four AF service levels also
have three Drop Precedence levels for which the IP Packet Processor provides 12 separate
queues.
Minimum Bandwidth (AF only) – Minimum specification that allows a committed information
rate (CIR) to be applied to user-defined classes of traffic, or the default of no minimum bandwidth
can be selected.
Maximum Bandwidth (AF only) – This can be assigned to a flow to restrict the maximum
bandwidth that any particular flow will utilize, or the default of no bandwidth restriction can be
selected.
L–8
CDM-570A/570AL Satellite Modem with Optional Packet Processor MN-CDM570A
Appendix L Revision 4
1. Minimum and maximum bandwidth is only configurable for each of the four
Assured Forwarding classes.
WRED – The QoS system supports WRED-based congestion avoidance. WRED can be enable
or disabled on any queue. When WRED is disabled, upon overdriving the queue the packets will
be tail dropped.
Service
Stream Priority PHB / DSCP Code Drop Precedence Data Rate
Rate
Management 1 CS7 / b111000 NA NA 200 Kbps
Networking
2 CS6 / b110000 NA NA 800 Kbps
Control
Voice 3 EXFD / b101110 NA NA 1Mbps
Video 3 CS5 / b101000 NA NA 4 Mbps
Data-1 4 CS4 / b100000 NA NA 550 Kbps
Data-2 5 CS3 / b011000 NA NA 1450 Kbps
Data-3 7 ASFD4 / b100010 100 low 1 Mbps
Data-4 7 ASFD3 / b011010 400 low 1 Mbps
Data-5 7 ASFD2 / b010010 500 low 1 Mbps
Data-6 7 ASFD1 / b001010 800 low 1 Mbps
Data-7 8 BE / bXXXXXX NA NA 2 Mbps
L–9
CDM-570A/570AL Satellite Modem with Optional Packet Processor MN-CDM570A
Appendix L Revision 4
QUESTION: What is the total output data rate and what are the individual port output data rates?
ANSWER:
• The QoS system first drains Priority 1 traffic. Since the management data stream is only
200 Kbps, after serving Priority 1 traffic, QoS still has 9.8 Mbps (10.0-0.2=9.8).
• QoS next drains Priority 2’s 800 Kbps traffic. After the end of the Priority 2 traffic, QoS
still has 9 Mbps traffic available (9.8-0.8=9).
• Similarly, QoS walks through all priorities until it hits the ASFD classes:
o The beginning of ASFD Classes QoS leftover bandwidth is 2 Mbps.
o All ASFD classes have the same Priority of 7, with different service rates.
o ASFD service rate is a Committed Information Rate (CIR), except serviced if
bandwidth available after serving all high priority queues. In this case, 2 Mbps
bandwidth is available, serving all service rates first. The total of all ASFD service
rates are 1.6 Mbps, which is less than the 2 Mbps leftover bandwidth.
o After serving the service rates, the leftover bandwidth is 400 Kbps. This 400 Kbps will
be distributed to all ASFD classes equally in round robin fashion until either there is
no more bandwidth, or the input streams have no data.
Drop
Stream Priority PHB / DSCP Code Service Rate Data Rate
Precedence
Management 1 CS7 / b111000 200 Kbps 9.8 Mbps 200 Kbps
Networking Control 2 CS6 / b110000 800 Kbps 9.0 Mbps 800 Kbps
Voice 3 EXFD / b101110 1 Mbps 8.0 Mbps 1Mbps
Video 3 CS5 / b101000 4 Mbps 4.0 Mbps 4 Mbps
Data-1 4 CS4 / b100000 550 Kbps 3450 Kbps 550 Kbps
Data-2 5 CS3 / b011000 1450 2000 Kbps 1450 Kbps
Data-3 7 ASFD4 / b100010 1 Mbps NA 100 + 100 Kbps
Data-4 7 ASFD3 / b011010 1 Mbps NA 400 + 100 Kbps
Data-5 7 ASFD2 / b010010 1 Mbps NA 500 + 100 Kbps
Data-6 7 ASFD1 / b001010 1 Mbps NA 800 + 100 Kbps
Data-7 8 BE / bXXXXXX 2 Mbps NA 0 Kbps
Total N/A N/A 14 Mbps 0 Kbps 10 Mbps
L–10
CDM-570A/570AL Satellite Modem with Optional Packet Processor MN-CDM570A
Appendix L Revision 4
Similar to the Port-based scheduler, VLAN-based QoS also observes strict priority-based
scheduling. Should overdriving of VLAN priority traffic occur, the packet will be dropped and drop
stats will be incremented against that port.
Even though it is not necessary to configure multiple ports with VLANs, the VLAN QoS will not
look in the port information when classifying the packets into queue.
In case VLAN Q-in-Q (double VLAN tag), the L2 VLAN QoS considers first VLAN
tag priority field only for traffic prioritization.
L–11
CDM-570A/570AL Satellite Modem with Optional Packet Processor MN-CDM570A
Appendix L Revision 4
When the available data rate is less than the maximum clipping rate, the QoS system has nothing
to clip, since it has not exceeded the defined maximum bandwidth rate.
When the available data rate is less than the minimum data rate, then the QoS system shares
equally among all same priority queues in a round robin fashion until either minimum bandwidth is
met, or no more data is available to drain.
2. Enable ACM.
3. The data rate of the modem drops down from 10 Mbps to 8.7 Mbps due to EbNo.
Stream Protocol Src IP Dest IP Src Port Dest Port Steam Data Rate
1 UDP ***/* ***/* *** *** 10000 Kbps
2 TCP ***/* ***/* *** *** 5000 Kbps
3 HTTP ***/* ***/* *** *** 7000 Kbps
4 def ***/* ****/* *** *** 10000 Kbps
L–12
CDM-570A/570AL Satellite Modem with Optional Packet Processor MN-CDM570A
Appendix L Revision 4
QUESTION: What will be the total data rate and what will be the individual data rates?
ANSWER:
• After serving all high priority queues, only 500 Kbps is left for ASFD classes.
• This leftover bandwidth is less than the total minimum bandwidth; it must therefore share
the residual 500 Kbps among all four ASFD classes equally - i.e., 500/4=175 Kbps per
class.
• Since ASFD 4 has the service rate 100 Kbps, the excess 75 Kbps will be given the other
queues where the service rate not met.
• In this case the 75 Kbps again will share equally among ASFD3, ASFD2, and ASFD1
since these service rates were not met.
Jitter – Measured in milliseconds, this is the amount of variation between two consequent frames
at the receiving end.
Latency – This is the amount of delay, measured in milliseconds, from Ethernet interface of the
near -end modem to the Ethernet interface of the far-end modem.
Maximum Bandwidth – This value can be assigned to a flow to restrict the Maximum Bandwidth
that any particular flow will utilize; otherwise, the default of no bandwidth restriction can be
selected.
L–13
CDM-570A/570AL Satellite Modem with Optional Packet Processor MN-CDM570A
Appendix L Revision 4
Minimum Bandwidth – This is also known as Committed Information Rate (CIR). It is the
minimum guaranteed value allocated per that rule. Minimum bandwidth is given to the rule only if
the total minimum bandwidth is greater than the total modem bandwidth, and ingress traffic on
that rule is greater than the configured minimum bandwidth.
In cases where ingress traffic is less than the configured minimum bandwidth, then the unused
bandwidth will given to the other queues in that priority.
In cases where ingress traffic is more than the minimum bandwidth and the total bandwidth is
less than the total modem data rate, then all the minimum data rates will be scaled down.
QoS Segmentation and Reassembly (SAR) – Packet Segmentation and Reassembly (SAR) is
enabled automatically while QoS is enabled. However, SAR is an adaptive process; it will trigger
only if the packet latency exceeds the threshold value (default to 25 msec). Latency value is
calculated based on the satellite transmission bandwidth. There is no minimum segment size.
However if the last segment is less than 16 bytes, then it will be appended to the previous
segment excluding satellite HDLC header in order to avoid satellite overhead and consumption of
CPU cycles.
System Latency – This is used to define the maximum duration that a packet will stay in a QoS
queue. Rather than waste satellite bandwidth on invalid packets, this mechanism serves to
ensure that old packets are “aged” out of the system.
Weighted Random Early Detection (WRED) – WRED allows for more graceful dropping of
packets as QoS queues get full. Typically, without WRED, packets are dropped based upon a
simple tail drop algorithm that is applied to packets as they are being added to the QoS queues.
This can result in large numbers of contiguous packets being dropped, which causes many
protocols such as RTP and TCP to ungracefully degrade performance in an over-consumed or
bursty scenario. WRED applies a randomization, which means that the percentage change to
drop packets increases as the queue becomes full, and minimizes the chances of global
synchronization. Thus, WRED allows the transmission line to be used fully at all times.
The Max/Pri and Min/Max QoS modes allow enabling or disabling of the WRED option. In
DiffServ mode, WRED is applicable to Assured forwarding only; however, the WRED option can
be changed.
L–14