The Internetworking Problem. Internetworking. A Translation-based Solution

Similar documents
IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

Introduction to Internetworking

Introduction to routing in the Internet

CS 356: Computer Network Architectures. Lecture 10: IP Fragmentation, ARP, and ICMP. Xiaowei Yang

Introduction to routing in the Internet

CS519: Computer Networks. Lecture 2: Feb 2, 2004 IP (Internet Protocol)

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

Internet Control Message Protocol (ICMP)

(Chapters 2 3 in Huitema) E7310/Internet basics/comnet 1

ICS 451: Today's plan

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

CS 457 Lecture 11 More IP Networking. Fall 2011

Internetwork Protocols

Internet Protocols (chapter 18)

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

The Internet. 9.1 Introduction. The Internet is a global network that supports a variety of interpersonal and interactive multimedia applications.

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

Network Layer. The Network Layer. Contents Connection-Oriented and Connectionless Service. Recall:

Network Layer. Recall: The network layer is responsible for the routing of packets The network layer is responsible for congestion control

IP Protocols. ALTTC/Oct

TSIN02 - Internetworking

CompSci 356: Computer Network Architectures. Lecture 8: Spanning Tree Algorithm and Basic Internetworking Ch & 3.2. Xiaowei Yang

(ICMP), RFC

Module 7 Internet And Internet Protocol Suite

Internet Protocol. Outline Introduction to Internet Protocol Header and address formats ICMP Tools CS 640 1

Vorlesung Kommunikationsnetze

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

Network Layer (4): ICMP

Lecture 18 Overview. Last Lecture. This Lecture. Next Lecture. Internet Protocol (1) Internet Protocol (2)

SEN366 (SEN374) (Introduction to) Computer Networks

ECE4110 Internetwork Programming. Introduction and Overview

ICMP (Internet Control Message Protocol)

Internet Control Message Protocol (ICMP), RFC 792. Prof. Lin Weiguo Copyleft 2009~2017, School of Computing, CUC

MESSAGES error-reporting messages and query messages. problems processes IP packet specific information

Internet. Organization Addresses TCP/IP Protocol stack Forwarding. 1. Use of a globally unique address space based on Internet Addresses

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

ICMP (Internet Control Message Protocol)

The Internet. The Internet is an interconnected collection of netw orks.

Lecture 9: Internetworking

TCP/IP THE TCP/IP ARCHITECTURE

Prof. Shervin Shirmohammadi SITE, University of Ottawa. Internet Protocol (IP) Lecture 2: Prof. Shervin Shirmohammadi CEG

Network Layer: Internet Protocol

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

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

CC231 Introduction to Networks Dr. Ayman A. Abdel-Hamid. Internet Protocol Suite

CSE/EE 461 The Network Layer. Application Presentation Session Transport Network Data Link Physical

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

Networking: Network layer

Network layer: Overview. Network Layer Functions

ICS 351: Networking Protocols

On Distributed Communications, Rand Report RM-3420-PR, Paul Baran, August 1964

CSEP 561 Internetworking. David Wetherall

EEC-484/584 Computer Networks

Internet Technology 3/23/2016

Data Communication Prof. A. Pal Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture 34 TCP/ IP I

CIS 551 / TCOM 401 Computer and Network Security. Spring 2006 Lecture 16

Department of Computer and IT Engineering University of Kurdistan. Network Layer. By: Dr. Alireza Abdollahpouri

Topics for This Week

Recap. Recap. Internetworking. First mile problem. Internet. End Users. Last mile problem. Direct link networks Packet switching.

To make a difference between logical address (IP address), which is used at the network layer, and physical address (MAC address),which is used at

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

Internet Control Message Protocol

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

Where we are in the Course

Router Architecture Overview

IP - The Internet Protocol

IPv4. Christian Grothoff.

Review of Important Networking Concepts

Department of Computer Science and Engineering. COSC 4213: Computer Networks II (Fall 2005) Instructor: N. Vlajic Date: November 3, 2005

ETSF05/ETSF10 Internet Protocols Network Layer Protocols

TCP/IP Overview. Basic Networking Concepts. 09/14/11 Basic TCP/IP Networking 1

Telecom Systems Chae Y. Lee. Contents. Overview. Issues. Addressing ARP. Adapting Datagram Size Notes

CHAPTER-2 IP CONCEPTS

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

Configuring Routes on the ACE

Configuring IP Services

CCNA Exploration Network Fundamentals. Chapter 06 Addressing the Network IPv4

ET4254 Communications and Networking 1

EEC-684/584 Computer Networks

