Summary of the invention
The embodiment of the present invention provides a kind of transmission method, transmitter and network system of adding idle bit, and it can be applied in Pseudo Wire Emulation Edge-to-Edge business, can effectively solve the transparent transmission problem of any bit of adding idle bit in Pseudo Wire Emulation Edge-to-Edge business.
The embodiment of the present invention provides a kind of transmission method of adding idle bit, comprising:
Transmitter obtains the time multiplexing date frame that multiple clock sources are identical;
In the frame head of the first time multiplexing date frame of transmitter from the identical time multiplexing date frame of described multiple clock sources, obtain the first bit value of adding idle bit;
Described transmitter carries out structuring encapsulation to the identical time multiplexing date frame of described multiple clock sources, generates the structural data bag for transmitting at packet switching network;
In the pseudo-line traffic control field of described transmitter in the packet header of described structural data bag, configure the first bit value of described adding idle bit;
Described transmitter sends the structural data bag of the first bit value that carries described adding idle bit to receiver by packet switching network.
The embodiment of the present invention also provides a kind of transmitter, comprising:
The first acquiring unit, for obtaining the time multiplexing date frame that multiple clock sources are identical;
Second acquisition unit, for obtaining the first bit value of adding idle bit from the frame head of the first time multiplexing date frame of the identical time multiplexing date frame of described multiple clock sources;
Packet encapsulation unit, for the identical time multiplexing date frame of described multiple clock sources is carried out to structuring encapsulation, generates the structural data bag for transmitting at packet switching network;
Dispensing unit, for configuring the first bit value of described adding idle bit in the pseudo-line traffic control field in packet header of described structural data bag;
The first transmitting element, for sending the structural data bag of the first bit value that carries described adding idle bit to receiver by packet switching network.
The embodiment of the present invention also provides a kind of network system, comprises above-mentioned transmitter, also comprises a receiver;
Described receiver comprises:
The first receiving element, for receiving the structural data bag of the first bit value that carries described adding idle bit;
The first resolution unit, for described structural data bag is resolved, and obtains the first bit value of the described adding idle bit carrying in the pseudo-line traffic control field in packet header of structural data bag;
The first one-tenth frame unit, for generating time multiplexing date frame, and is written to the first bit value of described adding idle bit in the frame head of described time multiplexing date frame.
Transmission method, transmitter and the network system of the adding idle bit that the embodiment of the present invention provides, when carrying out the transfer of data of Pseudo Wire Emulation Edge-to-Edge business, by the transmitter of packet switching network, from the frame head of tdm data frame, extracted the first bit value of adding idle bit, then the first bit value of above-mentioned adding idle bit is written in the PW control field in packet header of structural data bag, this structural data bag, for transmitting at packet switching network, then sends to receiver by transmitter by above-mentioned structural data bag.By this embodiment, can effectively the first bit value of the adding idle bit carrying in the frame head of time multiplexing date frame be transferred to the receiving terminal of packet switching network, can realize when the structuring encapsulation of data transmission of carrying out pseudo wire emulation service, effectively transmit any one bit value of adding idle bit.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
For prior art, when carrying out pseudo wire emulation service, the wherein transfer of data of structuring packing forms, cannot effectively solve the transparent transmission problem of adding idle bit, and the embodiment of the present invention provides a kind of technical scheme.Fig. 1 is the schematic flow sheet of the transmission method of adding idle bit in one embodiment of the invention, as shown in Figure 1, comprises following content.Step:
Step 101, transmitter obtain the time multiplexing date frame that multiple clock sources are identical.
For the each Frame in the identical time multiplexing date frame of multiple clock sources, in its frame head, carried respectively a bit value of adding idle bit, and the bit value of the adding idle bit carrying in different Frames is identical.
Transmitter can obtain the time multiplexing date frame that described multiple clock source is identical by the mode receiving, and also can obtain the time multiplexing date frame that described multiple clock source is identical by the mode generating.
In the frame head of step 102, the first time multiplexing date frame of described transmitter from the identical time multiplexing date frame of described multiple clock sources, obtain the first bit value of adding idle bit.The first time multiplexing date frame is any one the time multiplexing date frame in described multiple described time multiplexing date frame.The first bit value is the value of any one bit bit of described adding idle bit.
Alternatively, the frame head of described time multiplexing date frame is the first time slot of supporting the frame in the link (E1 link) of primary rate of European standard, namely first passage.
Alternatively, the frame head of described time multiplexing date frame is the framing bit position (F bit) of supporting the frame in the link (T1 link) of primary rate of North America and Nippon Standard.
Step 103, described transmitter carry out structuring encapsulation to the identical time multiplexing date frame of described multiple clock sources, generate the structural data bag for transmitting at packet switching network.
Described structuring encapsulation comprises the data load in the passage in time division multiplexing (TDM) Frame that the multiple clock sources on extraction multilink are identical, then data load is carried out to assembled package, and adds packet header, generated data bag.For example, as shown in Figure 2, transmitter is by having provided three tdm data frames that different T1 links receive, and each tdm data frame wherein comprises frame head, has carried a bit value of described adding idle bit in frame head.In addition, each tdm data frame also comprises 24 time slots for transmitting payload user data, also can be described as 24 passages, comprises passage 1, passage 2...... passage 24.Receiver generates a structural data bag according to the tdm data frame on described three different T1 links.Preferably, described structural data bag can be IP packet, User Datagram Protoco (UDP) (UDP) packet or transmission control protocol (TCP) packet.
In step 104, described transmitter pseudo-line (PW) control field in the packet header of described structural data bag, configure the first bit value of described adding idle bit.Wherein, described the first bit value represents the value of any one bit in adding idle bit, and is not used in the value that limits some specific bits.
Alternatively, in the present embodiment, the first bit value that configures described adding idle bit in described PW control field in the packet header of structural data bag comprises: the first bit value that configures described adding idle bit in a sub-field combination in described PW control field, wherein said son field combination comprises L son field and M son field, the length of described L son field is 1 bit, and the length of described M son field is 2 bits.
In pseudo wire emulation when transmission of carrying out tdm data frame, that the frame head of tdm data frame comprises is synchronous, verification and alarm function.Wherein, alarm, as the important information of network operation, need to pass through receiver by transmitter transmission.Therefore, at (the Circuit Emulation Service over PSN of the circuit emulation service based on packet switching network, hereinafter to be referred as: CESoPSN) in agreement, in PW control field, defined a sub-field combination, described son field combination comprises L son field and M son field, wherein, the length of L son field is 1 bit, and the length of M son field is 2 bits.Described son field combination can be for transmitting warning information to receiver opposite end.
This CESoPSN agreement is by Internet Engineering task groups (Internet Engineering Task Force, hereinafter to be referred as: RFC5086 standard definition IETF), it supports the technical scheme of structuring encapsulation, and this agreement is as shown in table 1 to the definition of described son field combination:
L |
M |
Coding definition |
0 |
00 |
CESoPSN packet, normal conditions |
0 |
01 |
Retain following use |
0 |
10 |
CESoPSN packet, the RDI state of adjunct circuit |
0 |
11 |
Be preserved for signaling message |
1 |
00 |
Tdm data is invalid, and quiet lotus can be ignored |
1 |
01 |
Retain following use |
1 |
10 |
Retain following use |
1 |
11 |
Retain following use |
Table 1
According to table 1, to the definition of the described son field combination that comprises L son field and M son field in PW control field, can find out, CESoPSN agreement is that described son field has been reserved multiple values, has reserved the combined value of multiple untapped L son fields and M son field.
Because a bit value of adding idle bit can value be 0, can value be also 1, there is the possibility of two kinds of values.
Therefore alternatively, can be, that two kinds of any two values in the reserved multiple values of described son field combination bit value representing adding idle bit may values by CESoPSN agreement.In the present embodiment, a kind ofly realize described method of carrying the first bit value of described adding idle bit by a sub-field combination in described PW control field and comprise: the first value or the second value that the value of described son field combination are configured to the first bit value for representing described adding idle bit, wherein, described the first value and the second value are that CESoPSN agreement is any two values in the reserved multiple values of described son field combination, first bit value that represents described adding idle bit in described the first value and described the second value is 0, another represents that the first bit value of described adding idle bit is 1.
For example, when described the first value is 110, be that L son field value is 1, M son field value is 10, described the second value is 111, and L son field value is that 1, M son field value is 11 o'clock, can represent that the first bit value of adding idle bit is 0 with 110, with 111, represent that the first bit value of adding idle bit is 1.
Alternatively, the embodiment of the present invention also provides another kind of method of carrying the first bit value of described adding idle bit by a sub-field combination in described PW control field.
Described the first bit value that carries described adding idle bit by a sub-field combination in described PW control field comprises: the value of described son field combination is configured to 000 or a reserved value, wherein, described reserved value is that CESoPSN agreement is any one value in the reserved multiple values of described son field combination, described 000 and described reserved value in one represent that the first bit value of described adding idle bit is 0, another represents that the first bit value of described adding idle bit is 1, described 000 also represents that described packet is a CESoPSN data message.
That is to say, use value 000 in the combination of described son field to represent that the one of the first bit value of adding idle bit may value, using CESoPSN agreement is that any one value in the reserved multiple values of described son field combination represents that the another kind of the first bit value of adding idle bit may value.Shown in the first bit value any one bit value that is described idle extra order.000 has been to represent that packet is normal CESoPSN packet by CESoPSN protocol definition.Embodiments of the invention, in accordance with having carried out implication expansion to 000 on the basis of CESoPSN agreement, make it both can represent that packet was normal CESoPSN packet, can represent again a bit value of adding idle bit, to 000 this value, have carried out multiplexing.So just, can reduce taking of reserved value to the combination of described son field, only need to use the reserved value of a described son field combination, realize the optimization that resource is used.
Step 105, described transmitter send the structural data bag of the first bit value that carries described adding idle bit to receiver by packet switching network.
In the above embodiment of the present invention, when carrying out the transfer of data of Pseudo Wire Emulation Edge-to-Edge business, by the transmitter of packet switching network, from the frame head of tdm data frame, extracted the first bit value of adding idle bit, then the first bit value of above-mentioned adding idle bit is written in the PW control field in packet header of structural data bag, this structural data bag, for transmitting at packet switching network, then sends to receiver by transmitter by above-mentioned structural data bag.By this embodiment, can effectively the first bit value of the adding idle bit carrying in the frame head of time multiplexing date frame be transferred to the receiving terminal of packet switching network, can realize when the structuring encapsulation of data transmission of carrying out pseudo wire emulation service, effectively transmit any one bit value of adding idle bit.Further, based on the disclosed method of the present embodiment, the bit value of the adding idle bit in multiple Frames on the link at described the first time multiplexing date frame place can be transferred to receiver, make receiver can obtain complete adding idle bit.
Receiver is receiving after above-mentioned structural data bag, can resolve described structural data bag, and obtain the first bit value of the adding idle bit in the PW control field in packet header of structural data bag, and when generating tdm data frame, the first bit value of annex spare bits is written in the frame head of tdm data frame.The technical scheme of the structural data encapsulation that the embodiment of the present invention provides, has realized the transparent transmission to Sa bit, can be applied to point-to-point or point-to-multipoint transfer of data.
Embodiment is corresponding with said method, one embodiment of the present of invention also provide a kind of transmitter, Fig. 3 is the structural representation of transmitter in one embodiment of the invention, as shown in Figure 3, this transmitter comprises the first acquiring unit 11, second acquisition unit 12, packet encapsulation unit 13, dispensing unit 14 and the first transmitting element 15, and wherein the first acquiring unit 11 is for obtaining the time multiplexing date frame that multiple clock sources are identical; Second acquisition unit 12 for obtaining the first bit value of adding idle bit from the frame head of the first time multiplexing date frame of the identical time multiplexing date frame of described multiple clock sources; Packet encapsulation unit 13, for the identical time multiplexing date frame of described multiple clock sources is carried out to structuring encapsulation, generates the structural data bag for transmitting at packet switching network; Dispensing unit 14 for configuring the first bit value of described adding idle bit in the pseudo-line traffic control field in packet header of described structural data bag; The first transmitting element 15 is for sending the structural data bag of the first bit value that carries described adding idle bit to receiver by packet switching network.
In the present embodiment, by second acquisition unit 12, from the frame head of the first time multiplexing date frame of the identical tdm data frame of multiple clock sources, obtain the first bit value of adding idle bit, by packet encapsulation unit carrying out structuring when encapsulation, be written in the PW control field in packet header of structural data bag and transmit, can realize the transparent transmission of adding idle bit when carrying out Pseudo Wire Emulation Edge-to-Edge business.
In the embodiment of the present invention, dispensing unit 14 wherein specifically can be for configuring the first bit value of described adding idle bit in a sub-field combination in the pseudo-line traffic control field in the packet header of structural data bag, wherein said son field combination comprises L son field and M son field, the length of described L son field is 1 bit, and the length of described M son field is 2 bits.
And concrete, above-mentioned dispensing unit 14 can comprise the first configuration subelement or the second configuration subelement.
Described the first configuration subelement is for being configured to the value of above-mentioned son field combination the first value or second value of the first bit value for representing described adding idle bit, wherein, above-mentioned the first value and the second value are that the circuit emulation service agreement based on packet switching network is any two values in the reserved multiple values of described son field combination, first bit value that represents described adding idle bit in described the first value and described the second value is 0, and another represents that the first bit value of described adding idle bit is 1.
Described the second configuration subelement for by son field combination be configured to 000 or reserved value carry the first bit value of described adding idle bit, wherein, described reserved value is that the circuit emulation service agreement based on packet switching network is any one value in the reserved multiple values of described son field combination, described 000 and described reserved value in one represent that the first bit value of described adding idle bit is 0, another represents that the first bit value of described adding idle bit is 1, described 000 also represents that described packet is a circuit emulation service packet based on packet switching network.
In the embodiment of the present invention, wherein the frame head of tdm data frame is the first time slot of supporting the frame in the link (E1 link) of primary rate of European standard, namely first passage.Or the frame head of tdm data frame is the framing bit position (F bit) of supporting the frame in the link (T1 link) of primary rate of North America and Nippon Standard.
As shown in Figure 4, for the system schematic of one embodiment of the invention, the embodiment of the present invention provides a kind of network system, the transmitter that this network system above-described embodiment provides, the Reference numeral of described transmitter in Fig. 4 is 10, and described transmitter 10 can comprise the first acquiring unit 11, second acquisition unit 12, packet encapsulation unit 13, dispensing unit 14 and the first transmitting element 15 as shown in Figure 3.Described network system also comprises and a receiver 20, this receiver 20 comprises the first receiving element 21, the first resolution unit 22 and the first one-tenth frame unit 23, and wherein the first receiving element 21 is for receiving the structural data bag of the first bit value that carries described adding idle bit; The first resolution unit 22 is for described structural data bag is resolved, and obtains the first bit value of the described adding idle bit carrying in the pseudo-line traffic control field in packet header of structural data bag; The first one-tenth frame unit 23 is for generating time multiplexing date frame, and the first bit value of described adding idle bit is written in the frame head of described time multiplexing date frame.
As shown in Figure 5, be the system schematic of another embodiment of the present invention, system as shown in Figure 5 comprises respectively transmitter 30 and receiver 40, the transmitter 30 here and receiver 40 are for packet switching network.
In system as shown in Figure 5, can and can function, transmitter and receiver be divided into local service processing unit (Native Service Processing according to function, hereinafter to be referred as: NSP) and end-to-end pseudo-line (Pseudo-Wire, hereinafter to be referred as entity PW)., in TDM business, NSP can be understood as Frame Handler (Framer) chip, and for being connected with time division multiplex network, and PW entity is connected with packet switching network.Wherein the NSP31 of transmitter 30 comprises the first acquiring unit 11 and the second acquisition unit 12 in embodiment illustrated in fig. 3, can receive the identical tdm data frame of multiple clock sources that time division multiplex network sends over, obtain the first bit value of adding idle bit in the frame head of any one tdm data frame.Transmitter 30 is interior can comprise multiple PW entities, and each PW entity is connected with a receiver, and for example, in Fig. 5, transmitter 30 has comprised 2 PW entities, is respectively PW entity 32 and PW entity 33.Each PW entity completes the function of middle packet encapsulation embodiment illustrated in fig. 3 unit 13, dispensing unit 14 and the first transmitting element 15.And for a TDM link, it may be only and a PW entity associated.Therefore, the tdm data frame of this TDM link and the first bit value of adding idle bit also only need to be transmitted to associated PW entity, and carry out structuring processing by associated PW entity, generating structured packet, and the first bit value of adding idle bit is written in the PW control field in packet header of structural data bag.
At receiver 40 places, PW entity 41 wherein completes the function of the first receiving element 21 and the first resolution unit 22 in the receiver 20 in system as described in Figure 4, structural data bag is resolved, and obtaining the first bit value of adding idle bit, the first bit value of the data that then above-mentioned parsing obtained and adding idle bit is transmitted to NSP42.NSP42 completes the function of the first one-tenth frame unit 23, for generating time multiplexing date frame, and the first bit value of described adding idle bit is written in the frame head of time multiplexing date frame, to send above-mentioned time multiplexing date frame to TDM network.
Alternatively, the multiple unit that occur in the present invention can be hardware cell, also can be software unit, can also a part be hardware cell, and a part is software unit.
The technical scheme that the embodiment of the present invention provides, wherein when carrying out Pseudo Wire Emulation Edge-to-Edge business, the technical scheme of utilizing structuring encapsulation, has realized effective transmission of any bit value of the adding idle bit to time multiplexing date frame, and then can realize the transmission to complete adding idle bit.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can complete by the relevant hardware of program command, aforesaid program can be stored in a computer read/write memory medium, this program, when carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.