•
|
VPLS Pseudowire — For a tagged (vc-type vlan) pseudowire, it would be necessary to add 4 bytes using the packet-byte-offset applied to the ingress policer in order to achieve the same throughput as on the SAP. This compensates for the omission of the FCS that is included on the SAP and so needs to be added.
|
•
|
VPRN Pseudowire — For an Ipipe (vc-type ipipe) pseudowire, it would be necessary to add 22 bytes using the packet-byte-offset to the ingress policer to achieve the same throughput as on the SAP. This compensates for the omission of the source and destination MAC addresses (12 bytes), Ether type (2 bytes), VLAN tag (4 bytes) and the FCS (4 bytes) that are included on the SAP and so needs to be added.
|
•
|
VPLS Pseudowire — For a tagged (vc-type vlan) pseudowire, it would be necessary to subtract 22 bytes using the packet-byte-offset applied to the egress policer/queue applied to achieve the same throughput as on the SAP. This compensates for the MPLS header (source and destination MAC addresses (12 bytes), Ether type (2 bytes), two labels (8 bytes)) that is not included on the SAP and needs to be subtracted.
|
•
|
VPRN Pseudowire — For an Ipipe (vc-type ipipe) pseudowire, it would be necessary to subtract 4 bytes using the packet-byte-offset applied to the egress policer/queue applied to achieve the same throughput as on the SAP. This compensates for the MPLS header (source and destination MAC addresses (12 bytes), Ether type (2 bytes), two labels (8 bytes)) that is not included on the SAP so is subtracted, and the source and destination MAC addresses (12 bytes), dot1q header (4 bytes) and Ether type (2 bytes) of the SAP frame which needs to be added. This results in subtracting 4 bytes.
|
configure qos
queue-group-templates
ingress
queue-group "ingress-queue-group" create
policer 1 create
rate 6000
packet-byte-offset add 4
exit
policer 2 create
rate 4000
packet-byte-offset add 4
exit
exit
exit
egress
queue-group "egress-queue-group" create
queue 1 best-effort create
rate 6000
xp-specific
packet-byte-offset subtract 22
exit
exit
policer 1 create
rate 4000
packet-byte-offset subtract 22
exit
exit
exit
exit
configure
card 7
card-type imm5-10gb-xfp
mda 1
no shutdown
exit
fp 1
ingress
network
queue-group "ingress-queue-group" instance 1 create
exit
exit
exit
exit
no shutdown
exit
configure
port 7/1/2
ethernet
network
egress
queue-group "egress-queue-group" instance 1 create
exit
exit
exit
exit
no shutdown
exit
config# qos
network <network-policy-id> [create]
ingress
fc <fc-name>
fp-redirect-group multicast-policer <policer-id>
fp-redirect-group policer <policer-id>
egress
fc <fc-name>
port-redirect-group {queue <queue-id>|
policer <policer-id> [queue <queue-id>]}
configure qos
network 10 create
ingress
lsp-exp 5 fc ef profile in
fc be
fp-redirect-group policer 1
exit
fc ef
fp-redirect-group policer 2
exit
exit
egress
fc be
port-redirect-group queue 1
exit
fc ef
port-redirect-group policer 1
exit
exit
exit
config# service {apipe|cpipe|epipe|fpipe|ipipe} <service-id>
spoke-sdp <sdp-id:vc-id>
ingress
qos <network-policy-id> fp-redirect-group <queue-group-name>
instance <instance-id>
egress
qos <network-policy-id> port-redirect-group <queue-group-name> instance <instance-
id>
config# service {ies|vprn} <service-id>
interface <ip-int-name>
spoke-sdp <sdp-id:vc-id>
ingress
qos <network-policy-id> fp-redirect-group <queue-group-name> instance <instance-id>
egress
qos <network-policy-id> port-redirect-group <queue-group-name>
instance <instance-id>
config# service vpls <service-id>
{spoke-sdp|mesh-sdp} <sdp-id:vc-id>
ingress
qos <network-policy-id> fp-redirect-group <queue-group-name> instance <instance-id>
egress
qos <network-policy-id> port-redirect-group <queue-group-name>
instance <instance-id>
config# service pw-template <policy-id>
ingress
qos <network-policy-id> fp-redirect-group <queue-group-name> instance <instance-id>
egress
qos <network-policy-id> port-redirect-group <queue-group-name>
instance <instance-id>
tools perform service eval-pw-template policy-id
configure service
epipe 1 customer 1 create
spoke-sdp 1:1 vc-type vlan create
ingress
qos 10 fp-redirect-group "ingress-queue-group" instance 1
exit
egress
qos 10 port-redirect-group "egress-queue-group" instance 1
exit
no shutdown
exit
no shutdown
exit
*A:PE-1# show qos queue-group "ingress-queue-group" ingress detail
===============================================================================
QoS Queue-Group Ingress
===============================================================================
-------------------------------------------------------------------------------
QoS Queue Group
-------------------------------------------------------------------------------
Group-Name : ingress-queue-group
Description : (Not Specified)
-------------------------------------------------------------------------------
...
===============================================================================
Queue Group FP Maps
===============================================================================
Card Num Fp Num Instance Type
-------------------------------------------------------------------------------
7 1 1 Network
-------------------------------------------------------------------------------
Entries found: 1
-------------------------------------------------------------------------------
===============================================================================
Queue Group Policer
===============================================================================
Policer Id : 1
Description : (Not Specified)
PIR Adptn : closest CIR Adptn : closest
Parent : none Level : 1
Weight : 1 Adv. Cfg Plcy: none
Admin PIR : 6000 Admin CIR : 0
CBS : def MBS : def
Hi Prio Only : def Pkt Offset : 4
Profile Capped : Disabled
StatMode : minimal
===============================================================================
Policer Id : 2
Description : (Not Specified)
PIR Adptn : closest CIR Adptn : closest
Parent : none Level : 1
Weight : 1 Adv. Cfg Plcy: none
Admin PIR : 4000 Admin CIR : 0
CBS : def MBS : def
Hi Prio Only : def Pkt Offset : 4
Profile Capped : Disabled
StatMode : minimal
*A:PE-1# show qos queue-group "egress-queue-group" egress detail
===============================================================================
QoS Queue-Group Egress
===============================================================================
-------------------------------------------------------------------------------
QoS Queue Group
-------------------------------------------------------------------------------
Group-Name : egress-queue-group
Description : (Not Specified)
-------------------------------------------------------------------------------
Q CIR Admin PIR Admin CBS HiPrio PIR Lvl/Wt Parent BurstLimit(B)
CIR Rule PIR Rule MBS CIR Lvl/Wt Wred-Queue Slope
Named-Buffer Pool Adv Config Policy Name
-------------------------------------------------------------------------------
1 0 6000 def def 1/1 None default
closest closest def 0/1 disabled default
(not-assigned) (not-assigned)
...
===============================================================================
Queue Group Ports (network)
===============================================================================
Port Sched Pol Policer-Ctrl-Pol Acctg Pol Stats Description QGrp-Instance
-------------------------------------------------------------------------------
7/1/2 No 1
-------------------------------------------------------------------------------
...
===============================================================================
Queue Group Policer
===============================================================================
Policer Id : 1
Description : (Not Specified)
PIR Adptn : closest CIR Adptn : closest
Parent : none Level : 1
Weight : 1 Adv. Cfg Plcy: none
Admin PIR : 4000 Admin CIR : 0
CBS : def MBS : def
Hi Prio Only : def Pkt Offset : -22
Profile Capped : Disabled
StatMode : minimal
...
*A:PE-1# show qos queue-group ingress association
===============================================================================
QoS Queue-Group Ingress
===============================================================================
...
-------------------------------------------------------------------------------
QoS Queue Group
-------------------------------------------------------------------------------
Group-Name : ingress-queue-group
Description : (Not Specified)
...
===============================================================================
Queue Group FP Maps
===============================================================================
Card Num Fp Num Instance Type
-------------------------------------------------------------------------------
7 1 1 Network
-------------------------------------------------------------------------------
Entries found: 1
-------------------------------------------------------------------------------
...
===============================================================================
*A:PE-1# show qos queue-group egress association
===============================================================================
QoS Queue-Group Egress
===============================================================================
-------------------------------------------------------------------------------
QoS Queue Group
-------------------------------------------------------------------------------
Group-Name : egress-queue-group
Description : (Not Specified)
...
===============================================================================
Queue Group Ports (network)
===============================================================================
Port Sched Pol Policer-Ctrl-Pol Acctg Pol Stats Description QGrp-Instance
-------------------------------------------------------------------------------
7/1/2 No 1
-------------------------------------------------------------------------------
...
===============================================================================
*A:PE-1# show card 7 fp 1 ingress queue-group "ingress-queue-group" instance 1
mode network
===============================================================================
Card:7 Net.QGrp: ingress-queue-group Instance: 1
===============================================================================
Group Name : ingress-queue-group
Description : (Not Specified)
Pol Ctl Pol : None Acct Pol : None
Collect Stats : disabled
*A:PE-1# show qos policer card 7 fp 1 queue-group "ingress-queue-group" instance 1 network detail
===============================================================================
Policer Info (Net-FPQG-1-ingress-queue-group:1->1), Slot 7
===============================================================================
Policer Name : Net-FPQG-1-ingress-queue-group:1->1
Direction : Ingress Fwding Plane : 1
Depth PIR : 0 Bytes Depth CIR : 0 Bytes
Depth FIR : 0 Bytes
MBS : 7680 B CBS : 0 KB
Hi Prio Only : 768 B Pkt Byte Offset : 4
Admin PIR : 6000 Kbps Admin CIR : 0 Kbps
Oper PIR : 6000 Kbps Oper CIR : 0 Kbps
Oper FIR : 6000 Kbps
Stat Mode : minimal
PIR Adaption : closest CIR Adaption : closest
Adv.Cfg Plcy : None Profile Capped : disabled
Parent Arbiter Name: (Not Specified)
-------------------------------------------------------------------------------
Arbiter Member Information
-------------------------------------------------------------------------------
Offered Rate : 0 Kbps
Level : 0 Weight : 0
Parent PIR : 0 Kbps Parent FIR : 0 Kbps
Consumed : 0 Kbps
-------------------------------------------------------------------------------
===============================================================================
Policer Info (Net-FPQG-1-ingress-queue-group:1->2), Slot 7
===============================================================================
Policer Name : Net-FPQG-1-ingress-queue-group:1->2
Direction : Ingress Fwding Plane : 1
Depth PIR : 0 Bytes Depth CIR : 0 Bytes
Depth FIR : 0 Bytes
MBS : 5 KB CBS : 0 KB
Hi Prio Only : 512 B Pkt Byte Offset : 4
Admin PIR : 4000 Kbps Admin CIR : 0 Kbps
Oper PIR : 4000 Kbps Oper CIR : 0 Kbps
Oper FIR : 4000 Kbps
Stat Mode : minimal
PIR Adaption : closest CIR Adaption : closest
Adv.Cfg Plcy : None Profile Capped : disabled
Parent Arbiter Name: (Not Specified)
-------------------------------------------------------------------------------
Arbiter Member Information
-------------------------------------------------------------------------------
Offered Rate : 0 Kbps
Level : 0 Weight : 0
Parent PIR : 0 Kbps Parent FIR : 0 Kbps
Consumed : 0 Kbps
-------------------------------------------------------------------------------
===============================================================================
Network Interface Association
-------------------------------------------------------------------------------
No Association Found.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
SDP Association
-------------------------------------------------------------------------------
Policer Info (1->1:1->10), Slot 7
-------------------------------------------------------------------------------
SDP Association Count : 1
-------------------------------------------------------------------------------
*A:PE-1# show port 7/1/2 queue-group egress "egress-queue-group" network instance 1
===============================================================================
Ethernet port 7/1/2 Network Egress queue-group
===============================================================================
Group Name : egress-queue-group Instance-Id : 1
Description : (Not Specified)
Sched Policy : None Acct Pol : None
Collect Stats : disabled Agg. Limit : -1
Queues
-------------------------------------------------------------------------------
Queue-Group : egress-queue-group Instance-Id : 1 Queue-Id : 1
Description : (Not Specified)
Admin PIR : 6000* Admin CIR : 0*
PIR Rule : closest* CIR Rule : closest*
CBS : def* MBS : def*
Hi Prio : def*
Policers
-------------------------------------------------------------------------------
Queue-Group : egress-queue-group Instance-Id : 1 Policer-Id : 1
Description : (Not Specified)
Admin PIR : 4000* Admin CIR : 0*
PIR Rule : closest* CIR Rule : closest*
CBS : def* MBS : def*
Hi Prio : def*
* means the value is inherited
*A:PE-1# show qos network 10 detail
===============================================================================
QoS Network Policy
===============================================================================
-------------------------------------------------------------------------------
Network Policy (10)
-------------------------------------------------------------------------------
Policy-id : 10 Remark : False
Forward Class : be Profile : Out
LER Use DSCP : False
Description : (Not Specified)
...
-------------------------------------------------------------------------------
LSP EXP Bit Map Forwarding Class Profile
-------------------------------------------------------------------------------
5 ef In
...
-------------------------------------------------------------------------------
Egress Forwarding Class Mapping
-------------------------------------------------------------------------------
FC Value : 0 FC Name : be
- DSCP Mapping
Out-of-Profile : be In-Profile : be
...
DE Mark : None
Redirect Grp Q : 1 Redirect Grp Plcr: None
...
FC Value : 5 FC Name : ef
...
DE Mark : None
Redirect Grp Q : None Redirect Grp Plcr: 1
-------------------------------------------------------------------------------
Ingress Forwarding Class Mapping
-------------------------------------------------------------------------------
FC Value : 0 FC Name : be
Redirect UniCast Plcr : 1 Redirect MultiCast Plcr : None
...
FC Value : 5 FC Name : ef
Redirect UniCast Plcr : 2 Redirect MultiCast Plcr : None
...
*A:PE-1# show service id 1 sdp 1:1 detail
===============================================================================
Service Destination Point (Sdp Id : 1:1) Details
===============================================================================
-------------------------------------------------------------------------------
Sdp Id 1:1 -(192.0.2.2)
-------------------------------------------------------------------------------
Description : (Not Specified)
SDP Id : 1:1 Type : Spoke
Spoke Descr : (Not Specified)
VC Type : VLAN VC Tag : 0
Admin Path MTU : 0 Oper Path MTU : 9190
Delivery : MPLS
Far End : 192.0.2.2
Tunnel Far End : 192.0.2.2 LSP Types : LDP
Hash Label : Disabled Hash Lbl Sig Cap : Disabled
Oper Hash Label : Disabled
Admin State : Up Oper State : Up
...
Ingress Qos Policy : 10 Egress Qos Policy : 10
Ingress FP QGrp : ingress-queue-group Egress Port QGrp : egress-queue*
Ing FP QGrp Inst : 1 Egr Port QGrp Inst: 1
*A:PE-1# tools dump system-resources
Resource Manager info at 005 m 07/31/13 13:11:03.355:
Hardware Resource Usage for Slot #7, CardType imm5-10gb-xfp, Cmplx #0:
| Total | Allocated | Free
-------------------------------+-----------+-----------+------------
...
Dynamic Service Entries | 65535| 1| 65534
Subscriber Hosts | | 0|
Encap Group Members | | 0|
Egr Network Queue Group Mappings | | 1|
*A:PE-1# show card 7 fp 1 ingress queue-group "ingress-queue-group" instance 1 mode network statistics
===============================================================================
Card:7 Net.QGrp: ingress-queue-group Instance: 1
===============================================================================
Group Name : ingress-queue-group
Description : (Not Specified)
Pol Ctl Pol : None Acct Pol : None
Collect Stats : disabled
-------------------------------------------------------------------------------
Statistics
-------------------------------------------------------------------------------
Packets Octets
Ing. Policer: 1 Grp: ingress-queue-group (Stats mode: minimal)
Off. All : 184275 23587200
Dro. All : 36801 4710528
For. All : 147474 18876672
Ing. Policer: 2 Grp: ingress-queue-group (Stats mode: minimal)
Off. All : 184274 23587072
Dro. All : 85955 11002240
For. All : 98319 12584832
*A:PE-1# show port 7/1/2 queue-group egress "egress-queue-group" network statistics instance 1
-------------------------------------------------------------------------------
Ethernet port 7/1/2 Network Egress queue-group
-------------------------------------------------------------------------------
Packets Octets
Egress Queue: 1 Group: egress-queue-group Instance-Id: 1
In Profile forwarded : 0 0
In Profile dropped : 0 0
Out Profile forwarded : 150989 19326592
Out Profile dropped : 37123 4751744
Egress Policer: 1 Group: egress-queue-group Instance-Id: 1
Stats mode: minimal
Off. All : 188421 24117888
Dro. All : 87894 11250432
For. All : 100527 12867456
*A:PE-1# monitor port 7/1/2 queue-group "egress-queue-group" instance 1 egress network egress-queue 1 repeat 1 rate
===============================================================================
Monitor Port Queue-Group Egress Network Queue Statistics
===============================================================================
-------------------------------------------------------------------------------
At time t = 0 sec (Base Statistics)
-------------------------------------------------------------------------------
Packets Octets
In Profile forwarded : 0 0
In Profile dropped : 0 0
Out Profile forwarded : 299113 38286464
Out Profile dropped : 74155 9491840
-------------------------------------------------------------------------------
At time t = 11 sec (Mode: Rate)
-------------------------------------------------------------------------------
Packets/sec Octets/sec % Port
Util.
In Profile forwarded : 0 0 0.00
In Profile dropped : 0 0 0.00
Out Profile forwarded : 5863 750436 0.06
Out Profile dropped : 1466 187609 0.01
===============================================================================
*A:PE-1# monitor port 7/1/2 queue-group "egress-queue-group" instance 1 egress network policer 1 repeat 1 rate
===============================================================================
Monitor Port Queue-Group Egress Network Policer Statistics
===============================================================================
-------------------------------------------------------------------------------
At time t = 0 sec (Base Statistics)
-------------------------------------------------------------------------------
Packets Octets
Off. All : 454750 58208000
Dro. All : 212181 27159168
For. All : 242569 31048832
-------------------------------------------------------------------------------
At time t = 11 sec (Mode: Rate)
-------------------------------------------------------------------------------
Packets/sec Octets/sec % Port
Util.
Off. All : 7326 937716 0.07
Dro. All : 3419 437609 0.03
For. All : 3907 500108 0.04
===============================================================================
*A:PE-1#
*A:PE-1# show port 7/1/2 detail
===============================================================================
Ethernet Interface
===============================================================================
Description : 10-Gig Ethernet
Interface : 7/1/2 Oper Speed : 10 Gbps
Link-level : Ethernet Config Speed : N/A
Admin State : up Oper Duplex : full
Oper State : up Config Duplex : N/A
...
===============================================================================
Queue Statistics
===============================================================================
-------------------------------------------------------------------------------
...
Egress Queue 6 Packets Octets
In Profile forwarded : 0 0
In Profile dropped : 0 0
Out Profile forwarded : 102381 15357150
Out Profile dropped : 0 0