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

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

Data Link Layer. Indian Institute of Technology Madras

ECE 4450:427/527 - Computer Networks Spring 2017

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

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

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

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 4021: Networks Discussion. Chapter 2.

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

CSCI-1680 Physical Layer Link Layer I Rodrigo Fonseca

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

CSE 123A Computer Networks

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

Introduction to Computer Networks. 03 Data Link Layer Introduction

Some portions courtesy Robin Kravets and Steve Lumetta

Framing and Stuffing. Advanced Computer Networks

Housekeeping. Fall /5 CptS/EE 555 1

Point-to-Point Links. Outline Encoding Framing Error Detection Sliding Window Algorithm. Fall 2004 CS 691 1

CompSci 356: Computer Network Architectures. Lecture 4: Link layer: Encoding, Framing, and Error Detection Ref. Chap 2.2, 2.3,2.4

CSCI-1680 Link Layer I Rodrigo Fonseca

Data Link Layer Overview

Links. CS125 - mylinks 1 1/22/14

Direct Link Networks. Nodes. Links. Outline Building Blocks Encoding

Data Link Layer Overview

UNIT I FUNDAMENTALS & LINK LAYER

Chapter 8 OSI Physical Layer

Data Link Layer Overview

Chapter 2: Getting Connected

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

CS 640 Introduction to Computer Networks. Role of data link layer. Today s lecture. Lecture16

Lecture 2: Links and Signaling

Data Link Layer Overview

COMP/ELEC 429/556 Introduction to Computer Networks

Data Link Layer. Overview. Links. Shivkumar Kalyanaraman

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

COMPUTER NETWORKS UNIT I. 1. What are the three criteria necessary for an effective and efficient networks?

Computer Networking. Lecture 4 - Coding and Error Control

Problem Statement. Physical and Data Link Layer Overview. Five Tasks Encoding. Make two computers talk to each other

5th Slide Set Computer Networks

Packet Switching - Asynchronous Transfer Mode. Introduction. Areas for Discussion. 3.3 Cell Switching (ATM) ATM - Introduction

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

CS 4453 Computer Networks Winter

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

Lecture / The Data Link Layer: Framing and Error Detection

Computer and Network Security

Inst: Chris Davison

EE 610 Part 2: Encapsulation and network utilities

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

Chapter 3. The Data Link Layer

Lecture 6 Datalink Framing, Switching. From Signals to Packets

Links Reading: Chapter 2. Goals of Todayʼs Lecture. Message, Segment, Packet, and Frame

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

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

CSE 461: Framing, Error Detection and Correction

Data Link Layer (1) Networked Systems 3 Lecture 6

Lecture 5: Data Link Layer Basics

Computer Facilities and Network Management BUS3150 Tutorial - Week 13

UNIT I FUNDAMENTALS & LINK LAYER

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

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.

Chapter 11 Data Link Control 11.1

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

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

Table of Contents 1 E-CPOS Interface Configuration 1-1

Department of Computer and IT Engineering University of Kurdistan. Data Communication Netwotks (Graduate level) Data Link Layer

Lecture 3: Modulation & Layering"

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

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

Introduction to Data Communications & Networking

Message, Segment, Packet, and Frame Link-layer services Encoding, framing, error detection, transmission control Error correction and flow control

CS422 Computer Networks

CSCI 466 Midterm Networks Fall 2011

Synchronous Optical Networks (SONET) Advanced Computer Networks

EITF25 Internet Techniques and Applications L3: Data Link layer. Stefan Höst

Synchronous Optical Networks SONET. Computer Networks: SONET

Link Layer and Ethernet

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

Link Layer and Ethernet

Transmission SIGNALs

DATA LINK LAYER UNIT 7.

3COM0271 Computer Network Protocols & Architectures A

Data Link Layer, Part 4. Exemplary Protocols

Lecture 6: Reliable Transmission. CSE 123: Computer Networks Alex Snoeren (guest lecture) Alex Sn

The Data Link Layer Chapter 3

1-Port OC-48/STM-16 Packet over SONET Line Card Configuration

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

The Data Link Layer Chapter 3

Configuring POS interfaces

Chapter 11 Data Link Control 11.1

Backbone network technologies. T Jouni Karvo, Timo Kiravuo

SONET/SDH. By Iqtidar Ali

CS254 Network Technologies. Lecture 2: Network Models & Error Detection and Correction. Dr Nikos Antonopoulos

