Protocols. Basics Defining Interactions VERTICAL Application Presentation Session Transport Network Data Link Physical Please do this for me OK It’s.

Slides:



Advertisements
Similar presentations
Network Operations & administration CS 4592 Lecture 15 Instructor: Ibrahim Tariq.
Advertisements

Primitives for Achieving Reliability 3035/GZ01 Networked Systems Kyle Jamieson Department of Computer Science University College London.
Protocol Strategies.
Assume that a file is transferred from a node A to a node B. The file has been fragmented in 5 frames. Frame 0 is corrupted, the ACK of frame 1 is corrupted,
Data Link Control We want to minimize the amount of error correcting and detecting we need to do.
Chapter 11 Data Link Control
Data link control. Data Link Control –Flow Control how much data may sent –Error Control How can error be detected and corrected.
Flow and Error Control. Flow Control Flow control coordinates the amount of data that can be sent before receiving acknowledgement It is one of the most.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control and Protocols.
Transport Layer 3-1 Transport Layer r To learn about transport layer protocols in the Internet: m TCP: connection-oriented protocol m Reliability protocol.
Chapter 9: Data Link Control Business Data Communications, 4e.
1 Reliable Data Transfer. 2 r Problem: Reliability  Want an abstraction of a reliable link even though packets can be corrupted or get lost r Solution:
Error Checking continued. Network Layers in Action Each layer in the OSI Model will add header information that pertains to that specific protocol. On.
Lect11.ppt - 03/15/05 CDA 6505 Network Architecture and Client/Server Computing Lecture 11 Link-Level Flow and Error Control by Zornitza Genova Prodanoff.
Link-Level Flow and Error Control
Principles of Reliable Data Transfer. Reliable Delivery Making sure that the packets sent by the sender are correctly and reliably received by the receiver.
15 - Winter 2006 ECE ECE 766 Computer Interfacing and Protocols 1 Data Link Control Physical layer is only responsible for data transmission Data link.
CS 4396 Computer Networks Lab
Data Link Control Protocols
ARQ Mechanisms Rudra Dutta ECE/CSC Fall 2010, Section 001, 601.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Data Link Layer We have now discussed the prevalent shared channel technologies  Ethernet/IEEE  Wireless LANs (802.11) We have now covered chapters.
3: Transport Layer 3a-1 8: Principles of Reliable Data Transfer Last Modified: 10/15/2015 7:04:07 PM Slides adapted from: J.F Kurose and K.W. Ross,
Transport Layer Moving Segments. Transport Layer Protocols Provide a logical communication link between processes running on different hosts as if directly.
Cyclic Code. Linear Block Code Hamming Code is a Linear Block Code. Linear Block Code means that the codeword is generated by multiplying the message.
CSC 311 Chapter Eight FLOW CONTROL TECHNIQUES. CSC 311 Chapter Eight How do we manage the large amount of data on the network? How do we react to a damaged.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 5 Peer-to-Peer Protocols and Data Link Layer PART I: Peer-to-Peer Protocols ARQ Protocols and Reliable Data Transfer Flow Control.
1 Transport Layer Lecture 10 Imran Ahmed University of Management & Technology.
1 TCP III - Error Control TCP Error Control. 2 ARQ Error Control Two types of errors: –Lost packets –Damaged packets Most Error Control techniques are.
Data Link and Flow Control Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific.
Data Link Layer: Data Link Control : Data Communication and Computer Networks Asst. Prof. Chaiporn Jaikaeo, Ph.D.
Chapter 3: Channel Coding (part 3). Automatic repeat request (ARQ) protocols ▫Used in combination with error detection/correction ▫Block of data with.
Lecture Focus: Data Communications and Networking  Data Link Layer  Data Link Control Lecture 22 CSCS 311.
11.1 Flow and Error Control Flow Control Error Control.
Data Link Layer Flow and Error Control. Flow Control Flow Control Flow Control Specifies the amount of data can be transmitted by sender before receiving.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Principles of reliable data transfer 0.
1 Flow&Error Control R. Supakorn. 2 Flow Control Flow control refers to a set of procedure used to restrict the amount of data that the sender can send.
Telecommunications & Networking Lesson 3. ISO Open System Interconnect (OSI) Application Presentation Session Transport Network Data Link Physical Application.
Data Link Layer. Data link layer The communication between two machines that can directly communicate with each other. Basic property – If bit A is sent.
CSCI 465 D ata Communications and Networks Lecture 11 Martin van Bommel CSCI 465 Data Communications & Networks 1.
Part III. Data Link Layer Chapter 11. Data Link Control COMP 3270 Computer Networks Computing Science Thompson Rivers University.
CSE331: Introduction to Networks and Security Lecture 4 Fall 2002.
1 The utopia protocol  Unrealistic assumptions: –processing time ignored –infinite buffer space available –simplex: data transmitted in one direction.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
DATA LINK CONTROL. DATA LINK LAYER RESPONSIBILTIES  FRAMING  ERROR CONTROL  FLOW CONTROL.
Computer Networking Lecture 16 – Reliable Transport.
Chapter 9: Data Link Control Business Data Communications, 4e.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 4 : Chapter 7 Data & computer.
Data Link Layer.
PROTOCOL BASICS. 2 Introduction In chapter 3: Circuits and techniques can be employed to transmit a frame of information between 2 DTEs Error detection.
Computer Communication & Networks
2.10 Flow and Error Control Before that ...
Chapter 9: Data Link Control
Data Link Layer Flow Control.
Part III Datalink Layer 10.
CMPT 371 Data Communications and Networking
Instructor Mazhar Hussain
Flow Control.
Data Link Layer: Data Link Control
Chapter 10 Data Link Control
Flow and Error Control.
Overview Jaringan Komputer (2)
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Chapter 11 Data Link Control
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Lecture 4 Peer-to-Peer Protocols and Data Link Layer
Chapter 9: Data Link Control
Error Checking continued
Presentation transcript:

