Direct Link Networks. Encoding NRZ, NRZI, Manchester, 4B/5B. Areas for Discussion. Problems. Encoding (Section 2.2) Framing (Section 2.

Similar documents
High-Level Data Link Control

Lecture 3: Signaling and Clock Recovery. CSE 123: Computer Networks Stefan Savage

Data Link Protocols. 5.4 Framing

Direct Link Networks. Introduction. Physical Properties. Lecture - Ethernet 1. Areas for Discussion. Ethernet (Section 2.6)

15-441: Computer Networks Homework 1

Lecture 12 Transport Networks (SONET) and circuit-switched networks

It explains the differences between the Plesiochronous Digital Hierarchy and the Synchronous Digital Hierarchy.

Applied Data Communication Lecture 14

Computer Networks. Data Link Layer

Data Link Layer Overview

Physical Layer, Part 2 Digital Transmissions and Multiplexing

BROADBAND AND HIGH SPEED NETWORKS

Raj Jain. The Ohio State University Columbus, OH These slides are available on-line at:

Data Link Layer(1) Principal service: Transferring data from the network layer of the source machine to the one of the destination machine

Protocol Overhead in IP/ATM Networks

Operating Systems and Computer Networks / Datenverarbeitung 2 / Data Processing 2

Course 12 Synchronous transmission multiplexing systems used in digital telephone networks

Chapter 3: Sample Questions, Problems and Solutions Bölüm 3: Örnek Sorular, Problemler ve Çözümleri

Course 13 SDH/SONET multiplexing strategy

FIBER OPTIC COMMUNICATIONS. Optical Fibers

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

A Brief Overview of SONET Technology

FURTHER READING: As a preview for further reading, the following reference has been provided from the pages of the book below:

DATA COMMUNICATION (Basics of data communication, OSI layers.)

Ethernet. Ethernet. Network Devices

BCS THE CHARTERED INSTITUTE FOR IT. BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT COMPUTER NETWORKS

How To Encode Data From A Signal To A Signal (Wired) To A Bitcode (Wired Or Coaxial)

IP - The Internet Protocol

Data Communications & Networks. Session 3 Main Theme Data Encoding and Transmission. Dr. Jean-Claude Franchitti

Transport Layer Protocols

Fast Ethernet and Gigabit Ethernet. Networks: Fast Ethernet 1

Chap 4 Circuit-Switching Networks

Computer Networks Framing

- T-Carrier Technologies -

Fast Ethernet and Gigabit Ethernet. Computer Networks: Fast and Gigabit Ethernet

Enhancing High-Speed Telecommunications Networks with FEC

DigiPoints Volume 1. Student Workbook. Module 5 Growing Capacity Through Technology

Fundamentals of SONET/SDH

Manchester Encoder-Decoder for Xilinx CPLDs

LAN and WAN Rate 10 GigE

Internetworking. Problem: There is more than one network (heterogeneity & scale)

WAN Data Link Protocols

8B/10B Coding 64B/66B Coding

What s The Difference Between Bit Rate And Baud Rate?

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

Ethernet. Ethernet Frame Structure. Ethernet Frame Structure (more) Ethernet: uses CSMA/CD

Welcome to the Introduction to Controller Area Network web seminar My name is William Stuart, and I am a Applications Engineer for the Automotive

ESPA Nov 1984 PROPOSAL FOR SERIAL DATA INTERFACE FOR PAGING EQUIPMENT CONTENTS 1. INTRODUCTION 2. CHARACTER DESCRIPTION

Chapter 9. IP Secure

Written examination in Computer Networks

MPEG-2 Transport vs. Program Stream

Chapter 2 - The TCP/IP and OSI Networking Models

This chapter discusses Synchronous Data Link Control (SDLC) protocols that you can configure on a BANDIT device s ports. See the following sections:

Local Area Networks transmission system private speedy and secure kilometres shared transmission medium hardware & software

EE4367 Telecom. Switching & Transmission. Prof. Murat Torlak

LIN (Local Interconnect Network):

2. What is the maximum value of each octet in an IP address? A. 128 B. 255 C. 256 D. None of the above

10 Gigabit Ethernet WAN PHY

Whitepaper n The Next Generation in Wireless Technology

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

Lab Exercise Objective. Requirements. Step 1: Fetch a Trace

Ring Local Area Network. Ring LANs

Computer Network. Interconnected collection of autonomous computers that are able to exchange information

RTP / RTCP. Announcements. Today s Lecture. RTP Info RTP (RFC 3550) I. Final Exam study guide online. Signup for project demos

SDH and WDM: a look at the physical layer

SDH and WDM A look at the physical layer

FIREWALLS & NETWORK SECURITY with Intrusion Detection and VPNs, 2 nd ed. Chapter 2 An Introduction to Networking

SDLC Controller. Documentation. Design File Formats. Verification

SIM CARD PROTOCOLS. This paper attempts in broad strokes to outline the construction of these protocols and how they are used.

EITF25 Internet Techniques and Applications L5: Wide Area Networks (WAN) Stefan Höst

The Common Test Patterns described below are used to test DS1 interfaces upon initial installation and after repair.

Overview of Asynchronous Transfer Mode (ATM) and MPC860SAR. For More Information On This Product, Go to:

Lecture 2: Protocols and Layering. CSE 123: Computer Networks Stefan Savage

The Fundamentals of SONET

Sheet 7 (Chapter 10)

FINAL ASSESSMENT/EXAMINATION JULY 2015 PLEASE READ ALL INSTRUCTIONS CAREFULLY BEFORE YOU BEGIN THIS EXAMINATION

Algorithms for Interference Sensing in Optical CDMA Networks

1. (Ungraded) A noiseless 2-kHz channel is sampled every 5 ms. What is the maximum data rate?

Process Control and Automation using Modbus Protocol

Module 1. Introduction. Version 2 CSE IIT, Kharagpur

Data Communication Networks

FlexRay A Communications Network for Automotive Control Systems

Synchronous Optical Network (SONET)

CSE 123: Computer Networks Fall Quarter, 2014 MIDTERM EXAM

Computer Networks UDP and TCP

Revision of Lecture Eighteen

Notes on Computer Networks. Bob Dickerson

Indian Institute of Technology Kharagpur. TCP/IP Part I. Prof Indranil Sengupta Computer Science and Engineering Indian Institute of Technology

Multiplexing. Multiplexing is the set of techniques that allows the simultaneous transmission of multiple signals across a single physical medium.

COMPUTER NETWORKS HANDOUTS LECTURERS # PREPARED BY: HAMMAD KHALID KHAN. Copyright Virtual University of Pakistan

Unit 23. RTP, VoIP. Shyam Parekh

PPP (Point-to-Point Protocol)

Digital Transmission (Line Coding)

Asynchronous Transfer Mode: ATM. ATM architecture. ATM: network or link layer? ATM Adaptation Layer (AAL)

Objectives. Lecture 4. How do computers communicate? How do computers communicate? Local asynchronous communication. How do computers communicate?

Review of Error Detection of Data Link Layer in Computer Network

SLIP and PPP. Gursharan Singh Tatla

Transcription:

Areas for Discussion Direct Link Networks Joseph Spring Department of Computer Science BSc - Computer Network Principles & App s Based on Chapter 2, Peterson & Davie, Computer Networks: A Systems Approach Problems Physically Connecting Hosts 5 Additional Problems Encoding (Section 2.2) Framing (Section 2.3) Lecture 09 - Encoding & Framing 1 Lecture 09 - 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 09 - 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 09 - Encoding & Framing 4 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 09 - Encoding & Framing 5 Lecture 09 - Encoding & Framing 6

Point to Point Link Physical 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 09 - Encoding & Framing 7 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 09 - Encoding & Framing 8 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 Different Encoding Strategies (Fig 2.7 P&D) Bits NRZ Clock Manchester 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0 NRZI Lecture 09 - Encoding & Framing 9 Lecture 09 - Encoding & Framing 10 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 09 - Encoding & Framing 11 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 09 - Encoding & Framing 12

4B/5B Encoding Table (Table 2.5 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 09 - Encoding & Framing 13 Framing Lecture 09 - Encoding & Framing 14 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 09 - Encoding & Framing 15 2.3 Framing - The Link Layer (Fig 2.8 P&D) Node A Adaptor Bits Adaptor Node B Frames Bits flow between adaptors, Frames between hosts Lecture 09 - Encoding & Framing BIC Binary Synchronous Communication Developed by IBM in the late 60 s Byte - Orientated Protocols (Fig 2.9) 8 8 8 8 8 SOH Header STX Body ETX CRC The BIC Frame Format Lecture 09 - Encoding & Framing 17 Lecture 09 - Encoding & Framing 18

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 09 - Encoding & Framing 19 - 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 09 - Encoding & Framing 20 Point to Point Protocol A more recent example of the sentinel approach (Fig 2.10) 8 8 8 Flag Address Control Protocol Payload Checksum Flag The PPP Frame Format Lecture 09 - Encoding & Framing 21 8 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 09 - Encoding & Framing 22 8 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 09 - Encoding & Framing 23 2. Byte Counting Approach DDCMP Digital Data Communication Message Protocol (Fig 2.11) 8 8 8 14 42 Class Count Header Body CRC The DDCMP Frame Format Lecture 09 - Encoding & Framing 24

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 09 - Encoding & Framing 25 Bit - Orientated Protocols Lecture 09 - Encoding & Framing 26 HDLC HDLC High Level Data Link Control Protocol (Fig 2.12) 8 Beginning Sequence Header Body CRC Beginning and end of a frame is marked with bit sequence 01111110 Bit stuffing employed Lecture 09 - Encoding & Framing 27 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 09 - Encoding & Framing 28 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 09 - Encoding & Framing 29 Lecture 09 - Encoding & Framing 30

SONET: Clock Based Framing 810 byte Sonet STS 1 Frame (Fig 2.13) 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 09 - Encoding & Framing 31 Lecture 09 - Encoding & Framing 32 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 09 - Encoding & Framing 33 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 09 - Encoding & Framing 34 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.15) 87 Columns Frame 0 Frame 1 9 Rows Lecture 09 - Encoding & Framing 35 Lecture 09 - Encoding & Framing 36

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 Networks: A Systems Approach Lecture 09 - Encoding & Framing 37 Summary Problems Physically Connecting Hosts 5 Additional Problems Encoding (Section 2.2) Framing (Section 2.3) Lecture 09 - Encoding & Framing 38