Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT)

Slides:



Advertisements
Similar presentations
IP Addressing Introductory material.
Advertisements

4 IP Address (IPv4)  A unique 32-bit number  Identifies an interface (on a host, on a router, …)  Represented in dotted-quad notation
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.
A supernetwork.
TCP/IP Protocol Suite 1 Chapter 5 Objectives Upon completion you will be able to: IP Addresses: Classless Addressing Understand the concept of classless.
1 Spring Semester 2007, Dept. of Computer Science, Technion Internet Networking recitation #1 Subnet + CIDR.
TCP/IP Protocol Suite 1 Chapter 5 Objectives Upon completion you will be able to: IP Addresses: Classless Addressing Understand the concept of classless.
IP Addressing – Dotted-Decimal Notation –An IP address is 32 bits in size –Every IP address is grouped into four 8-bit octets –Octets are separated by.
Subnetting and CIDR Textbook Ch 3.2.5
1 Subnetting and Supernetting Oleh: Abdul Kholiq,S.Kom
1 CIDR Classless Inter-Domain Routing Rizwan Rehman, CCS, DU.
CS 6401 Efficient Addressing Outline Addressing Subnetting Supernetting.
IP Addresses: Classful Addressing An IP address is a 32-bit address.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 5 Subnetting/Supernetting and Classless Addressing.
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.
© 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.
1 IP Addressing: Classful 0 network host 10 network host 110 networkhost 1110 multicast address A B C D class to to
CIDR Classless Inter-Domain Routing
IP Addressing Introductory material. An entire module devoted to IP addresses.
Chapter 5 IP addresses Classless Addressing
CSISCSIS Dr. ClincyLecture1 SUPERNETTING Although class A and B addresses are dwindling – there are plenty of class C addresses The problem with C addresses.
1 Kyung Hee University Chapter 5 IP addresses Classless Addressing.
Copyright © Lopamudra Roychoudhuri
ICS 156: Lecture 2 (part 1) Today:  IP addressing  Data link protocols and ARP  Notes about lab.
© 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.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CLASSLESS INTER-DOMAIN ROUTING {CIDR} & SUBNETTING PHILLIP LAFLEUR NATHAN GRAMMES JONATHAN BENNETT.
21-IP addressing Dr. John P. Abraham Professor UTPA.
HANNAM UNIVERSITY TCP/IP Protocol Suite 1 Chapter 5 Objectives Upon completion you will be able to: IP Addresses: Classless Addressing.
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.
IP Addressing.
1 Kyung Hee University Prof. Choong Seon HONG Subnetting/ Supernetting and Classless Addressing.
Winter 2008CS244a Handout 41 CS244a: An Introduction to Computer Networks Handout 4: Layer 3 and the Internet Protocol (IP) Nick McKeown Professor of Electrical.
Hour 5 Subnetting 1. you will be able to Explain how subnets and supernets are used Explain the benefits of subnetting Develop a subnet mask that meets.
Easy Subnetting. Chapter 4 Objectives Topics Covered in this chapter include: Interpret network diagrams Describe the operation and benefits of using.
IP Addressing.
1 CMPT 471 Networking II Addressing assigning networks and sub-networks © Janice Regan, 2012.
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.
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.
Subnetting and Supernetting.
Introduction to Internetworking. 2 The IP Addressing Scheme (IPv4) (psu.edu) Dotted Decimal Notation: A notation more convenient for humans.
IP Addressing. A 32-bit logical naming convention A dotted-decimal notation is used: – –Each number represents 8 bits. Number is Part.
IP Addressing Introductory material. An entire module devoted to IP addresses.
Network Layer/IP Protocols 1. Outline IP Datagram (IPv4) NAT Connection less and connection oriented service 2.
30/11/1008-Supernetting1 Revision of Classful IP Addressing © Tanenbaum, Prentice Hall International.
IP – Subnetting and CIDR
Chapters 4 & 5 Addressing Part 2 of 2
Subnetting and Supernetting
IP Addressing Introductory material.
IP Addresses: Classful Addressing IP Addresses. CONTENTS INTRODUCTION CLASSFUL ADDRESSING Different Network Classes Subnetting Classless Addressing Supernetting.
Subnetting and Supernetting.
Internet Networking recitation #1
Chapter-5 TCP/IP Suite.
4 Network Layer Part I Computer Networks Tutun Juhana
Lec 9 Subnet 3.1 Computer Networks Al-Mustansiryah University
Chapter 2 Easy Subnetting
IP Addressing Introductory material.
Chapter 5 Addressing Dr. Clincy Lecture.
IP Addressing Introductory material.
Unit 2: IP addressing (Contd.). Delivery and routing of packets
Subnetting/Supernetting and Classless Addressing
IP Addressing Introductory material
Dr. John P. Abraham Professor UTRGV
Chapter 2 Easy Subnetting
Chapter 5 IP addresses Classless Addressing
Introduction to Network
Presentation transcript:

Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT) Subnetting & CIDR Tahir Azim Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT)

Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT) Announcements Participate in NASCON, FAST-NU Islamabad Assignment 1 deadline extended to Tuesday due to no BIT-7 classes on Monday From last time: Packet bursting: An approach to increasing the speed of 802.11g-based wireless networks by unwrapping short 802.11g packets and rebundling them into a larger packet to reduce the impact of mandatory gaps between packets (jwire.com) Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT)

Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT) Subnetting Subnetting is a form of hierarchical routing. Subnets are usually represented via an address plus a subnet mask or “netmask”. e.g. nickm@elaine17.Stanford.EDU > ifconfig hme0 hme0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500 inet 171.64.15.82 netmask ffffff00 broadcast 171.64.15.255 Netmask ffffff00: the first 24 bits are the subnet ID, and the last 8 bits are the host ID. Can also be represented by a “prefix + length”, e.g. 171.64.15.0/24, or just 171.64.15/24. Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT)

Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT) Subnetting CLASS “B” e.g. Company 2 14 16 10 Net ID Host-ID 2 14 16 2 14 16 e.g. Site 10 Net ID 0000 Host-ID 10 Net ID 1111 Host-ID Subnet ID (20) Subnet Host ID (12) Subnet ID (20) Subnet Host ID (12) 2 14 16 2 14 16 e.g. Dept 10 Net ID 000000 Host-ID 10 Net ID 1111011011 Host-ID Subnet ID (22) Subnet Host ID (10) Subnet ID (26) Subnet Host ID (6) Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT)

