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

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

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

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

ECE 4450:427/527 - Computer Networks Spring 2017

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

Links. CS125 - mylinks 1 1/22/14

Housekeeping. Fall /5 CptS/EE 555 1

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

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

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

CSE 123A Computer Networks

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

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

Introduction to Computer Networks. 03 Data Link Layer Introduction

Data Link Layer Overview

Data Link Layer. Overview. Links. Shivkumar Kalyanaraman

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

CSCI-1680 Physical Layer Link Layer I Rodrigo Fonseca

Data Link Layer Overview

Some portions courtesy Robin Kravets and Steve Lumetta

CSCI-1680 Link Layer I Rodrigo Fonseca

Data Link Layer Overview

Data Link Layer Overview

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

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

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

Computer and Network Security

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

PART III. Data Link Layer MGH T MGH C I 204

CS 4453 Computer Networks Winter

Computer Networking. Lecture 4 - Coding and Error Control

COMPUTER NETWORKS CS CS 55201

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

COMPUTER NETWORKS CS CS 55201

Networking Link Layer

Lecture 5. Homework 2 posted, due September 15. Reminder: Homework 1 due today. Questions? Thursday, September 8 CS 475 Networks - Lecture 5 1

Transmission SIGNALs

Data Communication & Computer Networks INFO

UNIT I FUNDAMENTALS & LINK LAYER

Chapter 2: Getting Connected

CSE 461: Framing, Error Detection and Correction

Lecture / The Data Link Layer: Framing and Error Detection

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

5th Slide Set Computer Networks

Inst: Chris Davison

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

Data Link Layer: Overview, operations

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

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

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

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

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

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

