Professional Documents
Culture Documents
Table of Contents
1 2 Introduction......................................................................................................................... 1 Technical Overview ............................................................................................................ 1
2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 Structure Overview .......................................................................................................... 1 Data Operation ................................................................................................................ 3 Frame Format.................................................................................................................. 5 MAC Entity Structure ....................................................................................................... 6 Queuing Technique ......................................................................................................... 9 Fair Algorithm ................................................................................................................ 12 Failure Self-healing........................................................................................................ 13 Topology Discovery ....................................................................................................... 14 Management Protection ................................................................................................ 15
Typical Applications.......................................................................................................... 15
3.1 3.2 IP MAN Application........................................................................................................ 15 LAN Application ............................................................................................................. 17
i http://datacomm.huawei.com
1 Introduction
Integrating the intelligent features of IP network, economical feature of Ethernet, and high bandwidth utilization and availability of optical fiber ring network, RPR (Resilient Packet Ring) is an ideal networking solution for IP MAN. RPR makes it possible for a carrier to provide carrier-class services in a MAN at a low cost, offering network reliability of SDH level but at a much lower transmission cost. RPR is different from traditional MAC with its most appealing feature of carrier-class reliability. This feature allows it to address data-oriented service transmission requirements and to form an integrated transmission solution capable of multi-service processing.
2 Technical Overview
2.1 Structure Overview
Similar to the SDH topology, RPR is a reciprocal dual-ring topology, with each optical span working at the same rate. The difference is that both the two rings of RPR can transmit data. These two rings are referred to as Ringlet0 and Ringlet1 respectively.
1 http://datacomm.huawei.com
Station
Link
(link)
Span (span)
Domain
(domain)
Data are transmitted clockwise on Ringlet0 while anti-clockwise on Ringlet1. Each RPR station uses a 48-bit MAC address used in Ethernet as its address ID. From the perspective of the link layer of the RPR station, these two pairs of physical optical ports of transmission/reception are only one link layer interface. From the perspective of the network layer, only one IP address needs to be allocated. The link between two adjacent RPR stations is refereed to as a span, and multiple continuous spans and the stations on them constitute a domain. From the perspective of a station, its packet switching structure has changed immensely in comparison with the traditional packet switching structure.
Traffic
Traffic Traffic
Bandwidth management
This structure is similar to the ring road of a city, where the stations on the ring are directly connected, with barely any traffic lights needed, and hence higher efficiency. One RPR station has one MAC entity and two physical layer entities. The physical layer entities are
Copyright 2007 Huawei Technologies Co., Ltd. All Rights Reserved 2 http://datacomm.huawei.com
associated with the links. Referred to as the access point, the MAC entity includes one MAC control entity and two MAC service link entities. Each access point is associated with a loop. By direction, physical layer entities are divided into east physical layer and west physical layer. The east and west are based on the assumption that the station is to the north of RPR. The Tx interface of the east physical layer and the Rx interface of the west physical layer are connected via the MAC entity into the Ringlet0 of RPR. Similarly, the Rx interface of the east physical layer and the Tx interface of the west physical layer are connected into the Ringlet1 of RPR.
3 http://datacomm.huawei.com
Transit (transit)
Insert to inner ring (insert) Transit (transit) Copy from inner ring (copy)
At the source station, the insert operation is performed to load the data to Ringlet0 or Ringlet1. The destination station performs copy and strip operations. The stations in between only perform the transit operation. It is worth noting that RPR performs strip at the destination station for unicast traffic, which is different from the traditional ring network technology, where strip is performed at the source station. That the destination station performs the strip operation can effectively enhance bandwidth utilization, so that the space reuse of bandwidth becomes more effective. For multicast and broadcast traffic, there are multiple destination stations, so a data transmission mechanism different from that of unicast should be used. Below please find an implementation solution of broadcast traffic:
4 http://datacomm.huawei.com
Download
Download
Strip
Download Download
This solution is Ringlet0 broadcast. Other solutions are Ringlet0 broadcast and dual-ring broadcast.
Reserved bit
Except the ring control byte that reflects the RPR feature, other fields are very similar to those of the Ethernet frame format. Usually, the Maximum Transmission Unit (MTU) of a
Copyright 2007 Huawei Technologies Co., Ltd. All Rights Reserved 5 http://datacomm.huawei.com
RPR frame is 1616 bytes, and that of an oversized frame is 9216. The ring control byte contains many control contents, for example, ring selection information, fair bandwidth allocation option, frame type, service class, fault switching method, broadcast flag, etc. It provides various functions including active performance monitoring and fault monitoring, to ensure rich, flexible and efficient ring operations that can meet the high requirements of the networks for ring network technology.
MAC Layer Data transmission channel Packet header processing, FCS check Physical layer service access Adaptation sub-layer
Physical layer
The MAC entity contains one MAC control sub-layer and two MAC data channel sub-layers. These two MAC data channels are for the data exchange of Ringlet 1 and Ringlet 0
Copyright 2007 Huawei Technologies Co., Ltd. All Rights Reserved 6 http://datacomm.huawei.com
respectively. The MAC control entity receives/sends data frames over these two data channels, and interacts with the MAC client for control and data via the MAC service interface. This structure is shown in the figure below:
MAC control MAC control request indication MAC data MAC data indication request
MAC control
Send frames
Receive frames
Send frames
Receive frames
With this structure, multiple stations can be connected to form a complete end-to-end MAC service processing flow. Here, the easiest example is given: There are three RPR stations. Suppose that one data stream is originated from station 1 (S1), passes through S2, and terminates at S3. The whole data stream flow is shown in the following diagram. As can be seen in this diagram, the MAC control entity works only when it needs to interact with the MAC client, while the MAC control entity barely deals with the intermediate stations. For unicast, this means that only the source station and destination station need to use the MAC control entity to process the data. In normal cases, for a data stream, various stations use the same data channel for connection, either Ringlet0 data channel or Ringlet1 data channel, for better service continuity.
7 http://datacomm.huawei.com
MAC control
MAC control
MAC control
PHY
West interface
East interface
West interface
East interface
West interface
East interface
The MAC control entity contains the functions of the data and control layers, including such important functions as fair control, protection, topology discovery, sub-ring selection, running management and maintenance and data encapsulation/encapsulation, as shown in the following diagram:
MAC control request MAC control indication MAC data request MAC data indication MAC service interface MAC Control interface processing Fair control, protection, topology database, path calculation, OAM Frame reception/sending Control MAC Data interface processing Encapsulation/Decapsulation, subring selection, frame collection Frame reception/sending
Send frames
Receive frames
The MAC data channel is directly associated with the data transmission of each respective sub-ring. It performs the following four functions: 1. Traffic shaping (for ordered entry into
Copyright 2007 Huawei Technologies Co., Ltd. All Rights Reserved 8 http://datacomm.huawei.com
the shared ring media); 2. Data frame staging at the source station, and data frame queuing at the transit stations; 3. Selecting data frames for transfer to the local client or control sub-layer; 4. Selecting data frames to be stripped from the ring.
MAC control indication MAC control request MAC service interface MAC MAC data request MAC data indication
MAC control Receive frames Outer ring data channel Inner ring data channel Frame reception/sending Shaping Select the frames to transfer Select the frames to strip West sending/east reception Frame reception/sending Shaping Staging/queuing Select the frames to transfer East sending/west reception
Send frames
Receive frames
Send frames
Send
East PHY
9 http://datacomm.huawei.com
Information Rate (CIR) and Excess Information Rate (EIR) traffic of medium priority, where certain bandwidth and end-to-end delay and jitter must be ensured for CIR, but no need for EIR. Class C is for best-effort common traffic of low priority, with no bandwidth definition. In the following two diagrams, each service channel (on each ring) of the MAC of RPR ring can have one or two transit queues PTQ (Primary Transit Queue) and STQ (Secondary Transit Queue). Transit traffic of Class A passes the PTQ, and transit traffic of Class B and Class C passes the STQ. Of the decision mechanism of RPR MAC, the priorities for insert and transit traffic are in the following sequence: Transit PTQ, insert Class A, transit STQ, insert Class B, and insert Class C.
Service class A inserted Service class B inserted
Station client
Data
Shape
Shape Stage
The above is the schematic diagram for a single transit queue, where all types of transit traffic are scheduled in a single queue.
10 http://datacomm.huawei.com
Station client
Data
Shape
Stage
Shape
This diagram shows the double transit queues. Traffic of Class A is in the PTQ, and traffic of Class B and C is in the STQ. In other words, for double-transit-queue RPR, the RPR loop uses separate buffering queues for traffic of high and low priority, and uses strict priority queue for switching. In other words, the decision mechanism of MAC of the RPR ring will first process the traffic of high priority in whatever circumstance, and the traffic of low priority will not affect the real-time switching of that of high priority. Transit queue is similar to the lane on a ring road in a city: A single queue is equivalent to a single lane, where all the vehicles run; double queues are equivalent to two lanes, where cars run on the fast lane and trunks on the slow lane. Obviously, double queues are superior to single queue technically. Queue scheduling of class A traffic is not affected that of classes B and C, so the traffic of high priority with low delay is ensured. However, RPR still takes the single-queue mode as an option, out of consideration of reduced cost. In the single queue mode, traffic of classes A, B, and C are not divided for queuing, so the hardware is much easier to implement, with much lower cost. The single queue mode can be used for networks where only simple data services are provided and performance is not so important, to reduce cost. However, for the IP MAN and backbone networks, which bear multiple services, including high-quality services, the double-transit-ring mode must be used. For large education networks and enterprise networks which usually also bear IP voice and video services requiring high performance, the double-transit-ring mode is also recommended.
Copyright 2007 Huawei Technologies Co., Ltd. All Rights Reserved 11 http://datacomm.huawei.com
RPR supports monopolized and weighted fairness arrangement, where the traffic inserted at each node is not necessarily equal. To avoid Head-of-line blocking, RPR supports the multi-choke algorithm, but the fair algorithm is more reliable. The advertise rate mechanism is recommended for smoother value adjustment, so that no large fluctuation of traffic occurs.
For the traffic being transmitted on the ring, there are two protection modes: Wrap and Steering (also known as the source route). The following diagram illustrates these two protection modes:
13 http://datacomm.huawei.com
The left diagram shows the normal data traffic before the failure, where traffic goes from station A to Station D over the Ringlet 0, covering the path A-B-C-D; The middle diagram shows the wrap protection in the event of a failure. When the failure occurs, optical loop-back is made at the stations on both ends of the failed link and so is the data path. The overall path is A-B-A-F-E-D-C-D; The right diagram shows the steering protection mode in the event of a failure, where the data traffic from station A to station D goes the shortcut path, over the other ring (Ringlet1), to the destination. The path is A-F-E-D. The advantage of the wrap mode is that the failure switching is completed in a very short time (within 50ms), with very few packets lost and hence no traffic interruption. However, the problem is that much bandwidth is occupied. The steering mode avoids waste of bandwidth, but it takes a long time to recover due to the re-convergence, which may cause the interruption of some services.
information packets contain the topology information, which is broadcast on the ring network. The possible topology structures are all loop-back structure and chain structure (when some links fail). Automatic discovery is helpful for the protection in the event of link failure, and it also provides good support for network expansion, in enabling station level plug-n-play. In other words, a station can be added or deleted to or from the ring network without manual configuration of data.
3 Typical Applications
3.1 IP MAN Application
For small and medium-sized cities, a RPR ring can be built on the MAN. One or two of the nodes can be used as the core and egress, which are connected upward to the backbone network. Other nodes are distributed at the important offices in the city, for the access/convergence of Ethernet traffic in those areas. Or, various interfaces such as E1, E3, POS, and ATM can be provided. Therefore, it can also serve as the leased line access router, to access various low-rate leased line subscribers. Or, the RPR ring can be established on the MPLS, and the router is used as the MPLS VPN PE equipment, to access various VPN subscribers.
15 http://datacomm.huawei.com
RPR solution for small and medium-sized IP MAN For medium or large-sized IP MAN, the more core and convergence nodes, the larger the network. Usually, the typical three-layer architecture (core layer, convergence layer, and access layer) is used, so multiple RPRs are often used for networking. On the core layer, a core 2.5G/10G RPR ring is built, and on the convergence layer, multiple 2.5G edge RPR rings are built. The core ring and the edge rings can be connected in intersection or tangency. Intersection has two connection points, and provides higher reliability. Therefore, it is recommended that intersection should be used wherever possible.
16 http://datacomm.huawei.com
17 http://datacomm.huawei.com
Application of RPR on LAN With the RPR ring network, IP can be born on bare optical fibers. This way, even without special transmission equipment, the bearer network platform can be provided for multiple IP-based services including data, voice and video.
Appendix A References
IEEE802.17 Resilient packet ring (RPR) access method and physical layer specifications
Full Spelling Add/Drop Multiplexer Committed Information Rate Excess Information Rate 18 http://datacomm.huawei.com
Technical White Paper for Resilient Packet Ring (RPR) Acronym/Abbreviation FCS HEX IP MAC MPLS MTU PE PTQ RPR SDH STQ TTL VPN Full Spelling Frame Check Sequence Header Error Check Internet Protocol Medium Access Control Multiprotocol Label Switching Maximum Transfer Unit Provider Edge Primary Transit Queue Resilient Packet Ring Synchronous Digital Hierarchy Secondary Transit Queue Time To Live Virtual Private Network
19 http://datacomm.huawei.com