QoS Configuration For The Vport Interface

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

20/08/2019 QoS Configuration for the Vport Interface

QoS Configuration for the Vport Interface

This section includes the following information:


■ Configuring the Priority Type to Trust
■ Configuring the Default CoS Priority
■ Configuring CoS Priority Remarking
■ Configuring DSCP-CoS Priority Remarking
■ Configuring DSCP Priority Remarking
■ Configuring CoS Remarking in the Egress Direction
■ Configuring DSCP-CoS Remarking in the Egress Direction
■ Configuring the Queue Depth
■ Configuring Traffic Shaping
■ Configuring a Traffic Policy

Configuring the Priority Type to Trust

Abstract

This procedure describes how to configure a Vport interface of the ONU to trust either CoS priority or DSCP
priority.

Context

■ If a Vport interface trusts a CoS priority, the CoS priority of a packet is marked according to the override>cos-
remark>trust priority sequence based on the CoS priority in the ingress direction.

■ If a Vport interface trusts a DSCP priority, the CoS priority of a packet is marked based on the DSCP-to-CoS
mapping relationship.

Steps

1 In ZXAN(config-if-vport-1/x/x.x)# mode, run the qos trust command to configure a priority that a Vport
interface trusts.

Result
You can use the show qos interface command to display the QoS configurations of the Vport interface.

Example

1 Configure the priority type that a Vport interface trusts.

ZXAN(config)#interface vport-1/2/1.1:1
ZXAN(config-if-vport-1/2/1.1:1)#qos trust cos

2 Display the QoS configurations of a Vport interface.

127.0.0.1:8890/web/index.html#?pid=Lib20180328102925&pv=R1_0&ts=6_0_2_2&ncall=5405 1/9
20/08/2019 QoS Configuration for the Vport Interface

ZXAN(config-if-vport-1/2/1.1:1)#show qos interface vport-1/2/1.1:1


qos trust cos
qos cos default-cos 0
qos cos cos-remark _DEFAULT_COS_TO_COS_PROFILE
qos cos dscp-remark _DEFAULT_DSCP_TO_COS_PROFILE
qos dscp dscp-remark _DEFAULT_DSCP_TO_DSCP_PROFILE
qos egress-cos cos-remark _DEFAULT_COS_TO_COS_PROFILE
qos egress-cos dscp-remark _DEFAULT_DSCP_TO_COS_PROFILE
qos queue-conf-profile _DEFAULT_QUEUE_CONF_PROFILE

Configuring the Default CoS Priority

Abstract

After the default priority is configured, the default CoS priority can be added for untagged packets on a Vport
interface of the ONU.

Context

If a Vport interface trusts a CoS priority, subsequent packets can be processed as follows.

■ If the override function is configured, all CoS priorities of the services on a virtual port are forcibly modified as
the default CoS priority, including those of untagged packets.

■ If the override function is not configured, the default CoS priority is valid for only untagged packets.

Steps

1 In ZXAN(config-if-vport-1/x/x.x:x)# mode, run the qos cos default-cos command to configure the default
CoS priority.

Result
You can use the show qos interface command to display the QoS configurations of the Vport interface.

Example

1 Configure the default CoS priority.

ZXAN(config)#interface vport-1/2/1.1:1
ZXAN(config-if-vport-1/2/1.1:1)#qos cos default-cos 5 override

2 Display the QoS configurations of a Vport interface.

ZXAN(config-if-vport-1/2/1.1:1)#show qos interface vport-1/2/1.1:1


qos trust cos
qos cos default-cos 5 override
qos cos cos-remark _DEFAULT_COS_TO_COS_PROFILE
qos cos dscp-remark _DEFAULT_DSCP_TO_COS_PROFILE
qos dscp dscp-remark _DEFAULT_DSCP_TO_DSCP_PROFILE
qos egress-cos cos-remark _DEFAULT_COS_TO_COS_PROFILE
127.0.0.1:8890/web/index.html#?pid=Lib20180328102925&pv=R1_0&ts=6_0_2_2&ncall=5405 2/9
20/08/2019 QoS Configuration for the Vport Interface

