Chapter 5: Network Layer (Part III)

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.
4a-1 CSE401: Computer Networks Hierarchical Routing & Routing in Internet S. M. Hasibul Haque Lecturer Dept. of CSE, BUET.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
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,
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.
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.
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.
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!
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.
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
Network Layer 1 Goals:  Understand Internet network layer concepts  Understand Internet routing  Understand Internet network layer protocols Content:
Objectives: Chapter 5: Network/Internet Layer  How Networks are connected Network/Internet Layer Routed Protocols Routing Protocols Autonomous Systems.
Network Layer (4). Classless Addressing Addresses allocated in contiguous blocks – Number of addresses assigned always power of 2 Network portion of address.
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.
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:
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.
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.
ICT 6621 : Advanced NetworkingKhaled Mahbub, IICT, BUET, 2008 Lecture 5 TCP/IP Network Layer (3)
ICS 156: Networking Lab Magda El Zarki Professor, ICS UC, Irvine.
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.
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)
Application Layer 2-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
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.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
ICMP ICMP – Internet Control Message Protocol
Chapter 4: Network Layer
CS4470 Computer Networking Protocols
Hierarchical Routing Our routing study thus far – an idealization
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Routing.
CS 457 – Lecture 10 Internetworking and IP
IP : Internet Protocol Surasak Sanguanpong
Department of Computer and IT Engineering University of Kurdistan
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
Computer Networks Protocols
Routing.
Network Layer: Internet Inter-Domain Routing
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Presentation transcript:

Chapter 5: Network Layer (Part III) Routing Protocols in the Internet RIP, OSPF, BGP More on IP Fragmentation and Reassembly ICMP Readings Sections 5.5-5.6

Hierarchical Routing gateway routers aggregate routers into regions, “autonomous systems” (AS) routers in same AS run same routing protocol “intra-AS” routing protocol routers in different AS can run different intra-AS routing protocol special routers in AS run intra-AS routing protocol with all other routers in AS also responsible for routing to destinations outside AS run inter-AS routing protocol with other gateway routers

Intra-AS and Inter-AS routing C.b Gateways: perform inter-AS routing amongst themselves perform intra-AS routing with other routers in their AS B.a A.a b A.c c a a C b a B d c A b network layer inter-AS, intra-AS routing in gateway A.c link layer physical layer

Intra-AS and Inter-AS routing between A and B a b C A B d c A.a A.c C.b B.a Host h2 Host h1 Intra-AS routing within AS B Intra-AS routing within AS A

Why different Intra- and Inter-AS routing ? Policy: Inter-AS: admin wants control over how its traffic routed, who routes through its net. Intra-AS: single admin, so no policy decisions needed Scale: hierarchical routing saves table size, reduced update traffic Performance: Intra-AS: can focus on performance Inter-AS: policy may dominate over performance

Intra-AS Routing Also known as Interior Gateway Protocols (IGP) Most common IGPs: RIP: Routing Information Protocol OSPF: Open Shortest Path First IGRP: Interior Gateway Routing Protocol (Cisco proprietary)

RIP ( Routing Information Protocol) Distance vector algorithm Included in BSD-UNIX Distribution in 1982 Distance metric: # of hops (max = 15 hops) Can you guess why? Distance vectors exchanged every 30 sec (plus a jitter) via Response Message (also called advertisement) When network topology changes Each advertisement: route to up to 25 destination nets

RIP: Link Failure and Recovery If no advertisement heard after 180 sec  neighbor/link declared dead routes via neighbor invalidated new advertisements sent to other neighbors neighbors in turn send out new advertisements (if tables changed) link failure info quickly propagates to entire net

RIP Table processing RIP routing tables managed by application-level process called routed (daemon) advertisements sent in UDP packets, periodically repeated

OSPF (Open Shortest Path First) “open”: publicly available Gated Uses Link State algorithm LS packet dissemination Topology map at each node Route computation using Dijkstra’s algorithm OSPF advertisement carries one entry per neighbor router Advertisements disseminated to entire AS (via controlled flooding)

Neighbor Discovery and Maintenance OSPF Hello protocol Sends Hello packets on all its interfaces Every Hello Interval (default 10 sec) Helps detect the failure of neighbors Neighbor is designated as failed If no Hello for Dead Interval (40 sec)

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

Inter-AS routing

Internet Inter-AS routing: BGP BGP (Border Gateway Protocol): the de facto standard Path Vector protocol: similar to Distance Vector protocol each Border Gateway broadcast to neighbors (peers) entire path (I.e, sequence of ASs) to destination E.g., Gateway X may send its path to dest. Z: Path (X,Z) = X,Y1,Y2,Y3,…,Z

Internet Inter-AS routing: BGP BGP messages exchanged using TCP. BGP messages: OPEN: opens TCP connection to peer and authenticates sender UPDATE: advertises new path (or withdraws old) KEEPALIVE keeps connection alive in absence of UPDATES; also ACKs OPEN request NOTIFICATION: reports errors in previous msg; also used to close connection

