Framing and Stuffing. Advanced Computer Networks

Similar documents
Direct Link Networks. Framing. Lecture - Encoding & Framing 1. Problems. Areas for Discussion

Advantages and disadvantages

ECE 4450:427/527 - Computer Networks Spring 2017

Direct Link Networks. Lecture - Encoding & Framing 1. Areas for Discussion. Problems

Data Link Layer Lecture 7

Data Link Layer. Indian Institute of Technology Madras

3COM0271 Computer Network Protocols & Architectures A

Direct Link Networks: Building Blocks (2.1), Encoding (2.2), Framing (2.3)

5th Slide Set Computer Networks

Lecture / The Data Link Layer: Framing and Error Detection

UNIT II DATA LINK LAYER 10

Comparison of ISO-OSI and TCP/IP Suit. Functions of Data Link Layer:

Chapter 3. The Data Link Layer

Data Link Layer: Overview, operations

CSMC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala Set 4. September 09 CMSC417 Set 4 1

Advanced Computer Networks. Rab Nawaz Jadoon DCS. Assistant Professor COMSATS University, Lahore Pakistan. Department of Computer Science

Inst: Chris Davison

Chapter 11 Data Link Control 11.1

The data link layer has a number of specific functions it can carry out. These functions include. Figure 2-1. Relationship between packets and frames.

COMP/ELEC 429/556 Introduction to Computer Networks

Chapter 9: Data Transmission

3. (a) What is bridge? Explain the operation of a LAN bridge from to (b) Explain the operation of transparent bridge.

Lecture 2: Links and Signaling

Token Ring and. Fiber Distributed Data Interface (FDDI) Networks: Token Ring and FDDI 1

DATA LINK LAYER UNIT 7.

Chapter 11 Data Link Control 11.1

Lecture 5: Data Link Layer Basics

1/29/2008. From Signals to Packets. Lecture 6 Datalink Framing, Switching. Datalink Functions. Datalink Lectures. Character and Bit Stuffing.

Chapter 3. The Data Link Layer

CSMC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala. Nov 1,

L3: Building Direct Link Networks I. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

Code No: RR Set No. 1

Data Link Layer. Overview. Links. Shivkumar Kalyanaraman

Lecture 6 Datalink Framing, Switching. From Signals to Packets

Part 5: Link Layer Technologies. CSE 3461: Introduction to Computer Networking Reading: Chapter 5, Kurose and Ross

Data Link Networks. Hardware Building Blocks. Nodes & Links. CS565 Data Link Networks 1

Data Link Layer, Part 4. Exemplary Protocols

3. Data Link Layer 3-2

Flow control: Ensuring the source sending frames does not overflow the receiver

2.1 CHANNEL ALLOCATION 2.2 MULTIPLE ACCESS PROTOCOLS Collision Free Protocols 2.3 FDDI 2.4 DATA LINK LAYER DESIGN ISSUES 2.5 FRAMING & STUFFING

From Signals to Packets Computer Networking. Link Layer: Implementation. Datalink Functions. Lecture 5 - Coding and Error Control

Telematics. 5th Tutorial - LLC vs. MAC, HDLC, Flow Control, E2E-Arguments

Housekeeping. Fall /5 CptS/EE 555 1

Introduction to Computer Networks. 03 Data Link Layer Introduction

Chapter 3. The Data Link Layer. Wesam A. Hatamleh

Packet/Frame, Error Detection How to send data efficiently & reliably?

From Signals to Packets Computer Networking. Link Layer: Implementation. Network Delay. 06-datalink.ppt, , Fall

Chapter 6 Digital Data Communications Techniques

DLL: Flow Control DLL. Simplex. Fast sender / slow receiver scenario. Various protocols used. Simplified examples implemented in C.

Computer Network. Direct Link Networks Reliable Transmission. rev /2/2004 1

SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY COMPUTER NETWORKS UNIT - II DATA LINK LAYER

Data link layer functions. 2 Computer Networks Data Communications. Framing (1) Framing (2) Parity Checking (1) Error Detection

POS on ONS Ethernet Cards

DATA LINK LAYER: NEED

Computer Networking. Lecture 4 - Coding and Error Control

CSE 123A Computer Networks

Where we are in the Course

