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.

Slides:



Advertisements
Similar presentations
4: Network Layer4a-1 IP Addressing: introduction r IP address: 32-bit identifier for host, router interface r interface: connection between host, router.
Advertisements

CSE551: Computer Network Review r Network Layers r TCP/UDP r IP.
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.
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.
Announcement r Recitation tomorrow on Project 2 r Midterm Survey at the end of this class.
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.
4a-1 CSE401: Computer Networks Hierarchical Routing & Routing in Internet S. M. Hasibul Haque Lecturer Dept. of CSE, BUET.
The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.
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.
Chapter 5 The Network Layer.
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.
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.
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,
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
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.
4: Network Layer4a-1 IP datagram format ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier Internet checksum time.
Network Layer – part 31 Customer-Provider Routing Relationships  The Global Internet consists of Autonomous Systems (AS) interconnected with each other:
14 – Inter/Intra-AS Routing Network Layer Hierarchical Routing scale: with > 200 million destinations: can’t store all dest’s in routing tables!
Network Layer Lecture # 2 MAHS. 4: Network Layer 4b-2 Hierarchical Routing scale: with 200 million destinations: r can’t store all dest’s in routing tables!
Lecture 14 ICMP: Internet Control Message Protocol r used by hosts, routers, gateways to communication network-level information m error reporting: unreachable.
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:
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 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection RIP, OSPF, BGP 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.
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.
Network Layer4-1 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection RIP, OSPF, BGP IP protocol.
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.
Transport Layer3-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.
ICT 6621 : Advanced NetworkingKhaled Mahbub, IICT, BUET, 2008 Lecture 5 TCP/IP Network Layer (3)
Network Layer4-1 Datagram networks r no call setup at network layer r routers: no state about end-to-end connections m no network-level concept of “connection”
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.
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.
IP. Classless Inter-Domain Routing Classful addressing scheme wasteful – IP address space exhaustion – A class B net allocated enough for 65K hosts Even.
The Internet Network layer
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)
IP Fragmentation. Network layer transport segment from sending to receiving host on sending side encapsulates segments into datagrams on rcving side,
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
Homework 4 Out: Fri 2/26/2016 In: Fri 3/11/2016.
ICMP ICMP – Internet Control Message Protocol
Chapter 4: Network Layer
Chapter 5: Network Layer (Part III)
Hierarchical Routing Our routing study thus far – an idealization
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
32 bit destination IP address
Presentation transcript:

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 corporation m Multihomed AS: large corporation (no transit) m Transit AS: provider r Two-level routing: m Intra-AS: administrator is responsible for choice m Inter-AS: unique standard

4: Network Layer4a-2 IP datagram format ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier Internet checksum time to live 32 bit source IP address IP protocol version number header length (bytes) max number remaining hops (decremented at each router) for fragmentation/ reassembly total datagram length (bytes) upper layer protocol to deliver payload to head. len type of service “type” of data flgs fragment offset upper layer 32 bit destination IP address Options (if any) E.g. timestamp, record route taken, pecify list of routers to visit.

4: Network Layer4a-3 IP Fragmentation & Reassembly r network links have MTU (max.transfer size) - largest possible link-level frame. m different link types, different MTUs r large IP datagram divided (“fragmented”) within net m one datagram becomes several datagrams m “reassembled” only at final destination m IP header bits used to identify, order related fragments fragmentation: in: one large datagram out: 3 smaller datagrams reassembly

4: Network Layer4a-4 IP Fragmentation and Reassembly ID =x offset =0 fragflag =0 length =4000 ID =x offset =0 fragflag =1 length =1500 ID =x offset =1480 fragflag =1 length =1500 ID =x offset =2960 fragflag =0 length =1040 One large datagram becomes several smaller datagrams

4: Network Layer4a-5 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

4: Network Layer4a-6 Internet AS Hierarchy

