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.

Slides:



Advertisements
Similar presentations
OSI Model OSI MODEL.
Advertisements

Review of Important Networking Concepts
1 ITC242 – Introduction to Data Communications TCP/IP and OSI.
International Standards Organization Open Systems Interconnect (OSI) Reference Model Advanced Computer Networks.
EEC-484/584 Computer Networks Lecture 12 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Lect-2: BasicsComputer Networks : An Introduction to Computer Networks Handout #2: Foundations and Basic Concepts Additional Reading Text book:
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.
Networking Theory (Part 1). Introduction Overview of the basic concepts of networking Also discusses essential topics of networking theory.
CS 268: Lecture 2 (Layering & End-to-End Arguments)
L10: Protocols and Layering Dina Katabi Spring Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek,
EE 122: Layering and the Internet Architecture Kevin Lai September 4, 2002.
OSI Model.
EE 4272Spring, 2003 Protocols & Architecture A Protocol Architecture is the layered structure of hardware & software that supports the exchange of data.
1 An Introduction to Computer Networks Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek, Hari Balakrishnan, and Sam Madden Prof.
1 Review of Important Networking Concepts Introductory material. This module uses the example from the previous module to review important networking concepts:
Data Communications Architecture Models. What is a Protocol? For two entities to communicate successfully, they must “speak the same language”. What is.
1 Reliability & Flow Control Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek, Hari Balakrishnan, and Sam Madden Prof. Dina Katabi.
TCP: Software for Reliable Communication. Spring 2002Computer Networks Applications Internet: a Collection of Disparate Networks Different goals: Speed,
 The Open Systems Interconnection model (OSI model) is a product of the Open Systems Interconnection effort at the International Organization for Standardization.
