The method that a kind of Ethernet transmits in a plurality of E1 channels
Technical field
The present invention relates to the method that a kind of Ethernet transmits in a plurality of E1 channels, particularly a kind of method of transmitting in the multichannel E1 channel that one road high-speed data is fitted to.
Background technology
The method that traditional E 1 platform inserts data service roughly is divided into two kinds.A kind of is the exchange of E1 and Ethernet for protocol converter, the corresponding E1 channel of a common Ethernet interface, this method just simply encapsulates the Ethernet message into, and E1 frame structure the inside can only point-to-point transmission be the transparent transmission of simple Ethernet message without any protocol encapsulation.
Another kind is the corresponding a plurality of E1 channels of an Ethernet interface, its multiplex mode can interleave for byte, also can insert for parlor promptly is that unit transmits on a plurality of E1 in turn with the bag, the slotting mode efficient of described parlor is not high, said method does not carry out any encapsulation, but its bandwidth is fixed, and can not dynamically add and delete the number of E1 channel.
Above-mentioned two kinds of methods all are based on the point-to-point transparent transmission to the Ethernet message, can not organize ring, can not carry out the dynamic bandwidth adjustment.
In data exchange service, the idle e1 resource of telecom operators (bandwidth is 2.048M) is very abundant.So, just produced and adopted a plurality of e1 resources to come the data service of transmission bandwidth greater than single E1 bandwidth.
But traditional E1 platform inserts the method for data service, and for example E1 is to the protocol converter of Ethernet, exists not highly such as bandwidth availability ratio, and bandwidth can not dynamically change and the not high shortcoming of reliability.
Usually, the technology that can adopt inverse multiplexing is used for the data service of transmission bandwidth greater than E1 with a plurality of e1 resources.Inverse multiplexing promptly is fitted to one road high-speed data in the multi-path low speed channel and transmits, and the bandwidth that is equivalent to the multi-path low speed sum is provided.When high-speed data service was Ethernet service, we were referred to as the Ethernet inverse multiplexing, abbreviated IME (Inverse Multiplexing for Ethernet) as, and the combination that transmits a plurality of E1 of same circuit-switched data business is referred to as IME group (IME group).
Resilient Packet Ring (RPR) is a kind of new mac-layer protocol, is for the transmission of optimizing packet proposes, and just by IEEE802.17 working group it is carried out standardization at present.Be that R can move on multiple physical layer medium, have the independence of physical layer.At present, the RPR technology just is being widely used in SDH transmission platform and bare fiber, but the also not application on E1.
Summary of the invention
At above-mentioned the deficiencies in the prior art, an object of the present invention is to utilize the advantage of RPR on transfer of data, realize that on the physical layer platform of E1 the RPR agreement transmits Ethernet service.Introducing MPLS, RPR technology on the E1 transmission platform and providing how on the E1 platform, to adopt the technology of RPR, come the constantly demand of the Ethernet service of variation of transmission bandwidth thereby solve with a plurality of E1.
In order to reach purpose of the present invention, the invention provides the method that a kind of Ethernet transmits in a plurality of E1 channels, be about to the method that Ethernet data is mapped to an IME group, described method comprises following steps: transmitting terminal, and handling Ethernet message frame format conversion to be sent by mpls protocol is the MPLS frame format;
By the RPR protocol processes MPLS frame format is converted to the RPR frame format;
Carry out the encapsulation of GFP form;
The byte long of packet after conversion is n, and when transmitting in the IME group of being made up of m E1 channel, j the E1 Channel Transmission that i byte of the packet after then should changing organized by IME, the relation of i and j are by following formulae express:
J=mod (i/m), wherein i and j are the integer more than or equal to 0, m is the integer more than or equal to 1;
Receiving terminal is writing compensation of delay buffer area DCB from the packet after the described conversion of EI channel; Read the packet after the described conversion among the DCB according to the reverse E1 channel from described IME group of described formula
Decapsulation GPF message;
Peel off the RPR frame structure;
Peel off the MPLS frame structure.
Special in realizing the dynamic transmission bandwidth of adjusting, as to the present invention proposes a kind of increase harmless under the situation of non-interrupting service and delete the E1 link of this IME group method of number.Be every following handshake method of E1 link establishment in the IME group:
Transmitter side is set up following state:
(1) Not_in_grouP_state: this E1 link is not assigned to any IME group, and it is Tx=Off that transmitting terminal is not worked;
(2) Unusable_state: this E1 link has been assigned to certain IME group, but link is still unavailable, and it is Tx=Filler that its corresponding sending terminal transmission does not have the empty frame of imitating data;
(3) Usable_state: this E1 link is in upstate, and not have the empty frame of imitating data be Tx=Filler but make a start still sending;
(4) Active_state: this E1 link is activated, and its transmitting terminal operate as normal is transmitting data, i.e. Tx=On on it;
Transmitter side is that above-mentioned state is set up switch condition:
(1) Inhibit: force to stop this link work, reduce transmission bandwidth dynamically;
(2) Assign LID: the group number and the link sequence number in this IME group of when a plurality of IME organize, giving this physics E1 channel allocation IME; When only having single IME to organize, distribute the link sequence number in the IME group;
(3) Tx Fault:E1 link transmitting terminal has fault;
(4) receiving terminal of Rx Fault:E1 link has fault;
(5) FE Tx: the state of opposite end E1 link transmitter side;
(6) Deleted: this E1 channel of deletion from the IME group;
N state ot_in_group_state jumps to the Usable_state state after operating by Assign LID; The Usable_state state forwards the Not_in_group_state state to by Deleted operation, and the judgement by NotInhibiting and No Tx Fault forwards the Unusable_state state to; The Unusable_state state is got back to the Unusable_state state by Inhibiting or Tx Fault or NE Rx Fault operation, and the judgement by FE Rx=Active jumps to the Active_state state; The Active_state state is got back to the Unusable_state state by the judgement of FE Rx/=Active, and the operation by Inhibiting or Tx Faultor NE Rx Fault forwards the Unusable_state state to.
Receiver side is set up following state:
(1) Not_in_group_state: this E1 link is not assigned to any IME group, and it is Rx=Off that receiving terminal is not worked;
(2) Unusable_state: this E1 link has been assigned to certain IME group, but link is still unavailable, and receiving terminal is in monitored state, i.e. Rx=Monitor;
(3) Usable_state: this E1 link is in upstate, but receiving terminal still is in monitored state, i.e. Rx=Monitor;
(4) Active_state: this E1 link is activated, and its transmit end receive end is operate as normal all, is transmitting data, i.e. Rx=On on it;
(5) Blocking: when the harmless deletion of carrying out the E1 link, receiving terminal just withdraws from normal accepting state after having confirmed that transmitter side stops to transmit data.
Receiver side is that above-mentioned state is set up switch condition:
(1) Inhibit: force to stop this link work, reduce transmission bandwidth dynamically;
(2) Assign LID: the group number and the link sequence number in this IME group of when a plurality of IME organize, giving this physics E1 channel allocation IME; When only having single IME to organize, distribute the link sequence number in the IME group;
(3) receiving terminal of Rx Fault:E1 link has fault;
(4) Not_Right_ID: IME number of the E1 link of sending and receiving end and the sequence number in the IME group are inconsistent;
(5) FE Tx: the state of opposite end E1 link transmitter side;
(6) Deleted: this E1 channel of deletion from the IME group;
N state ot_in_group_state jumps to the Usable_state state after operating by Assign LID; The Usable_state state forwards the Not_in_group_state state to by Deleted operation, and the judgement by NotInhibiting and No Rx Fault forwards the Unusable_state state to; The Unusable_state state is judged the Unusable_state state of getting back to by Inhibiting or Rx Fault or Not Right ID, and the judgement by FE Tx=Activeor Usable jumps to the Active_state state; The Active_state state is got back to the Unusable_state state by the judgement of FE Tx/=Active or Usable, and the judgement by Rx Fault forwards the Unusable_state state to, forwards the Blocking state to by the Inhibiting operation; The Blocking state forwards the Unusable_state state to by the judgement of FE Tx/=Active or Rx Fault.
Realize the increase of service nondestructive and reduce transmission bandwidth with above-mentioned handshake method.
Utilize described method directly directly to have referred to the multiple advantage of RPR in the E1 transmission platform, make when transmitting Ethernet service and can not only support ring topology effectively based on the E1 transmission platform, when circuit disconnection or connection failure, can realize fast quick-recovery, simultaneously support space multiplex technique and loopful bandwidth fair allocat mechanism, and possess the typical Ethernet characteristics such as efficient, simple and low cost of transfer of data.
Method of the present invention adopts the adaptive Ethernet of can realizing of multiprotocol label switching (mpls) can provide point-to-point to transmit on same E1 network, also can provide multileaving, and can provide jumbo professional the connection at core node, not limited by the address space of VLAN.In addition, can provide the service that transmits as possible after MPLS is adaptive, the real-time exchange service that can have very high qos requirement simultaneously is to satisfy the service request of different user.Based on the Ethernet service of MPLS encapsulation, not only can realize flow control end to end, also have fair access mechanism and rational Bandwidth Dynamic Allocation mechanism.And owing to adopt the MPLS label, route is calculated can be based on the Ethernet topological structure, thereby can significantly reduce routing device quantity and complexity.
Secondly, introduce the RPR agreement multiple-operation grade, QoS service reliably can be provided on the E1 network, support dynamic ring-network topology to find, loop self-healing ability reliably is provided in time.Especially it has good space reuse, each node on the loop is all grasped loop topology structure and resource situation, can dynamically adjust E1 loop bandwidth distribution condition according to actual conditions by fair algorithm, the realization ring is gone up each node can both enjoy each section bandwidth liberally, has so just improved the bandwidth availability ratio based on the ethernet ring network of E1 greatly.This in addition automatic dynamic bandwidth is adjusted, and does not need the webmaster personnel that resource allocation between node is intervened too much, has reduced human configuration, and the optimization that has reached the localized network resource is used.The present invention carries out the RPR frame head encapsulation of standard by the Ethernet service to the MPLS encapsulation, by the RPR loop technology, has improved the bandwidth availability ratio based on the ethernet ring network of E1 group ring greatly.
Have, GFP is a kind of link layer data packetizing protocol of high speed, can encapsulate various data-signals pellucidly again, no matter is the packet of random length or the data block of regular length.Adopting general frame forming process (GFP) mapping to conciliate the mapping standard can provide a kind of new frame to delimit mode: the core frame head is delimited, upper layer data not being done bit inserts, reduce the expense of transport layer greatly, avoided the bandwidth expansion issues, can guarantee the certainty of access bandwidth, thereby make the data service can be with fixing, a stable speed in the E1 transmission over networks, and need not the up link of dependency network exceedingly, this be the basic demand that Ethernet inserts.GFP can support different topological structures, changed former link layer adapting protocol can only support point to the situation of point topological structure, GFP has also introduced the notion of many grades of service simultaneously, can realize the simple functions of statistic multiplexing, bandwidth control and the QoS of user data with this.So GFP is simply a kind of and data service adaptation method flexibly, it lays the foundation for the devices interconnect intercommunication of different vendor.
Description of drawings
Fig. 1 shows the mapping mode of Ethernet data to the IME group.
Fig. 2 is mapped to the schematic diagram of MPLS frame for ethernet data frame.
Fig. 3 is mapped to the schematic diagram of RPR frame for the MPLS frame.
Fig. 4 is mapped to the schematic diagram of gfp frame structure for the RPR frame.
Fig. 5 is the state machine of transmitting terminal E1 link.
Fig. 6 is the state machine of receiving terminal E1 link.
Fig. 7 is the schematic diagrames of three IME groups at E1 transmission platform group ring.
Embodiment
Specify the specific embodiment of the present invention below in conjunction with accompanying drawing.
How the RPR technology being incorporated into the E1 transmission platform is most important method of the present invention.Here claim on E1, to realize that RPR is RPR OVER E1.One object of the present invention promptly provides a kind of method and organizes a plurality of E1 links to transmit the Ethernet message, this mapping mode, make RPR OVER E1 to organize ring based on E1, can be according to the dynamic number of adjusting in order to the E1 link of transmission Ethernet message of the actual bandwidth of data service, thus realize the dynamic adjustment of data transmission link bandwidth.
At first, adopt the technology of inverse multiplexing to utilize a plurality of e1 resources to come the data service of transmission bandwidth greater than E1.Inverse multiplexing is fitted to one road high-speed data in the multi-path low speed channel exactly and transmits, and the bandwidth that is equivalent to the multi-path low speed sum is provided.When high-speed data service is referred to as the Ethernet inverse multiplexing during for Ethernet service, abbreviate IME (Inverse Multiplexing for Ethernet) as, be referred to as IME group (IME group) for the combination of a plurality of E1 that transmit same circuit-switched data business.
The method that one road Ethernet data is mapped to IME group as shown in Figure 1.At transmitting terminal, handling Ethernet message frame format conversion to be sent by mpls protocol is the MPLS frame format, and the format transformation of frame is illustrated by Fig. 2; By the RPR protocol processes MPLS frame format is converted to the RPR frame format, as shown in Figure 3; Carry out the encapsulation of GFP (Generic Framing Procedure) form, as shown in Figure 4.The mode that interleaves according to byte then, order transfer data packets on E1 channel on the same group.At receiving terminal, the signal from the E1 link layer is write Delay Compensation Buffers (DCB), to eliminate the link time-delay that different E1 links exist because of the experience path is different in the same IME group in transmission course; The reading of data from the E1 link DCB of this group of the mode order that then interleaves by byte; Decapsulation GPF message; Peel off the RPR frame structure; Peel off the MPLS frame structure;
The method that above-mentioned byte interleaves is specifically promptly when transmitting in IME that the packet that a byte long is n is being made up of m the E1 channel group, and j E1 Channel Transmission organizing by IME of i byte of this packet then, the relation of i and j are by following formulae express:
j=mod(i/m)
For instance, be that n is (with 0 if a byte long is arranged ... n-1 represents) the Ethernet bag to have transmit in the IME group of 3 E1 (with 0,1,2 expression) time, the 0th byte of this bag is by the 0th E1 transmission; The 1st byte is by the 1st E1 transmission; The 2nd byte is by the 2nd E1 transmission; The 3rd byte is again the 0th E1 transmission; The 4th byte is again the 1st E1 transmission; The 5th byte is again the 2nd E1 transmission ... according to the method an Ethernet bag is mapped in 3 E1 links.At receiving terminal, backward recovery packet according to said method.
According to another specific embodiment of the present invention, to realize adjusting dynamically transmission bandwidth, a kind of handshake mechanism is set to be realized by the number that increases and delete the E1 link of this IME group under the situation of non-interrupting service, the adjustment process of described bandwidth will satisfy not to be damaged business, i.e. the E1 member's of Wu Sun interpolation and deletion IME group requirement.Certainly, the minimum particle size of adjusting bandwidth based on the consideration of E1 bandwidth is 2M.
Can control harmless increase automatically and reduce transmission bandwidth in order to be implemented in same IME group, the invention provides a kind of each the bar E1 link establishment state machine in the IME group and the mechanism of handshake.
As shown in Figure 5, transmitter side is set up following state machine (Tx LSM):
(1) Not_in_group_state: this E1 link is not assigned to any IME group, and it is Tx=Off that transmitting terminal is not worked;
(2) Unusable_state: this E1 link has been assigned to certain IME group, but link is still unavailable, and it is Tx=Filler that its corresponding sending terminal transmission does not have the empty frame of imitating data;
(3) Usable_state: this E1 link is in upstate, and not have the empty frame of imitating data be Tx=Filler but make a start still sending;
(4) Active_state: this E1 link is activated, and its transmitting terminal operate as normal is transmitting data, i.e. Tx=On on it;
Transmitter side is that above-mentioned state is set up switch condition:
(1) Inhibit: force to stop this link work, reduce transmission bandwidth dynamically;
(2) Assign LID: the group number and the link sequence number in this IME group of when a plurality of IME organize, giving this physics E1 channel allocation IME; When only having single IME to organize, distribute the link sequence number in the IME group;
(3) Tx Fault:E1 link transmitting terminal has fault;
(4) receiving terminal of Rx Fault:E1 link has fault;
(5) FE Tx: the state of opposite end E1 link transmitter side;
(6) Deleted: this E1 channel of deletion from the IME group;
N state ot_in_group_state jumps to the Usable_state state after operating by Assign LID; The Usable_state state forwards the Not_in_group_state state to by Deleted operation, and the judgement by NotInhibiting and No Tx Fault forwards the Unusable_state state to; The Unusable_state state is got back to the Unusable_state state by Inhibiting or Tx Fault or NE Rx Fault operation, and the judgement by FE Rx=Active jumps to the Active_state state; The Active_state state is got back to the Unusable_state state by the judgement of FE Rx/=Active, and the operation by Inhibiting or Tx Faultor NE Rx Fault forwards the Unusable_state state to.
As shown in Figure 6, receiver side is set up following state machine (Rx LSM):
(1) Not_in_group_state: this E1 link is not assigned to any IME group, and it is Rx=Off that receiving terminal is not worked;
(2) Unusable_state: this E1 link has been assigned to certain IME group, but link is still unavailable, and receiving terminal is in monitored state, i.e. Rx=Monitor;
(3) Usable_state: this E1 link is in upstate, but receiving terminal still is in monitored state, i.e. Rx=Monitor;
(4) Active_state: this E1 link is activated, and its transmit end receive end is operate as normal all, is transmitting data, i.e. Rx=On on it;
(5) Blocking: when the harmless deletion of carrying out the E1 link, receiving terminal just withdraws from normal accepting state after having confirmed that transmitter side stops to transmit data.
Receiver side is that above-mentioned state is set up switch condition:
(1) Inhibit: force to stop this link work, reduce transmission bandwidth dynamically;
(2) Assign LID: the group number and the link sequence number in this IME group of when a plurality of IME organize, giving this physics E1 channel allocation IME; When only having single IME to organize, distribute the link sequence number in the IME group;
(3) receiving terminal of Rx Fault:E1 link has fault;
(4) Not_Right_ID: IME number of the E1 link of sending and receiving end and the sequence number in the IME group are inconsistent;
(5) FE Tx: the state of opposite end E1 link transmitter side;
(6) Deleted: this E1 channel of deletion from the IME group;
N state ot_in_group_state jumps to the Usable_state state after operating by Assign LID; The Usable_state state forwards the Not_in_group_state state to by Deleted operation, and the judgement by NotInhibiting and No Rx Fault forwards the Unusable_state state to; The Unusable_state state is judged the Unusable_state state of getting back to by Inhibiting or Rx Fault or Not Right ID, and the judgement by FE Tx=Activeor Usable jumps to the Active_state state; The Active_state state is got back to the Unusable_state state by the judgement of FE Tx/=Active or Usable, and the judgement by Rx Fault forwards the Unusable_state state to, forwards the Blocking state to by the Inhibiting operation; The Blocking state forwards the Unusable_state state to by the judgement of FE Tx/=Active or Rx Fault.
Certainly, only take the few bandwidth resources of E1, can be regarded as the expense of line upkeep for the transmission of these states.
According to another specific embodiment of the present invention,, then can on the E1 physical layer, organize ring if comprise two IME groups at least for a network element node.Fig. 7 shows the schematic diagram of three IME groups at E1 transmission platform group ring.
According to above description, those of ordinary skill in the art can be easy to implement the certain above-mentioned invention of system and method for the present invention and can obtain implementing in other special shape, and does not deviate from marrow or the basic feature that is disclosed.Therefore be appreciated that the present invention should not limited by the illustrative details in front, but defined by additional claim.
Any reference symbol in claims does not limit claims." comprise " appearance of once not getting rid of other assemblies outside listed in claims, " " before assembly or unit does not get rid of the existence of a plurality of this assemblies or unit.