- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
03-EPON QoS commands | 108.38 KB |
bandwidth-downstream policy enable
dba-report queue-set-id queue-id threshold
onu upstream-sla maximum-bandwidth
EPON QoS commands
bandwidth-downstream
Use bandwidth-downstream to configure the downlink bandwidth limits on an ONU interface or RONU interface.
Use undo bandwidth-downstream to restore the default maximum downlink bandwidth or default maximum downlink burst buffer on an ONU interface or RONU interface.
Syntax
bandwidth-downstream { max-bandwidth bandwidth | max-burstsize burstsize } *
undo bandwidth-downstream { max-bandwidth | max-burstsize } *
Default
The maximum downlink bandwidth is 999994 Kbps (9999940 Kbps for 10G-EPON cards), and the maximum downlink burst buffer is 4194240 bytes on an ONU interface or RONU interface.
Views
ONU interface view
RONU interface view
Predefined user roles
network-admin
Parameters
max-bandwidth bandwidth: Specifies the maximum downlink bandwidth in the range of 0 to 999994 Kbps. For 10G-EPON cards, the value range is 0 to 9999940.
max-burstsize burstsize: Specifies the maximum downlink burst buffer in the range of 0 to 4194240 bytes.
Usage guidelines
For the downlink bandwidth limits to take effect, you must enable the downlink bandwidth allocation policy. The downlink bandwidth limits take effect only on known unicast packets.
Examples
# Set the maximum downlink bandwidth to 888 Kbps and the maximum downlink burst buffer to 999 bytes on ONU 1/0/1:1.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] bandwidth-downstream max-bandwidth 888 max-burstsize 999
bandwidth-downstream policy enable
bandwidth-downstream policy enable
Use bandwidth-downstream policy enable to enable the downlink bandwidth allocation policy on an ONU interface or RONU interface.
Use undo bandwidth-downstream policy enable to disable the downlink bandwidth allocation policy on an ONU interface or RONU interface.
Syntax
bandwidth-downstream policy enable
undo bandwidth-downstream policy enable
Default
The downlink bandwidth allocation policy is disabled on an ONU interface or RONU interface.
Views
ONU interface view
RONU interface view
Predefined user roles
network-admin
Examples
# Enable the downlink bandwidth allocation policy on ONU 1/0/1:1.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] bandwidth-downstream policy enable
dba-parameters
Use dba-parameters to set ONU discovery parameters.
Use undo dba-parameters to restore the default.
Syntax
dba-parameters { discovery-frequency frequency | discovery-length length } *
undo dba-parameters { discovery-frequency | discovery-length } *
Default
An OLT interface initiates ONU discovery at an interval of 500 milliseconds, and each ONU discovery process lasts for 3076 TQ.
Views
OLT interface view
ROLT interface view
Predefined user roles
network-admin
Parameters
discovery-frequency frequency: Specifies the ONU discovery interval at which the OLT interface broadcasts discovery GATE messages, in the range of 100 to 60000. The unit of the frequency argument is 0.1 millisecond.
discovery-length length: Specifies the duration of each ONU discovery, in the range of 200 to 10240. The unit of the length argument is time quantum (TQ). 1 TQ is equal to 16 ns.
Usage guidelines
Incorrect DBA settings might interrupt services. Make sure you are fully aware of the impact of this command when you use it on a live network.
Examples
# Set the ONU discovery interval to 300 milliseconds on OLT 1/0/1.
<Sysname> system-view
[Sysname] interface olt 1/0/1
[Sysname-Olt1/0/1] dba-parameters discovery-frequency 3000
dba-report queue-set-id queue-id threshold
Use dba-report queue-set-id queue-id threshold to configure the threshold for a queue.
Use undo dba-report queue-set-id to restore the default.
Syntax
dba-report queue-set-id queue-set-id queue-id queue-id { active | inactive } threshold threshold-value
undo dba-report queue-set-id queue-set-id
Default
The default thresholds are as follows:
· 0 for queues 1 through 3, and the threshold is activated.
· 65535 for queues 4 and 5, and the threshold is activated.
· 0 for queues 6 through 8, and the threshold is not activated.
Views
ONU interface view
RONU interface view
Predefined user roles
network-admin
Parameters
queue-set-id: Specifies a queue set ID in the range of 1 to 3.
queue-id: Specifies a queue ID in the range of 1 to 8.
threshold-value: Specifies a threshold in the range of 0 to 65535.
active: Activates the threshold.
inactive: Does not activate the threshold.
Examples
# Set the threshold to 200 for queue 1 in queue set 1 and activate the threshold on ONU 1/0/1:1.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] dba-report queue-set-id 1 queue-id 1 active threshold 200
dba-report queue-set-number
Use dba-report queue-set-number to set the number of queue sets that ONU REPORT messages support.
Use undo dba-report queue-set-number to restore the default.
Syntax
dba-report queue-set-number queue-set-number
undo dba-report queue-set-number
Default
ONU REPORT messages support two queue sets.
Views
ONU interface view
RONU interface view
Predefined user roles
network-admin
Parameters
queue-set-number: Specifies the number of queue sets, in the range of 2 to 4.
Examples
# Set the number of queue sets to 2 for ONU REPORT messages on ONU 1/0/1:1.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] dba-report queue-set-number 2
onu upstream-sla maximum-bandwidth
Use onu upstream-sla maximum-bandwidth to configure the maximum uplink bandwidth for ONU interfaces.
Use undo onu upstream-sla maximum-bandwidth to restore the default.
In standalone mode:
onu upstream-sla maximum-bandwidth [ slot slot-number ] percent bandwidth-percent
undo onu upstream-sla maximum-bandwidth [ slot slot-number ]
In IRF mode:
onu upstream-sla maximum-bandwidth [ chassis chassis-number slot slot-number ] percent bandwidth-percent
undo onu upstream-sla maximum-bandwidth [ chassis chassis-number slot slot-number ]
Default
The maximum uplink bandwidth is 23552 kbps for ONU interfaces.
Views
FTTH view
Predefined user roles
network-admin
Parameters
percent bandwidth-percent: Specifies the maximum uplink bandwidth in percentage of the total uplink bandwidth, in the range of 1 to 100.
slot slot-number: Specifies a card by its slot number. If you do not specify a slot, this command applies to all cards. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a slot, this command applies to all cards. (In IRF mode.)
Usage guidelines
The actual maximum uplink default for ONU interfaces is calculated as follows after this command is executed:
· On a 1G-EPON card, the maximum uplink bandwidth of each ONU interface is 1 Gbps × bandwidth-percent. If the result exceeds 950 Mbps, the actual maximum uplink bandwidth is 950 Mbps.
· On a 10G-EPON card, the following rules apply:
¡ When 1G ONUs or 10G/1G ONUs are used, the maximum uplink bandwidth of each ONU interface is 1 Gbps × bandwidth-percent. If the result exceeds 950 Mbps, the actual maximum uplink bandwidth is 950 Mbps.
¡ When 10G/10G ONUs are used, the maximum uplink bandwidth of each ONU interface is 10 Gbps × bandwidth-percent. If the result exceeds 9500 Mbps, the actual maximum uplink bandwidth is 9500 Mbps.
This command takes effect globally. When both this command and the upstream-sla maximum-bandwidth max-value are executed, the upstream-sla maximum-bandwidth command takes effect on ONU interfaces where it is executed.
If you use this command without specifying any slot to configure the default maximum uplink bandwidth for ONU interfaces on all cards, you cannot use this command to configure the default maximum uplink bandwidth for the specified card, and vice versa. To modify the current configuration, first remove it. (In standalone mode.)
If you use this command without specifying any card to configure the default maximum uplink bandwidth for ONU interfaces on all cards, you cannot use this command to configure the default maximum uplink bandwidth for the specified card, and vice versa. To modify the current configuration, first remove it. (In IRF mode.)
Examples
# Configure the maximum uplink bandwidth as 10% of the total uplink bandwidth for each ONU interface on slot 1.
<Sysname> system-view
[Sysname] ftth
[Sysname-ftth] onu upstream-sla maximum-bandwidth slot 1 percent 10
Related commands
upstream-sla
qos cos-local-precedence-map
Use qos cos-local-precedence-map to configure CoS-to-local priority mappings on an ONU interface or RONU interface.
Use undo qos cos-local-precedence-map to restore the default.
Syntax
qos cos-local-precedence-map cos0 cos1 cos2 cos3 cos4 cos5 cos6 cos7
undo qos cos-local-precedence-map
Default
Table 1 shows default CoS-to-local priority mappings.
Table 1 Default CoS-to-local priority mappings
CoS priority |
Local precedence |
0 |
0 |
1 |
0 |
2 |
1 |
3 |
1 |
4 |
2 |
5 |
2 |
6 |
3 |
7 |
3 |
Views
ONU interface view
RONU interface view
Predefined user roles
network-admin
Parameters
cos0: Specifies the local precedence to be mapped to CoS priority 0, in the range of 0 to 3.
cos1: Specifies the local precedence to be mapped to CoS priority 1, in the range of 0 to 3.
cos2: Specifies the local precedence to be mapped to CoS priority 2, in the range of 0 to 3.
cos3: Specifies the local precedence to be mapped to CoS priority 3, in the range of 0 to 3.
cos4: Specifies the local precedence to be mapped to CoS priority 4, in the range of 0 to 3.
cos5: Specifies the local precedence to be mapped to CoS priority 5, in the range of 0 to 3.
cos6: Specifies the local precedence to be mapped to CoS priority 6, in the range of 0 to 3.
cos7: Specifies the local precedence to be mapped to CoS priority 7, in the range of 0 to 3.
Usage guidelines
This command takes effect only on downlink data flows.
Examples
# Configure CoS-to-local priority mappings on the ONU bound to ONU 1/0/1:1.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] qos cos-local-precedence-map 2 2 1 1 3 3 0 0
service-sla apply
Use service-sla apply to apply the uplink traffic queue scheduling configuration to an ONU.
Use undo service-sla apply to remove the uplink traffic queue scheduling configuration from an ONU.
Syntax
service-sla apply
undo service-sla apply
Default
No uplink traffic queue scheduling configuration is applied to an ONU.
Views
ONU interface view
RONU interface view
Predefined user roles
network-admin
Usage guidelines
The uplink traffic queue scheduling configuration contains the queue scheduling mode (service-sla mode) configuration and the queue parameter (service-sla queue) configuration.
To modify the queue scheduling mode or queue parameters after executing this command, first execute the undo service-sla apply command.
Examples
# Apply the uplink traffic queue scheduling configuration to the ONU attached to ONU 1/0/1:1.
<Sysname> system-view
[Sysname] interface Onu1/0/1:1
[Sysname-Onu1/0/1:1] service-sla apply
Related commands
service-sla mode
service-sla queue
service-sla mode
Use service-sla mode to configure the uplink traffic queue scheduling mode for an ONU.
Use undo service-sla mode to restore the default.
Syntax
service-sla mode { sp | wrr | sp-wrr high-priority-boundary boundary-queue-id } [ cycle-length length ]
undo service-sla mode
Default
No uplink traffic queue scheduling mode is configured for an ONU.
Views
ONU interface view
RONU interface view
Predefined user roles
network-admin
Parameters
sp: Specifies the Strict Priority (SP) mode.
wrr: Specifies the Weighted Round Robin (WRR) mode.
sp-wrr: Specifies the SP+WRR mode.
high-priority-boundary boundary-queue-id: Specifies the minimum SP queue ID. Queues with this ID and higher are configured as SP queues. Queues with IDs smaller than this ID are configured as WRR queues.
cycle-length length: Specifies the Dynamic Bandwidth Allocation (DBA) polling cycle in the range of 200 to 16777215 time quantums (TQs). A TQ is 16 ns. This keyword is only for administrator use. As a best practice, do not configure this keyword as a common user.
Examples
# Configure the uplink traffic queue scheduling mode as SP on the ONU bound to ONU 1/0/1:1.
<Sysname> system-view
[Sysname] interface Onu1/0/1:1
[Sysname-Onu1/0/1:1] service-sla mode sp
Related commands
service-sla apply
service-sla queue
service-sla queue
Use service-sla queue to configure the uplink traffic queue parameters for an ONU.
Use undo service-sla queue to cancel the configuration.
Syntax
service-sla queue queue-id { sp | wrr weight weight } [ [ fixed-packet-size fixed-packet-size ] fixed-bandwidth fixed-bandwidth ] guaranteed-bandwidth guaranteed-bandwidth best-effort-bandwidth best-effort-bandwidth
undo service-sla queue queue-id
Default
No uplink traffic queue parameters are set for an ONU.
Views
ONU interface view
RONU interface view
Predefined user roles
network-admin
Parameters
queue queue-id: Specifies a queue by its ID in the range of 0 to 7.
sp: Specifies a queue as an SP queue.
wrr: Specifies a queue as a WRR queue.
weight weight: Specifies a weight for a WRR queue, in the range of 1 to 100. The default is 0.
fixed-packet-size fixed-packet-size: Specifies the TDM packet length in the range of 0 to 2000 bytes. The default is 0, which indicates that the TDM packet length is not limited.
fixed-bandwidth fixed-bandwidth: Specifies the fixed bandwidth in the range of 0 to 9999872 kbps, which must be a multiple of 256. When it is not a multiple of 256, it is rounded down to the nearest multiple of 256. If you dot specify this option for a queue, no fixed bandwidth is configured for the queue.
guaranteed-bandwidth guaranteed-bandwidth: Specifies the guaranteed bandwidth in the range of 0 to 9999872 kbps, which must be a multiple of 256. When it is not a multiple of 256, it is rounded down to the nearest multiple of 256.
best-effort-bandwidth best-effort-bandwidth: Specifies the best-effort bandwidth in the range of 0 to 9999872 kbps, which must be a multiple of 256. When it is not a multiple of 256, it is rounded down to the nearest multiple of 256.
Usage guidelines
You can execute this command multiple times to configure parameters for multiple queues.
In SP mode, you must configure a minimum of one SP queue.
In WRR mode, you must configure a minimum of one WRR queue.
In SP+WRR mode, you must configure a minimum of one SP queue and one WRR queue.
On an ONU interface or RONU interface, the sum of WRR queue weights must be 100.
Examples
# Configure the uplink guaranteed bandwidth as 4 Mbps (4096 kbps) and the uplink best-effort bandwidth as 8 Mbps (8192 kbps) for SP queue 1 on the ONU bound to ONU 1/0/1:1.
<Sysname> system-view
[Sysname] interface Onu1/0/1:1
[Sysname-Onu1/0/1:1] service-sla queue 1 sp guaranteed-bandwidth 4096 best-effort-bandwidth 8192
Related commands
service-sla apply
service-sla mode
uni classification-marking
Use uni classification-marking to configure priority marking on a UNI.
Use undo uni classification-marking to remove priority marking configuration from a UNI.
Syntax
uni uni-number classification-marking index index queue qid priority priority { { selector operator matched-value } & <1-4> | always-match | never-match }
undo uni uni-number classification-marking index index
Default
Priority marking is not configured on a UNI.
Views
ONU interface view
RONU interface view
Predefined user roles
network-admin
Parameters
uni-number: Specifies a UNI by its number in the range of 1 to 79.
index: Specifies an index in the range of 1 to 8. The smaller the index, the higher the priority.
qid: Assigns packets to a queue specified by its ID in the range of 0 to 7.
priority: Marks packets with a priority in the range of 0 to 7.
{ selector operator matched-value } & <1-4>: Specifies a maximum of four matching field and rule pairs.
· selector: Specifies a matching field. Table 1 shows the available values.
· operator: Specifies a matching rule. Table 1 shows the available values.
· matched-value: Specifies the value of the matching field if the value of the operator argument is not exist or not-exist.
¡ ip-address: Specifies an IP address.
¡ mac-address: Specifies a MAC address. Do not specify an ONU MAC address bound to an ONU interface for the dst-mac and src-mac fields.
¡ port-number: Specifies a port number in the range of 0 to 65535.
¡ priority: Specifies a CoS priority in the range of 0 to 7.
¡ eth-type: Specifies an Ethernet frame type in the range of 0 to FFFF.
¡ ip-dscp: Specifies a ToS priority or DSCP priority in the range of 0 to 63.
¡ ip-type: Specifies an IP protocol type in the range of 0 to FF.
¡ vlan-id: Specifies a VLAN ID in the range of 1 to 4094.
always-match: Performs match for traffic classification.
never-match: Does not perform match.
Table 2 Values for the selector argument
selector |
Description |
dst-ip |
Matches the destination IP address. |
dst-mac |
Matches the destination MAC address. |
dst-port |
Matches the destination port number. |
eth-pri |
Matches the CoS priority. |
eth-type |
Matches the Ethernet frame type. |
ip-precedence |
Matches the IP precedence. |
ip-tos-dscp |
Matches the ToS priority or DSCP priority. |
ip-type |
Matches the IP protocol type. |
src-ip |
Matches the source IP address. |
src-mac |
Matches the source MAC address. |
src-port |
Matches the source port number. |
vlan-id |
Matches the VLAN ID. |
Table 3 Values for the operator argument
operator |
Description |
equal |
The value of the matched-value argument must be equal to the value of the matching field of packets. |
exist |
The packets must contain the matching field. |
not-equal |
The value of the matched-value argument must be different from the value of the matching field of packets. |
not-exist |
The packets cannot contain the matching field. |
greater-equal |
The value of the matched-value argument must be greater than the value of the matching field of packets. |
less-equal |
The value of the matched-value argument must be smaller than the value of the matching field of packets. |
Usage guidelines
Do not use the uni classification-marking commands together with the qos trust dscp command on an ONU interface or RONU interface. For more information about the qos trust command, see ACL and QoS Command Reference.
Examples
# Configure UNI 1 of the ONU bound to ONU 1/0/1:1 to modify the priority to 3 for packet tagged with VLAN ID 10.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] uni 1 classification-marking index 1 queue 3 priority 3 vlan-id
equal 10
uni port-policy inbound
Use uni port-policy inbound to configure uplink traffic policing on a UNI.
Use undo uni port-policy inbound to restore the default.
Syntax
uni uni-number port-policy inbound { bucket-depth bucket-depth-value | cir cir-value | extra-burst-size extra-burst-size-value } *
undo uni uni-number port-policy inbound
Default
The CBS is 1522 bytes, the CIR is 0 kbps, and the EBS is 0 bytes.
Views
ONU interface view
RONU interface view
Predefined user roles
network-admin
Parameters
uni-number: Specifies a UNI by its number in the range of 1 to 79.
bucket-depth bucket-depth-value: Specifies the CBS in the range of 1522 to 65535 bytes. The CBS is the maximum burst bandwidth.
cir cir-value: Specifies the CIR in the range of 64 to 16777152 Kbps. The value of the cir-value argument must be a multiple of 64.
extra-burst-size extra-burst-size-value: Specifies the EBS in the range of 0 to 1522 bytes.
Examples
# Configure uplink traffic policing on UNI 1 of the ONU bound to ONU 1/0/1:1.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] uni 1 port-policy inbound cir 640 bucket-depth 2000 extra-burst-size 1000
uni port-policy outbound
Use uni port-policy outbound to configure downlink traffic policing on a UNI.
Use undo uni port-policy outbound to restore the default.
Syntax
uni uni-number port-policy outbound cir cir-value [ pir pir-value ]
undo uni uni-number port-policy outbound
Default
The CIR is 0 kbps, and the PIR is 0 kbps.
Views
ONU interface view
RONU interface view
Predefined user roles
network-admin
Parameters
uni-number: Specifies a UNI by its number in the range of 1 to 79.
cir cir-value: Specifies the CIR in the range of 64 to 16777152 Kbps. The value of the cir-value argument must be a multiple of 64.
pir pir-value: Specifies the PIR in the range of 64 to 16777152 Kbps. The value of the pir-value argument must be a multiple of 64 and be larger than the CIR.
Examples
# Configure downlink traffic policing on UNI 1 of the ONU bound to ONU 1/0/1:1.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] uni 1 port-policy outbound cir 30720
upstream-sla
Use upstream-sla to specify the uplink bandwidth range for an ONU.
Use undo upstream-sla to restore the default.
Syntax
upstream-sla { fixed-bandwidth fixed-value | minimum-bandwidth min-value | maximum-bandwidth max-value | weight weight-value } *
undo upstream-sla
Default
The fixed uplink bandwidth is 0 kbps, the minimum uplink bandwidth is 2048 kbps, the maximum uplink bandwidth is 23552 kbps, and the bandwidth allocation weight is 1.
Views
ONU interface view
RONU interface view
Predefined user roles
network-admin
Parameters
fixed-bandwidth fixed-value: Sets the fixed uplink bandwidth in the range of 0 to 14843. The unit of the fixed-value argument is 64 kbps. For 10G-EPON cards, the value range is 0 to 148430.
minimum-bandwidth min-value: Sets the minimum uplink bandwidth in the range of 8 to 15000. The unit of the min-value argument is 64 kbps. For 10G-EPON cards, the value range is 8 to 135781.
maximum-bandwidth max-value: Sets the maximum uplink bandwidth in the range of 8 to 15625. The unit of the max-value argument is 64 kbps. For 10G-EPON cards, the value range is 8 to 156250.
weight weight-value: Specifies the bandwidth allocation weight in the range of 1 to 20.
Usage guidelines
The fixed uplink bandwidth cannot exceed the minimum uplink bandwidth.
On a 1G-EPON card, the sum of the minimum uplink bandwidth for all ONU interfaces of a single OLT interface cannot exceed 950 Mbps.
On a 10G-EPON card, the following rules apply:
· When 1G ONUs or 10G/1G ONUs are used, the sum of the minimum uplink bandwidth for all ONU interfaces of a single OLT interface cannot exceed 950 Mbps.
· When 10G/10G ONUs are used, the sum of the minimum uplink bandwidth for all ONU interfaces of a single OLT interface cannot exceed 9500 Mbps.
Examples
# Set the maximum uplink bandwidth to 10240 kbps for the ONU bound to ONU 1/0/1:1.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] upstream-sla maximum-bandwidth 160
The maximum-bandwidth of upstream is 10240 kbps
Related commands
onu upstream-sla maximum-bandwidth