Internet Inter-AS routing: BGP Suppose: gateway X send its path to peer gateway W W may or may not select path offered by X cost, policy (don’t route via competitors AS), loop prevention reasons. If W selects path advertised by X, then: Path (W,Z) = W, Path (X,Z) Note: X can control incoming traffic by controlling its route advertisements to peers: e.g., don’t want to route traffic to Z  don’t advertise any routes to Z

BGP: an example [3210]* [4210] [7610] NLRI=128.186.0.0/16 ASPATH=[10]

A feature of BGP Avoid looping problem in distance vector algorithms [YZ]* [WYZ] [YZ] [Z] X Y Z W [XYZ] [WYZ] [YZ] [YZ]* [XYZ]

Shortcoming of BGP May still take long time to converge Invalid routes can still be selected/propagated [3210]* [4210] [7610] NLRI=128.186.0.0/16 ASPATH=[57610] NLRI=128.186.0.0/16 ASPATH=[54210] NLRI=128.186.0.0/16 Withdrawal Situation can be worse on global Internet Up to 15 minutes converging time observed in Internet O(k!) alternative paths explored theoretically

Solving BGP Path Exploration Idea is simple, but extremely hard Scalability Confidentiality Simple AS graph vs. actual Internet topology Each network has multiple BGP routers Intra-domain vs. inter-domain errors Two Ases may have multiple peering links Single link failure vs. mulit-link failure Links have diff prop delays and events occur in short duration Which update is newer?

BGP Security Accidents (caused by human errors) Most of them not malicious June 2015, Malaysian route leak 2010, Chinese hijack (affects cnn.com, amazon.de, and rapidshare.com etc) 24 Feb 2008, Pakistan knocked Youtube offline 07 May 2005, AS 174 took Google’s 64.233.161.0/24 24 Dec 2004, Anatomy of a Leak: AS9121 100K+ routes announced 6 Apr 2001: C&W routing instability 25 Apr 1997: 7007 Explanation and Apology Check NANOG mailing list for more accidents

The Internet Network layer Transport layer: TCP, UDP IP protocol addressing conventions datagram format packet handling conventions Routing protocols path selection RIP, OSPF, BGP Network layer routing table ICMP protocol error reporting router “signaling” Link layer physical layer

More on IP

IP Packet Format

Fields in IP Packet IP protocol version Header length Type of Service Current version is 4 Header length Number of 32-bit quantities in the header Type of Service 3-bit Priority Delay, Throughput, Reliability bits Total length Including header (maximum 65535 bytes)

Fields in IP Packet Identification Flags Fragment offset Time to live All fragments of a packet have same identification Flags Don’t Fragment, More Fragments Fragment offset Where in the original packet (count in 8 byte units) Time to live Life time of packet Protocol Type TCP, UDP etc

IP Fragmentation & Reassembly Each subnet has its own MTU size Maximum Transmission Unit An IP packet is chopped into smaller pieces if Packet size is greater than network MTU, and Don’t fragment option is not set Each datagram has unique identification All fragments carry original datagram id All fragments except the last have more flag set

IP Fragmentation &Reassembly Datagram assembly done only at destination Why not at a router? Use datagram id to put pieces together The last piece indicated with more bit 0 Offset plus the length tell whether any Holes missing in the middle Setup a reassembly timer after first fragment If all pieces in time, pass the pkt to upper layer If some do not arrive in time, discard the fragments No recovery from lost fragments (why?)

IP Fragmentation & Reassembly large IP datagram fragmented within net one datagram becomes several datagrams “reassembled” only at final destination IP header bits used to identify, order related fragments reassembly

IP Fragmentation and Reassembly ID =x offset =0 moreflag length =4000 =1 =1500 =1480 =2960 =1040 One large datagram becomes several smaller datagrams

Fragmentation Example

Internet Control Message Protocol An error reporting mechanism Time exceeded Packet discarded because TTL was 0 Destination unreachable Router cannot locate destination Source quench Buffer overflow, request source to reduce rate Redirect Suggest a better router

ICMP Message Transport ICMP messages carried in IP datagrams Treated like any other datagram But no error message sent if ICMP message causes error Message sent to the source Original Internet header, plus 8 bytes of the original datagram’s data included For source to match original process.

ICMP Usage Testing reachability Tracing route to a destination ICMP echo request/reply ping Tracing route to a destination Time-to-live field Traceroute Path MTU discovery Don’t fragment bit

Other Internet Control Protocols ARP solves problem Given IP address, find MAC address Reverse Address Resolution Protocol (RARP) Given MAC address, find IP address, and more … Used by, e.g., diskless machines Items to be configured IP address Default router address Subnet mask DNS server address

IP addresses: how to get one? Hard-coded by system admin in a file Dynamic Host Configuration Protocol dynamically get address: “plug-and-play” 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

Network Layer Summary Network service Routing protocols datagram vs virtual circuit Routing protocols Link state and distance vector RIP, OSPF, BGP Fragmentation and Reassembly Case studies IPv4