Routing tables and Route Summarisation What is a routing table? How do I create a “good” one?

Slides:



Advertisements
Similar presentations
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
Advertisements

IP Forwarding Relates to Lab 3.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_b Subnetting,Supernetting, CIDR IPv6 Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
IPv4 Addresses. Internet Protocol: Which version? There are currently two versions of the Internet Protocol in use for the Internet IPv4 (IP Version 4)
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.
An Engineering Approach to Computer Networking
Winter CMPE 155 Week 8. Winter Router demos: background.
1 CCNA 3 v3.1 Module 1. 2 CCNA 3 Module 1 Introduction to Classless Routing.
Oct 26, 2004CS573: Network Protocols and Standards1 IP: Routing and Subnetting Network Protocols and Standards Autumn
Understanding IP Addressing Chuck Semeria Presented by Benyuan Liu for Internet Routing Seminar Sep 19, 2000.
CSE5803 Advanced Internet Protocols and Applications (7) Introduction The IP addressing scheme discussed in Chapter 2 are classful and can be summarised.
CSEE W4140 Networking Laboratory Lecture 3: IP Forwarding and ICMP Jong Yul Kim
Basic TCP/IP Networking
Subnetting and CIDR Textbook Ch 3.2.5
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
TDC365 Spring 2001John Kristoff - DePaul University1 Interconnection Technologies Routing I.
Network Layer IS250 Spring 2010
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
Chapter Subnets in TCP/IP Networks © N. Ganesan, Ph.D.
1 CIDR Classless Inter-Domain Routing Rizwan Rehman, CCS, DU.
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
TCP/IP Addressing Design. Objectives Choose an appropriate IP addressing scheme based on business and technical requirements Identify IP addressing problems.
CS 6401 Efficient Addressing Outline Addressing Subnetting Supernetting.
IP Addressing. Dotted Decimal Notation IP addresses are written in a so-called dotted decimal notation Each byte is identified by a decimal number in.
ECE 4110 – Internetwork Programming Subnetting, Supernetting, and Classless Addressing.
1 Internet Addresses (You should read Chapter 4 in Forouzan) IP Address is 32 Bits Long Conceptually the address is the pair ( NETID, HOSTID ) Addresses.
Chapter 8 Advanced TCP/IP Network Design. Classful IP Addressing There are three basic classes of addresses known as class A, B, or C networks.
CIDR Classless Inter-Domain Routing
IP Addressing Introductory material. An entire module devoted to IP addresses.
IPv4 Addresses. Internet Protocol: Which version? There are currently two versions of the Internet Protocol in use for the Internet IPv4 (IP Version 4)
Routing Information Protocol (RIP). Intra-and Interdomain Routing An internet is divided into autonomous systems. An autonomous system (AS) is a group.
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
Introduction to Classless Routing
Copyright © Lopamudra Roychoudhuri
Efficient Addressing Outline Addressing Subnetting Supernetting CS 640.
Fragmentation Fragmentation and reassembly are done by the IP layer Fragmentation and reassembly are done by the IP layer Identification (16 bits) Identification.
Variable-Length Subnet Masking (VLSM)
Chapter 6 VLSM and CIDR.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 VLSM and CIDR Routing Protocols and Concepts – Chapter 6 05/07/2009.
Delivery, Forwarding, and Routing of IP Packets
Dr. Clincy1 Chapter 6 Delivery & Forwarding of IP Packets Lecture #4 Items you should understand by now – before routing Physical Addressing – with in.
VLSM and RIPv2 Warren Toomey GCIT. Introduction Switches deliver frames to stations. Routers deliver packets to networks. Only the final router has to.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2003 Chapter 6 Delivery and Routing of IP Packets.
Routing in the Internet The Global Internet consists of Autonomous Systems (AS) interconnected with eachother: Stub AS: small corporation Multihomed AS:
Routing tables and Route Summarisation What is a routing table? How do I create a “good” one?
Objectives After completing this chapter you will be able to: Understand how routers operate Describe Distance Vector and Link State Algorithms Describe.
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.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer: 19.1 Internetworks 19.2 Addressing Classful, Classless addressing, NAT 19.3 Routing.
Basic Linux Router I Router, a device that... Working on OSI Layer 3 (Network Layer) Connected to more than one networks Finding.
1 Kyung Hee University Chapter 6 Delivery Forwarding, and Routing of IP Packets.
IP Addressing Introductory material.
CS470 Computer Networking Protocols
1 CMPT 471 Networking II Addressing assigning networks and sub-networks © Janice Regan, 2012.
Routing. Classless Inter-Domain Routing Classful addressing scheme wasteful – IP address space exhaustion – A class B net allocated enough for 65K hosts.
Spring 2008CPE Computer Networks1 Routing: Part II Outline Algorithms Scalability Reading: Section 4.3.
1 Variable Length Subnet Masks ( VLSM ) “ Classful Route” Means if a route to a network starting with is received, it is a class A => mask length.
Chapter Subnets in TCP/IP Networks © N. Ganesan, Ph.D.
4.3 Network Layer Logical Addressing
Chapter 6 Delivery & Forwarding of IP Packets
Internet Networking recitation #1
Routing Information Protocol (RIP)
PART IV Network Layer.
CS4470 Computer Networking Protocols
IP Forwarding Relates to Lab 3.
Chapter 6 Delivery & Forwarding of IP Packets
Delivery and Routing of IP Packets
IP Forwarding Relates to Lab 3.
CIDR: Classless Interdomain Routing
An Engineering Approach to Computer Networking
Subnets in TCP/IP Networks © N. Ganesan, Ph.D.
Presentation transcript:

Routing tables and Route Summarisation What is a routing table? How do I create a “good” one?

Systems and Network Management Routing and Route Summarisation 1 Modern Routing Tables Each entry in a routing table has 3 main items: A network address (the destination) A netmask length A next hop address $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface U eth U lo UG eth0

Systems and Network Management Routing and Route Summarisation 1 The Routing Algorithm For a given destination IP address Search the routing table for the longest prefix match for the address Extract the next hop address from the routing table entry Send the packet to the next hop address If no match found, report that the destination is unreachable.

Systems and Network Management Routing and Route Summarisation 1 Longest Prefix So what does “longest prefix match” mean? To see if the prefix matches, – Bitwise AND netmask with destination – Bitwise AND netmask with network from routing table entry – If the two results are equal, then the prefix matches If we do the same for all entries in the routing table, the match with the longest netmask wins.

Systems and Network Management Routing and Route Summarisation 1 Example: Given this routing table, where does the packet with destination go to? U eth U vmnet UG ppp UG ppp0 How about ? ? ?

Systems and Network Management Routing and Route Summarisation 1 The Big Emergency In the early 90s, it became apparent that two problems were quickly going to become overwhelming: We were running out of IP addresses The routing tables were growing too fast for the router hardware to cope

Systems and Network Management Routing and Route Summarisation 1 The Solution: CIDR and NAT Two solutions were developed: CIDR (Classless Internet Domain Routing), and NAT (Network Address Translation). – NAT allows a firewall or router to present one address to the outside world, but many to the inside. – In Linux, use iptables: module is called NAT. – Use private addresses: – /16 – /12 – /8

Systems and Network Management Routing and Route Summarisation 1 The Problems CIDR helps fix: address depletion Class C was too small for medium sized enterprises Class B was too big Many organisations asked for (and received) class B networks when they needed only a /22 or /21 network This used up the available 2 32 addresses too fast Later there was a need for small Internet allocations of 1 or 2 addresses. – Class C was too wasteful for this.

Systems and Network Management Routing and Route Summarisation 1 The Problems CIDR helps fix: router table explosion As class B addresses became scarce, SMEs were given a number of class C network allocations But each class C needed a separate routing table advertisement Local information about the internal network structure of a company needed to be advertised world wide This did not scale By now routing would need much more CPU and RAM than is currently used, and the Internet would have slowed further.

Systems and Network Management Routing and Route Summarisation 1 How does CIDR solve them? New address allocations can be sized accurately to the need – When requesting addresses, the authority ( will reserve some addresses for future growth if you specify you will need themwww.apnic.net New address allocations are made taking into account neighbouring networks Aim is to summarise many routes into as few routes as possible.

Systems and Network Management Routing and Route Summarisation 1 Aggregating routes Routers summarise routes themselves when they use classless routing protocols such as: – Rip2 – OSPF – BGP

Systems and Network Management Routing and Route Summarisation 1 Route Aggregation There is a Perl module for working with IP addresses (of course): NetAddr::IP Includes the method compact(), which takes a list of networks and returns a list of summarised address blocks.

Systems and Network Management Routing and Route Summarisation 1 Without Route Summarisation

Systems and Network Management Routing and Route Summarisation 1 With Route Summarisation

Systems and Network Management Routing and Route Summarisation 1 Explanation The first diagram shows all subnets behind router A advertised everywhere – This is because the routes are unable to summarise the routes The second diagram shows the subnets behind A summarised into two routes instead of 5 – The routers must be running a classless routing protocol such as OSPF or RIP2.

Systems and Network Management Routing and Route Summarisation 1 How the Routes were Summarised /24: = /24: = /24: = /24: = – So these can be summarised into: – / /24: = – This cannot be summarised with the other routes, so it must be advertised separately.