qos egress-cos dscp-remark _DEFAULT_DSCP_TO_COS_PROFILE


qos queue-conf-profile _DEFAULT_QUEUE_CONF_PROFILE

Configuring CoS Priority Remarking

Abstract

After a CoS priority remarking template is used, the CoS priority of the packets on a Vport interface of the ONU
can be modified based on the original CoS priority of the packets.

Context

If a Vport interface trusts a CoS priority and the default priority is not configured with the override function, after a
CoS priority remarking template is configured, the service CoS priority is modified according to the mapping
relationship in the template.

Steps

1 In ZXAN(config-if-vport-1/x/x.x:x)# mode, run the qos cos cos-remark command to apply a CoS priority
remarking template.

2 In ZXAN(config-if-vport-1/x/x.x:x)# mode, run the qos trust cos command to configure a CoS priority
that a Vport interface trusts.

Result

You can use the show qos interface command to display the QoS configuration of the Vport interface.

Example

1 Apply a CoS priority remarking template on a Vport interface.

ZXAN(config)#interface vport-1/2/1.1:1
ZXAN(config-if-vport-1/2/1.1:1)#qos cos cos-remark test

2 Configure a CoS priority that a Vport interface trusts.

ZXAN(config-if-vport-1/2/1.1:1)#qos trust cos

3 Display the QoS configurations of a Vport interface.

ZXAN(config-if-vport-1/2/1.1:1)#show qos interface vport-1/2/1.1:1


qos trust cos
qos cos default-cos 0
qos cos cos-remark test
qos cos dscp-remark _DEFAULT_DSCP_TO_COS_PROFILE
qos dscp dscp-remark _DEFAULT_DSCP_TO_DSCP_PROFILE
qos egress-cos cos-remark _DEFAULT_COS_TO_COS_PROFILE

127.0.0.1:8890/web/index.html#?pid=Lib20180328102925&pv=R1_0&ts=6_0_2_2&ncall=5405 3/9
20/08/2019 QoS Configuration for the Vport Interface

qos egress-cos dscp-remark _DEFAULT_DSCP_TO_COS_PROFILE


qos queue-conf-profile _DEFAULT_QUEUE_CONF_PROFILE

Configuring DSCP-CoS Priority Remarking

Abstract

After a DSCP-CoS priority remarking template is used, the CoS priority of the packets on a Vport interface can be
modified based on the DSCP priority of the packets.

Context

If a Vport interface trusts a DSCP priority, after a DSCP priority remarking template is used, the service CoS
priority can be modified according to the mapping relationship in the template.

Steps

1 In ZXAN(config-if-vport-1/x/x.x:x)# mode, run the qos cos dscp-remark command to apply a DSCP
priority remarking template.

2 In ZXAN(config-if-vport-1/x/x.x:x)# mode, run the qos trust dscp command to configure a DSCP priority
that a Vport interface trusts.

Result

You can use the show qos interface command to display the QoS configurations of the Vport interface.

Example

1 Apply a DSCP priority remarking template.

ZXAN(config)#interface vport-1/2/1.1:1
ZXAN(config-if-vport-1/2/1.1:1)#qos cos dscp-remark test

2 Configure a DSCP priority that a Vport interface trusts.

ZXAN(config-if-vport-1/2/1.1:1)#qos trust dscp

3 Display the QoS configurations of a Vport interface.

ZXAN(config-if-vport-1/2/1.1:1)#show qos interface vport-1/2/1.1:1


qos trust dscp
qos cos default-cos 0
qos cos cos-remark _DEFAULT_COS_TO_COS_PROFILE
qos cos dscp-remark test
qos dscp dscp-remark _DEFAULT_DSCP_TO_DSCP_PROFILE
qos egress-cos cos-remark _DEFAULT_COS_TO_COS_PROFILE
qos egress-cos dscp-remark _DEFAULT_DSCP_TO_COS_PROFILE
qos queue-conf-profile _DEFAULT_QUEUE_CONF_PROFILE

127.0.0.1:8890/web/index.html#?pid=Lib20180328102925&pv=R1_0&ts=6_0_2_2&ncall=5405 4/9
20/08/2019 QoS Configuration for the Vport Interface

