CSE5803 Advanced Internet Protocols and Applications (7) 1 7.1 Introduction The IP addressing scheme discussed in Chapter 2 are classful and can be summarised.

Slides:



Advertisements
Similar presentations
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Introduction to IPv4 Introduction to Networks.
Advertisements

Chapter 19 Network Layer: Logical Addressing Stephen Kim.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 VLSM and CIDR Routing Protocols and Concepts – Chapter 6.
Chapter 18. IP: Internet Protocol Addresses
IP Addressing IP Subnetting Static Subnet Variable Length Subnet Masks(VLSMs)
1 CCNA 3 v3.1 Module 1. 2 CCNA 3 Module 1 Introduction to Classless Routing.
Understanding IP Addressing Chuck Semeria Presented by Benyuan Liu for Internet Routing Seminar Sep 19, 2000.
1 IP Addressing (IPv4 ADDRESSES). 2 Universal Service Concept Any computer can communicate with any other computer in the world. Multiple independently.
TDC365 Spring 2001John Kristoff - DePaul University1 Interconnection Technologies Routing I.
Network Layer IS250 Spring 2010
Chapter 21 IP Addressing “If we all did the things we are capable of doing, we would literally astound ourselves” - Thomas Alva Edison,
CS 6401 Efficient Addressing Outline Addressing Subnetting Supernetting.
1 Chapter Overview Subnet. What is a subnet When you break a network into a few smaller networks, you have created several subnets Like IP address where.
© 2000, Cisco Systems, Inc. 3-1 Network Address Conservation Subnetting, VLSM, NAT & RFC1918.
Types of Addresses in IPv4 Network Range
RSC Part II: Network Layer 3. IP addressing Redes y Servicios de Comunicaciones Universidad Carlos III de Madrid These slides are, mainly, part of the.
Subnet & Classless Address Extensions Linda Wu (CMPT )
4: Addressing Working At A Small-to-Medium Business or ISP.
Fall 2006Computer Networks19-1 Chapter 19. Host-to-Host Delivery: Internetworking, Addressing, and Routing 19.1 Internetworks 19.2 Addressing 19.3 Routing.
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.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
Network Addressing Structure
CIDR Classless Inter-Domain Routing
Jan 29, 2008CS573: Network Protocols and Standards1 NAT, DHCP Autonomous System Network Protocols and Standards Winter
IP ADDRESSES. C ONTENTS Objectives Introduction IP Versions IPv4 Addressing Classful Addressing Class A Class B Class C Other Classes Dotted Decimal Notation.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Addressing in an Enterprise Network Introducing Routing and Switching in the.
CSISCSIS Dr. ClincyLecture1 SUPERNETTING Although class A and B addresses are dwindling – there are plenty of class C addresses The problem with C addresses.
Routing tables and Route Summarisation What is a routing table? How do I create a “good” one?
Efficient Addressing Outline Addressing Subnetting Supernetting CS 640.
Variable-Length Subnet Masking (VLSM)
Chapter 6 VLSM and CIDR.
Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College Last Updated: 3/30/2008.
© 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.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Addressing in an Enterprise Network Introducing Routing and Switching in the.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
Chapter 5 IPv4 Address.
IP Internet Protocol Fundamental packet format that computers use to exchange information. Is a set of technical rules that defines how computers communicate.
NETWORK LAYER.
CS470 Computer Networking Protocols
IP Addressing.
Routing. Classless Inter-Domain Routing Classful addressing scheme wasteful – IP address space exhaustion – A class B net allocated enough for 65K hosts.
IP ADDRESSING Lecture 2: IP addressing Networks and Communication Department 1.
CCNA Discovery Semester 3 Addressing in an Enterprise Network Chapter 4 K. Martin.
Chapter 8: IP Addressing
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.
Introduction to Internetworking. 2 The IP Addressing Scheme (IPv4) (psu.edu) Dotted Decimal Notation: A notation more convenient for humans.
Discovery 2 Internetworking Module 4 JEOPARDY K. Martin.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Planning the Addressing Structure
LESSON Networking Fundamentals Understand IPv4.
Scaling the Network: Subnetting and Other Protocols
4.3 Network Layer Logical Addressing
Internet Networking recitation #1
IP Addressing - The Problem
PART IV Network Layer.
4 Network Layer Part I Computer Networks Tutun Juhana
CS4470 Computer Networking Protocols
Ct1304 Lecture#4 IPV4 Addressing Asma AlOsaimi.
NET302 Lecture#3 IPV4 Addressing Asma AlOsaimi.
CIS 82 Routing Protocols and Concepts Chapter 11 NAT
Lecture#3 IPV4 Addressing Net 302- Asma AlOsaimi.
Planning the Addressing Structure
Ct1304 Lecture#4 IPV4 Addressing Asma AlOsaimi.
Planning the Addressing Structure
Planning the Addressing Structure
Scaling the Network: Subnetting and Other Protocols
CIDR: Classless Interdomain Routing
Lecture#3-IPV4 Addressing
Presentation transcript:

