Wide Area Network. WAN protocols WAN solutions Interface and cabling configuration. High-Level Data Link Control. HDLC is the most important data link control protocol Widely used which forms basis of other data link control protocols
An Image/Link below is provided (as is) to download presentation
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.Content is provided to you AS IS for your information and personal use only.Download presentation by click this link.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.During download, if you can't get a presentation, the file might be deleted by the publisher.
E N D
More Related Content
Presentation Transcript
Wide Area Network • WAN protocols • WAN solutions • Interface and cabling • configuration
High-Level Data Link Control • HDLC is the most important data link control protocol • Widely used which forms basis of other data link control protocols • Most WAN protocols use HDLC as data link control protocols
HDLC Station Types • Primary station (Unbalanced) • Controls operation of link • Frames issued are called commands • Maintains separate logical link to each secondary station • Secondary station • Under control of primary station • Frames issued called responses • Combined station (Balanced) • May issue commands and responses
HDLC Link Configurations • Unbalanced • One primary and one or more secondary stations • Supports full duplex and half duplex • Balanced • Two combined stations • Supports full duplex and half duplex
HDLC Transfer Modes (1) • Normal Response Mode (NRM) • Unbalanced configuration • Primary initiates transfer to secondary • Secondary may only transmit data in response to command from primary • Used on multi-drop lines • Host computer as primary • Terminals as secondary
HDLC Transfer Modes (2) • Asynchronous Balanced Mode (ABM) • Balanced configuration • Either station may initiate transmission without receiving permission • Most widely used • No polling overhead
HDLC Transfer Modes (3) • Asynchronous Response Mode (ARM) • Unbalanced configuration • Secondary may initiate transmission without permission form primary • Primary responsible for line • rarely used
Frame Structure • Synchronous transmission • All transmissions in frames • Single frame format for all data and control exchanges
Flag Fields • Delimit frame at both ends • 01111110 • May close one frame and open another • Receiver hunts for flag sequence to synchronize • Bit stuffing used to avoid confusion with data containing 01111110 • 0 inserted after every sequence of five 1s • If receiver detects five 1s it checks next bit • If 0, it is deleted • If 1 and seventh bit is 0, accept as flag • If sixth and seventh bits 1, sender is indicating abort
Address Field • Identifies secondary station that sent or will receive frame • Usually 8 bits long • May be extended to multiples of 7 bits • LSB of each octet indicates that it is the last octet (1) or not (0) • All ones (11111111) is broadcast
Control Field • Different for different frame type • Information - data to be transmitted to user (next layer up) • Flow and error control piggybacked on information frames • Supervisory - ARQ when piggyback not used • Unnumbered - supplementary link control • First one or two bits of control filed identify frame type • Remaining bits explained later
Poll/Final Bit • Use depends on context • Command frame • P bit • 1 to solicit (poll) response from peer • Response frame • F bit • 1 indicates response to soliciting command
Information Field • Only in information and some unnumbered frames • Must contain integral number of octets • Variable length
HDLC Operation • Exchange of information, supervisory and unnumbered frames • Three phases • Initialization • Data transfer • Disconnect
Supervisory Frames • Receive Ready --- RR • Receive Not Ready --- RNR • Reject --- REJ • Selective Reject --- SREJ Unnumbered Frames • Control operations • Set up and take down communications link • Maintenance
Operations • Connection Establishment • SABME ----> • <----- UA • Data Transfer • I-frames and • S-frames for flow and error control. • Disconnect • Either entity can issue a DISC.
Point to Point Data Link Control • one sender, one receiver, one link: easier than broadcast link: • no Media Access Control • no need for explicit MAC addressing • e.g., dialup link, ISDN line • popular point-to-point DLC protocols: • PPP (point-to-point protocol) • HDLC: High level data link control
PPP Design Requirements [RFC 1557] • packet framing: encapsulation of network-layer datagram in data link frame • carry network layer data of any network layer protocol (not just IP) at same time • ability to demultiplex upwards • bit transparency: must carry any bit pattern in the data field • error detection (no correction) • connection liveness: detect, signal link failure to network layer • network layer address negotiation: endpoint can learn/configure each other’s network address
PPP non-requirements • no error correction/recovery • no flow control • out of order delivery OK • no need to support multipoint links (e.g., polling) Error recovery, flow control, data re-ordering all relegated to higher layers!|
PPP Data Frame • Flag: delimiter (framing) • Address: does nothing (only one option) • Control: does nothing; in the future possible multiple control fields • Protocol: upper layer protocol to which frame delivered (eg, PPP-LCP, IP, IPCP, etc)
PPP Data Frame • info: upper layer data being carried • check: cyclic redundancy check for error detection
Byte Stuffing • “data transparency” requirement: data field must be allowed to include flag pattern <01111110> • Q: is received <01111110> data or flag? • Sender: adds (“stuffs”) extra < 01111110> byte after each < 01111110> data byte • Receiver: • two 01111110 bytes in a row: discard first byte, continue data reception • single 01111110: flag byte
Byte Stuffing flag byte pattern in data to send flag byte pattern plus stuffed byte in transmitted data
PPP Data Control Protocol Before exchanging network-layer data, data link peers must • configure PPP link (max. frame length, authentication) • learn/configure network layer information • for IP: carry IP Control Protocol (IPCP) msgs (protocol field: 8021) to configure/learn IP address
Other DLC Protocols (LAPB,LAPD) • Link Access Procedure, Balanced (LAPB) • Part of X.25 (ITU-T) • Subset of HDLC - ABM • Point to point link between system and packet switching network node • Link Access Procedure, D-Channel • ISDN (ITU-D) • ABM • Always 7-bit sequence numbers (no 3-bit) • 16 bit address field contains two sub-addresses • One for device and one for user (next layer up)
Other DLC Protocols (LLC) • Logical Link Control (LLC) • IEEE 802 • Different frame format • Link control split between medium access layer (MAC) and LLC (on top of MAC) • No primary and secondary - all stations are peers • Two addresses needed • Sender and receiver • Error detection at MAC layer • 32 bit CRC • Destination and source access points (DSAP, SSAP)
Other DLC Protocols (Frame Relay) (1) • Streamlined capability over high speed packet switched networks • Used in place of X.25 • Uses Link Access Procedure for Frame-Mode Bearer Services (LAPF) • Two protocols • Control - similar to HDLC • Core - subset of control
Other DLC Protocols (Frame Relay) (2) • ABM • 7-bit sequence numbers • 16 bit CRC • 2, 3 or 4 octet address field • Data link connection identifier (DLCI) • Identifies logical connection • More on frame relay later
Other DLC Protocols (ATM) • Asynchronous Transfer Mode • Streamlined capability across high speed networks • Not HDLC based • Frame format called “cell” • Fixed 53 octet (424 bit) • Details later
X.25 • 1976 • Interface between host and packet switched network • Almost universal on packet switched networks and packet switching in ISDN • Defines three layers • Physical • Link • Packet
X.25 - Physical • Interface between attached station and link to node • Data terminal equipment DTE (user equipment) • Data circuit terminating equipment DCE (node) • Uses physical layer specification X.21
X.25 - Link • Link Access Protocol Balanced (LAPB) • Subset of HDLC • Point to point link between system and packet switching network node
Multiplexing • DTE can establish 4095 simultaneous virtual circuits with other DTEs over a single DTC-DCE link • Packets contain 12 bit virtual circuit number
Packet Sequences • Complete packet sequences • Allows longer blocks of data across network with smaller packet size without loss of block integrity • A packets • M bit 1, D bit 0 • B packets • The rest • Zero or more A followed by B
Reset and Restart • Reset • Reinitialize virtual circuit • Sequence numbers set to zero • Packets in transit lost • Up to higher level protocol to recover lost packets • Triggered by loss of packet, sequence number error, congestion, loss of network internal virtual circuit • Restart • Equivalent to a clear request on all virtual circuits • E.g. temporary loss of network access