Last Lecture. Network Architecture: Layers. This Lecture. In the sending host (2) In the sending host

Similar documents
Link Layer & Network Layer

6.033 Computer System Engineering

Previous Lecture. Link Layer & Network Layer. Link Layer. This Lecture. Framing. Sending bits. Chapter 7.C and 7.D

L12: end to end layer

L9: Intro Network Systems

6.033 Computer System Engineering

6.033 Computer System Engineering

CS3600 SYSTEMS AND NETWORKS

6.033 Computer System Engineering

Reliability & Flow Control

An Introduction to Com puter Networks

TCP/IP THE TCP/IP ARCHITECTURE

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

The Transmission Control Protocol (TCP)

CS4700/CS5700 Fundaments of Computer Networks

Tutorial 2 : Networking

CCNA 1 Chapter 7 v5.0 Exam Answers 2013

QUIZ: Longest Matching Prefix

ES623 Networked Embedded Systems

Flow & Congestion Control

Internet: Best Effort. L11: Protocols and Network layer. Protocol. End hosts implement everything else

CS 268: Internet Architecture & E2E Arguments. Today s Agenda. Scott Shenker and Ion Stoica (Fall, 2010) Design goals.

Data and Computer Communications. Chapter 2 Protocol Architecture, TCP/IP, and Internet-Based Applications

Operating Systems. 16. Networking. Paul Krzyzanowski. Rutgers University. Spring /6/ Paul Krzyzanowski

Transport Layer (TCP/UDP)

UDP and TCP. Introduction. So far we have studied some data link layer protocols such as PPP which are responsible for getting data

ECE 650 Systems Programming & Engineering. Spring 2018

The OSI Model. Open Systems Interconnection (OSI). Developed by the International Organization for Standardization (ISO).

Network Architecture

Connectionless and Connection-Oriented Protocols OSI Layer 4 Common feature: Multiplexing Using. The Transmission Control Protocol (TCP)

Internet Architecture & Performance. What s the Internet: nuts and bolts view

QUESTION BANK EVEN SEMESTER

Transport Layer TCP & UDP Week 7. Module : Computer Networks Lecturers : Lucy White Office : 324

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

Network Architecture. TOC Architecture

Lecture (11) OSI layer 4 protocols TCP/UDP protocols

Computer Network : Lecture Notes Nepal Engineering College Compiled by: Junior Professor: Daya Ram Budhathoki Nepal Engineering college, Changunarayan

ECE 333: Introduction to Communication Networks Fall 2001

Revision of Previous Lectures

EECS 228a Lecture 1 Overview: Networks. Jean Walrand

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

Internet II. CS10 : Beauty and Joy of Computing. cs10.berkeley.edu. !!Senior Lecturer SOE Dan Garcia!!! Garcia UCB!

Network and Security: Introduction

NT1210 Introduction to Networking. Unit 10

Transport Layer. Gursharan Singh Tatla. Upendra Sharma. 1

UNIT IV -- TRANSPORT LAYER

Announcements. IP Forwarding & Transport Protocols. Goals of Today s Lecture. Are 32-bit Addresses Enough? Summary of IP Addressing.

TRANSMISSION CONTROL PROTOCOL. ETI 2506 TELECOMMUNICATION SYSTEMS Monday, 7 November 2016

Peer entities. Protocol Layering. Protocols. Example

CS 3516: Advanced Computer Networks

Data & Computer Communication

Chapter 2 Network Models 2.1

Transport Layer. <protocol, local-addr,local-port,foreign-addr,foreign-port> ϒ Client uses ephemeral ports /10 Joseph Cordina 2005

Transport Layer. -UDP (User Datagram Protocol) -TCP (Transport Control Protocol)

Reference Models. 7.3 A Comparison of the OSI and TCP/IP Reference Models

Goals and topics. Verkkomedian perusteet Fundamentals of Network Media T Circuit switching networks. Topics. Packet-switching networks

19: Networking. Networking Hardware. Mark Handley

Elements of Networks

Lecture 20 Overview. Last Lecture. This Lecture. Next Lecture. Transport Control Protocol (1) Transport Control Protocol (2) Source: chapters 23, 24

Comparison of ISO-OSI and TCP/IP Suit. Functions of Data Link Layer:

Lecture 2 Communication services The Trasport Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

CS164 Final Exam Winter 2013

Internet Applications and the Application Layer Material from Kurose and Ross, Chapter 2: The Application Layer

Configuring your VLAN. Presented by Gregory Laffoon

CSE 123A Computer Networks

Part 1: Introduction. Goal: Review of how the Internet works Overview

CCNA 1 v3.11 Module 11 TCP/IP Transport and Application Layers

XORs in the Air: Practical Wireless Network Coding

6.033 Computer System Engineering

Network Protocols and Architectures

Chapter 7. Local Area Network Communications Protocols

EEC-484/584 Computer Networks. Lecture 16. Wenbing Zhao

EEC-682/782 Computer Networks I

CSCI Computer Networks

TSIN02 - Internetworking

OSI Transport Layer. objectives

Introduction to Networks

416 Distributed Systems. Networks review; Day 1 of 2 Jan 5 + 8, 2018

THE TRANSPORT LAYER UNIT IV

SUBJECT: DATA COMMUNICATION AND NETWORK SEMESTER: V SEMESTER COURSE: BCA SUBJECT TEACHER: Dr.K.Chitra Assistant Professor, Department of Computer

ECE4110 Internetwork Programming. Introduction and Overview

UDP, TCP, IP multicast

APPENDIX F THE TCP/IP PROTOCOL ARCHITECTURE

Data Link Layer Overview