Protocols

Basics

Defining Interactions VERTICAL Application Presentation Session Transport Network Data Link Physical Please do this for me OK It’s Done or Sorry I couldn’t

Horizontal Interactions Application Presentation Session Transport Network Data Link Physical Application Presentation Session Transport Network Data Link Physical http request http response Route to ? Send to

Problems Solved by Link Layer Protocols Error CORRECTION SenderReceiver Flow Control Speed it Up!

Transmitting large files rather than short messages What kinds of problems ensue?

Sending a big file SenderReceiver

Some pieces are lost SenderReceiver

Some pieces are routed differently SenderReceiver

Some pieces are damaged SenderReceiver

Receiver is busy and misses 2 or misses data because arriving too fast SenderReceiver

Basic Interaction Simplest strategy SenderReceiver Message 1 SenderReceiver ACK SenderReceiver Message 2 etc

But things go wrong As we mentioned previously

SenderReceiver abcdefghijklmnopBill Where is the error? SenderReceiver abcdefghijklmnopBill data corrupted SenderReceiver abcdefghijklmnopBill address corrupted

Whether Lost or Damaged It all looks the same to the sender! Damaged messages are discarded because you can’t be sure the message is even intended for the receiver

General Problems Message is lost Acknowledgement is lost

Message is lost SenderReceiver

Using timers for the messages SenderReceiver time Sender

Problems now created Multiple copies of the message exist How do I set the timers?

Application Presentation Session Transport Network Data Link Physical Application Presentation Session Transport Network Data Link Physical Network layer passes message To Data Link for transmission

Application Presentation Session Transport Network Data Link Physical 21 Application Presentation Session Transport Network Data Link Physical 1 Data Link layer passes First part of message To Physical layer for transmission

Application Presentation Session Transport Network Data Link Physical 21 Application Presentation Session Transport Network Data Link Physical 1 1 Physical Layer sends across the network

Application Presentation Session Transport Network Data Link Physical 21 Application Presentation Session Transport Network Data Link Physical Ack Receiver accepts, passes up to data link, data link sends ACK ACK is lost

Application Presentation Session Transport Network Data Link Physical 21 Application Presentation Session Transport Network Data Link Physical Ack Sender resends message 1

Application Presentation Session Transport Network Data Link Physical 21 Application Presentation Session Transport Network Data Link Physical Ack Receiver gets message 1 Recognizes it already has 1 Re ACKS Ack

If ACK lost Message only delivered once ACK was retransmitted and eventually sender get ACK Sender moves on to part 2 of the message

Review Message Lost Sender Receiver 1 1 Ack ACK Lost Sender Receiver

Application Presentation Session Transport Network Data Link Physical 2 Application Presentation Session Transport Network Data Link Physical 2 Sender passes Message 2 to Physical Layer to xmit 1

Application Presentation Session Transport Network Data Link Physical 2 Application Presentation Session Transport Network Data Link Physical Receiver gets message 2 ACKS and passes message 2 Up to data link at receiver Ack 1

Application Presentation Session Transport Network Data Link Physical Application Presentation Session Transport Network Data Link Physical 2 Upon receiving ACK Sender discard at link layer Assuming xmit complete 1

Application Presentation Session Transport Network Data Link Physical Application Presentation Session Transport Network Data Link Physical 2 Receiver passes message 2 up to network layer 1 XMIT of network PDU complete!

Please do this for me Sorry I couldn’t Sends message “n” times but always fails. How many times is it repeated? Horizontal and Vertical Interaction Network Data Link SenderReceiver

Timers How are they set?

Timer Tradeoff Set the alarm time too large –Sender sits around waiting needlessly –Increased delay Set the alarm time too small –Sender repeats transmission unnecessarily –Additional unnecessary network traffic is generated –Unnecessary traffic -> Increased delay

Timer will never be perfect This is a queueing system The time it should take for the receiver to respond is defined by a probability distribution Unpredictable loads –Network traffic –Other receiver cpu loads –Local NIC card

Are there other approaches to retransmission/error correction? Yes!

Correction 3 basic ARQ (Automatic Repeat Request) approaches Idle RQ Go-back-N Selective Repeat