Consider the
following topology:
TG1====(Gi1/5)NID-3(Gi1/4)====(Gi0/1ME 1200
NIDGi0/20)====(Gi1/5)NID-4(Gi1/6)====TG2
Cast: Multi
Ended: Single
Configuration on
Cisco ME 1200 NID-3
ProvisionEVC
addEVC evcConfiguration instance 1024
addEVC evcConfiguration internal_vid 1024
addEVC evcConfiguration learning enable
addEVC evcConfiguration nni_ports GigabitEthernet_4_NNI enable
addEVC evcConfiguration nni_vid 1024
addEVC commit
exit
ProvisionEVC
addECE ece_configuration ece_id 1024
addECE ece_configuration control ingress_match uni_ports GigabitEthernet_5_UNI enable
addECE ece_configuration control ingress_match outer_tag_match match_type tagged
addECE ece_configuration control ingress_match outer_tag_match match_fields vlan_id_filter specific 1024
addECE ece_configuration control egress_outer_tag mode enabled
addECE ece_configuration control egress_outer_tag pcp_mode fixed
addECE ece_configuration control egress_outer_tag pcp_value 7
addECE ece_configuration control actions class specific 7
addECE ece_configuration control actions evc_id specific 1024
addECe commit
exit
ProvisionMepPortType
createMep createMepConfig mepInstance 98
createMep createMepConfig direction DOWN
createMep createMepConfig domain EVC
createMep createMepConfig flowId 1024
createMep createMepConfig level 0
createMep createMepConfig megDomain maName LM-Check
createMep createMepConfig megDomain megIdFormat ituMeg
createMep createMepConfig mepId 105
createMep createMepConfig mode MEP
createMep createMepConfig residencePort 4
createMep createMepConfig voe enable
createMep commit
addPeerMepId peerMepConfig mepInstance 98
addPeerMepId peerMepConfig peerMepId 106
addPeerMepId commit
addCcAps mepFunctionalConfig mepInstance 98
addCcAps mepFunctionalConfig cc enable priority 7
addCcAps mepFunctionalConfig cc enable frameRate fr1s
addCcAps commit
exit
opearationsMepPortType
setLM lmConfig mepInstance 98
setLM lmConfig lmAction enable cast multi
setLM lmConfig lmAction enable frameRate fr1s
setLM lmConfig lmAction enable mode single
setLM lmConfig lmAction enable priority 7
setLM commit
exit
Configuration on
Cisco ME 1200 NID-4
ProvisionEVC
addEVC evcConfiguration instance 1024
addEVC evcConfiguration internal_vid 1024
addEVC evcConfiguration learning enable
addEVC evcConfiguration nni_ports GigabitEthernet_5_NNI enable
addEVC evcConfiguration nni_vid 1024
addEVC commit
exit
ProvisionEVC
addECE ece_configuration ece_id 1024
addECE ece_configuration control ingress_match uni_ports GigabitEthernet_6_UNI enable
addECE ece_configuration control ingress_match outer_tag_match match_type tagged
addECE ece_configuration control ingress_match outer_tag_match match_fields vlan_id_filter specific 1024
addECE ece_configuration control egress_outer_tag mode enabled
addECE ece_configuration control egress_outer_tag pcp_mode fixed
addECE ece_configuration control egress_outer_tag pcp_value 7
addECE ece_configuration control actions class specific 7
addECE ece_configuration control actions evc_id specific 1024
addECe commit
exit
ProvisionMepPortType
createMep createMepConfig mepInstance 98
createMep createMepConfig direction DOWN
createMep createMepConfig domain EVC
createMep createMepConfig flowId 1024
createMep createMepConfig level 0
createMep createMepConfig megDomain maName LM-Check
createMep createMepConfig megDomain megIdFormat ituMeg
createMep createMepConfig mepId 106
createMep createMepConfig mode MEP
createMep createMepConfig residencePort 5
createMep createMepConfig voe enable
createMep commit
addPeerMepId peerMepConfig mepInstance 98
addPeerMepId peerMepConfig peerMepId 105
addPeerMepId commit
addCcAps mepFunctionalConfig mepInstance 98
addCcAps mepFunctionalConfig cc enable priority 7
addCcAps mepFunctionalConfig cc enable frameRate fr1s
addCcAps commit
exit
opearationsMepPortType
setLM lmConfig mepInstance 98
setLM lmConfig lmAction enable cast multi
setLM lmConfig lmAction enable frameRate fr1s
setLM lmConfig lmAction enable mode single
setLM lmConfig lmAction enable priority 7
setLM commit
exit
Configuration on the
ME 3600
Switch# show policy-map lm-v1024
Policy Map lm-v1024
Class lm-v1024
police cir 1000000 bc 31250
conform-action transmit
exceed-action drop
Switch# show class-map lm-v1024
Class Map match-all lm-v1024 (id 2)
Match dscp af12 (12)
Switch#
!
interface GigabitEthernet0/1
switchport trunk allowed vlan none
switchport mode trunk
!
service instance 1024 ethernet
encapsulation dot1q 1024
bridge-domain 1024
!
!
interface GigabitEthernet0/20
switchport trunk allowed vlan none
switchport mode trunk
service-policy input lm-v1024
!
service instance 1024 ethernet
encapsulation dot1q 1024
bridge-domain 1024
!
Send 20Mbps traffic
from TG2 on VLAN 1024 with DSCP set to af12
Switch(OpearationsMepPortType)# showLM mepRequest mepInstance 98
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.mepInstance = 98
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.priority = 7
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.cast.t = 2
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.cast.u.multi = 'multi'
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.mode.t = 2
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.mode.u.single = 'single'
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.frameRate.t = 3
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.frameRate.u.fr1s = 'fr1s'
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.flr = 5
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.mepInstance = 98
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.tx = 85
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.rx = 85
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.nearCount = 180123
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.farCount = 0
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.nearRatio = 94
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.farRatio = 0
To view loss
measurement:
Switch# OpearationsMepPortType
Switch(OpearationsMepPortType)# showlm mepRequest mepInstance 98
Switch(OpearationsMepPortType)# showlm review
Commands in queue:
showLM mepRequest mepInstance 98
Switch(OpearationsMepPortType)# showlm commit
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.mepInstance = 98
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.priority = 7
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.cast.t = 2
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.cast.u.multi = 'multi'
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.mode.t = 2
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.mode.u.single = 'single'
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.frameRate.t = 3
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.frameRate.u.fr1s = 'fr1s'
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.flr = 5
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.mepInstance = 98
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.tx = 137
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.rx = 137
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.nearCount = 0
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.farCount = 1105217
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.nearRatio = 0
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.farRatio = 94
showLM Commit Success!!!
Switch(OpearationsMepPortType)#
To stop traffic, do
the following:
Switch# show policy-map int gi 0/20
GigabitEthernet0/20
Service-policy input: lm-v1024
Class-map: lm-v1024 (match-all)
2175126 packets, 287116632 bytes
5 minute offered rate 5839000 bps, drop rate 5512000 bps
Match: dscp af12 (12)
police:
cir 1000000 bps, bc 31250 bytes
conform-action transmit
exceed-action drop
conform: 122168 (packets) 16126176 (bytes)
exceed: 2052958 (packets) 270990456 (bytes)
conform: 331000 bps, exceed: 5512000 bps
Input Policer:
Policer Packets Drop: 2052958
Policer Bytes Drop: 270990456
Class-map: class-default (match-any)
3606 packets, 293801 bytes
5 minute offered rate 10000 bps, drop rate 0000 bps
Match: any
To view loss
measurement:
(OpearationsMepPortType)# showlm review
Commands in queue:
showLM mepRequest mepInstance 98
Switch(OpearationsMepPortType)# showlm commit
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.mepInstance = 98
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.priority = 7
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.cast.t = 2
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.cast.u.multi = 'multi'
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.mode.t = 2
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.mode.u.single = 'single'
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.frameRate.t = 3
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.frameRate.u.fr1s = 'fr1s'
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.flr = 5
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.mepInstance = 98
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.tx = 349
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.rx = 349
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.nearCount = 2052958
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.farCount = 0
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.nearRatio = 0
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.farRatio = 0
showLM Commit Success!!!
Switch#OpearationsMepPortType
Switch(OpearationsMepPortType)# showlm review
Commands in queue:
showLM mepRequest mepInstance 98
Switch(OpearationsMepPortType)# showlm commit
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.mepInstance = 98
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.priority = 7
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.cast.t = 2
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.cast.u.multi = 'multi'
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.mode.t = 2
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.mode.u.single = 'single'
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.frameRate.t = 3
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.frameRate.u.fr1s = 'fr1s'
ShowLM_Output.lossMeasurentInfo.mepInst[0].config.flr = 5
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.mepInstance = 98
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.tx = 358
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.rx = 358
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.nearCount = 0
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.farCount = 2052958
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.nearRatio = 0
ShowLM_Output.lossMeasurentInfo.mepInst[0].state.farRatio = 0
showLM Commit Success!!!
(OpearationsMepPortType)#