Configuring DSCP Priority Remarking

Abstract

After a DSCP priority remarking template is configured, the DSCP priority of the packets on a Vport interface of
the ONU can be modified based on the original DSCP priority of the packets.

Context

If a Vport interface trusts a DSCP priority, after a DSCP priority remarking template is configured, the service
DSCP priority can be modified according to the mapping relationship in the template.

Steps

1 In ZXAN(config-if-vport-1/x/x.x:x)# mode, run the qos dscp dscp-remark command to apply a DSCP
priority remarking template.

2 In ZXAN(config-if-vport-1/x/x.x:x)# mode, run the qos trust dscp command to configure a DSCP priority
that a Vport interface trusts.

Result

You can use the show qos interface command to display the QoS configurations of the Vport interface.

Example

1 Apply a DSCP priority remarking template on a Vport interface.

ZXAN(config)#interface vport-1/2/1.1:1
ZXAN(config-if-vport-1/2/1.1:1)#qos dscp dscp-remark test

2 Configure a DSCP priority that a Vport interface trusts.

ZXAN(config-if-vport-1/2/1.1:1)#qos trust dscp

3 Display the QoS configurations of a Vport interface.

ZXAN(config-if-vport-1/2/1.1:1)#show qos interface vport-1/2/1.1:1


qos trust dscp
qos cos default-cos 0
qos cos cos-remark _DEFAULT_COS_TO_COS_PROFILE
qos cos dscp-remark _DEFAULT_DSCP_TO_COS_PROFILE
qos dscp dscp-remark test
qos egress-cos cos-remark _DEFAULT_COS_TO_COS_PROFILE
qos egress-cos dscp-remark _DEFAULT_DSCP_TO_COS_PROFILE
qos queue-conf-profile _DEFAULT_QUEUE_CONF_PROFILE

Configuring CoS Remarking in the Egress Direction


127.0.0.1:8890/web/index.html#?pid=Lib20180328102925&pv=R1_0&ts=6_0_2_2&ncall=5405 5/9
20/08/2019 QoS Configuration for the Vport Interface

Abstract

After a CoS priority remarking template is configured, the CoS priority of the packets on a Vport interface of the
ONU can be modified in the egress direction based on the original CoS priority of the packets.

Context

If a Vport interface trusts a CoS priority and the default priority is not configured with the override function, after a
CoS priority remarking template is used, the service CoS priority is modified according to the mapping
relationship in the template.

Steps

1 In ZXAN(config-if-vport-1/x/x.x:x)# mode, run the qos egress-cos cos-remark command to apply a CoS
priority remarking template.

2 In ZXAN(config-if-vport-1/x/x.x:x)# mode, run the qos trust cos command to configure a CoS priority
that a Vport interface trusts.

Result

You can use the show qos interface command to display the QoS configurations of the Vport interface.

Example

1 Apply a CoS priority remarking template on a Vport interface.

ZXAN(config)#interface vport-1/2/1.1:1
ZXAN(config-if-vport-1/2/1.1:1)#qos egress-cos cos-remark test

2 Configure a CoS priority that a Vport interface trusts.

ZXAN(config-if-vport-1/2/1.1:1)#qos trust cos

3 Display the QoS configurations of a Vport interface.

ZXAN(config-if-vport-1/2/1.1:1)#show qos interface vport-1/2/1.1:1


qos trust cos
qos cos default-cos 0
qos cos cos-remark _DEFAULT_COS_TO_COS_PROFILE
qos cos dscp-remark _DEFAULT_DSCP_TO_COS_PROFILE
qos dscp dscp-remark _DEFAULT_DSCP_TO_DSCP_PROFILE
qos egress-cos cos-remark test
qos egress-cos dscp-remark _DEFAULT_DSCP_TO_COS_PROFILE
qos queue-conf-profile _DEFAULT_QUEUE_CONF_PROFILE

Configuring DSCP-CoS Remarking in the Egress Direction

Abstract

127.0.0.1:8890/web/index.html#?pid=Lib20180328102925&pv=R1_0&ts=6_0_2_2&ncall=5405 6/9
20/08/2019 QoS Configuration for the Vport Interface

