The present invention relates generally to wireless communications, and more particularly, to a data link layer tunneling technique for resending missed frames between a packet sending unit and a packet receiving unit over a logical tunnel channel to improve the throughput of high speed data in a noisy wireless environment.
Fixed wireless systems are used to communicate voice and high speed data (HSD) between a base station (BS) and multiple remote units (RU) over an air-interface. HSD is generally used for web browsing, down loads and file transfer protocols (FTP). All data must be transferred notwithstanding the predictable errors caused by the communications links employed in the system (e.g., a 10E-03 Bit Error Rate (BER)). Accordingly, communication protocols have been developed for transmitting data in discrete blocks commonly referred to as “frames.” These frames are evaluated at the receiving end to determine if the data is correctly received. If certain frames are in error or missed, those frames are retransmitted by the sending station.
Communications protocols are commonly based on the layered network architecture such as OSI. This is a 7-layer architecture including a physical layer (connectors, media, electrical signaling) and a data link layer, which packages the data into frames, manages data transmission over a link (error handling and the like), and facilitates access control (when each station may transmit). One way of achieving full-duplex data transmission over a single communication channel utilizes what is known in the art as a “sliding window protocol.” At any instant in time, the sender maintains a list of consecutive sequence numbers corresponding to frames it is permitted to send. These frames fall within a “sending window.” In the same manner, the receiver maintains a “receiving window” corresponding to the frames it is permitted to accept. The sending and receiving windows do not necessarily have the same upper and lower limits, or the same size. The sequence numbers within the sender's window represent frames sent but not yet acknowledged. Whenever a new data packet arrives from the network layer, it is given the next highest sequence number, and the upper edge of the window is advanced by one. When an acknowledgement is received, the lower edge of the window is advanced by one. The window continuously maintains a list of unacknowledged frames. Since frames currently within the sender's window may be lost or changed during transmission, the sender must keep all the sent frames in memory in the event a retransmission is required. Accordingly, if the maximum window size is “K”, the sender needs K buffers to hold the unacknowledged frames in memory. If the window ever exceeds its maximum size, the sending data link layer must shut off the network layer until a buffer is freed up. The receiving data link layer's window corresponds to the frames it can accept. Any frame that falls outside the window is discarded. When a frame with a sequence number equal to the lower edge of the window is received, that frame is passed to the network layer, an acknowledgment is generated to the sender, and the window is rotated by one. Unlike the sender's window, the receiver's window always remains at its initial size.
An example of a sliding window protocol in a data communications system is disclosed in U.S. Pat. No. 4,841,526. In the '526 patent, the window size of the sending or receiving station is selected in accordance with the speed, length or error rate of the communication link or frame size used to maximize the communication link. The negative acknowledgements sent by the receiving station specify the upper and lower limit of a range of identification numbers of frames unsuccessfully received to increase transmission efficiency. Before data is transmitted, the sending and receiving stations exchange preferred sets of link parameters and generate a modified set of link parameters to resolve potential conflicts. One of the sending and receiving stations stores a table defining the frame sizes for use with different bit error rates of the communication link. The station evaluates the current bit error rate to select the optimum frame size from the table and adjust the frame size.
To provide HSD over a wireless system, a large window size (K) is required. As an example, at a transmission rate of 512 kbps, a window size K of 45 is used. In such a system, loss of a frame will cause relatively long silent periods or what is referred to as “channel idle.” Application layers such as FTP or web browsing pump data at a higher rate than the air link data thereby causing the data link layer window to be filled at a very fast rate. If the receiving station loses a frame, it sends a selective reject message (SREJ) to the sending station. By the time the sending station receives the SREJ, however, the window can be filled, and neither the sender nor receiver will be able to transmit or receive until the outstanding frame clears. This causes a silent or “channel idle” period where the sending station cannot transmit and the receiving station cannot receive more than the last acknowledged frame (Va)+window size (K).
In view of the above, there exists a need for a new method of enhancing HSD transmission in wireless environments that reduce the idle periods caused by lost frames.
In view of the above, it is an object of the present invention to provide a data link layer tunneling technique for improving the throughput of high speed data in a noisy wireless environment.
It is another object of the invention to prevent large idle gaps over a wireless communications channel caused by missed frames.
It is still another object of the present invention for the data link layer to establish a tunnel to clear outstanding frames and enable data packets to be exchanged even when the window is full.
In accordance with the above objects and additional objects that will become apparent hereinafter, the present invention provides a method of recovering lost frames transmitted between a packet sending unit and a packet receiving unit in a data communications system. The method generally comprises the steps of: (a) identifying a failure to successfully receive a missed frame at the packet receiving unit; (b) establishing a logical tunnel channel at the packet receiving unit to acknowledge the next successfully received frame; (c) starting a first timer at the packet receiving unit; (c) upon receiving a tunnel establishment request (TER) from the packet receiving unit, the packet sending unit resending the missed frame on the logical tunnel channel and starting a second timer; and (d) the packet sending unit resending the missed frame a specified number of times until receiving an acknowledgement from the packet receiving unit.
In accordance with the method, the packet sending unit sends an I-frame to the packet receiving unit. Upon successful receipt of an I-frame and identification of a missing frame, the packet receiving unit generates a supervisory frame (TER) with a sequence number N(R) set to the missing frame and payload set to the number of consecutive frames. The packet receiving unit establishes a logical tunnel channel, sends the TER (frame, payload) to the packet sending unit, and starts a first timer. When the TER (frame, payload) is received, the packet sending unit starts a second timer and resends the missed frame over the logical tunnel channel. If the retransmitted missed frame is not received by the packet receiving unit before the first timer expires, the packet receiving unit retransmits the TER a predetermined number of times. If the retransmitted frame is not received by the packet receiving unit after being retransmitted a predetermined number of times and frame overflow does not occur, the frame is recovered using a normal recovery procedure. If the first timer has not expired, the packet receiving unit continues to acknowledge all frames with a predetermined poll bit setting irrespective of when the sender's window closes. If the missed frame is acknowledged, the packet receiving unit sends a receive ready (RR) message to the packet sending unit. If the acknowledgement for retransmitted I-frame does not come before the second timer expires, the packet sending unit will send the same frame a predetermined number of times. If the packet sending unit receives the RR message, it closes the layer tunneling channel (LTC). If the packet sending unit has resent the missing frame the predetermined number of times and no confirmation has been received from the packet receiving unit, a normal recovery is made.
The present invention will now be described with particular reference to the accompanying drawings.
With reference now to the drawings,
In the illustrative embodiment, HSD travels over an air data link 26 between Tx and Rx. The data link layer may be “asymmetrical,” i.e., the downloading data rate from Tx to Rx can be greater than the uploading data rate from Rx to Tx, or Tx>Rx. As an example, the data downlinked from Tx to Rx is 512 Kilobits per second (Kbps), and the data uplinked from Rx to Tx is 128 Kbps. In accordance with the sliding window protocol, at any instant in time Tx maintains a list of consecutive sequence numbers corresponding to frames it is permitted to send. These frames fall within a “sending window.” In the same manner, Rx maintains a “receiving window” corresponding to the frames it is permitted to accept. The sending and receiving windows do not necessarily have the same upper and lower limits, or the same size. The sequence numbers within the sender's window represent frames sent but not yet acknowledged. Whenever a new data packet arrives from the network layer, it is given the next highest sequence number, and the upper edge of the window is advanced by one. When an acknowledgement is received, the lower edge of the window is advanced by one. The window continuously maintains a list of unacknowledged frames. Since frames currently within the sender's window may be lost or changed during transmission, the sender must keep all the sent frames in memory in the event a retransmission is required. Accordingly, if the maximum window size is “K”, the sender needs K buffers to hold the unacknowledged frames in memory. If the window ever exceeds its maximum size, the sending data link layer must shut off the network layer until a buffer is freed up. The receiving data link layer's window corresponds to the frames it can accept. Any frame that falls outside the window is discarded. When a frame with a sequence number equal to the lower edge of the window is received, that frame is passed to the network layer, an acknowledgment is generated to the sender if the poll bit is set to “1” (P=1), and the window is rotated by one. Unlike the sender's window, the receiver's window always remains at its initial size. In the illustrative example the window size (K)=45, and the maximum sequence number Ns=127 (2.sup.7-1). This means that Ns varies from 0 to 127 and subsequently rolls over. In high bandwidth systems, the sequence numbers can go up to 16,383 (2.sup.14-1). As shown in the drawings, the poll bit setting equals the last acknowledged frame+K−1, or the last acknowledged frame+(K*3)/4. Alternatively, the poll bit may be specified at any other time for explanation purposes only.
The following terminology regarding the interchange of information between Tx and Rx applies throughout this application and is listed below for reference as it is well understood by those skilled in the art:
Send state variable V(S): a variable that identifies the sequence number of the next frame to be transmitted. The V(S) is incremented with each frame transmitted.
Receive state variable V(R): a variable that denotes the number expected to be in the sequence number of the next frame. The V(R) is incremented with the receipt of an in-sequence and error-free frame.
Send sequence Number(Ns): this number indicates to the receiver the sequence number of the next frame that will be transmitted by the sender.
Receiving Number N(R): an expected send sequence number (Ns) of then next to be received frame. It indicates up to N(R)-1 frames that were successfully received.
Acknowledge state variable V(A): the last frame that has been acknowledged by the sender's peer. The Va is updated upon receiving an error free I or Supervisory (S) frame in sequence having a receiving sequence number Nr value is one that is in the range of Va<=Nr<=Vs.
The data link layer uses an “Information Frame” or “I”-frame as discussed above, to represent a protocol data unit (PDU) transmitted between a packet sending unit and a packet receiving unit (i.e., Tx and Rx). An illustrative frame format is shown below:
The basic numbering convention is based on bits grouped into octets as specified in the Q.921 recommendation that is well known in the art.
The address field is represented by the Terminal Endpoint Identifier (TEI) assigned to each RU, and two control bits. The address field extension (EA) bit is used to indicate the extension of TEI octets. When set to “0”, it signifies that another octet of the TEI follows. A “1” indicates that it is the final octet. The command/response (C/R) bit identifies a frame as either a command or a response. The transmitter sends commands with C/R set to “1” and responses with C/R set to “0”. The RU does the opposite with commands with the C/R set to “0” and responses with the C/R set to “1”. The address field format is shown below:
The frame length field indicates the total data link frame length in bytes and includes the data rate as follows:
The data rate is used for Tx to identify and communicate with different receiving stations. The control field contains the commands, responses, and the sequence numbers to maintain data flow accountability of the link between the Tx and Rx. It also defines the frame functions and invokes logic to control traffic. The content and size of the control field vary according to the use of the frame. The field can be in one of three formats: information (I), supervisory (S), and unnumbered (U).
The information frame (I-frame) which is shown in the drawings, is used to transmit end-user data between Tx and Rx. The information frame may also acknowledge the receipt of data from a transmitting end point. It also can perform such functions as a poll command. Traffic at Tx and Rx is controlled by counters called state variables. These counters will be maneuvered based on the received I-frame control field values. The I-frame control field format is shown below:
The sequence number Ns is the identification number for the I-frame. Typically the I-frames are numbered in the same order as their transmission. Similar to Q.921, I-frames are always exchanged as command type frames during multiple frame operation on point-to-point connections. A Poll/Final (P/F) or “Poll Bit” is used to solicit a response from the peer entity. When the P bit set to 1 (P=1), the sender Tx will solicit a response frame from Rx. The More (M) bit is used to indicate that the current PDU is the last data unit in a complete application packet. The I-frame may support either an encrypted or unencrypted payload. This is not relevant to the present invention but is included for purposes of illustration with respect to frame formats as the Encryption Mode Enabled/Disabled (EM) bit. Finally, the Service Access Point Identifier (SAPI) includes 4 bits that indicate the target application type. The values are defined as: 0x0000-IP SAPI, 0x0001-OM SAPI, 0x0010-SA SAPI.
The supervisory frame (S-frame) is used to perform such control functions as acknowledgment of frames, request for retransmission of frames, and request for the temporary suspension of frame transmission. The supervisory frame format follows:
The supervisory frame supports 4 different command/response types: Receive/Ready (RR); Receive Not Ready (RNR); Tunnel Establishment Request (TER) and Selective Reject (SREJ). N(R) is the expected send sequence number of the next I-frame to be received. The Poll/Final bit (P/F), unlike an I-frame, can be used to signify either command or response mode. In the command frame, the P/F bit is referred to as the P bit; and in response frame, it is referred to as F bit. The reserved field value is set to 0.
The receive ready (RR) frame format is used to indicate that Rx is ready to receive an I-frame, acknowledge a previously received I-frame numbered up to and including N(R)-1, clear a busy condition that was indicated by the earlier transmission of an RNR frame, and solicit Tx's status by sending an RR command with the P bit set to 1. The RR frame will also close the TER. The RR frame format follows:
The receive not ready (RNR) frame is used to indicate a busy condition where it is unable to accept additional incoming I-frames temporarily. The value of N(R) acknowledges I-frames up to and including N(R)-1. The busy condition can be cleared by sending a RR or TER frame. The RNR also enables Tx to solicit the status of Rx by sending the RNR command with the P bit set to 1. The RNR frame format follows:
The TER frame is used to request retransmission of single frame or multiple frames (single+payload) identified in the N(R) field+payload field. When sent as a command frame, if the P bit of the SREJ or TER frame is set to 1, the I frames numbered up to N(R)-1 inclusive, are considered as acknowledged. However, if the P bit is 0, then the N(R) of the SREJ or TER frame does not indicate acknowledgment of I frames. In a response frame, no acknowledgment is allowed. The SREJ/TER condition is cleared upon receipt of an I-frame with an N(S) equal to the N(R) of SREJ/TER frame. Once an SREJ or TER frame has been received, the I-frame that may have been transmitted following the I-frame indicated by the SREJ/TER frame is not be retransmitted as a result of receiving the SREJ/TER frame. Additional I-frames awaiting initial transmission may be transmitted following the retransmission of the requested I-frame. The SREJ frame format is shown as:
The TER frame is similar to the SREJ format, except the bits in Octet 1 have been changed to identify this as a TER in lieu of an SREJ frame as follows:
In accordance with the present invention, a Logical Tunnel Channel (LTC) is established between Tx and Rx when a frame gets lost during a normal transmission. The LTC is used to transport the missed frames between Tx and Rx. Because the transmission of such frames is made over a separate channel, Tx will assume that the missed frames have been transported successfully, and the sender's window (SW) will be “continuous” unless the initial missed frame is not transported successfully before SW reaches the initial missed frame-1.
Referring now to
In this example, the sender Tx had a “time” window that extended to the maximum number of sequence numbers (in this case 128), instead of a window size K=45. With a maximum sequence number much greater than the window size, there is more time to transport the missed frames before the window stops. This has the advantage in that the maximum sequence number can be increased to as large a value as the frame permits. Rx can send an SREJ to Tx in lieu of an TER to provide for backwards compatibility.
Referring now to
Referring now to
The present invention has been shown and described in what are considered to be the most preferred and practical embodiments. It is anticipated, however, that departures may be made therefrom and that obvious modifications will be implemented by those skilled in the art.
This application is a continuation of, and claims priority to, U.S. patent application Ser. No. 13/546,533, filed Jul. 11, 2012. U.S. patent application Ser. No. 13/546,533 is a continuation of, and claims priority to, U.S. patent application Ser. No. 12/131,636, filed Jun. 2, 2008 and now U.S. Pat. No. 8,234,533 issued on Jul. 31, 2012. U.S. patent application Ser. No. 12/131,636 is a divisional of, and claims priority to, U.S. patent application Ser. No. 10/767,246, filed Jan. 28, 2004 and now U.S. Pat. No. 7,395,481 issued on Jul. 1, 2008. U.S. patent application Ser. No. 10/767,246 is a continuation of, and claims priority to, U.S. patent application Ser. No. 09/694,943, filed on Oct. 24, 2000 and now U.S. Pat. No. 6,697,983 issued on Feb. 24, 2004. Each of U.S. patent application Ser. No. 13/546,533, U.S. patent application Ser. No. 12/131,636, U.S. patent application Ser. No. 10/767,246, U.S. patent application Ser. No. 09/694,943, U.S. Pat. No. 8,234,533, U.S. Pat. No. 7,395,481, and U.S. Pat. No. 6,697,983, is herein incorporated by reference in its respective entirety.
Number | Date | Country | |
---|---|---|---|
Parent | 10767246 | Jan 2004 | US |
Child | 12131636 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 13546533 | Jul 2012 | US |
Child | 13785199 | US | |
Parent | 12131636 | Jun 2008 | US |
Child | 13546533 | US | |
Parent | 09694943 | Oct 2000 | US |
Child | 10767246 | US |