Gursharan Singh Tatla Transport Layer 16-May
OIS Model TCP/IP Model.
1 Review of Important Networking Concepts Introductory material. This slide uses the example from the previous module to review important networking concepts:
Process-to-Process Delivery:
Network Technologies (TCP/IP)
Midterm Review - Network Layers. Computer 1Computer 2 2.
Chapter 17 Networking Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William Stallings.
CS 268: Lecture 3 (Layering & End-to-End Arguments)
OSI Reference Model & Layered Communication Sritrusta Sukaridhoto.
Presentation on Osi & TCP/IP MODEL
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
SEED Infotech Pvt. Ltd. 1 Networking in Java. SEED Infotech Pvt. Ltd. 2 Objectives of This Session Describe issues related to any type of network using.
Internet Addresses. Universal Identifiers Universal Communication Service - Communication system which allows any host to communicate with any other host.
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
L11: Link and Network layer Dina Katabi Spring Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek,
TCOM 509 – Internet Protocols (TCP/IP) Lecture 03_b Protocol Layering Instructor: Dr. Li-Chuan Chen Date: 09/15/2003 Based in part upon slides of Prof.
Introduction1-1 Chapter 1 Computer Networks and the Internet Computer Networking: A Top Down Approach Featuring the Internet, 2 nd edition. Jim Kurose,
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 13.
Winter 2008CS244a Handout 31 CS244a: An Introduction to Computer Networks Handout 3: Foundations and Basic Concepts Nick McKeown Professor of Electrical.
William Stallings Data and Computer Communications
TCP/IP Protocol Architecture CSE 3213 – Fall
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
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.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Protocols and Architecture Slide 1 Use of Standard Protocols.
1 Chapter 4. Protocols and the TCP/IP Suite Wen-Shyang Hwang KUAS EE.
Protocol Suits and Layering Models OSI Model Dr. Abraham UTPA.
Protocol Layering Chapter 11.
J. Liebeher (modified by M. Veeraraghavan) 1 Introduction Complexity of networking: An example Layered communications The TCP/IP protocol suite.
COMPUTER NETWORK AND DESIGN CSCI 3385K. Host-to-Host Communications Model Older model Proprietary Application and combinations software controlled by.
Building A Network: Cost Effective Resource Sharing
2003 컴퓨터 통신 1 Foundation # 컴퓨터 통신 2 Outline A Detailed FTP Example Layering Packet Switching and Circuit Switching Some terms –Data rate, “Bandwidth”
Computer Engineering and Networks, College of Engineering, Majmaah University Protocols OSI reference MODEL TCp /ip model Mohammed Saleem Bhat
: An Introduction to Computer Networks Handout #2: Foundations and Basic Concepts Additional Reading Text book: Chap. 3.1 Homepage
OSI Model OSI MODEL. Communication Architecture Strategy for connecting host computers and other communicating equipment. Defines necessary elements for.
OSI Model OSI MODEL.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
Networking Using the OSI Model.
Lecture (2).
A quick intro to networking
Distributed Systems.
Layered Architectures
Lecturer, Department of Computer Application
Network Architecture Introductory material
Review of Important Networking Concepts
Review of Important Networking Concepts
1 TRANSMISSION CONTROL PROTOCOL / INTERNET PROTOCOL (TCP/IP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University, Puducherry –
OSI Model OSI MODEL.
Building A Network: Cost Effective Resource Sharing
Process-to-Process Delivery: UDP, TCP
Presentation transcript:

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 Chapter 7.B and 7.C

2 Previous Lecture  We learned how to share the network infrastructure between many connections/flows  We also learned about the implications of the sharing scheme (circuit or packet switching) on the service that the traffic receives

3 This Lecture  An Example: HTTP  Layering  Link Layer

4 Example: HTTP over the Internet Using TCP/IP and Ethernet App OS R2 R3 R4 R1 R5 Ethernet “A” MIT “B”(CNN.Com) Ethernet App OS

5 In the sending host 1. Application-Programming Interface (API)  Application requests TCP connection with “B” 2. Transmission Control Protocol (TCP)  Creates TCP “Connection setup” packet  TCP requests IP packet to be sent to “B” TCP Data TCP Header TCP Packet Type = Connection Setup Empty in Connection Setup Packet

6 In the sending host (2) 3. Internet Protocol (IP)  Creates IP packet with correct addresses.  IP requests packet to be sent to router. IP Data TCP Packet Encapsulation IP Header IP Packet Destination Address: IP “B” Source Address: IP “A” Protocol = TCP TCP Data TCP Header

7 In the sending host (3) 4. Link (“MAC” or Ethernet) Protocol  Creates MAC frame.  Wait for access to the line.  Send each bit of the frame. Ethernet Data IP Packet Ethernet FCS Ethernet Header Ethernet Packet Destination Address: MAC “R1” Source Address: MAC “A” Protocol = IP IP Data IP Header Encapsulation

8 In Router R1 5. Link (“MAC” or Ethernet) Protocol  Accept MAC frame, check address and Frame Check Sequence (FCS) to ensure no bit errors.  Pass data to IP Protocol. Ethernet Data IP Packet Ethernet FCS Ethernet Header Ethernet Packet Destination Address: MAC “R1” Source Address: MAC “A” Protocol = IP IP Data IP Header Decapsulation

9 In Router R1 6. Internet Protocol (IP)  Use IP destination address to decide where to send packet next (“next-hop routing”).  Request Link Protocol to transmit packet. IP Data IP Header IP Packet Destination Address: IP “B” Source Address: IP “A” Protocol = TCP

10 In Router R1 7. Link (“MAC” or Ethernet) Protocol  Creates MAC frame.  Wait for access to the line.  Send each bit of the frame. Ethernet Data IP Packet Ethernet FCS Ethernet Header Ethernet Packet Destination Address: MAC “R2” Source Address: MAC “R1” Protocol = IP IP Data IP Header Encapsulation

11 In Router R5 16. Link (“MAC” or Ethernet) Protocol  Creates MAC frame.  Wait for access to the line.  Send each bit of the frame. Ethernet Data IP Packet Ethernet FCS Ethernet Header Ethernet Packet Destination Address: MAC “B” Source Address: MAC “R5” Protocol = IP IP Data IP Header Encapsulation Steps 8-15 are the same as before …

12 In the receiving host 17. Link (“MAC” or Ethernet) Protocol  Accept MAC frame, check address and Frame Check Sequence (FCS) for bit errors.  Pass data to IP Protocol. Ethernet Data IP Packet Ethernet FCS Ethernet Header Ethernet Packet Destination Address: MAC “B” Source Address: MAC “R5” Protocol = IP IP Data IP Header Decapsulation

13 In the receiving host (2) 18. Internet Protocol (IP)  Verify IP address.  Extract/decapsulate TCP packet from IP packet.  Pass TCP packet to TCP Protocol. IP Data TCP Packet Decapsulation IP Header IP Packet Destination Address: IP “B” Source Address: IP “A” Protocol = TCP TCP Data TCP Header

14 In the receiving host (3) 19. Transmission Control Protocol (TCP)  Accepts TCP “Connection setup” packet  Establishes connection by sending “Ack”. 20. Application-Programming Interface (API)  Application receives request for TCP connection with “A”. TCP Data TCP Header TCP Packet Type = Connection Setup Empty

15 This Lecture  An Example: HTTP  Layering  Link Layer

16 Network Architecture Problem  Networks are complex (heterogeneity, distributed, delay, losses, reordering, …)  How do we organize a network implementation? Solution  To deal with complexity  use layering

17 Layering  Layering is a particular form of abstraction  The system is broken into a vertical hierarchy of logically distinct entities (layers)  The service provided by one layer is based solely on the service provided by layer below

18 Layering: Our HTTP Example Network Link Transport The 4-layer Internet model Application HTTP IP TCP Ethernet End-to-End Layer

19 Who Does What?  Link Layer:  Delivers data from one end of a link to the other  Network Layer  Routes packets and delivers them to their destination  Transport Layer  Provides useful abstractions: stream, message  Can provide reliability  Can provide congestion control  Application Layer  Your application: HTTP, FTP, etc.

20 Where are these layers?  Link and network layers are implemented everywhere  The end-to-end layer (i.e., transport and application) is implemented only at hosts Application Transport Network Datalink Application Transport Network Datalink Network Datalink Physical medium Peer-layer communication Router Host

21 Encapsulation  A layer can use only the service provided by the layer immediate below it  Each layer may change and add a header to data packet data

22 Interface  Higher layer calls lower layer  e.g., Link_Send(this_data, this_link)  Lower layer uses an up-call function to inform the higher layer of data arrival  e.g., Network_Handle()

23 Multiplexing in the Internet  Many possible applications, transports, and link layers  But they all use IP at the network layer Internet Link Transport Application IP Ethernet Packet radio TCPUDP TelnetFTPHTTP

24 This Lecture  An Example: HTTP  Layering  Link Layer

25 Link Layer Problem: Deliver data from one end of the link to the other Need to address:  Bits  Analog  Bits  Framing  Errors  Medium Access Control (The Ethernet Paper)

26 Sending bits  Bits  Analog  Bits  Receiver needs to detect the value of the bits  Manchester Encoding: each bit is a transition  Having a transition in each bit allows the receiver to synchronize to the sender’s clock Time 01110

27 Framing  Receiver needs to detect the beginning and the end of a frame  Use special bit-pattern to separate frames  E.g., pattern could be (7 ones)  Bit stuffing is used to ensure that a special pattern does not occur in the data  If pattern is  Whenever the sender sees a sequence of 6 ones in the data, it inserts a zero (reverse this operation at receiver)

28 Error Handling  Detection:  Use error detection codes, which add some redundancy to allow detecting errors  When errors are detected  Correction: Some codes allow for correction  Retransmition: Can have the link layer retransmit the frame (rare)  Discard: Most link layers just discard the frame and rely on higher layers to retransmit

29 This Lecture  To cope with the complexity, the network architecture is organized into layers  The link layer delivers data between two machines that are directly connected using a link