Embodiment:
Below in conjunction with accompanying drawing in detail embodiments of the invention are described in detail.
A kind of in the inverse multiplexing process method of clog-free transmitting user data, this method utilizes IMA periodically to send the characteristic of icp cell, user cell is divided into several sections, be carried in the icp cell, this method comprises treatment step that user data is carried in the icp cell and sends and receives icp cell at far-end, and with the consistent treatment step of the data multiplex Cheng Yuyuan data sequence in the icp cell.
Please refer to Fig. 1, for user data is arranged on schematic diagram in the icp cell, each icp cell is made up of 53 bytes, the 18th to n byte carrying " link information ", but n+1 to the 49 byte carrying user data, wherein n is " number of links-1 in the 18+ group ", carrying " link information " and user data be totally 32 bytes, for example organize 4 links for one, preceding 4 bytes of " link information " are information such as Link State, 28 remaining bytes be sky, and this 28 byte just can be used for transmitting user data so.
Because user cell is made up of 53 bytes equally, obviously, an icp cell is to carry not next user cell, so just needs a plurality of icp cells to carry.That is to say, a user cell is divided into several sections, each section is carried by an icp cell.As shown in Figure 2: utilize the 48th and 49 two byte, decide carry in the icp cell of transmission what be which section of which user cell and judging carries in the icp cell that receives is which section of which user cell.
Head: the 8th bit, whether contain the header of 5 bytes in the expression user cell data, " 1 " expression contains header; " 0 " expression does not contain header.
User Cell No.: the 7-1 bit, scope 0-127, what represent that this cell carries is the order of user in ima frame, is which user cell.Because the superframe of IMA is 256, so the scope of user cell is decided to be 0-127, increases in order, and circulation repeatedly.
Segment: the 8-6 bit, scope is 0-7, what represent that this icp cell carries is which section of user cell.If 0, expression contains header, and promptly Head is 1, is expressed as first section simultaneously, if 2, so just represent the 3rd section.Why a user cell is carried by 8 icp cells at most, is to consider if carried by too many icp cell, and efficient just reduces so.
Length: the 5-1 bit, scope 0-31 is illustrated in this icp cell, is used for carrying the byte number of user cell, and promptly the length of the Segment section of User Cell No. cell is Length.
User Data: the user data of the Segment section of the User Cell No. cell of expression carrying, its length is Length.
Why two bytes of overhead are not immediately following in the link information back, but adopt the 48th, 49 bytes, be since can guarantee the judgement of this byte do not organized in the influence of number of links.
Please refer to Fig. 3, be the split process of the 50th user cell: determine that at first a cell can be carried by the least possible several icp cells, as group four links, a 32-4-2 (expense)=26 so, 53/26 to round be 3, therefore needs 3 icp cells.General method according to mean allocation, remaining last icp cell of giving, 53/3 to round be 18,18 bytes that at first will contain the letter head are carried to an icp cell, add the expense of last two bytes, send, send the icp cell of 18 bytes that contain the back then, 17 remaining bytes use the same method and send.
In atm technology, set up the value that Permanent Virtual Channel connects needs VPI (Virtual PathIdentifier Virtual Path Identifier) and VCI (Virtual Channel Identifier virtual path is represented symbol), as long as any one differently just represents different Permanent Virtual Channels among both. all come from same ATM layer with the user data of IMA transmission with the user data of icp cell carrying, its VPI, VCI value can be not identical.Therefore with the user data of IMA transmission with the user data of icp cell carrying, its VPI, VCI value is different, gives specific VPI by setting up Permanent Virtual Channel, the VCI value, according to VPI, which kind of method is the value of VCI distinguish with transmits.Fig. 4 represents the data sending processing flow process and receives handling process.
The data sending processing flow process:
Step 1: extract user cell with the icp cell carrying according to described VPI, VCI value;
Step 2:, and be carried in the icp cell according to the definite hop count that a cell is split of number of links in the group;
Step 3: send described icp cell;
Receive treatment step:
Step 4: extract described icp cell;
Step 5: from described icp cell, extract user data, the user data that extracts is filtered and preserves;
Step 6: filtered data is reverted to user cell.
5 pairs of described user data of described reception treatment step filter, and are that last two overhead bytes that will receive back extraction user data compare, and keep the previous cell in the identical overhead byte cell.
Wherein, step 5 comprises step by step following again in the said method:
Step 11: the capacity of setting is the internal memory of 54 * 128 bytes, can preserve 128 cells, and stipulates the definition of every of first byte, represents whether to receive corresponding section with bit;
Step 12: the user cell of reception deposits described memory field in order in;
Step 13: according to first letter save bit and judge whether a cell collects;
Above-mentioned steps 5 can also comprise step by step following:
Step 21: according to the icp cell number section of setting buffer memory and filtering cache of carrying user cell;
Step 22: extract piecemeal and the user data of more described icp cell; Then repeat this step by step if adjacent segment is identical;
Step 23: preserve new data with described filtering cache, and write in the corresponding section buffer memory after removing two overhead bytes.
Among a kind of embodiment in back, the size of last section buffer memory and front is consistent in described section buffer memory.
Below in conjunction with concrete example receiving course is described:
The one, directly preserve extraction method, its method is: the internal memory of definition 54 * 128 bytes, can store 128 user cells, many bytes are used for filtering, and represent with bit.Preserve in order, as receive first user cell, just be kept at the 54th byte of beginning.As shown in Figure 5, first byte is 00000101, and first of this byte is 1, and expression is received first section, and second is 0, represents second section and does not receive that also the 3rd is 1, and expression is received the 3rd section; Whole byte representation has received the data of first section and the 3rd section.If receive second section again, remove two bytes of expense automatically, be saved in second section, first byte becomes 0X07, represents that a cell is synthetic to finish.After extraction was gone out, first byte just became 0, just can receive the cell of same sequence number.Describe receiving course below in detail:
If first section of receiving first cell, first byte of buffer memory becomes 00000001 by 00000000 so, because the expense of two bytes is arranged when sending, what judge reception according to this expense when therefore receiving is which section of which cell, after judgement finishes, just remove this expense.Simultaneously this segment data is kept at the 2nd to the 19th byte of buffer memory; If second section of receiving first cell, first byte of buffer memory becomes 00000011 by 00000001 so, and second section that will remove expense simultaneously is kept at the 20th to the 37th byte; If second section of at this moment still receiving first cell because first byte 00000011 has represented to have received this section, therefore no longer handled; If the 3rd section of receiving first cell, that is to say, final stage (if a cell only need be divided into three sections), first byte just becomes 00000111 so, the 3rd section of same preservation, if judging first byte is 00000111, just represent that a cell receives (three sections), with the 1st byte clear 0.If what receive is first section of N cell, the 54th * N+1 byte of buffer memory is 00000001 so.Owing to make a start is at first to send first cell, secondly sends out second cell, until 128 cells are sent out first cell then again, circulation repeatedly like this; What receive in receiving end also is first to the 128th cell circulation cell repeatedly naturally.
The 2nd, similar IMA method.As shown in Figure 6, extract user data after, at first filter, just compare,, so just do not carry out any operation if consistent with the one piece of data of receiving previously, if inconsistent, filtering cache is just preserved new data, writes in the corresponding section buffer memory after removing two overhead bytes simultaneously.Be the convenience that reads and writes data, the size of last section buffer memory is consistent with the front, for example, size all is the integral multiple of 18 bytes, that is to say the final stage buffer memory, when writing, write pointer is 18 * N (N represent receive which cell), rather than 17 * N.The section of it should be noted that buffer memory number is a hop count that cell of data is split, therefore section buffer memory number with organize in number of links not necessarily identical, this is and the inconsistent place of ima protocol.In second the different section of being buffer memory all is user data, the content of no icp cell.Another different place is, the read-write of section buffer memory is 18 bytes once, and ima protocol is a cell, 53 bytes.Described section buffer memory is for receiving special definition of user data among the ICP, section buffer memory number is judging that a user cell is just definite when can be carried by several icp cells, that is to say, if a cell needs 3 icp cells to carry, just need 3 sections buffer memorys at receiver section so.