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

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

ECE 4450:427/527 - Computer Networks Spring 2017

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

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

CSCI-1680 Physical Layer Link Layer I Rodrigo Fonseca

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

Data Link Layer. Indian Institute of Technology Madras

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

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

Housekeeping. Fall /5 CptS/EE 555 1

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

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

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

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

Links. CS125 - mylinks 1 1/22/14

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

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

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

COMP/ELEC 429/556 Introduction to Computer Networks

Introduction to Computer Networks. 03 Data Link Layer Introduction

CSE 123A Computer Networks

Data Link Layer Overview

Data Link Layer Overview

Some portions courtesy Robin Kravets and Steve Lumetta

Data Link Layer Overview

Data Link Layer Overview

CSCI-1680 Link Layer I Rodrigo Fonseca

Framing and Stuffing. Advanced Computer Networks

Chapter 2: Getting Connected

Chapter 8 OSI Physical Layer

Lecture 3: Modulation & Layering"

UNIT I FUNDAMENTALS & LINK LAYER

CSCI 466 Midterm Networks Fall 2011

Computer Networking. Lecture 4 - Coding and Error Control

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

CS 4453 Computer Networks Winter

Lecture 2: Links and Signaling

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

5th Slide Set Computer Networks

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

Computer Facilities and Network Management BUS3150 Tutorial - Week 13

CS 640 Lecture 4: 09/11/2014

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

Computer and Network Security

Data Link Layer. Overview. Links. Shivkumar Kalyanaraman

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

Inst: Chris Davison

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

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

Goals of Today s Lecture. Adaptors Communicating

CS455: Introduction to Distributed Systems [Spring 2018] Dept. Of Computer Science, Colorado State University

Chapter 3. The Data Link Layer

Data Link Layer (1) Networked Systems 3 Lecture 6

Lecture / The Data Link Layer: Framing and Error Detection

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

Packet? No. SenseCarrier. Discard packet attempts < 16. attempts == 16

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

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.

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

CSE 461: Framing, Error Detection and Correction

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

UNIT I FUNDAMENTALS & LINK LAYER

Lecture 6 Datalink Framing, Switching. From Signals to Packets

Transmission SIGNALs

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

DCN Questions CHAPTER 1:- NETWORKING FUNDAMENTALS

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

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

CSCI 466 Midterm Networks Fall 2011

Frequency: it refers to the number of periods in 1 s. It is formally expressed in Hertz (Hz)

Lecture 5: Data Link Layer Basics

Faculty of Science Final Examination. Computer Science B Basics of Computer Networks

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

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

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

EECE494: Computer Bus and SoC Interfacing. USB (Universal Series Bus) Dr. Charles Kim Electrical and Computer Engineering Howard University

Medium Access Control

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

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

ECE 653: Computer Networks Mid Term Exam all

Data Link Layer: Overview, operations

Configuration of Synchronous Protocols

CS422 Computer Networks

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

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

SONET/SDH. By Iqtidar Ali

Synchronous Optical Networks (SONET) Advanced Computer Networks

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

Backbone network technologies. T Jouni Karvo, Timo Kiravuo

Synchronous Optical Networks SONET. Computer Networks: SONET

DATA LINK LAYER UNIT 7.

Code No: RR Set No. 1

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

Backbone network technologies. T Jouni Karvo, Timo Kiravuo

COMPUTER NETWORKS CS CS 55201

Copyright 2010, Elsevier Inc. All rights Reserved

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

EE 610 Part 2: Encapsulation and network utilities

The Data Link Layer Chapter 3

Topics Today. Lecture 8: Physical and Link Layers. Protocol Layering. Physical layer: chips versus bits. Physical Layer (Layer 1) Protocol Layering

Transcription:

Areas for Discussion Direct Link s Joseph Spring School of Computer Science 3COM0088 Computer Protocols & Architecture s Based on Chapter 2, Peterson & Davie, Computer s: A Systems Approach, 3 rd 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 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 OSI Architecture End Host Application Presentation End Host Application Presentation The enclosed box represents a switch within a network Session Transport One or more nodes within the network Session Transport Switches communicate using network layer protocols The physical links between switches and / or nodes run their own Protocols, depending on the nature of the link Lecture - Encoding & Framing 5 Lecture - Encoding & Framing 6 Lecture - Encoding & Framing 1

Point to Point Link (Fig 2.5 P&D) Signalling Components Encoding NRZ, NRZI, Manchester, 4B/5B Node Adaptor Signal Bits Adaptor Node Signals travel between signalling components; bits flow between adaptors Lecture - Encoding & Framing 7 Lecture - Encoding & Framing 8 Point to Point Link Layer Deals with the representation of data on a physical link Link Layer Deals with the transmission of data or frames across an end-to-end link Link layer protocols therefore run over a single end-to-end link Lecture - Encoding & Framing 9 2.2 Layer Encoding Concerned with the representation of data on the physical link between two nodes 1 NRZ (Non-Return to Zero) A fancy name for the obvious encoding scheme However the long strings of zeros or ones that can be generated by this scheme may cause problems: Difficult to distinguish from the absence of a message Baseline wander Clock synchronisation (clock recovery process) note that the receiver has to derive its clock from the senders signal Lecture - Encoding & Framing 10 2.2 Layer Encoding Different Encoding Strategies 2 NRZI (Non-Return to Zero Inverted) One encoded as a transition and zero encoded as the absence of a transition solves the problem of consecutive ones no help with a string of zeros (Fig 2.7 p.77 P&D) Bits NRZ Clock Manchester 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0 NRZI Lecture - Encoding & Framing 11 Lecture - Encoding & Framing 12 Lecture - Encoding & Framing 2