Routing in the presence of subnets The rest of the Internet is not aware of subnets within a network Levels: site, subnet, host Routing now involves delivery to the site, then the subnet and finally the host Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT)

Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT) Example of subnetting hpr1-rtr To: cenic.net 171.64.74.0/24 171.64.1.131 171.64.1.132/30 171.64.1.133 171.64.1.178 171.64.74.1 171.64.1.161 Class B Address Gates-rtr bbr2-rtr 171.64.1.160/27 171.64.74.58 171.64.0.0/16 AS 32 EndHost 171.64.1.152 border2-rtr 171.64.1.144/28 To: cogentco.com 171.64.1.148 Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT)

Classless Interdomain Routing (CIDR) Addressing The IP address space is broken into line segments, or blocks e.g. Block of 2 addresses, block of 128 addresses etc. Each block is described by a prefix. A prefix is of the form x/y where x indicates the prefix of all addresses in the block, and y indicates the length of the prefix. e.g. The prefix 128.9/16 represents the block containing addresses in the range: 128.9.0.0 … 128.9.255.255. 128.9.0.0 142.12/19 65/8 128.9/16 232-1 216 128.9.16.14 Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT)

Classless Interdomain Routing (CIDR) Addressing 128.9.19/24 128.9.25/24 128.9.16/20 128.9.176/20 Most specific route = “longest matching prefix” 128.9/16 232-1 128.9.16.14 Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT)

Classless Interdomain Routing (CIDR) Addressing Prefix aggregation: If a service provider serves two organizations with prefixes, it can (sometimes) aggregate them to form a shorter prefix. Other routers can refer to this shorter prefix, and so reduce the size of their address table. E.g. ISP serves 128.9.14.0/24 and 128.9.15.0/24, it can tell other routers to send it all packets belonging to the prefix 128.9.14.0/23. ISP Choice: In principle, an organization can keep its prefix if it changes service providers. Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT)

Size of the Routing Table at the core of the Internet Source: http://www.cidr-report.org/ Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT)

Prefix Length Distribution Source: Geoff Huston, Jan 2006 Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT)

Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT) Examples Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT)

Finding the first address What is the first address in the block if one of the addresses is 167.199.170.82/27? Solution: The prefix length is 27, which means that we must keep the first 27 bits as is and change the remaining bits (5) to 0s. The following shows the process: Address in binary: 10100111 11000111 10101010 01010010 Keep the left 27 bits: 10100111 11000111 10101010 01000000 Result in CIDR notation: 167.199.170.64/27 Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT)

Finding the first address What is the first address in the block if one of the addresses is 140.120.84.24/20? Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT)

Finding the last address in the block To the first address, add the number of addresses, minus one OR Set all bits that are not part of the CIDR prefix to 1 Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT)

Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT) Example Find the number of addresses in the block if one of the addresses is 140.120.84.24/20. Solution: The prefix length is 20. The number of addresses in the block is 232−20 or 212 or 4096. Note that this is a large block with 4096 addresses. Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT)

Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT) Example 2 Find the last address in the block if one of the addresses is 140.120.84.24/20. Solution We found in the previous examples that the first address is 140.120.80.0/20 and the number of addresses is 4096. To find the last address, we need to add 4095 (4096 − 1) to the first address. Or, set all bits that are not part of the CIDR prefix to 1 140.120.(0101 1111)2. (1111 1111)2 = 140.120.95.255 Courtesy Nick McKeown (Stanford), Umar Kalim (NIIT)