ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 13.

Slides:



Advertisements
Similar presentations
Chapter 3 The Data Link Layer.
Advertisements

The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 7 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Explain the need for the transport layer.  Identify.
OSI MODEL Maninder Kaur
Transport Layer – TCP (Part1) Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
5/31/05CS118/Spring051 twisted pair hub 10BaseT, 100BaseT, hub r T= Twisted pair (copper wire) r Nodes connected to a hub, 100m max distance r Hub: physical.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 10 Introduction to Computer Networks.
EEC-484/584 Computer Networks Lecture 12 Wenbing Zhao Cleveland State University
Networking Theory (Part 1). Introduction Overview of the basic concepts of networking Also discusses essential topics of networking theory.
The Data Link Layer Chapter 3. Position of the data-link layer.
Circuit Switching (a) Circuit switching. (b) Packet switching.
1 Link Layer & Network Layer Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek, Hari Balakrishnan, and Sam Madden Prof. Dina Katabi.
The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
20101 The Data Link Layer Chapter Design Issues Controls communication between 2 machines directly connected by “wire”-like link Services Provided.
Internetworking Fundamentals (Lecture #2) Andres Rengifo Copyright 2008.
Chapter 2 Network Models.
Gursharan Singh Tatla Transport Layer 16-May
NETWORKING CONCEPTS. DATA LINK LAYER Data Link Control main functions of the data link layer are Data link control media access control. Data link control.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 17.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 5 - Encoding and Data Link Basics.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 16.
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 3.
The OSI Model.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 2.
TCP : Transmission Control Protocol Computer Network System Sirak Kaewjamnong.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 26.
TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Data Link Layer Part I – Designing Issues and Elementary.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 19.
COP 4930 Computer Network Projects Summer C 2004 Prof. Roy B. Levow Lecture 3.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 14.
جلسه هشتم شبکه های کامپیوتری به نــــــــــــام خدا.
25-Oct-15Network Layer Connecting Devices Networks do not normally operate in isolation.They are connected to one another using connecting devices. The.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 15.
Review:. Chapter 3: The Data Link Layer –achieve reliable, efficient communication between two physically connected machines. –Example problems to be.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Data Link Layer : Services, Framing, Error Detection and Correction2.
CS 453 Computer Networks Lecture 9 Layer 2 – Data Link Layer.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 21.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 1.
Networking Basics CCNA 1 Chapter 11.
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
Prepared by Engr.Jawad Ali BSc(Hons)Computer Systems Engineering University of Engineering and Technology Peshawar.
Individual Project 1 Sarah Pritchard. Fran, a customer of your company, would like to visit your company’s website from her home computer… How does your.
Slide #1 CIT 380: Securing Computer Systems TCP/IP.
8/28/ Network Models - Lin 1 CPET/ECET Network Models Data Communications and Networking Fall 2004 Professor Paul I-Hai Lin Electrical and.
Protocol Layering Chapter 11.
Lecture Focus: Data Communications and Networking  Data Link Layer  MAC Frame Format Lecture 25 CSCS 311.
4343 X2 – The Transport Layer Tanenbaum Ch.6.
COMPUTER NETWORKS. Unit -2 Continue... Physical Layer Connection –Oriented Networks : X.25 Relay Frames Types of cables Co-axial Fiber optics Twisted.
Data Communication Network Models
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Data Link Layer Chapter 3.
Network Models. 2.1 what is the Protocol? A protocol defines the rules that both the sender and receiver and all intermediate devices need to follow,
The Data Link Layer RIS 251 Dr. ir. S.S. Msanjila.
Data Link Layer.
Data link layer (LLC).
OSI Protocol Stack Given the post man exemple.
Chapter 3 The Data Link Layer
Data Link Layer What does it do?
Transport Layer Unit 5.
Data Link Issues Relates to Lab 2.
Overview Jaringan Komputer (2)
Chapter 3 The Data Link Layer.
CS412 Introduction to Computer Networking & Telecommunication
Data Link Control (DLC) Services
Transport Layer 9/22/2019.
Data Link Layer. Position of the data-link layer.
Presentation transcript:

ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 13

ICOM 6115©Manuel Rodriguez-Martinez Lecture Objectives Understand the services provided by the Data Link Layer (Layer 2) –Framing –Error Detection and Correction –Flow of Control

ICOM 6115©Manuel Rodriguez-Martinez Internet Protocol Stack Application Layer Transport Layer Internet Layer Data Link Layer Physical Layer

ICOM 6115©Manuel Rodriguez-Martinez Data Link Layer (Layer 2) Provides the mechanism for –reliable communication between machines in the same link Wire, fiber, phone line or radio frequency Guarantees that bits are delivered in the order they were sent –Detection and recover from data errors Bits that corrupted because of signal errors –Controlling the rate at which bits are sent Prevent the sender from overrunning the receiver

ICOM 6115©Manuel Rodriguez-Martinez Fundamental Abstraction: Frames Data link layer takes network layer packets and encapsulates them into frames

ICOM 6115©Manuel Rodriguez-Martinez Frame Exchange between Hosts Routers, switches and regular hosts exchange frames via their Network Interface Card (NIC)

ICOM 6115©Manuel Rodriguez-Martinez Frame Organization Header –Addressing Information Ethernet Address of Source and Destination –Control Flags Payload –Data part to store the packets from network layer Trailer –Typically hold error detection information Layer 2 is all about frame management

ICOM 6115©Manuel Rodriguez-Martinez Framing Services Data link will use Physical Layer to move bits from sender to receiver Frame is a well-identified group of bits threaded as an atomic unit Three basic types of services to deliver frames –Unacknowledged connectionless –Acknowledged connectionless –Acknowledged connection-oriented

ICOM 6115©Manuel Rodriguez-Martinez Unacknowledged connectionless Each framed is send and no ACK is received –No state information is kept between sender and receiver Advantages –Fast for reliable networks Fiber-based links –Simple Disadvantages –Need upper layers to make sure frames arrived, and do so in the proper order!

ICOM 6115©Manuel Rodriguez-Martinez Acknowledged connectionless Each frame is ACK as received by receiver –But, no state information is kept between sender and receiver Advantages –Can use less reliable media – Wireless systems! –Routers can work faster packet is correct, only needs forwarding Disadvantages –More overhead Extra frames are used to send ACK

ICOM 6115©Manuel Rodriguez-Martinez Acknowledged Connection-Oriented Source and Destination must establish a connection before data can be exchanged Frames are –Received once –Organized in the right order –Free of errors Source and Destination must close the connection when done –Release memory, variables and other resources

ICOM 6115©Manuel Rodriguez-Martinez Acknowledged Connection-Oriented Advantages –Reliability –QoS Guarantees –Very fast routing software Disadvantages –Overhead Connection setup and release –Complex to implement

ICOM 6115©Manuel Rodriguez-Martinez Framing Schemes Problem –Given a stream of data arriving from the wire, how do we know where a frame starts and end? –We need to know be able to braeak up the bits into bytes that are part of a frame MANUEL-OTC12 890R

ICOM 6115©Manuel Rodriguez-Martinez Byte Counting Algorithm Header of frame indicates number of bytes coming The frames have the data –MANUEL –-OTC –12 7MANUEL5-OTC312

ICOM 6115©Manuel Rodriguez-Martinez Byte Counting: Tradeoffs Advantages –Easy to implement Disadvantages –When error occurs, the receiver might loose the synchronization of where the frame stars

ICOM 6115©Manuel Rodriguez-Martinez Byte Counting Problem

ICOM 6115©Manuel Rodriguez-Martinez Sentinel Algorithm Eeach frame starts with a well know byte and ends with a well known byte –Could be the same –ESC – flag byte (sentinel) –HDR – frame header –Payload – frame portion –TR – frame trailer –ESC – flag byte (sentinel) ESCHDRPAYLOADTRESC

ICOM 6115©Manuel Rodriguez-Martinez Sentinel: Limitations What happens if sentinel appears on the data?

ICOM 6115©Manuel Rodriguez-Martinez Sentinel: Limitations If the sentinel can appear on the data, we must add a sentinel to the sentinel This is called byte stuffing The problem is that the second sentinel might also appear on the data So sentinel will not work unless we can do something clever.

ICOM 6115©Manuel Rodriguez-Martinez Cleverness: Bit stuffing Use a sentinel If the sentinel appears on the data, change the data! The receiver must know this –She must know how to change the data back to the original value

ICOM 6115©Manuel Rodriguez-Martinez Bit Stuffing (HDLC) Sentinel is special pattern Every frame starts and ends with this pattern Normal operation –Sender puts data but if pattern appears on the data, then a 0 is inserted after the fifth consecutive 1 (stuffing) Then the rest of the bits are added –Receiver hunts for First time seen means begin of frame Frame is read (de-stuffing) Second time seen means end of frame

ICOM 6115©Manuel Rodriguez-Martinez Example of Bit Stuffing

ICOM 6115©Manuel Rodriguez-Martinez Recovering from an error Suppose we sent – But a bit error occurs – What do we do now? –Hunt for the pattern

ICOM 6115©Manuel Rodriguez-Martinez Issues with bit stuffing Frame size will be variable –Typically there is a min and max size More data is sent that there actually is Processing overhead incurred in stuffing process