Different Layers Lecture 20

Similar documents
Different Layers Lecture 21

Network Layer: Internet Protocol

Transport layer. UDP: User Datagram Protocol [RFC 768] Review principles: Instantiation in the Internet UDP TCP

Transport layer. Review principles: Instantiation in the Internet UDP TCP. Reliable data transfer Flow control Congestion control

Router Architecture Overview

Computer Networking Introduction

Subnets. IP datagram format. The Internet Network layer. IP Fragmentation and Reassembly. IP Fragmentation & Reassembly. IP Addressing: introduction

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

Internet and Intranet Protocols and Applications

Network layer: Overview. Network Layer Functions

Suprakash Datta. Office: CSEB 3043 Phone: ext Course page:

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing

CSCD58 WINTER 2018 WEEK 6 - NETWORK LAYER PART 1. Brian Harrington. February 13, University of Toronto Scarborough

Chapter 4: Network Layer

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP

CNT 6885 Network Review on Transport Layer

Master Course Computer Networks IN2097

internet technologies and standards

CS 4390 Computer Networks. Transport Services and Protocols

CSE 4213: Computer Networks II

CSEN 503 Introduction to Communication Networks. Mervat AbuElkheir Hana Medhat Ayman Dayf. ** Slides are attributed to J. F.

Application. Transport. Network. Link. Physical

Lecture 5. Transport Layer. Transport Layer 1-1

NWEN 243. Networked Applications. Layer 4 TCP and UDP

NT1210 Introduction to Networking. Unit 10

Network Layer: DHCP, ICMP, NAT, IPv6

Chapter 3: Transport Layer. Chapter 3 Transport Layer. Chapter 3 outline. Transport services and protocols

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

Correcting mistakes. TCP: Overview RFCs: 793, 1122, 1323, 2018, TCP seq. # s and ACKs. GBN in action. TCP segment structure

32 bits. source port # dest port # sequence number acknowledgement number not used. checksum. Options (variable length)

Lecture 8. TCP/IP Transport Layer (2)

UNIT IV -- TRANSPORT LAYER

CSC 4900 Computer Networks: TCP

Transport Layer: outline

Lecture 3: The Transport Layer: UDP and TCP

Outline. TCP: Overview RFCs: 793, 1122, 1323, 2018, steam: r Development of reliable protocol r Sliding window protocols

Transport Layer. Chapter 3: Transport Layer

Chapter 6 Transport Layer

Lecture 4 The Network Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

TDTS06: computer Networks

Page 1. Review: Internet Protocol Stack. Transport Layer Services EEC173B/ECS152C. Review: TCP. Transport Layer: Connectionless Service

Outline. TCP: Overview RFCs: 793, 1122, 1323, 2018, Development of reliable protocol Sliding window protocols

Chapter 3: Transport Layer

Fall 2012: FCM 708 Bridge Foundation I

internet technologies and standards

TSIN02 - Internetworking

Lecture 08: The Transport Layer (Part 2) The Transport Layer Protocol (TCP) Dr. Anis Koubaa

CMPE 80N: Introduction to Networking and the Internet

RSC Part III: Transport Layer 3. TCP

TSIN02 - Internetworking

Networking Technologies and Applications

Interconnecting Networks with TCP/IP. 2000, Cisco Systems, Inc. 8-1

OSI Transport Layer. objectives

Lecture 3. The Network Layer (cont d) Network Layer 1-1

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

CS Lecture 1 Review of Basic Protocols

Internet transport-layer protocols. Transport services and protocols. Sending and receiving. Connection-oriented (TCP) Connection-oriented

Page 1. Review: Internet Protocol Stack. Transport Layer Services. Design Issue EEC173B/ECS152C. Review: TCP

Chapter 3 outline. 3.5 Connection-oriented transport: TCP. 3.6 Principles of congestion control 3.7 TCP congestion control

Guide To TCP/IP, Second Edition UDP Header Source Port Number (16 bits) IP HEADER Protocol Field = 17 Destination Port Number (16 bit) 15 16

Chapter 3 Transport Layer

Chapter 23 Process-to-Process Delivery: UDP, TCP, and SCTP 23.1