CSE5803 Advanced Internet Protocols and Applications (7) Introduction The IP addressing scheme discussed in Chapter 2 are classful and can be summarised as: Class A Networks: 8 bit network-number and 24 bit host number, (/8, slash eight or eights), 126 networks can be defined ( is reserved for the use as default route, is loopback address). Each with (16,777,214) hosts maximum. Why minus two? Class A consists of half of IPv4 unicast addresses. Class B Networks: (/16 prefixes) 2 14 (16,384) networks can be defined, each with 65,534 ( ) hosts maximum. Class B is 25% of total IPv4 unicast addresses.

CSE5803 Advanced Internet Protocols and Applications (7) 2 Class C Networks: (/24 prefixes) 2 21 (2,097,152) networks can be defined, each with 254 (2 8 -2) hosts maximum. Class C is 12.5% (1/8 th ) of total IPv4 unicast addresses. Other Classes: D (1110) is used to support IP multicasting. E (1111) is reserved for experimental use. Problems: Lack of support for medium sized organisations. /16 is too large while /24 is too small. The allocation of a /16 to several hundred or thousand hosts is a big waste and leads to quick depletion of /16 address space. Fixed size of subnet mask as discussed in Chapters 2 and 6 is also a waste of number resource since all subnet must be of the same size, which is that of the largest subnet. This chapter discusses more addressing issues including subneting, superneting and private connectivity.

CSE5803 Advanced Internet Protocols and Applications (7) Variable Length Subnet Masks (VLSM) The concept of subnet and subnet masks was discussed in Chapter 2. RIP-1 supports fixed length subnet mask, which means all the subnets are of the same size. VLSM (RFC1878) combines the network prefix and a variable number of subnet number bits to form a slash n, /n, type of subnet, where n does not have to be a fixed number for an organisation. It is the extended network prefix. VLSM does not have to allocate subnet bits according to the largest physical network, as before. Example: /22 network = Extended network prefix

CSE5803 Advanced Internet Protocols and Applications (7) 4 Also, /26 network = VLSM and Route Aggregation VLSM allows the recursive division of an address space so it can be reassembled and aggregated to reduce the amount of routing information at the top level. Extended network prefix

CSE5803 Advanced Internet Protocols and Applications (7) 5 The practice of subnet, sub-subnet, etc. reduces the sizes of routing tables.

CSE5803 Advanced Internet Protocols and Applications (7) VLSM – Design and Deployment Considerations The number of subnets required currently and in the future. The number of hosts in the largest subnet currently and in the future The routing protocol used should carry extended-network-prefix information with each route advertisement. RIP-1 does not. The IGP need to be RIP-2 or OSPF. Addresses must be assigned with topological significance in order to reduce the size of routing table. Routers need to run the “longest” match algorithm, discussed next section.

CSE5803 Advanced Internet Protocols and Applications (7) VLSM and “Longest Match” Forwarding Under VLSM environment, there may be more than one route that seem to match the IP’s network address. The rule is to send the datagram to a route with the “longest match”. This means if an IP address can completely match the network addresses of more routes than one, the longest matching network address is selected for packet forwarding. Route 1 is selected based on “longest match”. It should be noted that all x hosts should be attached to this subnet in order to be reachable. Example:

CSE5803 Advanced Internet Protocols and Applications (7) Introduction to Classless IP Addressing – CIDR CIDR stands for Classless Inter-Domain Routing (RFC1519). CIDR was developed in 1992/3 to solve the following problems: –The near-term exhaustion of the Class B network address space –The rapid growth in the size of the global Internet’s routing tables –The eventual exhaustion of the 32-bit IPv4 address space. 7.7 Basic CIDR Concepts Eliminates the traditional Classes A, B, C, and replace the network address with a generalised concept of “network-prefix”. Inter-Domain Routers use this arbitrary size network-prefix, to determine the dividing point of network and host addresses, not just the first 3 bits.