POS on ONS Ethernet Cards

PPP. Point-to-Point Protocol

DCN Questions CHAPTER 1:- NETWORKING FUNDAMENTALS

Where we are in the Course

Backbone network technologies. T Jouni Karvo, Timo Kiravuo

Time : 3 hours. Full Marks: 70. The figures in the margin indicate full marks. Answer from all the Groups are directed. Group A.

Goals of Today s Lecture. Adaptors Communicating

Data Link Layer Lecture 7

Transport Layer. Gursharan Singh Tatla. Upendra Sharma. 1

Transcription:

Areas for Discussion Direct Link s Joseph Spring School of Computer Science 3COM0271 Computer Protocols & Architecture s Based on Chapter 2, Peterson & Davie, Computer s: A Systems Approach, 4 th Ed Problems ly Connecting Hosts 5 Problems Hardware Building Blocks (Section 2.1) Encoding (Section 2.2) Framing (Section 2.3) Lecture - Encoding & Framing 1 Lecture - Encoding & Framing 2 Problems Addressed In order to successfully exchange data between nodes the following problems need to be addressed: 1 Connect two/more nodes with a suitable medium 2 Encode bits onto wire/optical fibre 3Framing Delineate the sequence of bits transmitted over a link 4 Error Detection Detect the corruption of data due to noise, crosstalk, interference, etc; Lecture - Encoding & Framing 3 Problems Addressed 5 Reliable Delivery Make a link appear reliable at higher levels even though it may be less than 100% reliable at the lower levels 6 Media Access Control Obtaining i access to shared media such as Ethernet FDDI Note that these functions are generally implemented in a network adapter. The adapter is in turn controlled by a device driver running on the node Lecture - Encoding & Framing 4 OSI Architecture End Host End Host Application Application Presentation Presentation Session Transport One or more nodes within the network Session Transport Framing Lecture - Encoding & Framing 5 Lecture - Encoding & Framing 6 Lecture - Encoding & Framing 1

2.3 Framing - The Link Layer While the physical links transfer bits, we want our network adapters to transfer blocks of data, called frames at this level. The problem is to determine where a frame begins and ends There are several approaches to the framing problem: Bit-Orientated Protocols versus Byte-Orientated Protocols Sentinel Approach versus Counting Approach Clock based framing (Sonet) Lecture - Encoding & Framing 7 2.3 Framing - The Link Layer (Fig 2.11 p.84 P&D) Node A Adaptor Bits Adaptor Node B Frames Bits flow between adaptors, Frames between hosts Lecture - Encoding & Framing 8 Byte - Orientated Protocols BIC Binary Synchronous Communication Developed by IBM in the late 60 s (Fig 2.12 p.85 P&D) 8 8 8 8 8 16 SOH Header STX Body ETX CRC The BIC Frame Format Lecture - Encoding & Framing 9 Lecture - Encoding & Framing 10 The beginning of a frame is denoted by a special (synchronisation) character Character allows the receivers clock to synchronise with the transmitters clock SOH character indicates start of header Data portion is contained between two special sentinel characters (STX & ETX) CRC characters used to detect errors - Problems Corrupt sentinel char will cause framing error over two frames ETX may occur in data portion; In this case DLE ETX is transmitted (DLE = Escape) DLE in turn is rendered as DLE DLE This approach is called character stuffing since extra characters are inserted into the data portion Lecture - Encoding & Framing 11 Lecture - Encoding & Framing 12 Lecture - Encoding & Framing 2

Point to Point Protocol A more recent example of the sentinel approach (Fig 2.13 p.85 P&D) 8 8 8 16 16 Flag Address Control Protocol Payload Checksum Flag The PPP Frame Format Lecture - Encoding & Framing 13 8 Point to Point Protocol 8 8 8 16 16 8 Flag Address Control Protocol Payload Checksum Flag The PPP Frame Format Flag: start-of-text char 01111110 Protocol field: used for de-multiplexing Payload: default is 1500 bytes Checksum: 2 bytes by default Lecture - Encoding & Framing 14 Point to Point Protocol PPP format Unusual in that several of the field sizes are negotiated LCP Link Control Protocol Used to set up field sizes or to establish a link between peers when both sides detect that communication is possible E.g. optical receiver detects incoming signal from fiber to which t connects LCP sends control messages encapsulated in PPP frames Protocol Field LCP identifier given in PPP Protocol Field Used to distinguish PPP from LCP messages Lecture - Encoding & Framing 15 2. Byte Counting Approach DDCMP Digital Data Communication Message Protocol (Fig 2.14 p.87 P&D) 8 8 8 14 42 16 Class Count Header Body CRC The DDCMP Frame Format Lecture - Encoding & Framing 16 2. Byte Counting Approach DDCMP The beginning of the frame is still denoted by a special (synchronisation) char COUNT specifies how many bytes are contained in the body of the frame CRC bytes are used to detect errors Problem If the COUNT field is corrupted then two adjacent frames may be lost Lecture - Encoding & Framing 17 Bit - Orientated Protocols Lecture - Encoding & Framing 18 Lecture - Encoding & Framing 3