OSI Transport Layer. Network Fundamentals Chapter 4. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

CC451 Computer Networks

HY 335 Φροντιστήριο 8 ο

Network Layer (4): ICMP

TCP/IP Networking. Part 4: Network and Transport Layer Protocols

Chapter 3: Transport Layer Part A

CSEP 561 Internetworking. David Wetherall

CSC 4900 Computer Networks: Network Layer

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

Internet Layers. Physical Layer. Application. Application. Transport. Transport. Network. Network. Network. Network. Link. Link. Link.

Chapter 4: network layer. Network service model. Two key network-layer functions. Network layer. Input port functions. Router architecture overview

The Transport Layer Multiplexing, Error Detection, & UDP

Chapter 3- parte B outline

Transport Layer Overview

Lecture 9: Transpor Layer Overview and UDP

UDP, TCP, IP multicast

Transport Layer: Outline

Chapter 3 Transport Layer

(ICMP), RFC

Transport protocols. Transport Layer 3-1

xkcd.com End To End Protocols End to End Protocols This section is about Process to Process communications.

TCP/IP Protocol Suite 1

The Network Layer Forwarding Tables and Switching Fabric

CS4700/CS5700 Fundamentals of Computer Networks

Vorlesung Kommunikationsnetze

Mobile IP and Mobile Transport Protocols

TCP /IP Fundamentals Mr. Cantu

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 9

Problems of IP. Unreliable connectionless service. Cannot acquire status information from routers and other hosts

TCP : Fundamentals of Computer Networks Bill Nace

ICS 351: Networking Protocols

CSCI Topics: Internet Programming Fall 2008

Input ports, switching fabric, output ports Switching via memory, bus, crossbar Queueing, head-of-line blocking

CSCE 463/612 Networks and Distributed Processing Spring 2017

Outline. Connecting to the access network: DHCP and mobile IP, LTE. Transport layer: UDP and TCP

Transcription:

Different Layers Lecture 20 10/15/2003 Jian Ren 1

The Network Layer 10/15/2003 Jian Ren 2

Network Layer Functions Transport packet from sending to receiving hosts Network layer protocols in every host, router Three important functions: Path determination: route taken by packets from source to dest. Forwarding: move packets from router s input to appropriate router output Call setup: some network architectures require router call setup along path before data flows 10/15/2003 Jian Ren 3

IP Addressing IP address: 32-bit identifier for host, router interface Interface: connection between host/router and physical link Router s typically have multiple interfaces Host may have multiple interfaces IP addresses associated with each interface 223.1.1.1 223.1.1.2 223.1.1.3 223.1.3.1 223.1.1.4 223.1.2.9 223.1.3.27 223.1.2.1 223.1.2.2 223.1.3.2 223.1.1.1 = 11011111 00000001 00000001 00000001 223 1 1 1 10/15/2003 Jian Ren 4

IP Addressing IP address: Network part (high order bits) Host part (low order bits) What s a network? (from IP address perspective) Device interfaces with same network part of IP address Can physically reach each other without intervening router 223.1.1.1 223.1.1.2 223.1.2.1 223.1.1.4 223.1.2.9 223.1.1.3 223.1.3.1 223.1.3.27 LAN 223.1.2.2 223.1.3.2 network consisting of 3 IP networks (for IP addresses starting with 223, first 24 bits are network address) 10/15/2003 Jian Ren 5

IP Addresses class-full addressing: class A 0network host B 10 network host C 110 network host 1.0.0.0 to 127.255.255.255 128.0.0.0 to 191.255.255.255 192.0.0.0 to 223.255.255.255 D 1110 multicast address 32 bits 224.0.0.0 to 239.255.255.255 10/15/2003 Jian Ren 6

ICMP: Internet Control Message Protocol Used by hosts, routers, gateways to communication network-level information Error reporting: unreachable host, network, port, protocol Echo request/reply (used by ping) Type Code description 0 0 echo reply (ping) 3 0 dest. network unreachable 3 1 dest host unreachable 3 2 dest protocol unreachable 3 3 dest port unreachable 3 6 dest network unknown 3 7 dest host unknown 4 0 source quench (congestion control - not used) 8 0 echo request (ping) 9 0 route advertisement 10 0 router discovery 11 0 TTL expired 12 0 bad IP header 10/15/2003 Jian Ren 7

