- Print
- PDF
MEF 10.3 Metering with Bucket Sharing Overview
MEF 10.3 defines shared-bucket metering that allows multiple flows to share unused tokens with other flows from the same envelope. An envelope is a set of N bandwidth profile flows or flows for short. In switching devices, flows of the same envelope are consecutive. Each flow is assigned a rank, a unique number in the range 1 to N, which determines the priority of the flow in the token-sharing hierarchy.
Note: As per the unit configurations, metering entries with a Rank value of 1 are given higher precedence. The Metering entry with a Rank value of 8 or higher is given lower precedence. Hence during the sharing, traffic flows of the Rank Value 1 metering entries share the unused tokens of higher Rank Value metering entries.
The MEF 10.3 architecture supports two main scenarios for sharing envelopes; flow-based sharing envelopes and priority-based sharing envelopes.
Flow-Based Sharing Envelopes
Each envelope consists of a set of up to eight consecutive meter entries. Each flow in the envelope is accessed by an explicit meter policer Index, so that one ACL rule is used per flow.
In flow-based sharing, each rank in the envelope represents a different network flow.
Priority-Based Sharing Envelopes
Each envelope consists of a set of up to eight consecutive meter entries. A single ACL rule is used per envelope. An ACL rule points to the first envelope entry and index inside the envelope, while the rank is derived from the QoS Index.
In priority-based sharing, each rank in the envelope represents a different priority. The packet's 802.1P priority determines to which rank it belongs.
The entries of each envelope are organized in two modes: Sequential and Interlaced.
Sequential Envelope Organization
- Lower Rank Entry must be programmed with CF = 0
- Remaining Higher Rank Entry MAY be programmed with CF = 1 or with CF=0
- Envelope Coupling CF must be set to 0.
Interlaced Envelope Organization
- Lower Rank Entry must be programmed with CF = 0
- Remaining Higher Rank Entry MUST be programmed with CF = 0
- Envelope Coupling CF must be set to 1.
Creating Meter Entry - with Envelope and Ranking
- Create a QoS Metering entry with the metering algorithm as MEF Bandwidth Sharing and specify its Envelope ID and its rank.
your product(config)# meter 10
your product(config-meter)# meter-type mefBandwidthSharing cir 100 cbs 18750 eir 200 ebs 37500 coupling-flag disable
your product(config-meter)# set mef-envelopeId 20 envelope-rank 8
your product(config-meter)# end
- View the QOS metering entry.
your product#show meter 10
QoS Meter Entries
-----------------
MeterId : 10
Type : MEFBandwidthSharing
Color Mode : Color Blind
Interval : None
CIR : 100
CBS : 18750
EIR : 200
EBS : 37500
CIR Max : None
EIR Max : None
Coupling-flag : Disable
Mef EnvelopeId : 20
Meter Rank : 7
NextMeter : none
Status : Active
Creating MEF Envelope
- Create MEF Envelope Creation.
your product# configure terminal
your product(config)# mef-envelope 20
your product(config-mefenvelope)# set envelope-type flow-based coupling-flag disable envelope-name EVC1
your product(config-mefenvelope)# set envelope enable
your product(config-mefenvelope)#end
- Delete the MEF Envelope table.
your product#configure terminal
your product(config)# no mef-evelope 20
your product(config)#end
- View MEP envelope table.
your product# show mef-envelope 20
QoS Envelope Entries
-----------------
Envelope Id : 20
Envelope Name : EVC20
Envelope Type : Flow-based
Status : Active
Number of Meters : 4
Configuration Examples
Traffic classification of different Customer VLAN traffic with either 802.1p Priority
c t
mac access-list extended 1001
permit any any priority 50 cvlan-priority 7 double-tag
exit
c t
mac access-list extended 1002
permit any any priority 10 cvlan-priority 6 double-tag
end
c t
mac access-list extended 1003
permit any any priority 30 cvlan-priority 3 double-tag
exit
c t
mac access-list extended 1004
permit any any priority 40 cvlan-priority 5 double-tag
end
ACL Binding to a Port
c t
interface xl 0/2
mac access-group 1001 in
ex
interface xl 0/2
mac access-group 1002 in
mac access-group 1003 in
mac access-group 1004 in
end
Class-Map Creation for ACL
c t
class-map 10
match access-group mac-access-list 1001
set class 10
exit
class-map 20
match access-group mac-access-list 1002
set class 20
exit
class-map 30
match access-group mac-access-list 1003
set class 30
exit
class-map 40
match access-group mac-access-list 1004
set class 40
exit
MEF Meter Creation - Mapping it with Envelope and Assigning Rank
#First Meter Creation
c t
meter 10
meter-type mefBandwidthSharing cir 100 cbs 18750 eir 200 ebs 37500 coupling-flag disable
set mef-envelopeId 20 envelope-rank 7
end
#Second Meter Creation
c t
meter 20
meter-type mefBandwidthSharing cir 100 cbs 18750 eir 200 ebs 37500 coupling-flag disable
set mef-envelopeId 20 envelope-rank 6
end
#Third Meter Creation
c t
meter 30
meter-type mefBandwidthSharing cir 50 cbs 12750 eir 100 ebs 24500 coupling-flag disable
set mef-envelopeId 20 envelope-rank 5
end
#Fourth Meter Creation
c t
meter 40
meter-type mefBandwidthSharing cir 150 cbs 19750 eir 250 ebs 38500 coupling-flag disable
set mef-envelopeId 20 envelope-rank 3
end
Meter with Policy Map
c t
policy-map 10
set meter 10 conform-action cos-transmit-set 7 exceed-action cos-transmit-set 4 violate-action cos-transmit-set 3
set policy class 10 default-priority-type none
end
c t
policy-map 20
set meter 20 conform-action cos-transmit-set 4 exceed-action cos-transmit-set 3 violate-action cos-transmit-set 2
set policy class 20 default-priority-type none
end
c t
policy-map 30
set meter 30 conform-action cos-transmit-set 6 exceed-action cos-transmit-set 4 violate-action cos-transmit-set 5
set policy class 30 default-priority-type none
end
c t
policy-map 40
set meter 40 conform-action cos-transmit-set 3 exceed-action cos-transmit-set 2 violate-action cos-transmit-set 1
set policy class 40 default-priority-type none
end
MEF Envelope Creation, Will Create Entry in Hardware
c t
mef-envelope 20
set envelope-type flow-based coupling-flag disable envelope-name EVC1
set envelope enable
end
© 2024 Cisco and/or its affiliates. All rights reserved.
For more information about trademarks, please visit: Cisco trademarks
For more information about legal terms, please visit: Cisco legal terms
For legal information about Accedian Skylight products, please visit: Accedian legal terms and tradmarks