Page 1. Goals for Today" Discussion" Example: Reliable File Transfer" CS162 Operating Systems and Systems Programming Lecture 11

CS1302-COMPUTER NETWORKS UNIT I -DATA COMMUNICATION PART A

1. (10 points): For each of the following, choose exactly one best answer.

CSCI-131 Networking: the End-to-End Layer. Rodrigo Fonseca March 12 th, 2013

Lecture 9: Transpor Layer Overview and UDP

CCNA R&S: Introduction to Networks. Chapter 7: The Transport Layer

Applications/Design. Example. Locating Resource. End-to-end. Connection UCB. Applications EECS 122

CPS221 Lecture: Layered Network Architecture

TSIN02 - Internetworking

Announcements. CS 5565 Network Architecture and Protocols. Outline for today. The Internet: nuts and bolts view. The Internet: nuts and bolts view

Outline: Connecting Many Computers

CS 716: Introduction to communication networks th class; 7 th Oct Instructor: Sridhar Iyer IIT Bombay

Ref: A. Leon Garcia and I. Widjaja, Communication Networks, 2 nd Ed. McGraw Hill, 2006 Latest update of this lecture was on

CMPE 80N: Introduction to Networking and the Internet

Packet Switching, Layer Models and Protocol Suites

Network Models. Behrouz A. Forouzan Data communication and Networking Fourth edition

Transcription:

Chapter 7.B and 7.C Architecture: Layers Prof. Dina Katabi Last 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 Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek, Hari Balakrishnan, and Sam Madden Example: HTTP over the Internet Using / and An Example: HTTP Layering (read 7.B) Link Layer (read 7.C) App OS A MIT B (CNN.Com) 0 9 8 7 App OS R 6 7 8 9 R 0 R R 6 R In the sending host In the sending host (). -Programming Interface (API) requests connection with B. Transmission Control Protocol () Creates Connection setup packet requests packet to be sent to B. Internet Protocol () Creates packet with correct addresses. requests packet to be sent to router. Packet Packet Empty in Connection Setup Packet Type = Connection Setup Packet Destination Address: B Source Address: A Protocol = 6

In the sending host (). Link ( MAC or ) Protocol Creates MAC frame. Wait for access to the line. Send each bit of the frame. Packet. Link ( MAC or ) Protocol Accept MAC frame, check address and Frame Check Sequence () to ensure no bit errors. Pass to Protocol. Packet Destination Address: MAC R Source Address: MAC A Protocol = Destination Address: MAC R Source Address: MAC A Protocol = Packet Packet 7 8 6. Internet Protocol () Use destination address to decide where to send packet next ( next-hop routing ). Request Link Protocol to transmit packet. Packet Destination Address: B Source Address: A Protocol = 7. Link ( MAC or ) Protocol Creates MAC frame. Wait for access to the line. Send each bit of the frame. Packet Packet Destination Address: MAC R Source Address: MAC R Protocol = 9 0 Steps 8- are the same as before In Router R 6. Link ( MAC or ) Protocol Creates MAC frame. Wait for access to the line. Send each bit of the frame. Packet In the receiving host 7. Link ( MAC or ) Protocol Accept MAC frame, check address and Frame Check Sequence () for bit errors. Pass to Protocol. Packet Destination Address: MAC B Source Address: MAC R Protocol = Destination Address: MAC B Source Address: MAC R Protocol = Packet Packet

In the receiving host () 8. Internet Protocol () Verify address. Extract/decapsulate packet from packet. Pass packet to Protocol. Packet Packet Destination Address: B Source Address: A Protocol = In the receiving host () 9. Transmission Control Protocol () Accepts Connection setup packet Establishes connection by sending Ack. 0. -Programming Interface (API) receives request for connection with A. Packet Empty Type = Connection Setup An Example: HTTP Layering Link Layer Architecture Problem s are complex (heterogeneity, distributed, delay, losses, reordering, ) How do we organize a network implementation? Solution To deal with complexity use layering 6 Layering Layering: Our HTTP Example Layering is a particular form of abstraction The system is broken into a vertical hierarchy of logically distinct entities (layers) HTTP End-to-End Layer The service provided by one layer is based solely on the service provided by layer below Link The -layer Internet model 7 8

Link Layer: Who Does What? Delivers from one end of a link to the other Layer Routes packets and delivers them to their destination Layer Provides useful abstractions: stream, message Can provide reliability Can provide congestion control Layer Your application: HTTP, FTP, etc. 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 Host link Peer-layer communication Router link Physical medium Host link 9 0 A layer can use only the service provided by the layer immediate below it Each layer may change and add a header to packet Interface Higher layer calls lower layer e.g., Link_Send(this_, this_link) Lower layer uses an up-call function to inform the higher layer of arrival e.g., _Handle() Multiplexing in the Internet Many possible applications, transports, and link layers But they all use at the network layer Internet Link Telnet FTP HTTP UDP Packet radio An Example: HTTP Layering Link Layer

Link Layer Problem: Deliver from one end of the link to the other Bits Analog Bits Sending 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 Need to address: Bits Analog Bits Framing Errors Medium Access Control (The Paper) 0 0 Time 6 Framing Receiver needs to detect the beginning and the end of a frame Use special bit-patterns at the beginning and the end of the frame Bit stuffing is used to ensure that a special pattern does not occur in the E.g., pattern is (7 ones) Bit stuffing: whenever the sender sees a sequence of 6 ones in the, it inserts a zero (reverse this operation at receiver) 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 7 8 To cope with the complexity, the network architecture is organized into layers The link layer delivers between two machines that are directly connected using a link 9