POS on ONS Ethernet Cards

Computer and Network Security

Network Review TEJ4M. SBrace

POINT TO POINT DATALINK PROTOCOLS. ETI 2506 Telecommunication Systems Monday, 7 November 2016

CIS 551 / TCOM 401 Computer and Network Security. Spring 2007 Lecture 7

CS 4453 Computer Networks Winter

Ethernet Switches Bridges on Steroids. Ethernet Switches. IEEE Wireless LAN. Ad Hoc Networks

Data Link layer (CN chap 3.1, 3.4, 3.6)

Chapter 5 Data-Link Layer: Wired Networks


Synchronous Optical Networks (SONET) Advanced Computer Networks

Transmission SIGNALs

Protocol Principles. Framing, FCS and ARQ 2005/03/11. (C) Herbert Haas

Data Link Technology. Suguru Yamaguchi Nara Institute of Science and Technology Department of Information Science

Some portions courtesy Robin Kravets and Steve Lumetta

Overview. Data Link Technology. Role of the data-link layer. Role of the data-link layer. Function of the physical layer

Data Link Protocols. High Level Data. Control Protocol. HDLC Framing ~~~~~~~~ Functions of a Data Link Protocol. Framing PDUs. Addressing Destination

Links. CS125 - mylinks 1 1/22/14

Data Link Control. Claude Rigault ENST Claude Rigault, ENST 11/3/2002. Data Link control 1

Introduction to Data Communications & Networking

Point-to-Point Protocol (PPP) Accessing the WAN Chapter 2

Point-to-Point Protocol (PPP)

06/05/2008. Chapter 3. The Data Link Layer. Data Link Layer Design Issues. Services Provided to the Network Layer. Error Control Flow Control

Chapter 5: The Data Link Layer. Chapter 5 Link Layer and LANs. Ethernet. Link Layer. Star topology. Ethernet Frame Structure.

1.Describe the layer presentation in the TCPIP model and explain the protocol of each layer. July 2014/Jan 2015

Computer Networks. Today. Principles of datalink layer services Multiple access links Adresavimas, ARP LANs Wireless LANs VU MIF CS 1/48 2/48

Data Link Layer (1) Networked Systems 3 Lecture 6

(Sicherungsschicht) Chapter 5 (part 2) [Wa0001] HDLC - 1.

Overview. Performance metrics - Section 1.5 Direct link networks Hardware building blocks - Section 2.1 Encoding - Section 2.2 Framing - Section 2.

Request for Comments: 171. Categories: D.4, D.5, and D.7

The Data Link Layer Chapter 3

Data Link Layer (cont.) ( h h h ) (Sicherungsschicht) HDLC - 1.

Jaringan Komputer. Data Link Layer. The Data Link Layer. Study the design principles

Ethereal Exercise 2 (Part A): Link Control Protocol

Point-to-Point Network Switching. Computer Networks Term B10

Request for Comments: August 1996

CSE 123: Computer Networks

Where we are in the Course

MULTIPLE-CHOICE QUESTIONS (MCQ) EXAMINATION DURATION: 105 MINUTES. Annotations to the assignments and the solution sheet. Note the following points

Programming Assignment 2 (50 pts) Due: 9 a.m. Friday, February 8, Data Link Layer Client and Server Processes Using Tanenbaum s PAR Protocol

CSCI-1680 Physical Layer Link Layer I Rodrigo Fonseca

Data Link Control. Outline. DLC functions

Synchronous Optical Networks SONET. Computer Networks: SONET

Transcription:

Framing and Stuffing Advanced Computer Networks

Framing & Stuffing Outline Synchronous vs Asynchronous Transmissions Asynchronous Character Transmissions Framing Identifying Synchronous Block Boundaries Byte Stuffing Bit Stuffing PPP Byte Stuffing Advanced Computer Networks Framing & Stuffing 2

Synchronous versus Asynchronous Transmissions There exists a hierarchy of synchronization tasks: Bit level : recognizing the start and end of each bit. Character or byte level : recognizing the start and end of each character (or small unit of data) Block or message level : recognize the start and end of each large unit of data (in networks this is a frame). Advanced Computer Networks Framing & Stuffing 3