IPv6 Protocols and Networks Hadassah College Spring 2018 Wireless Dr. Martin Land

Information Network Systems The network layer. Stephan Sigg

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

Chapter 5 OSI Network Layer

Chapter 4: Network Layer

Protocol Layers & Wireshark TDTS11:COMPUTER NETWORKS AND INTERNET PROTOCOLS

Outline. SC/CSE 3213 Winter Sebastian Magierowski York University. ICMP ARP DHCP NAT (not a control protocol) L9: Control Protocols

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

Course Contents. The TCP/IP protocol Stack

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

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

TCP/IP Networking. Training Details. About Training. About Training. What You'll Learn. Training Time : 9 Hours. Capacity : 12

Common Protocols. The grand finale. Telephone network protocols. Traditional digital transmission

Layer 4: UDP, TCP, and others. based on Chapter 9 of CompTIA Network+ Exam Guide, 4th ed., Mike Meyers

Using ICMP to Troubleshoot TCP/IP Networks

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

IPv6. IPv4 & IPv6 Header Comparison. Types of IPv6 Addresses. IPv6 Address Scope. IPv6 Header. IPv4 Header. Link-Local

internet technologies and standards

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


Transcription:

Cloud Cloud Cloud 1 The Internetworking Problem Internetworking Two nodes communicating across a network of networks How to transport packets through this heterogeneous mass? A B The Internetworking Problem Before Internet: different packet-switching networks (e.g., ARPANET, ARPA packet radio) only nodes on the same network could communicate A Translation-based Solution ALG ALG ALG ALG application-layer gateways difficult to deploy new internet-wide applications hard to diagnose and remedy end-to-end problems stateful gateways inhibited dynamic routing around failures no global addressability ad-hoc, application-specific solutions

2 Native Solution: Directly on Network (FTP File Transfer Protocol, NFS Network File Transfer, HTTP World Wide Web protocol) Application Telnet FTP NFS HTTP IP as an Intermediary Key ideas: Overlay: better than any any translation. Fewer, simpler mappings. Network-layer: efficient implementation, global addressing Transmission Media Coaxial cable Fiber optic Packet radio Application Telnet FTP NFS HTTP No network level overlay: each new application has to be re-implemented for every network technology! Intermediate Layer (IP) Transmission Media Coaxial cable Fiber optic Packet radio (IP) Overview IP runs over everything Networks linked together by Internetwork programs -- each host supports them Example Internetwork shown next: Consists of two networks Ethernet and Token ring Host connected to Ethernet can talk to one connected to the Token

IP Overview The two hosts -- are end systems Router -- intermediate system Application layer and transport layer (e.g., TCP, UDP) End-to-end protocols Network layer Hop-by-hop protocols used on the two end systems and every intermediate system IP Host Processing Host processing for TCP transfer is shown next: data is sent down the protocol stack each layer adds information to the data -- prepending headers and trailers IP Host Processing IP Host Processing Nearly identical scheme true for other protocols TCP, UDP, ICMP, and IGMP send data to IP IP adds protocol field in the IP packet to indicate what type of data is in the data segment -- ICMP = 1, IGMP =2, TCP=6, UDP = 17 Similarly, many different applications can be using TCP or UDP at any one time 3

IP Host Processing IP Host Processing Network interface sends/receives frames on behalf of IP, ARP, RARP -- a 16-bit frame type field in the Ethernet header is used to indicate the protocol Headers are removed as packet goes up Each protocol box uses the protocol field to demultiplex the packet among the upper layer receivers IP Host Processing : Details IP header not only carries Internet source and destination addresses -- specify a number of parameters that are essential for routers 4

IP Details Header has fixed fields present in every packets and several options Header fields are aligned at 32-bit boundary Version: 4 = IPv4 IHL: Internet header length -- in 32-bit words -- the length is 5 (when no options) and varies to 15 -- 40 bytes are allowed for IP options Type of service: defines packet s precedence and desired type of routing IP Details Total length: number of bytes contained in the packet -- including the IP header TTL (time-to-live): sets the upper limit on the number of routers through which a datagram can pass each router decrements this by 1 as the packet passes when it reaches 0, the packet is thrown away and an ICMP message is sent to the source Identification, Flags, Fragment offset: used by fragmentation and reassembly Protocol: used at the destination for demultiplexing the packet Routing protocols normally use the best route - - there are several definitions of best -- cheapest, fastest, most reliable Type of service specifies the requirement of the application to the routing protocol 5

