MNS-BB
Software User Guide
-58-
will be the same weight across the switch. The valid value for
weight
is 0-7.
Syntax: set-weight weight=<0-7>
Note
A weight is a number calculated from the IP precedence setting for a packet in flow. This
weight is used in an algorithm to determine when the packet will be serviced.
Weight settings can be viewed using the
show-portweight
command.
As mentioned previously, the switch is capable of detecting higher-priority packets marked with
precedence by the IP forwarder and can schedule them faster, providing superior response time for
this traffic. The IP Precedence field has values between 0 (the default) and 7. As the precedence value
increases, the algorithm allocates more bandwidth to that traffic to make sure that it is served more
quickly when congestion occurs. We can assign a weight to each flow, which determines the transmit
order for queued packets. In this scheme, lower weights (set on all ports) are provided more service.
IP precedence serves as a divisor to this weighting factor. For instance, traffic with an IP Precedence
field value of 7 gets a lower weight than traffic with an IP Precedence field value of 3, and thus has
priority in the transmit order.
Syntax
:
set-weight weight=<0-7>
Once you set the Port weight, the hardware will interpret the weight setting for all ports as outlined
below:
Setting
Hardware
Interpretation
0 -
1 packet transmitted from HIGH, 1 packet from LOW
1 -
2 packet transmitted from HIGH, 1 packet from LOW
2 -
4 packet transmitted from HIGH, 1 packet from LOW
3 -
6 packet transmitted from HIGH, 1 packet from LOW
4 -
8 packet transmitted from HIGH, 1 packet from LOW
5 -
10 packet transmitted from HIGH, 1 packet from LOW
6 -
12 packet transmitted from HIGH, 1 packet from LOW
7 -
All packets transmitted from HIGH, 0 packets from LOW.
show portweight
: Shows the global port priority weight.
Syntax
:
show-portweight
Note:
Port weight can be assign only globally (the whole switch has the same setting)
LE2425A(qos)##
show-portweight
Port priority Weight set to 1 High : 1 Low.
Show qos
: It shows the QoS information.
Syntax
:
show qos [type=<port|tag|tos>] [port=<port|list|range>]
For example,
To set the QoS type as “Port” and set particular ports (1-5) with high priority.
LE2425A(qos)##
setqos type=port port=1-5 priority=high
To see the QoS status.