Professional Documents
Culture Documents
OAM Introduction
www.huawei.com
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page1
Contents
1. QoS Overview
2. QoS Models
3. QoS Technology
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page2
Concept of QoS
QoS: Quality of Service
Transmission bandwidth
Packet loss
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page3
Transmission Bandwidth
BWmax = Min(100M,10M, 1M, 2M,1G) = 1Mbps
PC Server
BWmax = 1Mbps
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page4
End-to-End Delay
The end-to-end delay is the sum of the transmission delay,
processing delay, and queue delay on the path
80 Km
Transmission delay
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page5
Jitter
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page6
Packet Loss
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page7
Contents
1. QoS Overview
2. QoS Models
3. QoS Technology
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page8
QoS Models
Best Effort
Forwarding all the traffic with best-effort, without discrimination
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page9
Best-Effort Model
Best-Effort is a single service model
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page10
IntServ Model
Provide controllable end-to-end service
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page11
DiffServ Model
Perform PHB according to
marking……
DS Domain
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page12
SLA & TCA
SLA: Service Level Agreement
Agreement signed by the ISP and the customer to stipulate the
treatment that the service flow of the customer should obtain on
the ISP's network
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page13
Basic Concept of DiffServ
Term Description
Provide the same service policy and realize the same per-
DS Domain
hop behavior in the same domain
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page14
PHB Level and QoS
PHB Level PHB QoS
CS7 Discards extra traffic if the total traffic exceeds the specified bandwidth.
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page15
Questions
What functions does QoS can provide?
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page16
Contents
1. QoS Overview
2. QoS Models
3. QoS Technology
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page17
Contents
3. QoS Technology
3.1 Flow Classification
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page18
Flow Classification
Through flow classification, the packets that meet different
types of characteristics can be identified according to certain
rules
Flow classification method:
Simple Flow Classification
VLAN PRI, IP DSCP, MPLS EXP to PHB
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page19
VLAN PRI Classification
PRI
0x8100 CFI VLAN ID
3 bits
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page20
MPLS Packet Classification
0 19 22 23 31
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page21
IP Packet Classification
32bits
8 8 8 8
Version Header Type of Service Total Length
(4bits) Length (8bits) (16bits)
Identifier Flags Fragmented Offset
(16bits) (3bits)
Time to Live Protocol Header Checksum
(8bits) (8bits) (16bits)
Source IP Address
(32bits)
Destination IP Address
(32bits)
Options
(Variable Length)
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page22
DSCP: DiffServ Code Point
DSCP: DiffServ Code Point
Each DSCP value maps one BA
DSCP (RFC2474)
R R
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page23
Marking
After traffic classification, different traffic can be re-marked by
different ways:
IP packets: Re-marking is used to set the DSCP of an IP packet
For VLAN packets: Re-marking is used to set the 802.1P flag bit of
a VLAN packet
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page24
Traffic Policing & Traffic Shaping
Traffic Policing
Monitor the traffic at the network edge and limit the traffic in a
range. If the traffic of a connection exceeds the limit, the device
drops the packets or re-mark the precedence of the packets
Traffic Shaping
The function of traffic shaping is similar to the function of traffic
policing. Traffic shaping will store the packets exceeds the limit
into cache
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page25
Application of Traffic Policing and
Traffic Shaping
Traffic policing
Network 1
Egress
Network 2
Ingress
NEA NEB
Traffic shaping
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page26
Token Bucket
The token bucket is used to assess whether the traffic exceeds
the specified limit corresponding measures
Token bucket uses the following parameters to assess the
traffic:
CIR (Committed Information Rate): the rate at which tokens are
added to the bucket
CBS (Committed Burst Size): capacity of the token bucket, namely
the maximum size allowed for a traffic burst. The CBS must be
larger than the packet length
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page27
CAR: Committed Access Rate
Forward
Classification
Pass
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page28
Token Bucket - Dual Buckets
Tokens Tokens
(PIR) (CIR)
Tp Tc
(PBS) (CBS)
Packets
Classification
PIR
CIR
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page29
GTS: Generic Traffic Shaping
Packets to be sent
from the interface
Packets Out
Classification
Pass
Token
Bucket
Drop
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page30
Queue Scheduling
Put packets into different queues according to their priority,
and give different dispatch priorities, or bandwidths etc. to
different queues
FIFO (First In First Out)
SP (Strict-Priority )
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page31
FIFO: First In First Out
FIFO queuing
Concepts of no communication priority and classification
Urgent packets
Hypo-urgent packets
Non-urgent packets
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page32
SP: Strict-Priority
SP guarantees that the data packet with higher priority can be
sent in time
SP is divided into different queues (For example : 4 queues): High,
Medium, Normal, Low
High priority queues will be first dispatched
Packet need to be forwarded
Classification
High
Medium
Normal
Low Drop
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page33
WRR: Weighted Round Robin
WRR assures justice to services with identical priority
The weight is based on the priority
Classification
High
Medium
Normal
Low Drop
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page34
Congestion Avoidance Mechanism
Tail drop
When the queue length reaches the maximum value, the new
arrived packets are dropped
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page35
Disadvantages of Tail Drop
TCP global synchronization
TCP starvation
Non-differentiated drop
Bandwidth
Utilization Ratio
User flow
time t
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page36
RED: Random Early Detection
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page37
WRED: Weighted Random Early
Detection
Drop
probability
100%
AF21
AF22
AF23
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page38
Questions
What can be used to classify different traffic?
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page39
Contents
1. QoS Overview
2. QoS Models
3. QoS Technology
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page40
Flow Classification
Simple flow classification
VLAN priority, IP DSCP, MPLS Exp
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page41
RTN 900 Traffic Policing
CAR
Committed Access Rate
CIR
Committed Information Rate
PIR
Peak Information Rate
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page42
RTN 900 Queue Scheduling
SP: strict-priority
For queues of highest priorities, which carry CS7, CS6 or EF packets, use
the SP scheme to schedule queues
Note:
For BE packets, the QoS is not ensured. In the case of congestion, the RTN
900 equipment does not schedule queues that provide this service level
(BE)
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page43
RTN 900 Congestion Avoidance
Packet discarding policies are available in RTN 900
Trail drop policy: RTN 900 V1R2/V1R3/V1R5 support.
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page44
RTN 900 QoS Policy
For the RTN 900 equipment, the configurable QoS policies
include:
Port policy
ATM policy
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page45
Questions
Which QoS policy can be used to realize the end to end QoS
control for the RTN 900 equipment?
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page46
Contents
1. QoS Overview
2. QoS Models
3. QoS Technology
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page47
Contents
5. OAM Technology
5.1 Ethernet OAM
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page48
Typical Application of ETH OAM
Ethernet Port OAM Ethernet Port OAM
Ethernet Service OAM
P P
Router 1
CE1 CE3 Router 3
PE2
PE1
P P
CE2 CE4
Router 2
As a protocol based on the MAC layer, ETH OAM checks Ethernet links by
transmitting OAM protocol packets.
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page49
Ethernet Port OAM
The Ethernet port OAM is mainly used to check the connectivity and
performance and locate the faults of the physical links at the MAC layer and
under the MAC layer. It is applicable to the physical Ethernet connection, not
to the connections between port and VCG, nor between VCG and VCG.
Board Board
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page50
Basic Concept
OAMPDU (OAM Protocol Data Unit)
All functions of IEEE 802.3ah OAM are realized by exchanging the
OAMPDUs
OAM mode:
Active/ Passive mode
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page51
Ethernet Port OAM Auto-Discovery
Active Passive
Node 1 Node 2
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page52
Ethernet Port OAM – Link Monitoring
Node 1 Node 2
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page53
Ethernet Port OAM – Remote Fault
Report
Node 1 Node 2
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page54
Ethernet Port OAM – Remote Loopback
Active Passive
Node 1 Node 2
1. Node 1 originates
remote loopback
request actively.
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page55
Ethernet Port OAM – Self-loop Test
Tx
When the self-loop detection is
PORT
enabled for an external physical port,
Rx if the self-loop situation occurs at the
port, the ETHOAM_SELF_LOOP alarm
PORT is reported.
Rx
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page56
Ethernet Service OAM
The Ethernet service OAM, based on the Ethernet service traffic,
is used to provide the automatic check, fault location and
performance check for the connectivity of the Ethernet link.
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page57
Basic Concepts of Ethernet Service OAM
CE CE
PE PE
5 5 5 5
Customer MD Level
3 3
The number indicates
Service Provider MD Level
the MD level
MA MEP MIP
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page58
Ethernet Service OAM - CC
CC: Perform unidirectional connectivity check (CC)
After receiving the CCM packets, the sink MEP starts the CC.
If the sink MEP fails to receive the CCM packets from the source MEP
within the check period (that is, 3.5 times of the transmit period), it
reports the CC_LOS alarm automatically till the link restores normality
EX_ETHOAM_CC_LOS
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page59
Ethernet Service OAM - LB
LB: Perform the loopback (LB) detection
After receiving the LBM packets, the sink MP constructs the loopback
return (LBR) packets and transmits them back to the source MEP. In this
case, the loopback succeeds. If the source MEP timer expires and fails to
receive the LBR from the sink MP, the loopback fails.
Failed
LBM LBR
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page60
Ethernet Service OAM - LT
LT: Perform the link trace (LT) detection.
Failed
LTM
LTM
LTR2 LTM
LTR3 LTM
LTR4 LTM
LTR5
LTR6
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page61
Contents
5. OAM Technology
5.1 Ethernet OAM
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page62
Overview of MPLS Layer
As shown in the below figure, in the OptiX RTN 900 network ,
services could be transferred in a PW, and many PWs could be carried
by a MPLS tunnel.
For the expected network maintenance, OAM function should be
provided in both the MPLS tunnel layer and the PW layer.
Service 1
PW MPLS Tunnel
Service 2
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page63
Packet Types
CV Packet
Checks the connectivity of LSPs
The transmit frequency is fixed
FFD Packet
Checks the connectivity of LSPs
The transmit frequency can be changed
FDI Packet
Responds to the defect that the CV or FFD packet detects
BDI Packet
Carries defect information to the upstream ingress node
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page64
MPLS OAM – Connectivity Check
The connectivity of a label switch path (LSP) can be checked by a
connectivity verification (CV) or fast failure detection (FFD).
The CV and FFD processes are the same except for that CV packets are
transmitted always at a rate (1 frame/s, not for setting) whereas FFD
packets are transmitted at a user-defined rate.
Transit Transit
LSR CV/FFD LSR
CV/FFD CV/FFD
Ingress Egress
LSR LSR
BDI BDI
BDI
Transit Transit
LSR LSR
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page65
Tunnel OAM – Connectivity Check
MPLS tunnel OAM is a unidirectional connectivity detection
mechanism for a single LSP. The BDI packet should be carried by
another reverse LSP.
OAM packets are encapsulated in MPLS packets at the Ingress LSR. The
external label is the outgoing label of the LSP at the Ingress LSR.
CV/FFD CV/FFD
Insertion Extraction
Ingress Transit Egress
Label Push LSR LSR LSR Label Pop
Transit
LSR
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page66
PW OAM – Connectivity Check
PW OAM CV/FFD is a unidirectional real-time connectivity detection
mechanism for a PW. It is necessary that the source and the
destination both enable PW CV/FFD.
OAM packets are encapsulated in MPLS packets at the Ingress LSR.
CV/FFD CV/FFD
Insertion Extraction
Label Push Ingress Transit Egress
LSR LSR LSR Label Pop
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page67
MPLS OAM – BDI/FDI
BDI: Inform the ingress node of the LSP defect information
Node B
RTN 900 Network RTN 900 Network
RNC
Node B CV/FFD
BDI
FDI: Inform the egress node of the LSP of the default information of a lower
layer
Node B
RTN 900 Network RTN 900 Network
RNC
Node B CV/FFD
FDI
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page68
MPLS OAM – Ping
The MPLS ping function is used to check whether an LSP is
successfully created
Node B
RTN 900 Network RTN 900 Network
RNC
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page69
MPLS OAM – Traceroute
The MPLS traceroute function is used to locate an LSP fault
Node B
RTN 900 Network RTN 900 Network
RNC
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page70
Contents
5. OAM Technology
5.1 Ethernet OAM
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page71
Overview of ATM OAM
Node B
RNC
Node B
Node B RNC
Node B
ATM Service OAM
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page72
ATM OAM Function Layers
Layer Description
F1: regenerator section layer Physical layer OAM: The physical layer OAM flow
F4: virtual path (VP) layer ATM OAM: The ATM OAM is based on the VP/VC
F5: virtual channel (VC) layer and independent of the transmission system.
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page73
Basic Concepts of ATM OAM
Node B RNC
Segment
End to End
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page74
ATM OAM – AIS/RDI Insertion
Node 1 Node 2 Node 3
1 2 3
A B C D
RDI Reported
RDI Inserted
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page75
ATM OAM - CC
CC: Perform unidirectional connectivity check (CC)
Failed
AIS Inserted
1 2 3
A B C D
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page76
ATM OAM - LB
LB: Perform the loopback (LB) detection.
1 2 3
A B C D E
Succeeded
Failed
A B C D E
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page77
Summary
OAM Type Usage Application Scenario
Bidirectional connectivity check and
Ethernet performance of the physical link Link state monitoring
Port OAM
Port OAM monitoring
Real-time detection of the link state
CC Unidirectional connectivity check
monitoring
Ethernet
Service Fault location or detection at a single
LB Bidirectional connectivity check
OAM end
LT Fault location On-site fault location
Real-time detection of the tunnel state
CV/FFD Unidirectional connectivity check
monitoring
MPLS Fault location or detection at a single
OAM Ping Unidirectional connectivity check
end
Traceroute Fault location Tunnel route detection
Real-time detection of the link state
CC Unidirectional connectivity check
ATM monitoring
OAM Fault location or detection at a single
LB Bidirectional connectivity check
end
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page78
Contents
1. QoS Overview
2. QoS Models
3. QoS Technology
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page79
MPLS-TP OAM Introduction
MPLS-TP OAM is the new OAM feature for RTN 900V1R5
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page80
MPLS-TP OAM Protocol Model
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page81
MPLS-TP OAM Components
MEG (Maintenance Entity Group)
MEG is a set of entity run the OAM, it can carry the MEG ID
information in it’s PDU
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page82
MPLS-TP OAM PDU Formats
Format of an MPLS-TP tunnel OAM PDU
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page83
MPLS-TP OAM PDU Formats(Cont.)
Format of an MPLS-TP PW OAM PDU
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page84
MPLS-TP OAM - CC
CC is used to detect unidirectional connectivity between any
pair of MEPs in MEGs.
×
CCM
MPLS-TP
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page85
MPLS-TP OAM - RDI
A maintenance association end point (MEP), upon detecting a
defect condition, notifies its peer MEP of the defect condition.
Upon receiving the notification, the peer MEP reports a remote
defect indicator (RDI) alarm
×
CCM
MPLS-TP
RDI
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page86
MPLS-TP OAM - AIS
A server layer MEP, upon detecting a defect condition,
transmits AIS frames to its client layer MEs, so its client layer
MEPs suppress alarms following detection of the defect
condition at the server layer. Upon receiving an AIS frame, a
client layer MEP reports an AIS alarm
The AIS insertion Reports the
Sends OAM function is MPLS_TUNNEL_LOCV
detection enabled alarm
packets MEP1 MIP2 MEP3
× TUNNEL1 TUNNEL2
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page87
MPLS-TP OAM – AIS (Cont.)
PW AIS triggered by the tunnel failure
MS-PW is
configured and
the AIS insertion Reports the
Sends OAM function is MPLS_PW_LOCV
detection enabled alarm
packets MEP1 MIP2 MEP3
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page88
MPLS-TP OAM – LB
A loopback (LB) test is used to check bidirectional connectivity
of links between a maintenance association end point (MEP)
and a maintenance association intermediate point (MIP) or
between a pair of MEPs.
LBR LBR
(TTL=254) (TTL=255)
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page89
MPLS-TP OAM – LT
An LT test is achieved by a series of LB tests that are
implemented from near to far. It is used to obtain the
adjacency relationship between a MEP and a MIP or between a
pair of MEPs and to locate the link or device fault between the
two.
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page90
MPLS-TP OAM – LM
LM is used to count lost packets on a tunnel or PW within a
specified period of time.
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page91
MPLS-TP OAM – DM
Two-way DM is used to measure frame delay and frame delay
variation of bidirectional data frames on a link within a
specified period of time.
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page92
Summary
QoS Models
QoS technology
Ethernet OAM
MPLS OAM
ATM OAM
MPLS-TP OAM
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page93
Glossary
QoS: Quality of Service
IntServ: Integrated Service Model
DiffServ: Differentiated Service Model
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page94
Glossary (Cont.)
OAM: Operation, administration and maintenance
Copyright © 2012 Huawei Technologies Co., Ltd. All rights reserved. Page95
Thank you
www.huawei.com