Lecture 14 ICMP: Internet Control Message Protocol r used by hosts, routers, gateways to communication network-level information m error reporting: unreachable.

Slides:



Advertisements
Similar presentations
Network Layer4-1 Hierarchical Routing scale: with 200 million destinations: r can’t store all dest’s in routing tables! r routing table exchange would.
Advertisements

Lecture 9 Overview. Hierarchical Routing scale – with 200 million destinations – can’t store all dests in routing tables! – routing table exchange would.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 22 Omar Meqdadi Department of Computer Science and Software Engineering University.
Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What’s inside a router 4.4 IP: Internet Protocol –Datagram format.
Week 5: Internet Protocol Continue to discuss Ethernet and ARP –MTU –Ethernet and ARP packet format IP: Internet Protocol –Datagram format –IPv4 addressing.
4a-1 CSE401: Computer Networks Hierarchical Routing & Routing in Internet S. M. Hasibul Haque Lecturer Dept. of CSE, BUET.
4: Network Layer4b-1 IP datagram format ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier Internet checksum time.
Network Layer4-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross Addison-Wesley,
4: Network Layer4b-1 Network Layer Protocols CSIT435 Spring 2002.
1 Routing Protocols and Forwarding  The IP protocol  Routing Protocols o Intra-domain (inside an AS) o Inter-domain (between ASes)  Forwarding: inside.
Network Layer4-1 Chapter 4 roadmap 4.1 Introduction and Network Service Models 4.2 Routing Principles 4.3 Hierarchical Routing 4.4 The Internet (IP) Protocol.
RD-CSY3021 Comparing Routing Protocols. RD-CSY3021 Criteria used to compare routing protocols includes  Time to convergence  Proprietary/open standards.
Announcement r Project 3 out, due 3/10 r Homework 3 out last week m Due next Mon. 3/1.
Routing - II Important concepts: Hierarchical Routing, Intra-domain routing, inter- domain routing, RIP, OSPF, BGP, Router Architecture.
4: Network Layer4a : Inter and intra AS, RIP, OSPF, BGP, Router Architecture Last Modified: 6/23/2015 8:46:00 PM.
1 Announcement r Project #2 due midnight r Homework #3 due Friday midnight r Project #3 is out.
Spring Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 04/05/2007.
14 – Inter/Intra-AS Routing
Routing in Wired Nets CS 215 W 01 - Mario Gerla. Routing Principles Routing: delivering a packet to its destination on the best possible path Routing.
Routing Algorithms & Routing Protocols  Shortest Path Routing  Flooding  Distance Vector Routing  Link State Routing  Hierarchical Routing  Broadcast.
Routing Protocols Chapter 25. Static Routing Typically used in hosts –Enter subnet mask, router (gateway), IP address –Perfect for cases with few connections,
Computer Networking Intra-Domain Routing, Part I RIP (Routing Information Protocol)
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
Network Layer Moving datagrams. How do it know? Tom-Tom.
The Network Layer: IP, subnets, NAT and Routing Based on slides from the Computer Networking: A Top Down Approach Featuring the Internet by Kurose and.
Network Layer4-1 NAT: Network Address Translation local network (e.g., home network) /24 rest of.
Network Layer – part 31 Customer-Provider Routing Relationships  The Global Internet consists of Autonomous Systems (AS) interconnected with each other:
Lecture 10 Overview. Border Gateway Protocol(BGP) De facto standard for Internet inter-AS routing allows subnet to advertise its existence to rest of.
Transport Layer 3-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012  CPSC.
14 – Inter/Intra-AS Routing Network Layer Hierarchical Routing scale: with > 200 million destinations: can’t store all dest’s in routing tables!
CSC 450/550 Part 4: Network Layer Part B: The Internet Routing Protocols.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Network Layer 1 Goals:  Understand Internet network layer concepts  Understand Internet routing  Understand Internet network layer protocols Content:
Routing in the Internet The Global Internet consists of Autonomous Systems (AS) interconnected with eachother: Stub AS: small corporation Multihomed AS:
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
RSC Part II: Network Layer 6. Routing in the Internet (2 nd Part) Redes y Servicios de Comunicaciones Universidad Carlos III de Madrid These slides are,
Introduction 1 Lecture 19 Network Layer (Routing Protocols) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &
10-1 Last time □ Transitioning to IPv6 ♦ Tunneling ♦ Gateways □ Routing ♦ Graph abstraction ♦ Link-state routing Dijkstra's Algorithm ♦ Distance-vector.
Homework 4 r Out: Fri 2/27/2015 r In: Fri 3/13/2015.
Network Layer4-1 Chapter 4 roadmap 4.1 Introduction and Network Service Models 4.2 Routing Principles 4.3 Hierarchical Routing 4.4 The Internet (IP) Protocol.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Routing in the Internet The Global Internet consists of Autonomous Systems (AS) interconnected with eachother: Stub AS: small corporation Multihomed AS:
Network Layer r Introduction r Datagram networks r IP: Internet Protocol m Datagram format m IPv4 addressing m ICMP r What’s inside a router r Routing.
4: Network Layer4a-1 Routing in the Internet r The Global Internet consists of Autonomous Systems (AS) interconnected with each other: m Stub AS: small.
Network Layer4-1 Intra-AS Routing r Also known as Interior Gateway Protocols (IGP) r Most common Intra-AS routing protocols: m RIP: Routing Information.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
ICT 6621 : Advanced NetworkingKhaled Mahbub, IICT, BUET, 2008 Lecture 5 TCP/IP Network Layer (3)
Internet Protocols. ICMP ICMP – Internet Control Message Protocol Each ICMP message is encapsulated in an IP packet – Treated like any other datagram,
4: Network Layer4b-1 OSPF (Open Shortest Path First) r “open”: publicly available r Uses Link State algorithm m LS packet dissemination m Topology map.
Routing in the Inernet Outcomes: –What are routing protocols used for Intra-ASs Routing in the Internet? –The Working Principle of RIP and OSPF –What is.
Transport Layer3-1 Network Layer Every man dies. Not every man really lives.
IP. Classless Inter-Domain Routing Classful addressing scheme wasteful – IP address space exhaustion – A class B net allocated enough for 65K hosts Even.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Routing Protocols 1 ProtocolsLayer name DNSApplication TCP, UDPTransport IPInternet (Network ) WiFi, Ethernet Link (Physical)
Routing in the Internet
14 – Inter/Intra-AS Routing
Homework 4 Out: Fri 2/24/2017 In: Fri 3/10/2017.
Chapter 4: Network Layer
NAT – Network Address Translation
Homework 4 Out: Fri 2/26/2016 In: Fri 3/11/2016.
ICMP ICMP – Internet Control Message Protocol
Chapter 4: Network Layer
Hierarchical Routing Our routing study thus far – an idealization
Part 4: Network Layer Part B: The Internet Routing Protocols
Chapter 4: Network Layer
Overview The Internet (IP) Protocol Datagram format IP fragmentation
Chapter 4: Network Layer
Chapter 4: Network Layer
Chapter 4: Network Layer
Presentation transcript:

Lecture 14 ICMP: Internet Control Message Protocol r used by hosts, routers, gateways to communication network-level information m error reporting: unreachable host, network, port, protocol m echo request/reply (used by ping) r network-layer “above” IP: m ICMP msgs carried in IP datagrams r ICMP message: type, code plus first 8 bytes of IP datagram causing error 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

Lecture 14-2 Routing in the Internet r The Global Internet consists of Autonomous Systems (AS) interconnected with each other: Stub AS: small corporation Multihomed AS: large corporation (no transit) Transit AS: provider r Two level routing: Intra-AS: administrator is responsible for choice RIP: Routing Information Protocol - distance vector OSPF: Open Shortest Path First - link-state EIGRP: Enhanced Internal Gateway Routing Protocol (Cisco proprietary successor for RIP) Inter-AS: unique standard : BGP

Lecture 14-3 Internet AS Hierarchy

Lecture 14-4 RIP ( Routing Info Protocol) r Distance vector type scheme r Included in BSD-UNIX Distribution in 1982 r Distance metric: # of hops (max = 15 hops) r Distance vector: exchanged every 30 sec via a Response Message (also called Advertisement) r Each Advertisement contains up to 25 destination nets

Lecture 14-5 RIP (from perspective of router D) Letters are routers and numbers on links are network addresses r dest net next routernumber of hops to destination r 1A2 r 20B2 r 30B7 r r ….….....

Lecture 14-6 RIP: Link Failure and Recovery r If no advertisement heard after 180 sec, neighbor/link dead r Routes via the neighbor are invalidated; new advertisements sent to neighbors r Neighbors in turn send out new advertisements if their tables changed r Link failure info quickly propagates to entire net r Poison reverse used to prevent ping-pong loops (infinite distance = 16 hops) r Routers can request info about neighbor’s cost r Advertisements are sent via UDP using port #520 as standard IP datagram