HDLC HDLC High Level Control Protocol (Fig 2.15 p.88 P&D) 8 16 16 8 Beginning Ending Header Body CRC Sequence Sequence Beginning and end of a frame is marked with bit sequence 01111110 Bit stuffing employed Lecture - Encoding & Framing 19 HDLC Bit Stuffing In the body of a message if 5 consecutive ones occur then an additional zero is inserted after the 5 consecutive ones by the sender The additional zeros are removed automatically by the receiver Side Effect of Bit Stuffing The size of the frame is a function of how often bit stuffing is required rather than on the amount of data being transmitted The same problem occurs with character stuffing Lecture - Encoding & Framing 20 SONET: Clock Based Framing Clock Based Framing (SONET) SONET Synchronous Optical Dominant standard for long distance transmission of data over optical networks defines how telephone companies transmit data over optical networks Closely related to ATM (See Chapter 3) Addresses both framing and encoding problems Allows multiplexing of several low-speed links onto one high-speed link Lecture - Encoding & Framing 21 Lecture - Encoding & Framing 22 SONET: Clock Based Framing 810 byte SONET STS 1 Frame (Fig 2.16 p.90 P&D) Overhead Payload 9 Rows 90 Columns Lecture - Encoding & Framing 23 SONET: Notes Framing First two bytes in each frame contain a synch pattern Note pattern is not unique to those two positions No bit stuffing No escape characters So frame length independent of data sent Receiver must detect a synch pattern that repeats every 810 bytes, but that can also occur elsewhere Lecture - Encoding & Framing 24 Lecture - Encoding & Framing 4

SONET: Notes Encoding Overhead bytes are coded using NRZ Payload bytes are also scrambled XOR d with a 127 bit pattern Idea is to ensure frequent transitions Avoid strings of ones and zeros Helps clock synchronisation Review Question What is the probability that the pattern occurs in the wrong place and that as a result we get missynchronisation? Lecture - Encoding & Framing 25 SONET Multiplexing A given Sonet link runs at one of a finite set of rates: STS-1 51.84 Mbps STS-3 155. 52 Mbps (Note: 3 times STS-1) (Note: corrects book error of 155.25 in Table 2.2 p73) STS-48 2488.32 Mbps An STS-N frame can be regarded as a single channel with a given bit rate or as N multiplexed ST-1 channels In the case of multiplexed channels, the bits from each channel are interleaved In this case each SONET frame is still transmitted in 125 micro-seconds Lecture - Encoding & Framing 26 SONET Frames Out Of Phase In practice each ST-1 frame does not hold a complete frame of data Instead data frames can be divided between two frames A pointer in the overhead bytes indicates the start of each data frame payload may float across frame boundaries SONET Frames Out Of Phase (Fig 2.18 p.91 P&D) 87 Columns Frame 0 Frame 1 9 Rows Lecture - Encoding & Framing 27 Lecture - Encoding & Framing 28 Reliable Transmission In this section we are interested in the reliable transmission of frames over unreliable links We will use the Sliding Window Algorithm to achieve reliable transmission First we consider why errors occur and how they can be detected Based on sections 2.4 & 2.5 of Chapter 2, Peterson and Davie Computer s: A Systems Approach 4 th Ed. Lecture - Encoding & Framing 29 Summary Problems ly Connecting Hosts 5 Problems Hardware Building Blocks (Section 2.1) Encoding (Section 2.2) Framing (Section 2.3) Lecture - Encoding & Framing 30 Lecture - Encoding & Framing 5

References Peterson and Davie, Computer s: A Systems Approach 4 th Ed. Lecture - Encoding & Framing 31 Lecture - Encoding & Framing 6