Escolar Documentos
Profissional Documentos
Cultura Documentos
DiffServTunnelingModesforMPLSNetworksCisco
DiffServTunnelingModesforMPLSNetworks
DocumentID: 47815 Updated: Feb15,2008
Contents
Introduction
Prerequisites
Requirements
ComponentsUsed
Conventions
BackgroundInformation
DefaultBehavior
PreCiscoIOSSoftware12.2(13)TCommandUsageandBehavior
PostCiscoIOSSoftware12.2(13)TCommandUsageandBehavior
DiffServTunnelingModes
UniformMode
PipeMode
ShortPipeMode
TunnelModeSummary
RelatedInformation
Introduction
ThisdocumentdescribestheimplementationofDifferentiatedServices(DiffServ)TunnelingModesavailablefor
MultiprotocolLabelSwitching(MPLS)basednetworkenvironments.
Prerequisites
Requirements
Readersofthisdocumentshouldhaveknowledgeofthesetopics:
MPLSandMPLSforVirtualPrivateNetworks(VPN)
ConceptsrelatingtoIPprecedence,TypeofService(ToS)andDiffServ
QualityofService(QoS)PacketMarkingandClassificationusingModularQoSCommandLineInterfaceCLI
(MQC)
ComponentsUsed
Theinformationinthisdocumentisbasedonthesesoftwareandhardwareversions:
CiscoIOSSoftwareRelease12.2(13)TfornewQoSfeatures.Release12.1(5)TincludesoriginalQoS
http://www.cisco.com/c/en/us/support/docs/multiprotocollabelswitchingmpls/mpls/47815diffservtunnel.html
1/16
12/10/2015
DiffServTunnelingModesforMPLSNetworksCisco
features.
AnyCiscorouterfromthe3600seriesorlater,suchastheCisco3660or7206thatsupportMPLSprovider
core(P)router/provideredge(PE)routerfunctionality.
Theinformationinthisdocumentwascreatedfromthedevicesinaspecificlabenvironment.Allofthedevices
usedinthisdocumentstartedwithacleared(default)configuration.Ifyournetworkislive,makesurethatyou
understandthepotentialimpactofanycommand.
Conventions
Formoreinformationondocumentconventions,refertotheCiscoTechnicalTipsConventions.
BackgroundInformation
DefaultBehavior
ThisdiagramdescribesthedefaultbehavioroftheDiffServCodePoint(DSCP)/MPLSExperimental(EXP)bitsas
apackettravelsfromonecustomeredge(CE)routertoanotherCErouteracrossanMPLScore:
ThisremainderofthissectiondescribestheactivitywithintheDefaultBehaviordiagram.
ImpositionofLabel(IP>Label):
TheIPprecedenceoftheincomingIPpacketiscopiedtotheMPLSEXPbitsofallpushedlabel(s).
The1stthreebitsoftheDSCPbitiscopiedtotheMPLSEXPbitsofallpushedlabel(s).
ThistechniqueisalsoknownasToSReflection.
MPLSforwarding(Label>Label):
TheEXPiscopiedtothenewlabelsthatareswapped/pushedduringforwardingorimposition.
Atlabelimposition,theunderlyinglabelsarenotmodifiedwiththevalueofthenewlabelbeingaddedtothe
currentlabelstack.
Atlabeldisposition,theEXPbitsarenotcopieddowntothenewlyexposedlabelEXPbits.
DispositionofLabel(Label>IP):
AtlabeldispositiontheEXPbitsarenotcopieddowntotheIPprecedence/DSCPfieldofthenewlyexposedIP
packet.
http://www.cisco.com/c/en/us/support/docs/multiprotocollabelswitchingmpls/mpls/47815diffservtunnel.html
2/16
12/10/2015
DiffServTunnelingModesforMPLSNetworksCisco
PreCiscoIOSSoftware12.2(13)TCommandUsageandBehavior
BeforeIOSRelease12.2(13)T,thesetmplsexperimentalcommandwastheonlymethodavailabletomodify
theMPLSEXPbits.
PostCiscoIOSSoftware12.2(13)TCommandUsageandBehavior
WithIOSRelease12.2(13)Tandlater,thesetmplsexperimentalcommandismodifiedtoallowtheseoptions:
setmplsexperimentaltopmost{mplsexpvalue|qosgroup[tabletablemapname]}
setmplsexperimentalimposition{mplsexpvalue|qosgroup[tabletablemapname]}
Note:Thenewsetmplsexperimentaltopmostcommandisequivalenttotheoldsetmplsimposition
command.
Thesetwocommands,incombinationwithsomenewcommandswitches,allowbettercontrolofMPLSEXPbits
manipulationduringlabelpush,swap,andpopoperations.ThesetwocommandsallowyoutouseDiffServ
TunnelingModes.
DiffServTunnelingModes
DiffservTunnelingModesintroducesanewPerHopBehavior(PHB),whichallowsdifferentiatedQoSina
providersnetwork.Thetunnelingmodeisdefinedattheedgeofthenetwork,normallyinthePElabelswitch
routers(LSRs)(bothingressandegress).YoumayneedtomakechangesintheProutersyoumustalso
considerwhatoccurswhenthetopmostlabelisremovedfromapacketduetoPenultimateHopPopping(PHP).It
maybenecessarytocopytheMPLSEXPvaluefromthetoplabelthatisbeingpoppedtothenewlyexposed
labelthisdoesnotalwaysapplytoalltunnelingmodes.
Insomecases(forexample,aplainnonVPNMPLSnetwork),thePHPactiononthefinalProutercanexposea
plainIPpacketwhenapacketwithonlyonelabelisreceived.WhenthisIPpacketisreceivedbytheegressLSR
(PE),itisnotpossibletoclassifythepacketbasedontheMPLSEXPbitsbecausethereisnolabelnow.In
thesesituations,youmustconfiguretheegressPEroutertoadvertiseanexplicitnulllabel.WhenthePHP
actionisperformedontheProuter,alabelwithavalueofzeroissent,andwiththisspeciallabelyoucanmark
theEXPbitsasnormallylabeledpackets,allowingthecorrectclassificationontheegressPErouter.
TheMPLSnetworksupportofDiffservspecificationdefinesthesetunnelingmodes:
Uniform
Pipe
ShortPipe
Thenextsectionsexamineeachtunnelingmodeseparately,andprovideexamplestoshowhoweachtunneling
modecanbeconfigured.TheexamplesincludeafullmappingofIPPrecedencetoMPLSEXPbits.Itispossible
tohaveanumberofdifferentQoSparametersandtunnelingmodesforeachcustomer.
Note:TheconfigurationexamplesarenotspecificforMPLSVPN,andareapplicableforplainMPLSnetworks
andCarriersupportedCarrier(CsC)networks.Itisalsopossiblethatyournetworkcanvaryfromanothernetwork
manydifferentQoSparametersandtunnelingmodescanbeused.
UniformMode
DiffServTunnelingUniformModehasonlyonelayerofQoS,whichreachesendtoend.TheingressPErouter
(PE1)copiestheDSCPfromtheincomingIPpacketintotheMPLSEXPbitsoftheimposedlabels.AstheEXP
bitstravelthroughthecore,theymayormaynotbemodifiedbyintermediateProuters.Inthisexample,Prouter
P1modifiestheEXPbitsofthetoplabel.AttheegressProuter(P2)wecopytheEXPbitstotheEXPbitsof
thenewlyexposedlabelafterthePHP(PenultimateHopPop).FinallyattheegressPErouter(PE2)wethencopy
theEXPbitstotheDSCPbitsofthenewlyexposedIPpacket.
http://www.cisco.com/c/en/us/support/docs/multiprotocollabelswitchingmpls/mpls/47815diffservtunnel.html
3/16
12/10/2015
DiffServTunnelingModesforMPLSNetworksCisco
Uniformmodeconfigurations:
PE1
!ThisconfigurationmapstheIPPrecedence!oftheincomingIPpacketstotheMPLSEXPbi
ts.
classmapmatchallIPAF11
matchipprecedence0
classmapmatchallIPAF12
matchipprecedence1
classmapmatchallIPAF21
matchipprecedence2
classmapmatchallIPAF22
matchipprecedence3
classmapmatchallIPAF31
matchipprecedence4
classmapmatchallIPAF32
matchipprecedence5
classmapmatchallMPLSAF11
matchmplsexperimentaltopmost0
classmapmatchallMPLSAF12
matchmplsexperimentaltopmost1
classmapmatchallMPLSAF21
matchmplsexperimentaltopmost2
classmapmatchallMPLSAF22
matchmplsexperimentaltopmost3
classmapmatchallMPLSAF31
matchmplsexperimentaltopmost4
classmapmatchallMPLSAF32
matchmplsexperimentaltopmost5
policymapsetMPLSPHB
classIPAF11
police8000conformactionsetmplsexpimpositiontransmit
0exceedactiondrop
classIPAF12
police10000conformactionsetmplsexpimpositiontransmit
1exceedactionsetmplsexpimpositiontransmit0
classIPAF21
police12000conformactionsetmplsexpimpositiontransmit
http://www.cisco.com/c/en/us/support/docs/multiprotocollabelswitchingmpls/mpls/47815diffservtunnel.html
4/16
12/10/2015
DiffServTunnelingModesforMPLSNetworksCisco
2exceedactionsetmplsexpimpositiontransmit1
classIPAF22
police12000conformactionsetmplsexpimpositiontransmit
3exceedactionsetmplsexpimpositiontransmit2
classIPAF31
police12000conformactionsetmplsexpimpositiontransmit
4exceedactionsetmplsexpimpositiontransmit3
classIPAF32
police12000conformactionsetmplsexpimpositiontransmit
5exceedactionsetmplsexpimpositiontransmit4
policymapoutputqos
classMPLSAF11
bandwidthpercent5
randomdetect
classMPLSAF12
bandwidthpercent10
randomdetect
classMPLSAF21
bandwidthpercent10
randomdetect
classMPLSAF22
bandwidthpercent15
randomdetect
classMPLSAF31
bandwidthpercent20
randomdetect
classMPLSAF32
bandwidthpercent30
randomdetect
interfaceEthernet0/0
ipaddress192.168.0.1255.255.255.0
maxreservedbandwidth90
servicepolicyoutputoutputqos
tagswitchingip
!
interfaceEthernet1/0
ipvrfforwardingv1
ipaddress10.0.0.2255.255.255.0
servicepolicyinputsetMPLSPHB
!
P1
!Thisconfigurationswapsthetoplabelfrom3to2,!whichdoesnotneedtooccurtofollowth
ion.
classmapmatchallmplsin
matchmplsexperimentaltopmost3
!
policymapmplsin
classmplsin
setmplsexperimentaltopmost2
!
interfaceEthernet0/0
ipaddress192.168.1.1255.255.255.0
tagswitchingip
!
interfaceEthernet1/0
http://www.cisco.com/c/en/us/support/docs/multiprotocollabelswitchingmpls/mpls/47815diffservtunnel.html
5/16
12/10/2015
DiffServTunnelingModesforMPLSNetworksCisco
ipaddress192.168.0.2255.255.255.0
servicepolicyinputmplsin
tagswitchingip
!
P2
!RemembertocopydowntheMPLSEXPvalue!fromthenewlyexposedlabelaftertheP
HP.
classmapmatchallMPLSAF11
matchmplsexperimentaltopmost0
classmapmatchallMPLSAF12
matchmplsexperimentaltopmost1
classmapmatchallMPLSAF21
matchmplsexperimentaltopmost2
classmapmatchallMPLSAF22
matchmplsexperimentaltopmost3
classmapmatchallMPLSAF31
matchmplsexperimentaltopmost4
classmapmatchallMPLSAF32
matchmplsexperimentaltopmost5
!
classmapmatchallqosgroupAF11
matchqosgroup0
classmapmatchallqosgroupAF12
matchqosgroup1
classmapmatchallqosgroupAF21
matchqosgroup2
classmapmatchallqosgroupAF22
matchqosgroup3
classmapmatchallqosgroupAF31
matchqosgroup4
classmapmatchallqosgroupAF32
matchqosgroup5
!
policymapqosgroupin
classMPLSAF11
setqosgroupmplsexperimentaltopmost
classMPLSAF12
setqosgroupmplsexperimentaltopmost
classMPLSAF21
setqosgroupmplsexperimentaltopmost
classMPLSAF22
setqosgroupmplsexperimentaltopmost
classMPLSAF31
setqosgroupmplsexperimentaltopmost
classMPLSAF32
setqosgroupmplsexperimentaltopmost
!
policymapqosgroupout
classqosgroupAF11
bandwidthpercent5
randomdetect
setmplsexperimentaltopmostqosgroup
classqosgroupAF12
bandwidthpercent10
randomdetect
setmplsexperimentaltopmostqosgroup
classqosgroupAF21
http://www.cisco.com/c/en/us/support/docs/multiprotocollabelswitchingmpls/mpls/47815diffservtunnel.html
6/16
12/10/2015
DiffServTunnelingModesforMPLSNetworksCisco
bandwidthpercent10
randomdetect
setmplsexperimentaltopmostqosgroup
classqosgroupAF22
bandwidthpercent15
randomdetect
setmplsexperimentaltopmostqosgroup
classqosgroupAF31
bandwidthpercent20
randomdetect
setmplsexperimentaltopmostqosgroup
classqosgroupAF32
bandwidthpercent30
randomdetect
setmplsexperimentaltopmostqosgroup
!
interfaceEthernet0/0
ipaddress192.168.2.1255.255.255.0
maxreservedbandwidth90
servicepolicyoutputqosgroupout
tagswitchingip
!
interfaceEthernet1/0
ipaddress192.168.1.2255.255.255.0
servicepolicyinputqosgroupin
tagswitchingip
!
PE2
!RemembertocopydowntheMPLSEXPbitstotheIPPrecedence!ofthenewlyexposedIPpac
ket.
classmapmatchallMPLSAF11
matchmplsexperimentaltopmost0
classmapmatchallMPLSAF12
matchmplsexperimentaltopmost1
classmapmatchallMPLSAF21
matchmplsexperimentaltopmost2
classmapmatchallMPLSAF22
matchmplsexperimentaltopmost3
classmapmatchallMPLSAF31
matchmplsexperimentaltopmost4
classmapmatchallMPLSAF32
matchmplsexperimentaltopmost5
!
classmapmatchallqosgroupAF11
matchqosgroup0
classmapmatchallqosgroupAF12
matchqosgroup1
classmapmatchallqosgroupAF21
matchqosgroup2
classmapmatchallqosgroupAF22
matchqosgroup3
classmapmatchallqosgroupAF31
matchqosgroup4
classmapmatchallqosgroupAF32
matchqosgroup5
!
policymapqosgroupin
http://www.cisco.com/c/en/us/support/docs/multiprotocollabelswitchingmpls/mpls/47815diffservtunnel.html
7/16
12/10/2015
DiffServTunnelingModesforMPLSNetworksCisco
classMPLSAF11
setqosgroupmplsexperimentaltopmost
classMPLSAF12
setqosgroupmplsexperimentaltopmost
classMPLSAF21
setqosgroupmplsexperimentaltopmost
classMPLSAF22
setqosgroupmplsexperimentaltopmost
classMPLSAF31
setqosgroupmplsexperimentaltopmost
classMPLSAF32
setqosgroupmplsexperimentaltopmost
!
policymapqosgroupout
classqosgroupAF11
bandwidthpercent5
randomdetect
setprecedenceqosgroup
classqosgroupAF12
bandwidthpercent10
randomdetect
setprecedenceqosgroup
classqosgroupAF21
bandwidthpercent10
randomdetect
setprecedenceqosgroup
classqosgroupAF22
bandwidthpercent15
randomdetect
setprecedenceqosgroup
classqosgroupAF31
bandwidthpercent20
randomdetect
setprecedenceqosgroup
classqosgroupAF32
bandwidthpercent30
randomdetect
setprecedenceqosgroup
!
interfaceEthernet0/0
ipvrfforwardingv1
ipaddress10.0.1.1255.255.255.0
maxreservedbandwidth90
servicepolicyoutputqosgroupout
!
interfaceEthernet1/0
ipaddress192.168.2.2255.255.255.0
servicepolicyinputqosgroupin
tagswitchingip
!
PipeMode
DiffservTunnelingPipeModeusestwolayersofQoS:
AnunderlyingQoSforthedata,whichremainsunchangedwhentraversingthecore.
ApercoreQoS,whichisseparatefromthatoftheunderlyingIPpackets.ThispercoreQoSPHBremains
transparenttoendusers.
WhenapacketreachestheedgeoftheMPLScore,theegressPErouter(PE2)classifiesthenewlyexposedIP
http://www.cisco.com/c/en/us/support/docs/multiprotocollabelswitchingmpls/mpls/47815diffservtunnel.html
8/16
12/10/2015
DiffServTunnelingModesforMPLSNetworksCisco
packetsforoutboundqueuingbasedontheMPLSPHBfromtheEXPbitsoftherecentlyremovedlabel.
Pipemodeconfigurations:
!Oninput,theIPPrecedenceiscopiedtotheMPLSEXP!onlabelimpositionandwhenleavingth
opmost).
classmapmatchallIPAF22
matchipprecedence01
classmapmatchallIPAF31
matchipprecedence23
classmapmatchallIPAF32
matchipprecedence45
!
classmapmatchallbronze
matchmplsexperimentaltopmost23
classmapmatchallsilver
matchmplsexperimentaltopmost4
classmapmatchallgold
matchmplsexperimentaltopmost5
!
policymapsetMPLSPHB
classIPAF22
police12000conformactionsetmplsexpimpositiontransmit
3exceedactionsetmplsexpimpositiontransmit2
classIPAF31
police12000conformactionsetmplsexpimpositiontransmit
4exceedactionsetmplsexpimpositiontransmit3
classIPAF32
police12000conformactionsetmplsexpimpositiontransmit
5exceedactionsetmplsexpimpositiontransmit4
!
policymapoutputqos
classgold
bandwidth40
randomdetect
classsilver
bandwidth30
randomdetect
classbronze
http://www.cisco.com/c/en/us/support/docs/multiprotocollabelswitchingmpls/mpls/47815diffservtunnel.html
9/16
12/10/2015
DiffServTunnelingModesforMPLSNetworksCisco
bandwidth20
randomdetect
!
interfaceEthernet0/0
ipaddress192.168.0.1255.255.255.0
maxreservedbandwidth90
servicepolicyoutputoutputqos
tagswitchingip
!
interfaceEthernet1/0
ipvrfforwardingv1
ipaddress10.0.0.2255.255.255.0
servicepolicyinputsetMPLSPHB
!
P1
!Thisconfigurationswapsthetoplabelfrom4to5,!whichdoesnotneedtooccurtofollowth
ion.
classmapmatchallmplsin
matchmplsexperimentaltopmost4
!
policymapmplsin
classmplsin
setmplsexperimentaltopmost5
!
interfaceEthernet0/0
ipaddress192.168.1.1255.255.255.0
tagswitchingip
!
interfaceEthernet1/0
ipaddress192.168.0.2255.255.255.0
servicepolicyinputmplsin
tagswitchingip
!
P2
!RemembertocopydowntheMPLSEXPvaluefrom!thenewlyexposedlabelaftertheP
HP.
classmapmatchallMPLSAF11
matchmplsexperimentaltopmost0
classmapmatchallMPLSAF12
matchmplsexperimentaltopmost1
classmapmatchallMPLSAF21
matchmplsexperimentaltopmost2
classmapmatchallMPLSAF22
matchmplsexperimentaltopmost3
classmapmatchallMPLSAF31
matchmplsexperimentaltopmost4
classmapmatchallMPLSAF32
matchmplsexperimentaltopmost5
!
http://www.cisco.com/c/en/us/support/docs/multiprotocollabelswitchingmpls/mpls/47815diffservtunnel.html
10/16
12/10/2015
DiffServTunnelingModesforMPLSNetworksCisco
classmapmatchallgold
matchqosgroup5
classmapmatchallsilver
matchqosgroup4
classmapmatchallbronze
matchqosgroup3
matchqosgroup2
!
policymapqosgroupin
classMPLSAF11
setqosgroupmplsexperimentaltopmost
classMPLSAF12
setqosgroupmplsexperimentaltopmost
classMPLSAF21
setqosgroupmplsexperimentaltopmost
classMPLSAF22
setqosgroupmplsexperimentaltopmost
classMPLSAF31
setqosgroupmplsexperimentaltopmost
classMPLSAF32
setqosgroupmplsexperimentaltopmost
!
policymapqosgroupout
classgold
bandwidth40
randomdetect
setmplsexperimentaltopmostqosgroup
classsilver
bandwidth30
randomdetect
setmplsexperimentaltopmostqosgroup
classbronze
bandwidth20
randomdetect
setmplsexperimentaltopmostqosgroup
!
interfaceEthernet0/0
ipaddress192.168.2.1255.255.255.0
maxreservedbandwidth90
servicepolicyoutputqosgroupout
tagswitchingip
!
interfaceEthernet1/0
ipaddress192.168.1.2255.255.255.0
servicepolicyinputqosgroupin
tagswitchingip
!
PE2
!RemembertoqueuethenewlyexposedIPpacketbasedin!theMPLSEXPbitsofthelabelwejust
alue.
classmapmatchallMPLSAF11
matchmplsexperimentaltopmost0
classmapmatchallMPLSAF12
matchmplsexperimentaltopmost1
classmapmatchallMPLSAF21
matchmplsexperimentaltopmost2
classmapmatchallMPLSAF22
http://www.cisco.com/c/en/us/support/docs/multiprotocollabelswitchingmpls/mpls/47815diffservtunnel.html
11/16
12/10/2015
DiffServTunnelingModesforMPLSNetworksCisco
matchmplsexperimentaltopmost3
classmapmatchallMPLSAF31
matchmplsexperimentaltopmost4
classmapmatchallMPLSAF32
matchmplsexperimentaltopmost5
!
classmapmatchallgold
matchqosgroup5
classmapmatchallsilver
matchqosgroup4
classmapmatchallbronze
matchqosgroup3
matchqosgroup2
!
policymapqosgroupin
classMPLSAF11
setqosgroupmplsexperimentaltopmost
setdiscardclass0
classMPLSAF12
setqosgroupmplsexperimentaltopmost
setdiscardclass1
classMPLSAF21
setqosgroupmplsexperimentaltopmost
setdiscardclass2
classMPLSAF22
setqosgroupmplsexperimentaltopmost
setdiscardclass3
classMPLSAF31
setqosgroupmplsexperimentaltopmost
setdiscardclass4
classMPLSAF32
setqosgroupmplsexperimentaltopmost
setdiscardclass5
!
policymapqosgroupout
classgold
bandwidth40
randomdetectdiscardclassbased
classsilver
bandwidth30
randomdetectdiscardclassbased
classbronze
bandwidth20
randomdetectdiscardclassbased
!
interfaceEthernet0/0
ipvrfforwardingv1
ipaddress10.0.1.1255.255.255.0
maxreservedbandwidth90
servicepolicyoutputqosgroupout
!
interfaceEthernet1/0
ipaddress192.168.2.2255.255.255.0
servicepolicyinputqosgroupin
tagswitchingip
!
ShortPipeMode
DiffservTunnelingShortpipeModeusesthesamerulesandtechniquesacrossthecore.Thedifferenceisatthe
egressPErouter(PE2)youclassifythenewlyexposedIPpacketsforoutboundqueuingbasedontheIPPHB
http://www.cisco.com/c/en/us/support/docs/multiprotocollabelswitchingmpls/mpls/47815diffservtunnel.html
12/16
12/10/2015
DiffServTunnelingModesforMPLSNetworksCisco
fromtheDSCPvalueofthisIPpacket.
Shortpipemodeconfigurations:
!Oninput,theIPPrecedentiscopiedtotheMPLSEXP!onlabelimposition.Whenleavingthero
pmost).
classmapmatchallIPAF22
matchipprecedence01
classmapmatchallIPAF31
matchipprecedence23
classmapmatchallIPAF32
matchipprecedence45
!
classmapmatchallbronze
matchmplsexperimentaltopmost23
classmapmatchallsilver
matchmplsexperimentaltopmost4
classmapmatchallgold
matchmplsexperimentaltopmost5
!
policymapsetMPLSPHB
classIPAF22
police12000conformactionsetmplsexpimpositiontransmit
3exceedactionsetmplsexpimpositiontransmit2
classIPAF31
police12000conformactionsetmplsexpimpositiontransmit
4exceedactionsetmplsexpimpositiontransmit3
classIPAF32
police12000conformactionsetmplsexpimpositiontransmit
5exceedactionsetmplsexpimpositiontransmit4
!
policymapoutputqos
classgold
bandwidth40
randomdetect
classsilver
bandwidth30
randomdetect
classbronze
http://www.cisco.com/c/en/us/support/docs/multiprotocollabelswitchingmpls/mpls/47815diffservtunnel.html
13/16
12/10/2015
DiffServTunnelingModesforMPLSNetworksCisco
bandwidth20
randomdetect
!
interfaceEthernet0/0
ipaddress192.168.0.1255.255.255.0
maxreservedbandwidth90
servicepolicyoutputoutputqos
tagswitchingip
!
interfaceEthernet1/0
ipvrfforwardingv1
ipaddress10.0.0.2255.255.255.0
servicepolicyinputsetMPLSPHB
!
P1
!Thisconfigurationswapsthetoplabelfrom4to5,!whichdoesnotneedtooccurtofollowth
ion.
classmapmatchallmplsin
matchmplsexperimentaltopmost4
!
policymapmplsin
classmplsin
setmplsexperimentaltopmost5
!
interfaceEthernet0/0
ipaddress192.168.1.1255.255.255.0
tagswitchingip
!
interfaceEthernet1/0
ipaddress192.168.0.2255.255.255.0
servicepolicyinputmplsin
tagswitchingip
!
P2
!RemembertocopydowntheMPLSEXPvaluefrom!thenewlyexposedlabelaftertheP
HP.
classmapmatchallMPLSAF11
matchmplsexperimentaltopmost0
classmapmatchallMPLSAF12
matchmplsexperimentaltopmost1
classmapmatchallMPLSAF21
matchmplsexperimentaltopmost2
classmapmatchallMPLSAF22
matchmplsexperimentaltopmost3
classmapmatchallMPLSAF31
matchmplsexperimentaltopmost4
classmapmatchallMPLSAF32
matchmplsexperimentaltopmost5
!
http://www.cisco.com/c/en/us/support/docs/multiprotocollabelswitchingmpls/mpls/47815diffservtunnel.html
14/16
12/10/2015
DiffServTunnelingModesforMPLSNetworksCisco
classmapmatchallgold
matchqosgroup5
classmapmatchallsilver
matchqosgroup4
classmapmatchallbronze
matchqosgroup3
matchqosgroup2
!
policymapqosgroupin
classMPLSAF11
setqosgroupmplsexperimentaltopmost
classMPLSAF12
setqosgroupmplsexperimentaltopmost
classMPLSAF21
setqosgroupmplsexperimentaltopmost
classMPLSAF22
setqosgroupmplsexperimentaltopmost
classMPLSAF31
setqosgroupmplsexperimentaltopmost
classMPLSAF32
setqosgroupmplsexperimentaltopmost
!
policymapqosgroupout
classgold
bandwidth40
randomdetect
setmplsexperimentaltopmostqosgroup
classsilver
bandwidth30
randomdetect
setmplsexperimentaltopmostqosgroup
classbronze
bandwidth20
randomdetect
setmplsexperimentaltopmostqosgroup
!
interfaceEthernet0/0
ipaddress192.168.2.1255.255.255.0
maxreservedbandwidth90
servicepolicyoutputqosgroupout
tagswitchingip
!
interfaceEthernet1/0
ipaddress192.168.1.2255.255.255.0
servicepolicyinputqosgroupin
tagswitchingip
!
PE2
!RemembertoqueuethenewlyexposedIPpacket!basedonthevalueoftheIPPrecede
nt.
classmapmatchallgold
matchprecedence45
classmapmatchallsilver
matchprecedence23
classmapmatchallbronze
matchprecedence01
!
http://www.cisco.com/c/en/us/support/docs/multiprotocollabelswitchingmpls/mpls/47815diffservtunnel.html
15/16
12/10/2015
DiffServTunnelingModesforMPLSNetworksCisco
policymapqosgroupout
classgold
bandwidth40
randomdetectprecbased
classsilver
bandwidth30
randomdetectprecbased
classbronze
bandwidth20
randomdetectprecbased
!
interfaceEthernet0/0
ipvrfforwardingv1
ipaddress10.0.1.1255.255.255.0
maxreservedbandwidth90
servicepolicyoutputqosgroupout
!
interfaceEthernet1/0
ipaddress192.168.2.2255.255.255.0
tagswitchingip
!
TunnelModeSummary
ThistablesummarizesthevariousactionsthatappliedtoIPorlabeledpacketsatvariousstagesinthenetwork:
Tunne
ling
Mode
IP>Label
Label>
Label
Unifor
m
CopyIPPrec/DiffServintoMPLS
EXP(maybechangedbytheSP
also)
MPLSEXP
maybe
changedbySP
Pipe
MPLSEXPsetbytheSPQoS
policy
Short
Pipe
Label>IP
MPLSEXPcopiedtoIP
Prec/DiffServ
OriginalIPPrec/Diffservpreserved
(egressqueuingbasedonMPLS
EXP)
OriginalIPPrec/Diffservpreserved
(egressqueuingbasedinIP
Prec/DiffServ)
RelatedInformation
CiscoIOSSoftwareMPLS
Q&AQualityofServiceforMultiProtocolLabelSwitchingNetworks
CiscoIOSSwitchingServicesCommandReference,Release12.2
CiscoIOSQualityofServiceSolutionsConfigurationGuide,Release12.2
CiscoIOSQualityofServiceSolutionsCommandReference,Release12.2
MPLSSupportPage
QoSSupportPage
TechnicalSupportCiscoSystems
2015Ciscoand/oritsaffiliates.Allrightsreserved.
http://www.cisco.com/c/en/us/support/docs/multiprotocollabelswitchingmpls/mpls/47815diffservtunnel.html
16/16