2.2 Layer Encoding 3 Manchester Encoding Exclusive-OR of the NRZ encoding and the clock giving at least one transition per bit A rising transition in the middle of a cell represents a 0, a falling transition a 1 Doubles the signal transition rate/baud rate the baud rate is therefore twice the bit rate Lecture - Encoding & Framing 13 2.2 Layer Encoding 4 4B/5B Encoding Each nibble of data is translated into a 5-bit code. The resulting code is then transmitted using NRZI. Each code has a maximum of one leading zero and two trailing zeros maximum of 3 zeros (why 3?) coding 80% efficient, versus 50% for Manchester code Note that about half of the unused codes can be used for various control purposes (line idle, dead, etc; ) without violating the rule regarding consecutive zeros Lecture - Encoding & Framing 14 4B/5B Encoding Table (Table 2.4 p.79 P&D) 4 Bit Data Symbol 5 Bit Code 0000 11110 0001 01001 0010 10100 0011 10101 0100 01010 0101 01011 0110 01110 0111 01111 1000 10010 1001 10011 1010 10110 1011 10111 1100 11010 1101 11011 1110 11100 1111 11101 Lecture - Encoding & Framing 15 Framing Lecture - Encoding & Framing 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 17 2.3 Framing - The Link Layer (Fig 2.8 p.80 P&D) Node A Adaptor Bits Adaptor Node B Frames Bits flow between adaptors, Frames between hosts Lecture - Encoding & Framing 18 Lecture - Encoding & Framing 3

1. Sentinel Approach Byte - Orientated Protocols BIC Binary Synchronous Communication Developed by IBM in the late 60 s (Fig 2.9 p.80 P&D) 8 8 8 8 8 SOH Header STX Body ETX CRC The BIC Frame Format Lecture - Encoding & Framing 19 Lecture - Encoding & Framing 20 1. Sentinel Approach 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 Lecture - Encoding & Framing 21 1. Sentinel Approach - 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 in turn is rendered as DLE DLE This approach is called character stuffing Lecture - Encoding & Framing 22 1. Sentinel Approach Point to Point Protocol A more recent example of the sentinel approach (Fig 2.10 p.81 P&D) 8 8 8 Flag Address Control Protocol Payload Checksum Flag The PPP Frame Format Lecture - Encoding & Framing 23 8 1. Sentinel Approach Point to Point Protocol 8 8 8 Flag Address Control Protocol Payload Checksum Flag The PPP Frame Format Flag: start-of-text char Protocol field: used for de-multiplexing Payload: default is 1500 Checksum: 2 bytes by default Lecture - Encoding & Framing 24 8 Lecture - Encoding & Framing 4

1. Sentinel Approach 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 Protocol Field Used to distinguish PPP from LCP messages Lecture - Encoding & Framing 25 2. Byte Counting Approach DDCMP Digital Data Communication Message Protocol (Fig 2.11 p.82 P&D) 8 8 8 14 42 Class Count Header Body CRC The DDCMP Frame Format Lecture - Encoding & Framing 26 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 27 Bit - Orientated Protocols Lecture - Encoding & Framing 28 HDLC HDLC High Level Control Protocol (Fig 2.12 p.83 P&D) 8 Beginning Sequence Header Body CRC Beginning and end of a frame is marked with bit sequence 01111110 Bit stuffing employed Lecture - Encoding & Framing 29 8 Ending Sequence 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 30 Lecture - Encoding & Framing 5

SONET: Clock Based Framing Clock Based Framing (SONET) defines how telephone companies transmit data over optical networks Closely related to ATM (See Chapter 3) Addresses framing and encoding Allows multiplexing of several low-speed links onto one high-speed link Lecture - Encoding & Framing 31 Lecture - Encoding & Framing 32 SONET: Clock Based Framing 810 byte Sonet STS 1 Frame (Fig 2.13 p.85 P&D) Overhead Payload 9 Rows 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 Receiver must detect a synch pattern that repeats every 810 bytes, but that can also occur elsewhere 90 Columns Lecture - Encoding & Framing 33 Lecture - Encoding & Framing 34 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 35 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) 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 microseconds Lecture - Encoding & Framing 36 Lecture - Encoding & Framing 6

SONET Frames Out Of Phase 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 (Fig 2.15 p.87 P&D) Frame 0 Frame 1 87 Columns 9 Rows Lecture - Encoding & Framing 37 Lecture - Encoding & Framing 38 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 3 rd Ed. Lecture - Encoding & Framing 39 Summary Problems ly Connecting Hosts 5 Problems Hardware Building Blocks (Section 2.1) Encoding (Section 2.2) Framing (Section 2.3) Lecture - Encoding & Framing 40 References Peterson and Davie, Computer s: A Systems Approach 3 rd Ed. Lecture - Encoding & Framing 41 Lecture - Encoding & Framing 7