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

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

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

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.

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

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

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 5. Homework 2 posted, due September 15. Reminder: Homework 1 due today. Questions? Thursday, September 8 CS 475 Networks - Lecture 5 1

Housekeeping. Fall /5 CptS/EE 555 1

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

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

CSCI-1680 Link Layer I Rodrigo Fonseca

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

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

CSE 461: Framing, Error Detection and Correction

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

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

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

Links. CS125 - mylinks 1 1/22/14

ECE 4450:427/527 - Computer Networks Spring 2017

Data Link Layer Overview

Data Link Layer Overview

Data Link Layer Overview

Data Link Layer Overview

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

CSCI-1680 Link Layer Reliability Rodrigo Fonseca

Reliable Transmission

Direct Link Networks (II)

CSCI-1680 Link Layer Reliability John Jannotti

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

Transport Layer Marcos Vieira

Networking Link Layer

CSCI-1680 Physical Layer Link Layer I Rodrigo Fonseca

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

CSE 123: Computer Networks

Administrivia. FEC vs. ARQ. Reliable Transmission FEC. Last time: Framing Error detection. FEC provides constant throughput and predictable delay

CMSC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala. October 11, 2018

COMP/ELEC 429/556 Introduction to Computer Networks

Lecture 3: Modulation & Layering"

The Transport Layer Reliability

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

Chapter 2: Getting Connected

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

Data Communication & Computer Networks INFO

Flow Control, and Congestion Control

Direct Link Communication I: Basic Techniques. Data Transmission. ignore carrier frequency, coding etc.

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

Copyright 2010, Elsevier Inc. All rights Reserved

UNIT I FUNDAMENTALS & LINK LAYER

CS 640 Lecture 4: 09/11/2014

TCP. Sliding Windows, Flow Control, and Congestion Control. Networks : TCP Sliding Windows 1

Data Link Layer (1) Networked Systems 3 Lecture 6

Link Layer (L2) Review

Direct Link Communication I: Basic Techniques. Data Transmission. ignore carrier frequency, coding etc.

CS 4453 Computer Networks Winter

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

CSCI 466 Midterm Networks Fall 2011

Reliable Byte-Stream (TCP)

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

Flow Control, and Congestion Control

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

CSE 123A Computer Networks

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.

CPE 548 Exam #1 (50 pts) February 17, 2016

Chapter 11 Data Link Control 11.1

COMPUTER NETWORKS CS CS 55201

Some portions courtesy Robin Kravets and Steve Lumetta

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

CS422 Computer Networks

CSEP 561 Connections. David Wetherall

End-to-End Protocols. End-to-End Protocols

Introduction to Computer Networks. 03 Data Link Layer Introduction

COMPUTER NETWORKS CS CS 55201

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

DATA LINK LAYER UNIT 7.

Announcements Computer Networking. Outline. Transport Protocols. Transport introduction. Error recovery & flow control. Mid-semester grades

CSEP 561 Connections. David Wetherall

Data Link Layer. Overview. Links. Shivkumar Kalyanaraman

Computer Networking. Lecture 4 - Coding and Error Control

CSE123A discussion session

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

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

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

The Data Link Layer Chapter 3

Goals of Today s Lecture. Adaptors Communicating

Computer and Network Security

Computer Network (2012 Spring) Homework Answer. Chapter2

The Data Link Layer Chapter 3

CSE 123: Computer Networks

CPE 448/548 Exam #1 (100 pts) February 14, Name Class: 448

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

CompSci 356: Computer Network Architectures Lecture 5: Reliable Transmission and Multi-access links Chapter 2.4, 2.5, 2.6

INTERNET ARCHITECTURE & PROTOCOLS

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

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

CSCI 466 Midterm Networks Fall 2011

Lecture 7: Sliding Windows. CSE 123: Computer Networks Geoff Voelker (guest lecture)

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

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

Chapter 11 Data Link Control 11.1

Transcription:

