The implementation method that time division multichannel pulse modified modulation signal transmits in Ethernet
Technical field
The present invention relates to the transmission method of a kind of time division multichannel (TDM) pulse code modulation (pcm) signal, particularly time division multichannel PCM signal is passed through conversion, the implementation method that enables to transmit in Ethernet.
Background technology
At present, between digital program controlled telephone exchange and other telephone subscriber's access devices or and transmission equipment between be to carry out communication by time-devision system (TDM) multiplex mode of paired pulses modulation signals, time division multichannel PCM signal transmits in strict accordance with synchronous sequence.Along with the proportion of data service in backbone communications is increasing, just require the fusion of speech business and data service, and data service mainly be by the mode of packet (PACKET) transmit with the exchange, packet be transmitted as asynchronous system, have bigger delay jitter and the packet loss phenomenon arranged, therefore research is transmitted time division multichannel PCM signal by packet how to eliminate the influence of delay jitter and packet loss is significant.Ethernet is a kind of data packet transmission mode of extensive use, has networking conveniently, and is simple in structure, low cost and other advantages.Along with the utilization of Ethernet in broadband metropolitan area network, between digital program controlled telephone exchange and other telephone subscriber's access devices or with transmission equipment between be connected as can helping networking flexibility and reduce construction investment and the fusion of network by Ethernet.
Summary of the invention
The technical problem that the present invention solves is that the method that provides a kind of time division multichannel pulse modified modulation signal to transmit in Ethernet is provided, make time division multichannel PCM signal can in Ethernet, transmit easily, be treated to former time division multichannel PCM signal via reduction again at receiver side through conversion process.
The performing step of the implementation method that a kind of time division multichannel pulse modified modulation signal of the present invention transmits in Ethernet is as follows:
Step 1: deposit the time division multichannel pulse modified modulation signal of each bar in buffer area frame by frame by corresponding deserialize first-in first-out buffer (FIFO);
Step 2: the signal data of the buffer area in the step 1 is formed the Ethernet data bag;
Step 3: the receiving terminal that the Ethernet data bag of structure in the step 2 is sent to Ethernet;
Step 4: the Ethernet data bag that the receiving terminal receiving end/sending end is sent;
Step 5: receiving terminal extracts Ethernet bag data field data, and is kept in the reception buffer area;
Step 6: the signal data in receiving buffer area with the time division multichannel pulse modified modulation signal correspondence of each bar passes through corresponding parallel change serial first-in first-out buffer respectively, revert to time division multichannel pulse modified modulation signal, and empty corresponding data field, finish the signal transmission in Ethernet.
The corresponding deserialize first-in first-out buffer of the time division multichannel pulse modified modulation signal of described each bar and the parallel serial first-in first-out buffer that becomes.
In the described step 2, first general: N
1Sequence number N, a number of the information agent that the frame of individual time division multichannel pulse modified modulation signal constitutes, the time division multichannel pulse modified modulation signal of described each bar of expression are N
2The cyclic sequence number of expression Ethernet bag sequencing form Ethernet bag data field, form an Ethernet data bag in conjunction with the other parts byte that constitutes the Ethernet bag again.
Receiving terminal receives that not doing verification behind the Ethernet bag extracts in the data field data and cyclic sequence number in the described step 5, and data is deposited in the reception buffer area of correspondence by the sequence number of the time division multichannel pulse modified modulation signal of each bar of the expression in the data field and bag cyclic sequence number.
The number N of the frame of the time division multichannel pulse modified modulation signal of an Ethernet data bag of described structure
1Value be not less than 2.
Described each reception buffer area all is divided into N
3Individual reception buffer memory subarea, N
2Be not less than 3 N for value
3Multiple, the information agent of Ethernet bag is put into N respectively according to bag cyclic sequence order
3In the individual reception buffer memory subarea, bag cyclic sequence number continuous N is placed in each subarea
2/ N
3The information agent of individual Ethernet bag.
Set a reception buffer memory subarea and finish pointer, when in receiving buffer memory subarea X, receiving the Ethernet bag of last cyclic sequence of this subarea number or receiving the Ethernet bag of any cyclic sequence number among the X+1 of buffer memory subarea, if among the X-1 of buffer memory subarea data are arranged, then receive the buffer memory subarea and finish pointed buffer memory subarea X-1; If among the X-1 of buffer memory subarea data are not arranged, then, receive the buffer memory subarea and finish pointed buffer memory subarea X when the Ethernet bag of last cyclic sequence among the X+1 of buffer memory subarea number or when receiving the Ethernet bag of any cyclic sequence number among the X+2 of buffer memory subarea.
Described X is N
3-1 o'clock, then X-1 was N
3-2, X+1 is N
3, X+2 is 1; As working as X is N
3The time, then Shang Mian X-1 is N
3-1, X+1 is 1, and X+2 is 2.
When certain buffer memory subarea of pointed is finished in described reception buffer memory subarea, if the Ethernet bag of some cyclic sequence in this subarea number do not receive, then fill up with a specific noise bag.
When receiving the cyclic sequence Ethernet bag of repetition before described reception buffer memory subarea Data Receiving is finished, then refresh previous bag with a back bag that repeats.
Description of drawings
Fig. 1 is the implementation method schematic diagram that the present invention is transmitted in Ethernet time division multichannel PCM signal;
Fig. 2 is the method for reseptance flow chart that time division multichannel pulse modified digital signal of the present invention is transmitted in Ethernet;
Fig. 3 is the sending method flow chart that time division multichannel pulse modified digital signal of the present invention is transmitted in Ethernet;
Embodiment
Simply introduce the inventive method flow process below, with reference to implementation method schematic diagram of the present invention shown in Figure 1, there is N bar TDM-PCM signal to be input in the string and conversion FIFO of transmitting terminal, form the Ethernet bag that can in Ethernet, transmit via sending to handle, transmission by Ethernet arrives the Ethernet receiving terminal with exchange again, the TDM-PCM signal message main body of forming the Ethernet bag is kept at receives in the buffer area, receive processing then and deliver to data corresponding and string conversion FIFO is reduced into the TDM-PCM signal.
Transmission and exchange for Ethernet are two-way communication circuits, and implementation method of the present invention is identical to the processing mode of uplink and downlink direction, and the realization of one of them direction only has been described in Fig. 1.
Further specify below by a concrete example.The 1st time division multichannel PCM speed among Fig. 1 is 2.048 MBPSs, and a frame duration is 125 microseconds, 32 bytes of totally 32 time slots; With reference to shown in Figure 2 transmitting terminal with this TDM-PCM signal via the string and the conversion FIFO, get N
1=8, N
2=12, N
3=4; The head of 2 bytes is the sequence number of this time division multichannel PCM signal, and sequence number N is 01; The Ethernet propagation delay time is 1 millisecond.Like this, an Ethernet bag is a 22+2+256+2=282 byte.Finish time division multichannel PCM signal and enter the transmission fifo buffer, be packaged into the Ethernet bag then and send upward Ethernet.
With reference to shown in Figure 3, at receiving terminal, receiving terminal receives and do not do sequence number, 256 byte datas and the bag cyclic sequence number that the time division multichannel PCM signal in the data field is extracted in verification behind the Ethernet bag, and data deposited in the reception buffer area of corresponding 12 256 byte data sizes by the sequence number of time-division multichannel PCM and bag cyclic sequence number.
Because exist the time-delay of each bag to differ and the packet loss phenomenon in the Ethernet transmission, for eliminating these influences, so be divided into 1,2,3,4 districts accepting buffer area, every district can deposit 3 data in the Ethernet bag.Determine that one receives decision rule:
Starting stage, if district's Data Receiving finish pointer when the bag of last sequence number 6 in 2 districts be received or 3 districts in any cyclic sequence number wrap when being received, this sensing 1 district of data is arranged in 1 district; 1 district's free of data then the bag of last cyclic sequence in 3 districts numbers 9 be received or 4 districts in any cyclic sequence number bag be received and point to 2 districts when judging; 2 district's free of data then be received with the bag of last cyclic sequence in 4 districts numbers 12 or 1 district in any cyclic sequence number bag to be received be to judge to point to 3 districts; 3 district's free of data then be received with the bag of last cyclic sequence in 1 district numbers 3 or 2 districts in any cyclic sequence number bag to be received be to judge to point to 4 districts that circulation is mobile then.
When in 1 district, data being arranged, when the bag of last cyclic sequence in 2 districts numbers 6 be received or 3 districts in any cyclic sequence number bag be received, judge that then 1 district's Data Receiving finishes, if at this moment there is the Bao Wei of some sequence number to receive and to handle by packet loss in 1 district, fill up with a specific noise bag, then 1 district's data are put into No. 1 and the first-in first-out buffer of string conversion goes back to and reverts to No. 1 multichannel pulse modified digital signal and empty 1 district's data simultaneously.If receive the cyclic sequence number bag that repeats in this district before certain district's Data Receiving is not finished, then refresh Jiu Bao with the bag of receiving at last.
Equally, 2 district's Data Receiving finish that bag with last cyclic sequence in 3 districts numbers 9 is received or 4 districts in any cyclic sequence number bag to be received be to judge; 3 district's Data Receiving finish that bag with last cyclic sequence in 4 districts numbers 12 is received or 1 district in any cyclic sequence number bag to be received be to judge; 4 district's Data Receiving finish that bag with last cyclic sequence in 1 district numbers 3 is received or 2 districts in any cyclic sequence number bag to be received be to judge; Packet loss is handled with 1 district consistent with receiving duplicate packages.
The average delay of system equals N
1Taking advantage of 125 microseconds to add 2 takes advantage of 125 to take advantage of N
1Take advantage of N
2Remove N
3Microsecond adds the Ethernet propagation delay time again, and the average delay of system equals 8 and takes advantage of 125 microseconds to add 2 to take advantage of 125 to take advantage of 8 to take advantage of 12 to remove 4 microseconds and add 1 millisecond=8 milliseconds of Ethernet propagation delay times again, be acceptable in this example.
Be equal to for other sequence number time division multichannels PCM Signal Processing process and top method, just repeat no more at this.
Owing to have delay variation and packet loss in the Ethernet, may produce error code.If but in the future the Ethernet bandwidth is enough and Ethernet switch is clog-free, and set suitable N
1, N
2, N
3Value just can reduce the error rate greatly.Because the method that adopts the noise bag to fill up to packet loss, under the not serious situation of packet loss, be negligible to user's influence.