Lecture 14-7 rocessing RIP Table processing r RIP routing tables managed by an application process called routed (daemon) r routed is pronounced route-d r The application process is a part of the Unix OS and uses socket programming as we know it r Each routed exchanges information with other routed processes running on other machines r advertisements encapsulated in UDP packets (no reliable delivery required; advertisements are periodically repeated)

Lecture 14-8 RIP Table processing

Lecture 14-9 RIP Table example Destination Gateway Flags Ref Use Interface UH lo U 2 13 fa U le U 2 25 qaa U 3 0 le0 default UG Three attached class C networks (LANs) Router only knows routes to attached LANs Default router used to “go up” Route multicast address: Loopback interface (for debugging)

Lecture OSPF (Open Shortest Path First) r “open”: publicly available r uses the Link State algorithm (ie, LS packet dissemination; topology map at each node; route computation using Dijkstra’s alg) r OSPF advertisement carries one entry per neighbor router r advertisements disseminated to ENTIRE Autonomous System (via flooding)

Lecture Hierarchical OSPF in large domains; thousands of routers OSPF “advanced” features (not in RIP)

Lecture Hierarchical OSPF r Two level hierarchy: local area and backbone r Link state advertisements do not leave respective areas r Nodes in each area have detailed area topology; they only know direction (shortest path) to networks in other areas r Area Border routers “summarize” distances to networks in the area and advertise them to other Area Border routers r Backbone routers run an OSPF routing alg limited to the backbone

Lecture Inter-AS routing

Lecture Why different Intra- and Inter-AS routing ? r Scale: Inter provides an extra level of routing table size and routing update traffic reduction above the Intra layer r Policy: Inter is concerned with policies (which provider we must select/avoid, etc). Intra is contained in a single organization, so, no policy decisions necessary r Performance: Intra is focused on performance metrics; needs to keep costs low. In Inter it is difficult to propagate performance metrics efficiently (latency, privacy etc). Besides, policy related information is more meaningful. We need BOTH!

Lecture Inter-AS routing (cont) r BGP (Border Gateway Protocol): the de facto standard r Path Vector protocol: an extension of Distance Vector r Each Border Gateway broadcasts to neighbors (peers) the entire path (ie, sequence of ASes) to destination (no cost info is sent) r For example, Gwy X may store the following path to destination Z:Path (X,Z) = 102,111,120,…,2012 Path (X,Z) = 102,111,120,…,2012 m Loop Avoidance m Policy Routing

Lecture Inter-AS routing (cont) r Peers exchange BGP messages using TCP (peers are immediate neighbor ASs) r OPEN msg opens TCP connection to peer r UPDATE msg advertises new path (or withdraws old) r KEEPALIVE msg keeps connection alive in absence of UPDATES; it also serves as ACK to an OPEN request r NOTIFICATION msg reports errors in previous msg; also used to close a connection

Lecture Address Management r As Internet grows, we run out of addresses r Solution (a): subnetting. Eg, Class B Host field (16bits) is subdivided into fields r Solution (b): CIDR (Classless Inter Domain Routing): assign block of contiguous Class C addresses to the same organization; these addresses all share a common prefix

Lecture Router Architecture Overview r Router main functions: routing algorithms and protocols processing, switching datagrams from an incoming link to an outgoing link Router Components

Lecture Input and Output Port Processing r Line Termination corresponds to physical layer r Data link processing corresponds to link layer r Usually, copy of routing table is stored at each input port - avoids using one central CPU r Packet dropping occurs at input and output queues

Lecture The switching fabric r Switching via memory, a) by shared memory with processors at ports or b) via CPU & ports as IO devices r Switching via bus, only one packet at time (one bus - (but there are gigabit buses) r Switching via interconnection network - (crossbar) 2N buses for N output and N input ports

Lecture Queuing At Input and Output Ports r Queues build up whenever there is a rate mismatch or blocking. Consider the following scenarios: m Fabric speed is faster than all input ports combined; more datagrams are destined to an output port than other output ports; queuing occurs at output port m Fabric bandwidth is not as fast as all input ports combined; queuing may occur at input queues; m HOL blocking: fabric can deliver datagrams from input ports in parallel, except if datagrams are destined to same output port; in this case datagrams are queued at input queues; there may be queued datagrams that are held behind HOL conflict, even when their output port is available