Synchronous versus Asynchronous Transmissions [Halsall] A fundamental requirement of digital data communications is that the receiver knows the starting time and the duration of each bit. Asynchronous transmission :: each character (or byte) is treated independently for clock (bit) and character (byte) synchronization purposes and the receiver resynchronizes at the start of each character received. Synchronous transmission :: the complete frame is transmitted as a contiguous string of bits and the receiver endeavors to keep in synchronism with the incoming bit stream for the duration of the frame. Advanced Computer Networks Framing & Stuffing 4

Byte Level Synchronization in Asynchronous Transmissions Characters transmitted at random intervals (e.g., from keyboard) Direction of transmission Data bits Line idle Start bit 1 2 3 4 5 6 7 8 Stop bit 3T/2 T T T T T T T Receiver samples the bits Leon-Garcia & Widjaja: Communication Networks Advanced Computer Networks Framing & Stuffing 5

Synchronous Transmissions More efficient, i.e., less overhead Blocks of characters are transmitted without start and stop codes. The transmitted stream is suitably encoded so the receiver can stay in synch by: Using a separate clock line. Embedding clocking information into data (e.g. biphase coding). Advanced Computer Networks Framing & Stuffing 6

Methods to Identify Frames [Tanenbaum] 1. Byte counts 2. Starting/ending bytes [byte stuffing] 3. Starting/ending flags [bit stuffing] 4. Using physical layer coding violations (i.e., invalid physical codes, used in token rings) Advanced Computer Networks Framing & Stuffing 7

Framing The contents of each frame are encapsulated between a pair of reserved characters or bytes for frame synchronization. frame Preamble Bit Pattern Postamble Bit Pattern Advanced Computer Networks Framing & Stuffing 8

Byte Stuffing [HDLC Example] Also referred to as character stuffing. ASCII characters are used as framing delimiters (e.g. DLE STX and DLE ETX). The problem occurs when these character patterns occur within the transparent data. Solution: sender stuffs an extra DLE into the data stream just before each occurrence of an accidental DLE in the data stream. The data link layer on the receiving end unstuffs the DLE before giving the data to the network layer. Advanced Computer Networks Framing & Stuffing 9

HDLC Byte Stuffing DLE STX Transparent Data DLE ETX Before DLE STX A B DLE H W DLE ETX Stuffed DLE STX A B DLE DLE H W DLE ETX Unstuffed DLE STX A B DLE H W DLE ETX Advanced Computer Networks Framing & Stuffing 10

Bit Stuffing Each frame begins and ends with a special bit pattern called a flag byte [01111110]. {Note this is 7E in hex.} Whenever the sender data link layer encounters five consecutive ones in the data stream, it automatically stuffs a 0 bit into the outgoing stream. When the receiver sees five consecutive incoming ones followed by a 0 bit, it automatically destuffs the 0 bit before sending the data to the network layer. Advanced Computer Networks Framing & Stuffing 11

Bit Stuffing Input Stream 0110111111100111110111111111100000 Stuffed Stream 01101111101100111110011111011111000000 Stuffed bits Unstuffed Stream 0110111111100111110111111111100000 Advanced Computer Networks Framing & Stuffing 12

PPP (Point-to-Point Protocol) Frame Format Flag Address Control Protocol Information CRC Flag 01111110 11111111 00000011 01111110 All stations are to accept the frame Unnumbered frame Specifies what kind of packet is contained in the payload, e.g., LCP, NCP, IP, OSI CLNP, IPX Leon-Garcia & Widjaja: Communication Networks Advanced Computer Networks Framing & Stuffing 13

PPP Byte Stuffing Flag Address Control Protocol Information CRC flag Flag 01111110 1111111 00000011 01111110 Input 7E 7D 33 7E 42 7E Stuffed Stream 7E 7D 5D 33 7D 5E 42 7E Unstuffed Stream 7E 7D 33 7E 42 7E Advanced Computer Networks Framing & Stuffing 14

Framing & Stuffing Summary Synchronous vs Asynchronous Transmissions at different levels. Character Transmissions {Asynchronous} Synchronize bits (physical layer issue) to send blocks of characters as frames at data link layer. Framing identifying a frame. HDLC and PPP Byte Stuffing Bit Stuffing Advanced Computer Networks Framing & Stuffing 15