CSE5803 Advanced Internet Protocols and Applications (7) 9 Similar to VLSM subnet mask in autonomous systems. Each route is advertised with a bit mask (net mask? vs subnet mask). CIDR and VLSM are essentially the same thing. One allows the recursive address assignment within an organisation and is invisible to the global Internet. While the other permits the recursive allocation of an address block by an Internet Registry to an ISP, or a private organisation. CIDR provides route aggregation like VLSM. This has very positive effects on global routing schemes and tables. CIDR reduced the global internet routing table by more than half. Details will be discussed later in Section 7.9.

CSE5803 Advanced Internet Protocols and Applications (7) Block Address Allocation and Superneting The following table shows commonly deployed CIDR address blocks. It can be seen that from /13 to /23, the allocation blocks are supernets of traditional class B or C.

CSE5803 Advanced Internet Protocols and Applications (7) CIDR and Internet Routing The reduction of routing table through aggregation. The following diagram is from “Internet Routing Architectures” by Bassam Halabi.

CSE5803 Advanced Internet Protocols and Applications (7) 12 Classless routing, single homing through an ISP. If changes ISP, either the IP address changes or injects a more-specific route into the internet. IP change

CSE5803 Advanced Internet Protocols and Applications (7) 13 Multi-homing to the internet can be complex, this may result in routing “black-hole” if the aggregation is not carried out carefully. As illustrated in the example next page, adapted from “Internet Routing Architectures” by Bassam Halabi. The connection to the Internet can also be achieved via private/public IP address translation using Network Address Translation (NAT) protocol discussed later in Section Injection of extra route

CSE5803 Advanced Internet Protocols and Applications (7) 14 We have something wrong in Fig 1, if is the destination. The packet is routed to ISP2 following the longest match algorithm. Fig.1 Wrong Aggregation Fig.2 Correct Route Advertisement

CSE5803 Advanced Internet Protocols and Applications (7) 15 IP address for is: Longest match will be performed on network address of routes. With the wrong aggregation, three routes to choose from: Route /13 has a network address of (no match from the 11 th bit, which means no match at all) Route /13 has a network address of (13 bit match, but not longest) Route /18 has a network address of (18 bit match), selected but wrong. With the correct aggregation, four routes to choose from: Route /13 has no match again. Route /21 has a net. address of (no match from 19 th bit, which means no match at all). Route /20 has a net. address of (no match from the 20 th bit, which means no match at all). Route /13 has 13 bit match and the only match, correctly selected for packet forwarding.

CSE5803 Advanced Internet Protocols and Applications (7) Private Addressing and Network Address Translation (NAT: RFC1613) IANA has reserved the following IP address for private connectivity only (RFC1918). Organisations do not need to get permission to use these IP addresses, and they do not appear at global Internet. 10.x.x.x (a single class A) to (16 contiguous class B) to (256 contiguous class C) These host addresses cannot communicate directly to the global internet and should not be leaked outside the organisation. If privately connected hosts wish to communicate with the global internet, the IP address has to be reassigned or a NAT server is used. Static re-assignment of IP numbers can be complex. The introduction of Dynamic Host Configuration Protocol (DHCP) makes the task a lot easier.

CSE5803 Advanced Internet Protocols and Applications (7) 17 NAT enables private network to connect the Internet without renumbering. It uses a NAT router which is placed at the border of a domain to convert a private IP to an appropriate Internet IP. NAT can have a pool of global IP (<< private IP addresses), and can map many private IP addresses into one global address. This is referred to as NAT overloading. A B NAT router x.y x.w

CSE5803 Advanced Internet Protocols and Applications (7) 18 NAT overloading is achieved by using TCP/UDP ports, known as Port Address Translation (PAT). The NAT router must maintain a lookup table like the one below (source: Each table entry can timeout itself and get deleted if not refreshed in a fixed period of time. NAT automatically creates a firewall and hosts behind a NAT router cannot normally be accessed from outside unless an inbound mapping such as Port Forwarding is available. Source Computer Source Computer's IP Address Source Computer's Port NAT Router's IP Address NAT Router's Assigned Port Number A B C D