After a DSCP-CoS priority remarking template is used, the CoS priority of the packets on a Vport interface of the
ONU can be modified in the egress direction based on the DSCP priority of the packets.

Context

If a Vport interface trusts a DSCP priority, after a DSCP priority remarking template in the egress direction is
used, the service CoS priority can be modified according to the mapping relationship in the template.

Steps

1 In ZXAN(config-if-vport-1/x/x.x:x)# mode, run the qos egress-cos dscp-remark command to apply a


DSCP priority remarking template.

2 In ZXAN(config-if-vport-1/x/x.x:x)# mode, run the qos trust dscp command to configure a DSCP priority
that a Vport interface trusts.

Result

You can use the show qos interface command to display the QoS configurations of the Vport interface.

Example

1 Apply a DSCP priority remarking template on a Vport interface.

ZXAN(config)#interface vport-1/2/1.1:1
ZXAN(config-if-vport-1/2/1.1:1)#qos egress-cos dscp-remark test

2 Configure a DSCP priority that a Vport interface trusts.

ZXAN(config-if-vport-1/2/1.1:1)#qos trust dscp

3 Display the QoS configurations of a Vport interface.

ZXAN(config-if-vport-1/2/1.1:1)#show qos interface vport-1/2/1.1:1


qos trust dscp
qos cos default-cos 0
qos cos cos-remark _DEFAULT_COS_TO_COS_PROFILE
qos cos dscp-remark _DEFAULT_DSCP_TO_COS_PROFILE
qos dscp dscp-remark _DEFAULT_DSCP_TO_DSCP_PROFILE
qos egress-cos cos-remark _DEFAULT_COS_TO_COS_PROFILE
qos egress-cos dscp-remark test
qos queue-conf-profile _DEFAULT_QUEUE_CONF_PROFILE

Configuring the Queue Depth

Abstract

This procedure describes how to modify the queue depth of a Vport interface of the ONU after a queue
configuration template is used.

127.0.0.1:8890/web/index.html#?pid=Lib20180328102925&pv=R1_0&ts=6_0_2_2&ncall=5405 7/9
20/08/2019 QoS Configuration for the Vport Interface

Steps

1 In ZXAN(config-if-vport-1/x/x.x:x)# mode, run the qos queue-conf-profile command to apply a queue


configuration template.

Example

Apply a queue configuration template on a Vport interface.

ZXAN(config)#interface vport-1/2/1.1:1
ZXAN(config-if-vport-1/2/1.1:1)#qos queue-conf-profile test

Configuring Traffic Shaping

Abstract

After a traffic template is used, traffic shaping is implemented on a Vport interface of the ONU. After the traffic
threshold is reached, follow-up traffic can be delayed through the buffering mechanism.

Steps

1 In ZXAN(config-if-vport-1/x/x.x:x)# mode, run the qos traffic-shaping command to apply a traffic


template.

Example

Apply a traffic template on a Vport interface.

ZXAN(config)#interface vport-1/2/1.1:1
ZXAN(config-if-vport-1/2/1.1:1)#qos traffic-shaping test

Configuring a Traffic Policy

Abstract

This procedure describes how to configure a traffic policy so that the traffic rate can be restricted on a Vport
interface of the ONU and excessive traffic can be discarded in receiving or sending direction.

Steps

1 In ZXAN(config-if-vport-1/x/x.x:x)# mode, run the qos traffic-policy command to configure a traffic


policy.

Example

Configure a traffic policy on a Vport interface to restrict the traffic rate in receiving direction.

ZXAN(config)#interface vport-1/2/1.1:1
ZXAN(config-if-vport-1/2/1.1:1)#qos traffic-policy test direction ingress

127.0.0.1:8890/web/index.html#?pid=Lib20180328102925&pv=R1_0&ts=6_0_2_2&ncall=5405 8/9
20/08/2019 QoS Configuration for the Vport Interface

127.0.0.1:8890/web/index.html#?pid=Lib20180328102925&pv=R1_0&ts=6_0_2_2&ncall=5405 9/9

You might also like