Abstract:
Disclosed is a multipath time division service transmission method, comprising: calculating a channel service serial number corresponding to the time division service of each path, determining, according to the calculated channel service serial number, the channel number (CN) of a channel having service data transmission, and respectively and sequentially writing the service data and CN of the channel having service data transmission into a service data first input first output (FIFO) and a service channel index (CI) FIFO; and correspondingly, in order to read a service, respectively reading from the service data FIFO and the service CI FIFO the service data of the time division service and the CN of the channel transmitting the same. Also disclosed is a transmission device of a multipath time division service.

Description:
TECHNICAL FIELD 
       [0001]    The present disclosure relates to data transmission, and in particular to a method and device for transmitting multiple streams of Time Division (TD) traffic. 
       BACKGROUND 
       [0002]    A data transmission rate of a wireless communication system is limited by a radio spectrum. To save a data transmission bandwidth, when the wireless communication system transmits multiple streams of Time Division traffic, a bitmap is used for indicating a number of streams of Time Division traffic data transmitted on a time slot under consideration, and a bit width of the bitmap is used for representing a maximal number of transmitted streams of Time Division traffic data supported by the system. When the wireless communication system supports eight streams of E1 traffic, a bitmap thereof will be 8-bit wide. The eight streams of E1 traffic data may be transmitted in a frame format as shown in  FIG. 1 , where a time slot under consideration may include five streams of E1 data packets, i.e., a first, a third, a fourth, a fifth, and an eighth stream of E 1 . Then, the bitmap may be 10111001, meaning that subsequently a first E1fragment is the first stream, a second E1 fragment is the third stream, a third E1fragment is the fourth stream, a fourth E1 fragment is the fifth stream, and a fifth E1fragment is the eighth stream. A E1 fragment numbering thereof is a Channel Number (CN) of the E1 data. The CNs and the E1 data are to be transmitted simultaneously to the wireless communication system. 
         [0003]    In related art, a bitmap is used for representing a frame structure of Time Division traffic. For example, a structure for receiving eight streams of E1 data is as shown in  FIG. 2 . According to the bitmap, a stream of E1 data may be placed into a First Input First Output queue (FIFO) with a FIFO number corresponding to the number of the stream of E1 data. For example, the first stream of E1 data may be placed into a location indexed by FIFO Number 1, the third stream of E1 data may be placed into a location indexed by FIFO Number 3, and so on. Then, during data reading, a stream of E1 data may be read from a FIFO with a corresponding FIFO Number. However, such a frame format may be disadvantageous for reasons as follows. 
         [0004]    Firstly, FIFO pointer control during data writing and reading is complicated. When the number of routes of Time Division traffic supported by the system is increased up to tens or even hundreds or thousands, it is difficult to ensure, by writing pointer control, real-time writing of input data into the FIFO; and reading pointer is complicated, as well, thereby not only leading to low circuit reliability, but also consuming massive circuit resources, in which case it is difficult to implement sequential transmission of Time Division traffic data. 
         [0005]    Secondly, a number of streams of Time Division traffic borne on a frame may differ depending on each frame. In an extreme case, this may result in a situation where Time Division traffic data on a later frame are output to the FIFO before Time Division traffic data on an earlier frame, leading to an excessively large jitter of the Time Division traffic data, failing to meet a requirement of the communication system. 
       SUMMARY 
       [0006]    In view of this, embodiments herein provide a method and device for transmitting multiple streams of Time Division traffic. 
         [0007]    A technical solution according to an embodiment herein may be implemented as follows. 
         [0008]    According to an embodiment herein, a method for transmitting multiple streams of Time Division traffic includes: 
         [0009]    calculating a channel traffic sequence number corresponding to a stream of Time Division traffic; determining, according to the calculated channel traffic sequence number, a Channel Number (CN) of a channel bearing traffic data; successively writing the traffic data borne on the channel bearing the traffic data and the CN of the channel bearing the traffic data respectively into a traffic data First Input First output queue (FIFO) and a traffic Channel Index (CI) FIFO. 
         [0010]    According to an embodiment herein, a device for transmitting multiple streams of Time Division traffic includes a calculator, a first reader-writer, an encoder, a second reader-writer, a traffic data First Input First output queue (FIFO), and a traffic Channel Index (CI) FIFO. 
         [0011]    The calculator is configured for: calculating a channel traffic sequence number corresponding to a stream of Time Division traffic. 
         [0012]    The first reader-writer is configured for: writing traffic data borne on a channel bearing the traffic data successively into the traffic data FIFO. 
         [0013]    The encoder is configured for: determining, according to the channel traffic sequence number calculated by the calculator, a Channel Number (CN) of the channel bearing the traffic data. 
         [0014]    The second reader-writer is configured for: writing the CN of the channel bearing the traffic data successively into the traffic CI FIFO. 
         [0015]    The traffic data FIFO is configured for: storing the traffic data borne on the channel bearing the traffic data. 
         [0016]    The traffic CI FIFO is configured for: storing the CN of the channel bearing the traffic data. 
         [0017]    With the method and device for transmitting multiple streams of TD traffic according to embodiments herein, a channel traffic sequence number corresponding to a stream of Time Division traffic is calculated; a Channel Number (CN) of a channel bearing traffic data is determined according to the calculated channel traffic sequence number; the traffic data borne on the channel bearing the traffic data and the CN of the channel bearing the traffic data are successively written respectively into a traffic data First Input First output queue (FIFO) and a traffic Channel Index (CI) FIFO. When traffic needs to be read, traffic data of the Time Division traffic and a CN of a channel bearing the traffic data of the Time Division traffic may be read respectively from the traffic data FIFO and the traffic CI FIFO. In this way, synchronization transmission of CNs of multiple streams of Time Division traffic and of traffic data of the multiple streams of Time Division traffic may be ensured during transmission of the multiple streams of Time Division traffic, while reducing massive logic overheads brought by Time Division traffic data synchronization during Time Division traffic data transmission, increasing stability in Time Division traffic data transmission. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0018]      FIG. 1  is a diagram of a frame format for transmitting eight streams of E1 traffic according to related art. 
           [0019]      FIG. 2  is a diagram of a structure for receiving eight streams of E1 traffic data according to related art. 
           [0020]      FIG. 3  is a flowchart of a method for transmitting multiple streams of Time Division traffic according to an embodiment herein. 
           [0021]      FIG. 4  is a flowchart of a method for transmitting eight streams of E1 traffic according to an embodiment herein. 
           [0022]      FIG. 5  is a diagram of a structure for calculating a FIFO of eight streams of E1 traffic data according to an embodiment herein. 
           [0023]      FIG. 6  is a diagram of a CI FIFO of eight streams of E1 traffic according to an embodiment herein. 
           [0024]      FIG. 7  is a diagram of a structure for pointer processing for receiving eight streams of E1 traffic according to an embodiment herein. 
           [0025]      FIG. 8  is a diagram of a structure of a device for transmitting multiple streams of Time Division traffic according to an embodiment herein. 
       
    
    
     DETAILED DESCRIPTION 
       [0026]    According to embodiments herein, a channel traffic sequence number corresponding to a stream of Time Division traffic is calculated; a Channel Number (CN) of a channel bearing traffic data is determined according to the calculated channel traffic sequence number; the traffic data borne on the channel bearing the traffic data and the CN of the channel bearing the traffic data are successively written respectively into a traffic data First Input First output queue (FIFO) and a traffic Channel Index (CI) FIFO. 
         [0027]    The traffic data borne on the channel bearing the traffic data may be written successively into the traffic data FIFO according to a transmission order. The CN of the channel bearing the traffic data may be written successively into the traffic CI FIFO according to the channel traffic sequence number. 
         [0028]    When traffic needs to be read, traffic data of the Time Division traffic and a CN of a channel bearing the traffic data of the Time Division traffic may be read respectively from the traffic data FIFO and the traffic CI FIFO. 
         [0029]    A channel traffic sequence number corresponding to a stream of Time Division traffic may be calculated according to a bitmap of multiple streams of Time Division traffic. A CI may represent a channel traffic sequence corresponding to a stream of Time Division traffic. 
         [0030]    A CN of a channel bearing traffic data may be determined according to the calculated channel traffic sequence number and a Current write number (CWN) of an encoder. Given a CWN, the CN corresponding to the channel bearing the traffic data may be obtained according to the calculated channel traffic sequence number corresponding to the channel bearing the traffic data. Obtained CN values may then be stored successively into the traffic CI FIFO according to channel traffic sequence numbers. 
         [0031]    As shown in  FIG. 3 , a flow of a method for transmitting multiple streams of Time Division traffic according to an embodiment herein includes steps as follows. 
         [0032]    In step  101 , a channel traffic sequence number corresponding to a stream of Time Division traffic is calculated. 
         [0033]    A channel traffic sequence number corresponding to a stream of Time Division traffic may be calculated according to a bitmap of multiple streams of Time Division traffic. 
         [0034]    A channel traffic sequence number corresponding to a stream of Time Division traffic may be obtained by obtaining a sum over a bit corresponding to the stream of Time Division traffic and any preceding bit in the bitmap, and then ANDing the sum with the bit corresponding to the stream of Time Division traffic. 
         [0035]    In step  102 , a CN of a channel bearing traffic data is determined according to the calculated channel traffic sequence number. 
         [0036]    Any channel traffic sequence number equal to zero may be filtered out from channel traffic sequence numbers corresponding respectively to streams of Time Division traffic calculated in step  101 . A channel corresponding to a nonzero channel traffic sequence number may be determined to be a channel bearing traffic data. The CN of the channel bearing the traffic data may thus be determined. 
         [0037]    In the step, the sequence number of Time Division traffic data being transmitted may be calculated by MODing the CI of the Time Division traffic data being transmitted with the CWN. The CWN may be increased by 1 after transmission of a stream of Time Division traffic data. Given the CWN value, the CN corresponding to the channel bearing the traffic data may be obtained according to the channel traffic sequence number calculated in step  101 . 
         [0038]    In step  103 , traffic data borne on a channel and a CN of the channel bearing the traffic data are successively written respectively into the traffic data FIFO and the traffic CI FIFO. 
         [0039]    The traffic data borne on the channel bearing the traffic data may be written successively into the traffic data FIFO according to a transmission order. The CN of the channel bearing the traffic data may be written successively into the traffic CI FIFO according to the channel traffic sequence number. 
         [0040]    The method may further include step  104 , where when traffic needs to be read, traffic data of the Time Division traffic and a CN of a channel bearing the traffic data of the Time Division traffic may be read respectively from the traffic data FIFO and the traffic CI FIFO. Reading from FIFO is known art and therefore is not repeated herein. 
         [0041]    Consider transmission of eight streams of E1 traffic, for example. According to the embodiment, eight streams of E1 traffic data may be transmitted using a frame format as shown in  FIG. 1 , a time slot under consideration may include five streams of E1 traffic data packets to be transmitted, i.e., a first, a third, a fourth, a fifth, and an eighth stream of E1. Such transmission corresponds to a Time Division traffic bitmap 10111001. As shown in  FIG. 4 , a flow of a method for transmitting eight streams of E1 traffic according to the embodiment may include steps as follows. 
         [0042]    In step  201 , a channel traffic sequence number corresponding to a stream of E1traffic may be calculated. 
         [0043]    A channel traffic sequence number corresponding to a stream of Time Division traffic may be calculated according to the bitmap as shown in  FIG. 1 . 
         [0044]    A channel traffic sequence number corresponding to a stream of Time Division traffic may be obtained by obtaining a sum over a bit corresponding to the stream of Time Division traffic and any preceding bit in the bitmap, and then ANDing the sum with the bit corresponding to the stream of Time Division traffic. 
         [0045]    According to the embodiment, with the bitmap[1:8]=8′b10111001, the sum operation for calculating channel traffic sequence numbers corresponding respectively to eight streams of E1 has a calculating structure as shown in  FIG. 5 .  FIG. 5  may include eight adders, each corresponding to a stream of traffic. To calculate the channel traffic sequence number of the first stream of traffic, the first bit may be input to the first adder. To calculate the channel traffic sequence number of the second stream of traffic, the first and the second bits may be input to the second adder. To calculate the channel traffic sequence number of the third stream of traffic, the first, the second, and the third bits may be input to the third adder, and so on. To calculate the channel traffic sequence number of the eighth stream of traffic, the first to the eighth bits may all be input to the eighth adder. A formula thereof may be as follows. 
         [0000]        CI 1=bitmap[1]&amp;bitmap[1]=1. 
         [0046]    That is, the first stream of Time Division traffic data may correspond to the first channel traffic sequence number. 
         [0000]        CI 2=(bitmap[1]+bitmap[2])&amp;bitmap[2]=0. 
         [0000]        CI 3=(bitmap[1]+bitmap[2]+bitmap[3])&amp;bitmap[3]=2. 
         [0047]    That is, the third stream of Time Division traffic data may correspond to the second channel traffic sequence number. 
         [0000]        CI 4=(bitmap[1]+bitmap[2]+bitmap[3]+bitmap[4])&amp;bitmap[4]=3. 
         [0048]    That is, the fourth stream of Time Division traffic data may correspond to the third channel traffic sequence number. 
         [0000]        CI 5=(bitmap[1]+bitmap[2]+bitmap[3]+bitmap[4]+bitmap[5])&amp;bitmap[5]=4. 
         [0049]    That is, the fifth stream of Time Division traffic data may correspond to the fourth channel traffic sequence number. 
         [0000]        CI 6=(bitmap[1]+bitmap[2]+bitmap[3]+bitmap[4]+bitmap[5]+bitmap[6]) &amp;bitmap[6]=0. 
         [0000]        CI 7=(bitmap[1]+bitmap[2]+bitmap[3]+bitmap[4]+bitmap[5]+bitmap[6]+bitmap[7])&amp;bitmap[7]=0. 
         [0000]        CI 8=(bitmap[1]+bitmap[2]+bitmap[3]+bitmap[4]+bitmap[5]+bitmap[6]+bitmap[7]+bitmap[8])&amp;bitmap[8]=5. 
         [0050]    That is, the eighth stream of Time Division traffic data may correspond to the fifth channel traffic sequence number. 
         [0051]    In step  202 , a CN of a channel bearing traffic data is determined according to the calculated channel traffic sequence number. 
         [0052]    Any channel traffic sequence number equal to zero may be filtered out from channel traffic sequence numbers corresponding respectively to streams of Time Division traffic calculated in step  201 . According to the embodiment, channels bearing the traffic data may respectively be the first, the third, the fourth, the fifth, and the eighth channels, corresponding respectively to CN 1 , CN 3 , CN 4 , CNS, and CNB. 
         [0053]    In step  203 , traffic data are successively written into a traffic data FIFO. 
         [0054]    The first, the third, the fourth, the fifth, and the eighth stream of Time Division traffic data may be written into the traffic data FIFO. The traffic data FIFO may be of a structure as shown in  FIG. 6 . 
         [0055]    In step  204 , CNs of channels bearing traffic data may be successively written into a traffic CI FIFO according to channel traffic sequence numbers. 
         [0056]    During calculation of CI FIFO of eight streams of E1 traffic, the sequence number of Time Division traffic data being transmitted may be calculated by MODing the CI of the Time Division traffic data being transmitted with the CWN. The CWN may be increased by 1 after transmission of a stream of Time Division traffic data. Given the CWN value, the CN corresponding to the TD traffic data being transmitted may be obtained according to CIs corresponding to respective streams of TD traffic data calculated in step  101 . The obtained CN value may then be written into the traffic CI FIFO. 
         [0057]    When CWN=1, that is, when the first stream of channel traffic sequence is being transmitted, CN=1 may be obtained according to CI1=1 calculated in step  201 . 
         [0058]    When CWN=2, that is, when the second stream of channel traffic sequence is being transmitted, CN=3 may be obtained according to CI3=2 calculated in step  201 . 
         [0059]    When CWN=3, that is, when the third stream of channel traffic sequence is being transmitted, CN=4 may be obtained according to CI4=3 calculated in step  201 . 
         [0060]    When CWN=4, that is, when the fourth stream of channel traffic sequence is being transmitted, CN=5 may be obtained according to CI5=4 calculated in step  201 . 
         [0061]    When CWN=5, that is, when the fifth stream of channel traffic sequence is being transmitted, CN=8 may be obtained according to CI8=5 calculated in step  201 . 
         [0062]    The calculated CN=1, CN=3, CN=4, CN=5, and CN=8 may be written successively into the traffic CI FIFO. 
         [0063]    In step  205 , traffic data of Time Division traffic and a CN of a channel bearing the traffic data of the Time Division traffic may be read respectively from the traffic data FIFO and the traffic CI FIFO. 
         [0064]    A structure for pointer processing for receiving eight streams of E1 traffic according to an embodiment herein may be as shown in  FIG. 7 . Steps  201 - 204  may implement a pointer for reading the traffic data FIFO of eight streams of E1 and a pointer for reading the traffic CI FIFO of eight streams of E1 that are completely consistent with each other, implementing synchronization between E1 traffic data and E1 traffic CNs, avoiding disorder of Time Division traffic transmission on different frames. 
         [0065]    To implement an aforementioned method for transmitting multiple streams of Time Division traffic, an embodiment herein further provides a device for transmitting multiple streams of Time Division traffic. As shown in  FIG. 8 , the device for transmitting multiple streams of Time Division traffic includes a calculator  101 , a first reader-writer  102 , a second reader-writer  103 , an encoder  104 , a traffic data First Input First output queue (FIFO)  105 , and a traffic Channel Index (CI) FIF 106 . 
         [0066]    The calculator  101  is configured for: calculating a channel traffic sequence number corresponding to a stream of Time Division traffic. 
         [0067]    The first reader-writer  102  is configured for: writing traffic data borne on a channel bearing the traffic data successively into the traffic data FIFO. 
         [0068]    The encoder  104  is configured for: determining, according to a channel traffic sequence number corresponding to a stream of TD traffic calculated by the calculator  101 , a Channel Number (CN) of the channel bearing the traffic data. 
         [0069]    The second reader-writer  103  is configured for: writing the CN of the channel bearing the traffic data successively into the traffic CI FIFO. 
         [0070]    The traffic data FIFO  105  is configured for: storing the traffic data borne on the channel bearing the traffic data. 
         [0071]    The traffic CI FIFO  106  is configured for: storing the CN of the channel bearing the traffic data. 
         [0072]    The first reader-writer  102  may be further configured for: when needed, reading traffic data of the Time Division traffic written in the traffic data FIFO. 
         [0073]    The second reader-writer  103  may be further configured for: when needed, reading a CN of a channel bearing the traffic data of the Time Division traffic written in the traffic CI FIFO. 
         [0074]    Note that in an actual application, functions of the calculator  101 , the first reader-writer  102 , the second reader-writer  103 , the encoder  104 , the traffic data FIFO  105 , the traffic CI FIFO  10  may be implemented by a Central Processing Unit (CPU), or a Micro Processor Unit (MPU), or a Digital Signal Processor (DSP), or a memory, or a Field-Programmable Gate Array (FPGA) located in a terminal. 
         [0075]    What described are merely embodiments of the disclosure and are not intended to limit the protection scope of the disclosure.