2.4 Error Detection Bit errors in a frame will occur. How do we detect (and then. (or both) frames contains an error. This is inefficient (and not

Lecture 6 Datalink Framing, Switching. From Signals to Packets

CS 640 Lecture 4: 09/11/2014

CS422 Computer Networks

Data Link Layer. Indian Institute of Technology Madras

Data Link Layer. Srinidhi Varadarajan

Chapter 10 Error Detection and Correction. Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

High Level View. EE 122: Error detection and reliable transmission. Overview. Error Detection

The Link Layer and LANs. Chapter 6: Link layer and LANs

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

CS 455/555 Intro to Networks and Communications. Link Layer

EE 122: Error detection and reliable transmission. Ion Stoica September 16, 2002

CSE 123: Computer Networks

Error Detection Codes. Error Detection. Two Dimensional Parity. Internet Checksum Algorithm. Cyclic Redundancy Check.

Chapter 5 Link Layer and LANs

UNIT-II 1. Discuss the issues in the data link layer. Answer:

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.

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

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

Link layer, LANs: outline. Chapter 5-1 Link Layer. Link layer: introduction. Link layer services

DATA LINK LAYER UNIT 7.

Copyright 2010, Elsevier Inc. All rights Reserved

Link Layer and LANs 안상현서울시립대학교컴퓨터 통계학과.

Chapter 8 OSI Physical Layer

Chapter 3. The Data Link Layer

Where we are in the Course

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

Lecture 3: Modulation & Layering"

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

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

The Data Link Layer Chapter 3

Goals of Today s Lecture. Adaptors Communicating

UNIT I FUNDAMENTALS & LINK LAYER

CS321: Computer Networks Error Detection and Correction

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

CSCI-1680 Link Layer Reliability Rodrigo Fonseca

(Refer Slide Time: 2:20)

Lecture 5: Data Link Layer Basics

COMP/ELEC 429/556 Introduction to Computer Networks

DCN Questions CHAPTER 1:- NETWORKING FUNDAMENTALS

The Data Link Layer Chapter 3

CS 457 Networking and the Internet. Link Layer Protocols. Problems 8/31/16. Fall 2016 Indrajit Ray

Link Layer (L2) Review

TYPES OF ERRORS. Data can be corrupted during transmission. Some applications require that errors be detected and corrected.

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

Transcription:

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

PROBLEM: Physically connecting Hosts 5 Issues 4 Technologies Encoding - encoding for physical medium Framing - delineation of bit stream Error Detection Network Card - identify frame errors Reliable Delivery - link integrity despite errors Media Access Control - multiple host access Point-to-point Links CSMA (Carrier Sense Multiple Access) - Ethernet - IEEE 802.3 Token Ring - FDDI - IEEE 802.5 Wireless - IEEE 802.11 CS565 Data Link Networks 2

Nodes CPU general-purpose computers; e.g., desktop workstations, special- purpose hardware, PC Cache Network adaptor (To network) Memory I/O bus Finite memory Connects to network via a network adaptor Fast processor, slow memory CS565 Data Link Networks 3

Network Node Memory Moore s Law Doubling processor speeds in 18 months Memory Latency Only 7% improvement each year Network nodes run at memory speeds, not CPU speeds Memory accesses needed to be considered carefully Two scarce resources: bandwidth and memory CS565 Data Link Networks 4

Links f (Hz) 10 0 10 2 10 4 10 6 10 8 10 10 10 12 10 14 10 16 10 18 10 20 10 22 10 24 Radio Microwave Infrared UV X ray Gamma ray 10 4 10 5 10 6 10 7 10 8 10 9 10 10 10 11 10 12 10 13 10 14 10 15 10 16 Coax Satellite Fiber optics AM FM TV Terrestrial microwave Electromagnetic Spectrum CS565 Data Link Networks 5

Links Sometimes you install your own Category 5 twisted pair 10-100Mbps, 1 50-ohm coax (ThinNet) 10-100Mbps, 2 75-ohm coax (ThickNet) 10-100Mbps, 5 Multimode fiber 100Mbps, 2km Single-mode fiber 100-2400Mbps Sometimes leased from the phone company Service to ask for ISDN T1 T3 STS-1 STS-3 STS-12 STS-24 STS-48 Bandwidth you get 64 Kbps 1.544 Mbps 44.736 Mbps 51.840 Mbps 155.250 Mbps 622.080 Mbps 1.244160 Gbps 2.488320 Gbps (Note: T1 also called DS1, STS-1 also called OC-1) CS565 Data Link Networks 6

Last-Mile Links From home to the network service provider. Service POTS (Plain Old Telephone Service) ISDN (Integrated Services Digital Network) xdsl (Digital Subscriber Line) CATV (CAble TV) Bandwidth 28.8-56 Kbps 64-128 Kbps 16 Kbps-55.2Mbps 20-40 Mbps CS565 Data Link Networks 7

Point-to-Point Links Encoding Framing Error Detection Reliable Transmission CS565 Data Link Networks 8

Encoding Signals propagate over a physical medium modulate electromagnetic waves by varying the voltage Network adaptor handles encoding Encoded bits to signals (sending) Decodes signals to bits (receiving) CS565 Data Link Networks 9

Adaptors Signalling component Node Adaptor Signal Adaptor Node Bits Signal travel between signalling components; Bits flow between adaptors CS565 Data Link Networks 10

Modem and Codec Modem = Modulator + Demodulator Codec = Encoder + Decoder Encoder Modulator Demodulator Decoder Media CS565 Data Link Networks 11

NRZ Encoding Encode binary data onto signals e.g., 0 as low signal and 1 as high signal known as Non-Return to zero (NRZ) Bits 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0 NRZ Problem: Consecutive 1s or 0s Low signal (0) may be interpreted as no signal High signal (1) leads to baseline wander Unable to recover clock CS565 Data Link Networks 12

Alternative Encodings Non-return to Zero Inverted (NRZI) make a transition from current signal to encode a one; stay at current signal to encode a zero solves the problem of consecutive ones Manchester transmit XOR of the NRZ encoded data and the clock only 50% efficient. CS565 Data Link Networks 13

4-Bit Symbol 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 5-bit Code 11110 01001 10100 10101 01010 01011 01110 01111 10010 10011 10110 10111 11010 11011 11100 11101 Others: 11111 idle 00000 dead Encodings (cont) 4B/5B every 4 bits of data encoded in a 5-bit code 5-bit codes selected to have no more than one leading 0 and no more than two trailing 0s thus, never get more than three consecutive 0s resulting 5-bit codes are transmitted using NRZI achieves 80% efficiency CS565 Data Link Networks 14

Encodings (cont) Bits 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0 NRZ Clock Manchester NRZI CS565 Data Link Networks 15

Framing Node A Bits Adaptor Adaptor Node B Packet-switched networks Break sequence of bits into frames (blocks of data) What set of bits constitute a frame? Where the frame begins? Where the frame ends? Frames Central challenge - Use different protocols Typically implemented by network adaptor Adaptor fetches (deposits) frames out of (into) host memory CS565 Data Link Networks 16

Framing Protocol Byte-oriented View each frame as a collection of bytes (characters) Sentinel approach BISYNC (Binary Synchronous Communication) protocol - IBM Byte counting DDCMP ( Digital Data Communication Message Protocol) protocol - DEC Bit-oriented HDLC (High-Level Data Link Control) Protocol IBM and then ISO Clock-based SONET (Synchronous Optical Network) Bellcore and then ANSI CS565 Data Link Networks 17

Byte-Oriented - Sentinel Approach Frame begins at SYN (Synchronization) Sentinel values between body STX = Start of text ETX = End of text CRC (Cycle Redundancy Check) checks for errors 8 8 8 8 8 16 SYN SYN SOH Header STX Body BISYNC frame format (Binary Synchronous Communication) IBM ETX CRC problem: ETX character might appear in the data portion of the frame solution: Character stuffing Escape the ETX character with a DLE (data line escape) character in BISYNC CS565 Data Link Networks 18

Byte-Oriented Byte-Counting Approach COUNT field specifies how many bytes contained in a frame 8 8 8 14 42 16 SYN SYN Class Count Header Body CRC DDCMP frame format ( Digital Data Communication Message Protocol) - DEC CS565 Data Link Networks 19

Bit-Oriented Denote the beginning/end of a frame with the distinguished bit sequence 0111110 8 16 16 8 Beginning sequence Header Body CRC Ending sequence HDLC frame format (High-level Data Link Control) IBM and then ISO problem: the pattern 01111110 could appear anywhere in the body of the frame solution: Bit Stuffing - When it is located in the body, it is preceded with an escape sequence of bits (like an escape character in C) CS565 Data Link Networks 20

Clock-Based each frame is 125 s long At STS-1 (= 51.84 Mbps) rate, 810B long e.g., SONET: Synchronous Optical Network ITU standard for transmission over fiber STS-n(STS-1 = 51.84 Mbps) Overhead Payload Hdr STS-1 Hdr STS-1 Hdr STS-1 9 rows 90 columns Each frame is 810 bytes long Hdr STS-3c c - concatenated CS565 Data Link Networks 21

Error Long history of dealing with bit errors Hamming Reed/Solomon Detecting Error is only one part of the problem, the other part is correcting errors Two methods of error correction Have the message retransmitted Error-correcting codes (algorithms that all the recipient to reconstruct the correct message) CS565 Data Link Networks 22

Error Detection Basic idea add extra (redundant) bits to a frame that can be used to determine if errors have been introduced. Ethernet: 1500B data requires only 32-bits (CRC-32) Sender applies algorithm to the message to come up with the extra bits Receiver uses the same algorithm to check if the calculation comes up with the same result Common error-detecting codes Two-dimensional parity (ASCII) (link-level) Checksum (internet) (not link-level) CRC, Cyclic Redundancy Check, (link-level) CS565 Data Link Networks 23

Two-Dimensional Parity 0101001 1 Catch all 1,2,3-bit and most 4-bit errors In this example, use 14 redundant bits for a 42-bit message, which is much better than the obvious way of sending two copies of the same data Data Parity byte 1101001 0 1011110 1 0001110 1 0110100 1 1011111 0 1111011 0 Parity bits Used by BISYNC protocol (IBM) to transmitting ASCII characters CS565 Data Link Networks 24

Internet Checksum Algorithm Not used in link-level (unlike parity and CRC) Sender adds up all the word and then transmit the result of that sum (Checksum) Received adds up all the words and compares its checksum to the sender s checksum Algorithm for the Internet 1. Treat the data as a sequence of 16-bit integers. Add the 16-bit integers using 16-bit ones complement arithmetic 2. take the ones complement of the result. That 16-bit number is the checksum. CS565 Data Link Networks 25

CRC - Cyclic Redundancy Check Add k bits of redundant data to an n-bit message want k << n e.g., Ethernet: k = 32 and n = 12,000 (1500 bytes) Represent n-bit message as n-1 degree polynomial e.g., MSG=10011010 as M(x) = x 7 + x 4 + x 3 + x 1 Let k be the degree of some divisor polynomial e.g., C(x) = x 3 + x 2 + 1 when k = 3 CS565 Data Link Networks 26

CRC - Cyclic Redundancy Check Transmit polynomial P(x) that is evenly divisible by C(x) shift left k bits, i.e., M(x)x k subtract remainder of M(x)x k / C(x) from M(x)x k Receiver polynomial P(x) + E(x) (E(x) error in the transmission) E(x) = 0 implies no errors Divide (P(x) + E(x)) by C(x); remainder zero if: E(x) was zero (no error), or E(x) is exactly divisible by C(x) CS565 Data Link Networks 27

CRC Example: k=3 Generator C(x) 1101 Perform logical XOR Once the reminder is obtained, subtract it from M(x)x k, this can be accomplished with the XOR 10011010000 101 = 10011010101 Send this message Recipient divides received message by C(x), if the reminder is 0 no error (most likely) Original Message M(x) 11111001 10011010000 Message & k bits of 0 1101 M(x)x k 1001 1101 1000 1101 1011 1101 1100 1101 1000 1101 101 Remainder M(x)x k / C(x) CS565 Data Link Networks 28

Selecting C(x) All single-bit errors, as long as the x k and x 0 terms have non-zero coefficients. All double-bit errors, as long as C(x) contains a factor with at least three terms Any odd number of errors, as long as C(x) contains the factor (x + 1) Any burst error (i.e., sequence of consecutive error bits) for which the length of the burst is less than k bits. Most burst errors of larger than k bits can also be detected CS565 Data Link Networks 29

Common CRC Divisor Polynomials CRC CRC-8 (ATM) CRC-10 (ATM) CRC-12 CRC-16 CRC-CCITT (HDLC) CRC-32 (Ethernet) C(x) x 8 +x 2 +x 1 +1 x 10 +x 9 +x 5 +x 4 +x 1 +1 x 12 +x 11 +x 3 +x 2 +x 1 +1 x 16 +x 15 +x 2 +1 x 16 +x 12 +x 5 +1 x 32 +x 26 +x 23 +x 22 +x 16 +x 12 +x 11 +x 10 +x 8 +x 7 +x 5 +x 4 +x 2 +x+1 CSC 550 Data Link Networks 30