Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
LAPB
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Protocol structure== ===Frame types=== *I-Frames (Information frames): Carries upper-layer information and some control information. I-frame functions include sequencing, flow control, and error detection and recovery. I-frames carry send and receive sequence numbers. *S-Frames (Supervisory Frames): Carries control information. S-frame functions include requesting and suspending transmissions, reporting on status, and acknowledging the receipt of I-frames. S-frames carry only receive sequence numbers. *U-Frames (Unnumbered Frames): carries control information. U-frame functions include link setup and disconnection, as well as error reporting. U-frames carry no sequence numbers ===Frame format=== {| style="width: 90%; margin:auto; border: thick solid black; <!-- --> border-collapse: collapse; text-align:center; background: white; line-height: 120%;" |+ ! scope="col" style="width:6em; border-right: 1px solid black; <!-- --> padding-top: 0.5em;" | Flag ! scope="col" style="width:6em; border-right: 1px solid black; <!-- --> padding-top: 0.5em;" | Address ! scope="col" style="width:6em; border-right: 1px solid black; <!-- --> padding-top: 0.5em;" | Control ! scope="col" style="width:auto; border-right: 1px solid black; <!-- --> padding-top: 0.5em;" | Data ! scope="col" style="width:12em; border-right: 1px solid black; <!-- --> padding-top: 0.5em;" | Checksum ! scope="col" style="width:6em; border-right: 1px solid black; <!-- --> padding-top: 0.5em;" | Flag |- | style="border-right: 1px solid black;" | 0111 1110 | style="border-right: 1px solid black;" | | style="border-right: 1px solid black;" | | style="border-right: 1px solid black;" | | style="border-right: 1px solid black;" | | style="border-right: 1px solid black;" | 0111 1110 |- | style="border-right: 1px solid black; padding-bottom: 0.5em;" | (8 bits) | style="border-right: 1px solid black; padding-bottom: 0.5em;" | (8 bits) | style="border-right: 1px solid black; padding-bottom: 0.5em;" | (8 bits) | style="border-right: 1px solid black; padding-bottom: 0.5em;" | (Variable) | style="border-right: 1px solid black; padding-bottom: 0.5em;" | (16 bits) | style="border-right: 1px solid black; padding-bottom: 0.5em;" | (8 bits) |} '''Flag''' β The value of the flag is always 0x7E. In order to ensure that the bit pattern of the frame delimiter flag does not appear in the data field of the frame (and therefore cause frame misalignment), a technique known as [[Bit stuffing]] is used by both the transmitter and the receiver. '''Address field''' β In LAPB, this field has no meaning since the protocol works in a point to point mode and the DTE [[network address]] is represented in the layer 3 packets. This byte is therefore put to a different use; it separates the link commands from the responses and can have only two values: 0x01 and 0x03. 01 identifies frames containing commands from DTE to DCE and responses to these commands from DCE to DTE. 03 is used for frames containing commands from DCE to DTE and for responses from DTE to DCE. Therefore, one side must be configured as a Layer 2 DTE and the other as a Layer 2 DCE (you must not confuse this with the more familiar Layer 1 DCE and DTE designations). '''Control field''' β it serves to identify the type of the frame. In addition, it includes sequence numbers, control features and error tracking according to the frame type. '''Modes of operation''' β LAPB works in the Asynchronous Balanced Mode (ABM). This mode is balanced (i.e., no master/slave relationship) and is signified by the SABM(E)/SM frame. Each station may initialize, supervise, recover from errors, and send frames at any time. The DTE and DCE are treated as equals. '''FCS''' β The Frame Check Sequence enables a high level of physical error control by allowing the integrity of the transmitted frame data to be checked. '''Window size''' β LAPB supports an extended window size (modulo 128 and modulo 32768) where the maximum number of outstanding frames for acknowledgment is raised from 7 (modulo 8) to 127 (modulo 128) and 32767 (modulo 32768).<ref>[http://www.itu.int/rec/T-REC-X.25-199610-I/en/ ITU-T Recommendation X.25 (10/96)], p. 35.</ref> ===Protocol operation=== LAPB has no master/slave node relationships. The sender uses the Poll bit in command frames to insist on an immediate response. In the response frame this same bit becomes the receivers Final bit. The receiver always turns on the Final bit in its response to a command from the sender with the Poll bit set. The P/F bit is generally used when either end becomes unsure about proper frame sequencing because of a possible missing acknowledgment, and it is necessary to re-establish a point of reference. It is also used to trigger an acknowledgment of outstanding I-frames.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)