Routing. Classless Inter-Domain Routing Classful addressing scheme wasteful – IP address space exhaustion – A class B net allocated enough for 65K hosts.

Slides:



Advertisements
Similar presentations
Discussion Monday ( ). ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier header checksum time to live.
Advertisements

IP Addressing Introductory material.
4 IP Address (IPv4)  A unique 32-bit number  Identifies an interface (on a host, on a router, …)  Represented in dotted-quad notation
TCP/IP TCP/IP architecture
Chapter 21 Exercises 1. A router forwards packets between networks. (Given a destination host address, it must be able to figure out which network that.
4: Network Layer4a-1 IP Addressing: introduction r IP address: 32-bit identifier for host, router interface r interface: connection between host, router.
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.
Announcement r Recitation tomorrow on Project 2 r Midterm Survey at the end of this class.
Week 5: Internet Protocol Continue to discuss Ethernet and ARP –MTU –Ethernet and ARP packet format IP: Internet Protocol –Datagram format –IPv4 addressing.
Winter CMPE 155 Week 8. Winter Router demos: background.
EEC-484/584 Computer Networks Lecture 13 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Understanding IP Addressing Chuck Semeria Presented by Benyuan Liu for Internet Routing Seminar Sep 19, 2000.
11- IP Network Layer4-1. Network Layer4-2 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection.
EEC-484/584 Computer Networks Lecture 11 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
CSE5803 Advanced Internet Protocols and Applications (7) Introduction The IP addressing scheme discussed in Chapter 2 are classful and can be summarised.
EEC-484/584 Computer Networks Lecture 11 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
EEC-484/584 Computer Networks Lecture 11 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
EEC-484/584 Computer Networks Lecture 13 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
IP Address 0 network host 10 network host 110 networkhost 1110 multicast address A B C D class to to
Network Layer IS250 Spring 2010
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
IP Addressing Introductory material. An entire module devoted to IP addresses.
Network Layer (3). Node lookup in p2p networks Section in the textbook. In a p2p network, each node may provide some kind of service for other.
Introduction to Classless Routing
Network Layer (4). Classless Addressing Addresses allocated in contiguous blocks – Number of addresses assigned always power of 2 Network portion of address.
4: Network Layer4a-1 Hierarchical Routing r aggregate routers into regions, “autonomous systems” (AS) r routers in same AS run same routing protocol m.
CIS 3360: Internet: Network Layer Introduction Cliff Zou Spring 2012.
Chapter 18 IP: Internet Protocol Addresses
Chapter 6 VLSM and CIDR.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Network Layer Lecture 15 Imran Ahmed University of Management & Technology.
Data Communications and Networks Chapter 7 – IP Addressing ICT-BVF8.1- Data Communications and Network Trainer: Dr. Abbes Sebihi.
Private Network Addresses IP addresses in a private network can be assigned arbitrarily. – Not registered and not guaranteed to be globally unique Generally,
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.
CIDR Classless Inter Domain Routing Give the IP address space some breathing room! Basic idea: allocate the remaining IP addresses in variable-size blocks.
IP Addressing Introductory material.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer PART IV.
CS470 Computer Networking Protocols
IP Addressing.
IP. Classless Inter-Domain Routing Classful addressing scheme wasteful – IP address space exhaustion – A class B net allocated enough for 65K hosts Even.
1 CMPT 471 Networking II Addressing assigning networks and sub-networks © Janice Regan, 2012.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 19 Omar Meqdadi Department of Computer Science and Software Engineering University.
1 Network Address Translation. 2 Network Address Translation (NAT) Extension of original addressing scheme Motivated by exhaustion of IP address space.
1 Lecture, November 20, 2002 Message Delivery to Processes Internet Addressing Address resolution protocol (ARP) Dynamic host reconfiguration protocol.
1 Lecture 11 Routing in Virtual Circuit Networks Internet Addressing.
CCNA Discovery Semester 3 Addressing in an Enterprise Network Chapter 4 K. Martin.
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m network layer service models m forwarding.
Introduction to Internetworking. 2 The IP Addressing Scheme (IPv4) (psu.edu) Dotted Decimal Notation: A notation more convenient for humans.
1 COMP 431 Internet Services & Protocols The IP Internet Protocol Jasleen Kaur April 21, 2016.
IP Addressing. A 32-bit logical naming convention A dotted-decimal notation is used: – –Each number represents 8 bits. Number is Part.
IP – Subnetting and CIDR
Scaling the Network: Subnetting and Protocols
IP Addressing Introductory material.
Scaling the Network: Subnetting and Other Protocols
NAT : Network Address Translation
NAT – Network Address Translation
Internet Networking recitation #1
IP Addressing - The Problem
IP.
PART IV Network Layer.
CS4470 Computer Networking Protocols
EEC-484/584 Computer Networks
EEC-484/584 Computer Networks
IP Addressing Introductory material
Overview The Internet (IP) Protocol Datagram format IP fragmentation
Scaling the Network: Subnetting and Other Protocols
Network Layer: Control/data plane, addressing, routers
Network Address Translation (NAT)
Presentation transcript:

Routing

Classless Inter-Domain Routing Classful addressing scheme wasteful – IP address space exhaustion – A class B net allocated enough for 65K hosts Even if only 2K hosts in that network Solution: CIDR – Eliminate class distinction No A,B,C – Keep multicast class D

Classless Addressing Addresses allocated in blocks – Number of addresses assigned always power of 2, and always on the boundary. That is, if 2048 addresses, it will start with some address with all lower 11 bits being 0. Network portion of address is of arbitrary length Address format: a.b.c.d/x – x is number of bits in network portion of address network part host part /23

Allocating Addresses Assume abundant addresses are available starting at Cambridge university needs 2048 addresses, it is given to Mask Oxford need 4096 addresses. Because the requirement is that must be on the boundary, it is given to Mask Edinburg needs 1024 addresses, is given to Mask

CIDR A router keeps routing table with entries – IP address, 32-bit mask, outgoing line When an IP packet arrives, the router checks its routing table to find the longest match. Match means anding the IP address with the network address mask (1111…10000), and check if the result is the same as the network address.

CIDR Example. – Cambridge / – Edinburgh / – (Available) / – Oxford / When a packet addressing to arrives, where should it be sent to? And with all masks, find one that matches the longest.

CIDR – Entry aggregation How does a router in Tallahassee route packet to C,E and O, assuming that he has only two outgoing links? All to New York. Can it reduce the size of his routing table? C E O N T H

CIDR Entry Aggregation From to , all to N. So aggregate the three entries into one /19. The N router can do the same thing. C E O N T H

CIDR If later the free address space / is assigned to Pittsburgh and has to go through Houston, what should the router at Tallahassee do? C E O N T H P

CIDR When a packet arrives addressing , the router checks the routing table and there will be two matches: /22 and /19. Pick the longest match.

NAT – Network Address Translation IP address is a scarce resource. So, give a company only one or a few IP addresses used by the gateway router. Within the company, each machine has an unique IP address, chosen from – /8 – /12 – /16 – These addresses can only appear within a company but never on the outside Internet

NAT Whenever a machine wants to send a packet to the outside, the packet will be sent to the NAT box. The NAT box will convert the internal IP address to the real IP address of the company, and pass the packet to the gateway router. When there is a packet destined for an internal machine arrived at the router, what should the router and NAT box do? For IP packets carrying TCP or UDP, use port number. Other protocols are much more complicated.

NAT For IP packets carrying TCP or UDP, use port number. When an outgoing packet arrives at the NAT box, – The IP address is replaced – The source port number is replaced – Header checksum is recomputed When a reply came for this process, use the replaced source port number as index to find the correct IP address and original port number.