4: Network Layer4a-7 Intra-AS Routing r Also known as Interior Gateway Protocols (IGP) r Most common IGPs: m RIP: Routing Information Protocol m OSPF: Open Shortest Path First m IGRP: Interior Gateway Routing Protocol (Cisco propr.)

4: Network Layer4a-8 RIP ( Routing Information Protocol) r Distance vector type scheme r Included in BSD-UNIX Distribution in 1982 r Distance metric: # of hops (max = 15 hops) m Can you guess why? r Distance vector: exchanged every 30 sec via a Response Message (also called Advertisement) r Each Advertisement contains up to 25 destination nets

4: Network Layer4a-9 RIP (Routing Information Protocol) Destination Network Next Router Num. of hops to dest. 1A2 20B2 30B ….….....

4: Network Layer4a-10 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)

4: Network Layer4a-11 RIP Table processing r RIP routing tables managed by an application process called route-d (daemon) r Advertisements encapsulated in UDP packets (no reliable delivery required; advertisements are periodically repeated)

4: Network Layer4a-12 RIP Table processing

4: Network Layer4a-13 RIP Table example (continued) RIP Table example (at router giroflee.eurocom.fr): r Three attached class C networks (LANs) r Router only knows routes to attached LANs r Default router used to “go up” r Route multicast address: r Loopback interface (for debugging)

4: Network Layer4a-14 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

4: Network Layer4a-15 OSPF (Open Shortest Path First) r “open”: publicly available r Uses the Link State algorithm m LS packet dissemination m Topology map at each node m Route computation using Dijkstra’s alg r OSPF advertisement carries one entry per neighbor router r Advertisements disseminated to entire Autonomous System (via flooding)

4: Network Layer4a-16 OSPF “advanced” features (not in RIP) r Security: all OSPF messages are authenticated (to prevent malicious intrusion); TCP connections used r Multiple same-cost paths allowed (only one path in RIP) r For each link, multiple cost metrics for different TOS (eg, satellite link cost set “low” for best effort; high for real time) r Integrated uni- and multicast support: m Multicast OSPF (MOSPF) uses same topology data base as OSPF r Hierarchical OSPF in large domains.

4: Network Layer4a-17 Hierarchical OSPF

4: Network Layer4a-18 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. r Boundary routers connect to other ASs.

4: Network Layer4a-19 IGRP (Interior Gateway Routing Protocol) r CISCO proprietary; successor of RIP (mid 80s) r Distance Vector, like RIP r several cost metrics (delay, bandwidth, reliability, load etc) r uses TCP to exchange routing updates r routing tables exchanged only when costs change r Loop-free routing achieved by using a Distributed Updating Alg. (DUAL) based on diffused computation r In DUAL, after a distance increase, the routing table is frozen until all affected nodes have learned of the change.

4: Network Layer4a-20 Inter-AS routing

4: Network Layer4a-21 Inter-AS routing (cont) r BGP (Border Gateway Protocol): the de facto standard r Path Vector protocol: and extension of Distance Vector r Each Border Gateway broadcast to neighbors (peers) the entire path (ie, sequence of ASs) to destination r For example, Gateway X may store the following path to destination Z: Path (X,Z) = X,Y1,Y2,Y3,…,Z

4: Network Layer4a-22 Inter-AS routing (cont) r Now, suppose Gwy X send its path to peer Gwy W r Gwy W may or may not select the path offered by Gwy X, because of cost, policy ($$$$) or loop prevention reasons. r If Gwy W selects the path advertised by Gwy X, then: Path (W,Z) = w, Path (X,Z) Note: path selection based not so much on cost (eg,# of AS hops), but mostly on administrative and policy issues (e.g., do not route packets through competitor’s AS)

4: Network Layer4a-23 Inter-AS routing (cont) r Peers exchange BGP messages using TCP. r OPEN msg opens TCP connection to peer and authenticates sender 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

4: Network Layer4a-24 Why different Intra- and Inter-AS routing ? 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 Scale: Inter provides an extra level of routing table size and routing update traffic reduction above the Intra layer 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!