Precedence indicator does not affect routing but queuing several packets waiting for transmission on the same channel highest precedence should in theory be transmitted first The differentiated services effort is refining this traditional interpretation of type-of-service Fragmentation and Reassembly: Internetworking programs are expected to relay packets between heterogeneous networks Network technology implies a maximum packet size Incoming packet fragmented: Incoming fragment fragmented: Identification + source address uniquely identifies the packet fragment for the destination Receiver assembles all fragments with same ID according to the offset Host can t reuse an identifier if there is a risk of fragmentation and new fragments mixing with old fragments Wait for the expiration of the fragments -- TTL With a packet size of 4k, this translates to about 17Mbps transfer rate -- clearly not adequate Correct way is to discovery the path MTU and use it as the max packet size -- no fragmentation 6

7 Path MTU discovery: sets the DF (don t fragment bit) in the IP header to discover if any router on the current path needs to fragment ICMP error message is returned by a router asked to forward an IP with DF set when MTU is less than datagram size this error message is used to decrease the datagram size until no error -- TCP path MTU discovery IP Options: IP options field is used to carry specific functions request specific routing for some packets, e.g., loose source routing, strict source routing in source routing, the send specifies the route by specifying intermediate routers options are rarely used now. Why? Options and header processing: IP options are used rarely because of the processing costs naive implementation of IP routing will perform verify version field, checksum, compatibility checks, and parse any IP options look for next hop for destination address considering type of service, interface and so on. takes hundreds of instructions To speed up router processing optimize the most commonly used case without the IP options -- the header has five 32-bit words -- makes verification faster frequently used routes can be cached -- to achieve Gigabit-per-second routing! Packet with options create problems -- they are processed with low priority than normal packets

Because of the performance penalty for options -- alternatives are used for source routing One technique is called encapsulation Instead of specifying a loose source routing from A to B through C -- encapsulate a packet from A to B in another packet from A to C Cost at router C will be comparable, i.e., processing options and unwrapping Cost at intermediate routers A to C, and C to B are less with the encapsulation -- processed using the optimized methods -- no option processing Internet Control Message Protocol IP is straightforward and simple no feedback for diagnosing error conditions Internet Control Message Protocol (ICMP) does this feedback layered on top of IP -- protocol type 1 all routers and hosts are expected to speak this protocol ICMP Details Most ICMP packets are diagnostic info. sent back when a router destroys a packet -- e.g., destination unreachable, TTL expired ICMP also defines a echo function used for testing connectivity ICMP does not make IP datagram service reliable 8

ICMP Details Just provides feedback about network problems ICMP is carried on IP datagrams -- these packets themselves could be victim of errors No ICMP error is triggered by an ICMP message All ICMP messages start with a common 32-bit ICMP header ICMP Details ICMP Details Reporting operational problems such as time exceeded, destination unreachable, source quench is the most common use These packets have the same format -- includes the entire header of and 8 bytes of the triggering packet ICMP Details Destination unreachable messages are sent when a router cannot forward a packet Time exceeded message sent when a packet is destroyed because TTL expired 9

ICMP Details Source quench messages are sent by a router that detects congestion -- source is supposed to reduce sending rate when it receives this message Parameter problem message is sent by a router that find an error in the encoding of the IP header ICMP Ping When a router/host receives an ICMP message of type echo, it responds by an echo reply Reply is derived from request by swapping the IP header s source and destination address -- replacing ECHO by ECHO-REPLY and computing new checksums ICMP Traceroute Traceroute tries to discover intermediate routers Send packet with TTL = 1; first router decrements TTL to 0, destroy the packet and send back a TTL expired ICMP message Source address of the ICMP identifies the first router Next message is sent with TTL+1 for second router Packet sent for an unused UDP port an ICMP port unreachable -- message is sent back ICMP Router Discovery To send a packet a host needs nexthop Test whether packet destination in current subnet If not, forward packet to a router so that packet can reach the destination With hen there are multiple routers connected to the local network -- host should select the one nearest to the destination 10

ICMP Router Discovery How to discovery local routers? Read from a config file static solution Dynamic solution zero admin overhead discovery procedure Router discovery using special ICMP messages Routers send router advertisements at regular intervals Hosts trigger this by sending router solicitations ICMP Router Discovery Router advertisements contain a list of routers with a preference notation Hosts select router with highest preference ICMP Redirection Default route is a nice way to establish connectivity -- may not be very efficient ICMP Redirection Default gateway X for A: packets go to Internet through X Packets sent by A to B first go to X and then to Y -- packets cross LAN twice Redirection allows routers to inform route updates to hosts to correct this problem The first packet to B will be sent to X -- it triggers a redirect ICMP message from X to A 11