Patent Abstract:
A system for optimally mapping circuits into packets based on round trip delay (RTD), and a system for measuring RTD for use in packet communications systems such as circuit emulation (CEM) systems is disclosed. The measured RTD value can be used in a system that adjusts packet size to reduce capture delay to partially offset an increase in RTD. As the use of smaller packets increases the overhead burden on the packet communication system, the packet size can be increased to reduce the overhead burden when the size of the current RTD becomes appropriately short. The disclosure also teaches the placement of data from two or more circuits destined for the same emulation endpoint into the same transmission packet in order to improve system performance. The abstract is a tool for finding relevant disclosures and not a limitation on the scope of the claims.

Full Description:
[0001]    This application claims priority from co-pending U.S. Provisional Patent Application No. 60/308,738 (Docket 0396-008) for Flexible Mapping of Circuits into Packets. 
     
    
     
       FIELD OF THE INVENTION  
         [0002]    This invention relates to communications systems and methods, in particular, to packet communication systems and methods.  
         BACKGROUND OF THE INVENTION  
         [0003]    Circuit emulation (CEM) systems, such as ATM CES, map native circuit frames received from a circuit into packets or cells. Sometimes this mapping is designed to minimize delay, as with ATM CES. Minimization of delay is accomplished by creating small packets, which minimizes the “capture delay”. Capture delay is the time that it takes to acquire enough incoming circuit frames to create a packet. The drawback to minimizing capture delay is that the ratio of overhead (non-data control information) to data can be high, which leads to inefficient use of bandwidth. Other mappings are designed to increase efficiency and minimize overhead by increasing the number of transported frames, while holding constant the amount of overhead data. Reducing the percentage of overhead in this fashion has the disadvantage of increasing the capture delay.  
           [0004]    Capture delay is one component in the round trip delay (RTD) for a packet to travel from one unit across the network to a second unit and then for a packet to return back from the second unit across the network to the first unit. The prior art has included means for measuring round trip delay, but these means have required the use of special test packets that were sent periodically. The use of periodic test packets adds to the overhead because these packets do not carry a CEM payload. The use of periodic test packets adds another tradeoff between having recent representative data on RTD and sending a large number of test packets without CEM payloads. The term payload is being use here and in the claims that follow to designate “real data” in contrast with packet headers, various types of overhead for sending control data, and dummy data that is called “filler” or “stuff”. Delivering real data (“payloads”) is the purpose for having a system, and everything else just facilitates that process.  
           [0005]    Thus, prior art solutions have forced a fixed choice on the number of payload frames per CEM packet and thus a fixed choice between inefficient use of bandwidth or increasing the capture delay. A further shortcoming is that the prior art has not provided a method of collecting RTD while continuing to carry CEM payloads.  
           [0006]    It is therefore an object of the invention to define a flexible mapping of circuits into packets. This method will allow flexibility in these dimensions:  
           [0007]    The amount of data from a given circuit can be varied manually or automatically based on the measured end-to-end delay or round trip delay (RTD). The amount of data mapped to each packet is inversely proportional to the measured round trip delay.  
           [0008]    If two or more circuits are destined for the same emulation endpoint, their data may be manually or automatically mapped into the same packet.  
           [0009]    It is furthermore the object of this invention to provide a simple means of measuring RTD based on timestamps carried in a CEM packet that also conveys CEM payloads.  
         SUMMARY  
         [0010]    This disclosure provides a method for dynamically adjusting the number of data frames placed in a data unit or packet based on one or more recent measurements of round trip delay from the source device to a target device and back. Also disclosed is a method for measuring round trip delay by capturing certain relevant time values and transmitting these values within the packets carrying data frames so that new measurements of round trip delay can be made without the use of control packets that do not carry data frames.  
           [0011]    Data structures for use with the disclosed methods are provided for a variety of protocols. 
       
    
    
     BRIEF DESCRIPTIONS OF THE DRAWINGS  
       [0012]    [0012]FIG. 1 shows the layout of the CEM Protocol Data Unit (PDU) in accordance with one version of the present invention.  
         [0013]    [0013]FIG. 2 shows the placement of multiple CEM PDUs in the same packet in accordance with another version of the present invention.  
         [0014]    [0014]FIG. 3 shows a standard TCP/IP UDP packet to carry the CEM data in accordance with another version of the present invention.  
         [0015]    [0015]FIG. 4 shows the format of a CEM/IP packet carried over Ethernet without a VLAN tag in accordance with another version of the present invention.  
         [0016]    [0016]FIG. 5 shows the format of an IP packet carried over Ethernet with an explicit VLAN tag in accordance with another version of the present invention.  
         [0017]    [0017]FIG. 6 shows a CEM PDU mapped to Multiprotocol Label Switching (MPLS) in accordance with another version of the present invention.  
         [0018]    [0018]FIG. 7 shows a CEM/MPLS packet mapped to Ethernet, with no VLAN tag in accordance with another version of the present invention.  
         [0019]    [0019]FIG. 8 shows a CEM/MPLS packet mapped to an Ethernet frame with an explicit VLAN tag in accordance with another version of the present invention.  
         [0020]    [0020]FIG. 9 shows the state machine for managing the TxTimeDelay timer and the time fields in the PDU in accordance with one version of the present invention.  
         [0021]    [0021]FIG. 10 shows the state machine to control the number of payload frames in a CEM PDU based on the RTD in accordance with one version of the present invention. 
     
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT  
     CEM Format  
       [0022]    The layout of the CEM Protocol Data Unit (PDU) is shown in FIG. 1  
         [0023]    The CEM header is 12 bytes in length, and it is used by the CEM application to multiplex and demultiplex circuits, detect packet loss, maintain packet order, and compute packet network transit delay. A variable number of bytes of Time Division Multiplexing (TDM) data may be carried. Table 1 describes the fields of the CEM Header.  
                                 TABLE 1                           CEM Header Fields            Field   Description   Values   Size               CVER   Circuit Emulation Version       4 bits       CTYPE   Circuit Type (T1, E1, T3, E3, OC3, OC12)   0 = T1, 1 = E1, 2 = T3,   4 bits               3 = E3, 4 = OC3, 5 = OC12       COPT   Bit mask of options   0xAA55   4 bits       TxTime   TxTime is valid   1 = valid, 0 = invalid   1 bit       EchoTxTime   EchoTxTime is valid   1 = valid, 0 = invalid   1 bit       TxTimeDelay   TxTimeDelay is valid   1 = valid, 0 = invalid   1 bit       More   More CEM frames after this one   1 = more, 0 = this is the last   1 bit       CFRAMES   Number of Native Circuit Frames contained in   1 to 15, 0 = 16 frames   4 bits           the packet       CEM LABEL   Circuit Emulation Label       16 bits       CEM SEQUENCE#   Sequence Number for packet loss detection   0 to 65535   16 bits           and reordering       TxTimeDelay   Clock ticks between receipt of Transmit   # of 125 μs ticks   16 Bits           Timestamp and transmission of this packet.           This is used to account for holding delay.       TxTime   Transmit Timestamp   In units of 125 μs ticks   16 Bits       EchoTxTime   The last captured TxTime from the Far Side   In units of 125 μs ticks   16 Bits                  
 
         [0024]    Multiple CEM PDUs can be placed in the same packet, as shown in FIG. 2. For the PDUs shown in FIG. 2, the “More” bit in the COPT field would be set to “1” for CEM PDUs # 1  and # 2  and to “0” for PDU # 3 .  
       CEM Mappings  
       [0025]    CEM Over IP Format  
         [0026]    The mapping of CEM to IP uses a standard TCP/IP UDP packet to carry the CEM data. The layout of this packet is shown in FIG. 3.  
         [0027]    [0027]FIG. 4 shows the format of a CEM/IP packet carried over Ethernet with no VLAN tag.  
         [0028]    [0028]FIG. 5 shows the format of an IP packet carried over Ethernet with an explicit VLAN tag.  
         [0029]    CEM Over MPLS  
         [0030]    A Multiprotocol Label Switching (MPLS) label is 2 bytes in length. FIG. 6 shows a CEM PDU mapped to MPLS.  
         [0031]    [0031]FIG. 7 shows a CEM/MPLS packet mapped to Ethernet, with no VLAN tag. Those of skill in the art understand the use of the VLAN tag for use in an architecture for Virtual Bridged LANS, such as found in IEEE Standard 802.1Q-1998 IEEE Standards for Local and Metropolitan Area Networks: Virtual Bridged Local Area Networks approved Dec. 8, 1998 by the IEEE-SA Standards Board.  
         [0032]    [0032]FIG. 8 shows a CEM/MPLS packet mapped to an Ethernet frame with an explicit VLAN tag.  
         [0033]    CEM Over Other Protocols  
         [0034]    It will be apparent to someone skilled in the art that the CEM PDU shown in FIG. 1 may be mapped to other protocols. For example, the mapping shown in FIG. 3 may be combined with standard mappings of IP to ATM or Frame Relay to provide the transport of CEM over those protocols.  
       Measurement of RTD  
       [0035]    The current invention measures RTD through the use of timestamps embedded in the CEM Packet.  
         [0036]    General Processing Flow  
         [0037]    A process to measure roundtrip delay from Unit A to Unit B and back to Unit A comprises:  
         [0038]    Step 104—Unit A generates a circuit emulation packet (CEM PDU) and places the value of local time into the TxTime field (transmit time) into a field within the CEM PDU.  
         [0039]    Step 108—Unit A transmits the packet to Unit B through a packet network.  
         [0040]    Step 112—Unit B receives the transmitted packet and records the TxTime field from the received packet and Unit B starts a timer to measure TxTimeDelay.  
         [0041]    Step 116—Unit B generates a CEM PDU and fills the TxTime field with local time, places the TxTimeDelay timer value in the TxTimeDelay field and copies the stored TxTime into EchoTx Time to send back the time received in the packet from Unit A. The TxTimeDelay contains the holding delay that occurred between the receipt of the packet at Unit B and the preparation of the packet for transmission to Unit A.  
         [0042]    Step 120—Unit B transmits the packet to Unit A through the packet network.  
         [0043]    Step 124—Unit A receives the transmitted packet and records the TxTime field from the received packet and Unit A starts a timer to measure TxTimeDelay.  
         [0044]    Step 128—Unit A marks the local time then subtracts from local time the EchoTxTime and the TxTimeDelay obtained from the packet received from Unit B. This provides a Round Trip Delay. The one-way delay can be approximated as one half of the RTD time.  
         [0045]    The actions at Unit A and Unit B are symmetric. As the process continues, the next packet back to Unit B will have enough information for Unit B to calculate a Round Trip Delay. Note that there is not any requirement that the local time clock in Unit A be synchronized to the local time clock in Unit B.  
         [0046]    State Machine Diagram  
         [0047]    [0047]FIG. 9 shows an implementation of a state machine for managing the TxTimeDelay timer and the time fields in the PDU.  
         [0048]    State Machine Table  
         [0049]    Table 2 describes the state machine depicted in FIG. 9.  
                                       TABLE 2                           RTD State Machine                State            Event   Idle   Timing               Received   1. Record TxTime in EchoTxTime   1. Ignore TxTime       CEM PDU   2. Set TxTimeDelay = 0           3. →Timing       Time to Send   1. Set EchoTxTime and   1. Record EchoTxTime and       CEM PDU   TxTimeDelay invalid in packet   TxTimeDelay in packet and set valid               2. →Idle                                          
 
         [0050]    RTD Measurement Example  
                                                                                                                                                                                   TABLE 3                           Table 3 shows an example of RTP measurement.       Table 3: RTD Example                Unit A   Unit B   Unit A            Time   Local       Local   Curr   New   Recv&#39;d   TxTime       Recv.                Index   Time   Event   Time   State   Event   State   TxTime   Delay   Event   Time   RTD                    0   22       342   Idle   Receive #6   Timing   20   0                   1   23       343   Timing       Timing   20   1   Receive #330   23   23 − 16 − 3 = 4       2   24   Send #7   344   Timing       Timing   20   2       3   25       345   Timing   Send #331   Idle   20   3       4   26       346   Idle   Receive #7   Timing   24   0       5   27       347   Timing       Timing   24   1   Receive #331   27   27 − 20 − 3 = 4       6   28   Send #8   348   Timing       Timing   24   2       7   29       349   Timing   Send #332   Idle   24   3       8   30       350   Idle       Idle   24   —       9   31       351   Idle       Idle   24   —   Receive #332   31   31 − 24 − 3 = 4       10   32   Send #9   352   Idle       Idle   24   —       11   33       353   Idle   Send #333   Idle   24   —       12   34       354   Idle   Receive #8   Timing   28   0       13   35       355   Timing   Receive #9   Timing   28   1   Receive #333   35   No calculation       14   36   Send #10   356   Timing       Timing   28   2       15   37       357   Timing   Send #334   Idle   28   3       16   38       358   Idle   Receive #10   Timing   36   0       17   39       359   Timing       Timing   36   1   Receive #334   39   39 − 28 − 3 = 8       18   40   Send #11   360   Timing       Timing   36   2       19   41       361   Timing   Send #335   Idle   36   3       20   42       362   Idle   Receive #11   Timing   40   0       21   43       363   Timing       Timing   40   1   Receive #335   43   43 − 36 − 3 = 4                  
 
         [0051]    The following time indices are of interest.  
         [0052]    Time indices  0 ,  4 ,  16  and  20  show normal reception of a packet at Unit “B”. The TxTime field is recorded, the TxTimeDelay timer is started and the state machine moves to the “Timing” state.  
         [0053]    Time indices  3 ,  7 ,  15  and  19  show normal transmission of a packet from Unit “B”. The previously received value of the TxTime field is placed in the EchoTxTime field of the outgoing packet, the TxTimeDelay timer is stopped and the state machine transitions to the “Idle” state.  
         [0054]    Time index  11  shows Unit “B” sending a packet without a valid time measurement. The TxTimeDelay and EchoTxTime bits in the COPT field are set to 0 to reflect that this packet may not be used at Unit “A” to calculate RTD at time index  13 .  
         [0055]    Time index  13  shows packet # 9  arriving at Unit B. Since Unit “B” is already in the “Timing” state, the packet is ignored as far as the RTD state variables are concerned.  
         [0056]    Time indices  1 ,  5 ,  9 ,  17  and  21  show a normal calculation of RTD at Unit “A”. The calculated value of RTD is 4 for each of these except for time index  8 . Time index  8  properly shows a value of 8, reflecting the delayed arrival of packet # 8  at Unit “B” at time index  12 . Note the taking half of the RTD as an estimate of one way delay is only an approximation since the delays in this case were not symmetric.  
       Automatic Control of Flexible Mapping  
       [0057]    Control of Mapping Multiple Circuits  
         [0058]    When multiple circuits are destined for the same far end point, they will have the same IP destination address or MPLS Label. All such circuits can be mapped into the same packet using multiple CEM PDUs, with the COPT More flag set appropriately. Thus as illustrated in FIG. 2, a single transmission packet to be transmitted from device A to device B can contain a set of CEM PDUs that are all destined for Device B.  
         [0059]    Control of Frames Per PDU (FPP)  
         [0060]    As mentioned above, there is a trade-off in sending many partially loaded CEM PDU packets and thereby making inefficient use of the network, or waiting until the CEM PDU can be loaded with many payloads before sending. While the latter mode would send fewer packets, it would increase the average RTD because payloads would have to wait for a CEM PDU to become “full” and depart.  
         [0061]    The present invention dynamically changes the balance between efficiency and responsiveness by altering the number of payload frames in a CEM PDU based on the RTD for recent transmissions. One-way delay may also be used, but it is not usually available directly.  
         [0062]    [0062]FIG. 10 shows the state machine. In a preferred embodiment of the present invention, there are three states, each with its own FPP value (Frames per Packet). This invention can be extended to any system that dynamically changes from one FPP value to another based on current conditions. Thus, the number of states can be any number two or larger. Two states would probably be too coarse. It is currently felt that the optimal number of states would be from 3 to 5 states to avoid having an unduly complex system. This disclosure will explain the concept through the use of a three state example.  
         [0063]    The three states are:  
         [0064]    Low-This is the steady state when the current RTD is low as defined by the threshold L.  
         [0065]    Medium-This is the steady state when the current RTD is medium as defined by the thresholds L and M.  
         [0066]    High-This is the steady state when the current RTD is high as defined by the threshold M.  
         [0067]    Note that there are no timers in this state machine. Since the number of frames per CEM PDU is contained within the PDU, the FPP could change on every single PDU without impairing the operation of the system. Hysteresis (or control deadbands), holdoff timers and/or smoothing of the RTD samples could be introduced to prevent minor changes in RTD from triggering changes in state and FPP.  
         [0068]    Table 4 shows the state transitions for each range of RTD.  
                                           TABLE 4                           State Machine for Control of FPP                State            RTD Status   Low   Medium   High               RTD &lt; L   No change   1. Set FPP = C L     1. Set FPP = C L                 2. →Low   2. →Low       L &lt;= RTD &lt; M   1. Set FPP =C M     No change   1. Set FPP = C M             2. →Medium       2. →Medium       RTD &gt;= M   1. Set FPP = C H     1. Set FPP = C H     No change           2. →High   2. →High                  
 
         [0069]    Typical values for the values are:  
         [0070]    L=10 ms  
         [0071]    M=50 ms  
         [0072]    C L =20  
         [0073]    C M =10  
         [0074]    C H =1  
         [0075]    For the convenience of the reader, applicant has added a number of topic headings to make the internal organization of this specification apparent and to facilitate location of certain discussions. These topic headings are merely convenient aids and not limitations on the text found within that particular topic.  
         [0076]    Those skilled in the art will recognize that the methods and apparatus of the present invention has many applications and that the present invention is not limited to the specific examples given to promote understanding of the present invention. Moreover, the scope of the present invention covers the range of variations, modifications, and substitutes for the system components described herein, as would be known to those of skill in the art.  
         [0077]    In order to promote clarity in the description, common terminology for components is used. The use of a specific term for a component suitable for carrying out some purpose within the disclosed invention should be construed as including all technical equivalents which operate to achieve the same purpose, whether or not the internal operation of the named component and the alternative component use the same principles. The use of such specificity to provide clarity should not be misconstrued as limiting the scope of the disclosure to the named component unless the limitation is made explicit in the description or the claims that follow.  
                                         Acronyms                                CEM   Circuit Emulation       CES   Circuit Emulation Service       FPP   Frames Per PDU       MPLS   Multiprotocol Label Switching - described in IETF RFC3031.       PDU   Protocol Data Unit       RTD   Round Trip Delay       TCP/IP   Transmission Control Protocol/Internet Protocol-a network control protocol for           host-to-host transmissions over a packet switching communication network.       UDP   User Datagram Protocol - described in RFC 768.       VLAN   Virtual Local Area Network

Technology Classification (CPC): 7