DHCP: Dynamic Host Configuration Protocol Allows host to dynamically obtain its IP address from network server when it joins network Can renew its lease on address in use Allows reuse of addresses Support for mobile users who want to join network 10/15/2003 Jian Ren 8

DHCP Overview Host broadcasts DHCP discover msg DHCP server responds with DHCP offer msg Host requests IP address: DHCP request msg DHCP server sends address: DHCP ack msg 10/15/2003 Jian Ren 9

NAT: Network Address Translation Motivation: local network uses just one IP address as far as outside word is concerned One IP address is used for all devices Can change addresses of devices in local network without notifying outside world Can change ISP without changing addresses of devices in local network Devices inside local net not explicitly addressable, visible by outside world (a security plus). 10/15/2003 Jian Ren 10

NAT rest of Internet 138.76.29.7 10.0.0.4 local network (e.g., home network) 10.0.0/24 10.0.0.1 10.0.0.2 10.0.0.3 All datagrams leaving local network have same single source NAT IP address: 138.76.29.7, different source port numbers Datagrams with source or destination in this network have 10.0.0/24 address for source, destination (as usual) 10/15/2003 Jian Ren 11

The Transport Layer 10/15/2003 Jian Ren 12

Transport Services and Protocols Provide logical communication between app processes running on different hosts Transport protocols run in end systems Example protocols TCP UDP 10/15/2003 Jian Ren 13

Transport vs. network layer Network layer Logical communication between hosts Transport layer Logical communication between processes Relies on, and enhances network layer services 10/15/2003 Jian Ren 14

Transport Layer Protocols Reliable, in-order delivery: TCP Flow control Congestion control Connection setup Unreliable, unordered delivery: UDP Services not available: Delay guarantees Bandwidth guarantees 10/15/2003 Jian Ren 15

UDP: User Datagram Protocol UDP segments may be: Lost Delivered out of order to app Connectionless: No handshaking between UDP sender, receiver Each UDP segment handled independently of others Why is there a UDP? No connection establishment (which can add delay) Simple: no connection state at sender, receiver Small segment header No congestion control: UDP can blast away as fast as desired 10/15/2003 Jian Ren 16

UDP Often used for streaming multimedia apps Loss tolerant Rate sensitive Other UDP uses DNS SNMP Reliable transfer over UDP: add reliability at application layer Application-specific error recovery! 10/15/2003 Jian Ren 17

TCP: Overview Point-to-point: One sender, one receiver Reliable, in-order byte steam Full duplex data: Bi-directional data flow in same connection Connection-oriented: Handshaking (exchange of control msgs) init s sender, receiver state before data exchange Flow controlled: Sender will not overwhelm receiver socket door application writes data TCP send buffer application reads data TCP receive buffer socket door segment 10/15/2003 Jian Ren 18

TCP seq. # s and ACKs Seq. # s: Byte stream number of first byte in segment s data ACKs: Seq # of next byte expected from other side Cumulative ACK User types C host ACKs receipt of echoed C Host A Host B Seq=42, ACK=79, data = C Seq=79, ACK=43, data = C Seq=43, ACK=80 host ACKs receipt of C, echoes back C simple telnet scenario time 10/15/2003 Jian Ren 19

TCP Reliable Data Transfer TCP creates reliable data transfer service on top of IP s unreliable service TCP uses single retransmission timer Retransmissions are triggered by: Timeout events Duplicate acks 10/15/2003 Jian Ren 20

TCP Flow Control Receiver side of TCP connection has a receive buffer Flow control Sender won t overflow receiver s buffer by transmitting too much, too fast Speed-matching service Matching the send rate to the receiving app s drain rate 10/15/2003 Jian Ren 21

TCP Fairness Goal: if K TCP sessions share same bottleneck link of bandwidth R, each should have average rate of R/K TCP connection 1 TCP connection 2 bottleneck router capacity R 10/15/2003 Jian Ren 22