Physical and Data Link Layer Overview Problem Statement Make two talk to each other Kameswari Chebrolu Dept. of Electrical Engineering, IIT Kanpur Physical media transmit Analog signals Modulate/demodulate the electromagnetic waves Encode binary data into signals E.g. Non-return to Zero (NRZ) 0 as low signal and 1 as high signal Bits NRZ

Problems with NRZ Consecutive 1s and 0s Changes the average making it difficult to detect signals (baseline wander) Clock Recovery Sender's and receiver clocks have to be precisely synchronized Receiver derives the clock from the received signal vis signal transition Lesser number of transitions leads to clock drift Alternative s Non-return to Zero Inverted (NRZI) To encode a 1, make a transition To encode a 0, stay at the current signal Solves problem of consecutive 1's but not 0's Manchester Transmits XOR of the NRZ encoded data and the clock 0 is encoded as low-to-high transition, 1 as high-to-low transition Only 50% efficient Example 4B/5B Bits Every 4 bit of actual data is encoded into a 5 bit code NRZ The 5 bit code words have No more than one leading 0 Clock No more than two trailing 0s Solves consecutive zeros problem Manchester The 5 bit codes are sent using NRZI Achieves 80% efficiency NRZI

4B/5B breaks bit streams into frames of smaller sizes Challenge: What sets of bits constitute a frame Where is the beginning and the end of frame? Protocols Examples: PPP, HDLC, DDCMP Theory behind Delineate a frame with a special pattern HDLC uses an 8 bit pattern: 01111110 Beginning sequence 8 16 16 8 Header Problem: Special pattern may appear in payload Solution: Bit Stuffing Body CRC Sender inserts a 0 after 5 consecutive 1's Ending sequence Receiver removes the 0 that follows 5 1's

Basic Idea: Add redundant information to a frame Add k bits of redundant data to a n bit message k << n; k = 32; n = 12,000 k derived from original message through some algorithm Examples: CRC, checksum, two-dimensional parity Checksum View data in a frame to be transmitted as a sequence of 16-bit integers. Add the integers using 16 bit one's complement arithmetic. Take the one's complement of the result this result is the checksum

Two forms of error recovery: Automatic Repeat request (ARQ) Forward Error Correction (FEC) ARQ relies on two mechanisms Time Stop and Wait ARQ Sender Receiver 0 0 1 1 Acknowledgments Timeout Problem: Can't keep pipe full Example: Consider a 1.5 Mbps link with a 45ms round trip time; size is 1024 bytes Utilization is 1024*8/0.045 = 182kbps Time Timeout Timeout Timeout Stop and Wait ARQ Cont... Sender Receiver Sender Receiver (a) Sender Receiver Timeout Timeout Timeout Timeout (b) Sender Receiver Bandwidth-Delay Product (BDP) View a link as a hollow pipe Latency corresponds to the length of the pipe Bandwidth gives diameter of the pipe BDP gives the volume of the pipe the number of bits it holds E.g. a transcontinental link with bandwidth 45Mbps and latency 50ms can hold 2.25 * 10 6 bits BDP represents #bits the sender can transmit before the sender gets acknowledgment of the first bit If the sender does not send BDP's worth of data, it is under utilizing the link

Sliding Window Allow multiple outstanding (un-acked) frames Place an upper bound on un-acked frames, called window Sender Side Assign a sequence number to each frame (SeqNum) Maintain 3 variables: Send Window Size (SWS): upper bound on the number of unacked frames that sender can transmit LAR denotes sequence number of Last Acknowledgment Sender Receiver Received; Advance LAR when arrives LFS denotes sequence number of Last Sent Time Maintain Invariant: LFS-LAR <= SWS < SWS LAR LFS Receiver Side Maintains the following three variables Receiver Side cont.. Received Window Size (RWS): upper bound on the number of out of order frames LAF denotes sequence number of last acceptable frame LFR denotes sequence number of last frame received Maintain invariant: LAF LFR <= RWS SeqNum arrives If SeqNum <= LFR or SeqNum > LAF, discard If LFR< SeqNum <= LAF, accept Send cumulative Acks < RWS LFR LAF

Summary Five key problems have to be solved for two to talk with each We covered four of these problems The fifth problem and our topic of next session is Protocols