A supernetwork.

Slides:



Advertisements
Similar presentations
Chapter 5 IPv4 Addresses TCP/IP Protocol Suite
Advertisements

19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
Chapter 19 Network Layer: Logical Addressing Stephen Kim.
1 Computer Communication & Networks Lecture 17 & 18 Network Layer: Logical Addressing Waleed Ejaz.
Logical addressing Engr.Jawad Ali.
Network Layer: Logical Addressing. 4-1 IPv4 ADDRESSES An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device.
TCP/IP Protocol Suite 1 Chapter 5 Objectives Upon completion you will be able to: IP Addresses: Classless Addressing Understand the concept of classless.
COS 420 DAY 7. Agenda Assignment 2 posted Due Feb 13 (next class) Individual Projects Assigned Due March 20 & 23 Classless And Subnet Address Extensions.
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 Subnetting and Supernetting Oleh: Abdul Kholiq,S.Kom
CS 6401 Efficient Addressing Outline Addressing Subnetting Supernetting.
NETE0510 Presented by Dr.Apichan Kanjanavapastit
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 19 Network Layer Logical Addressing © 2012 by McGraw-Hill Education. This is proprietary material.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 5 Subnetting/Supernetting and Classless Addressing.
21-IP addressing Dr. John P. Abraham Professor UTPA.
1 1- What is the fundamental difference between network layer and data-link layer? Data-link layer only deals with efficient transmission of information.
Subnet & Classless Address Extensions Linda Wu (CMPT )
ECE 4110 – Internetwork Programming Subnetting, Supernetting, and Classless Addressing.
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.
Efficient Addressing Outline Addressing Subnetting Supernetting CS 640.
HANNAM UNIVERSITY 1 Chapter 5 Subnetting/Supernetting and Classless Addressing.
1 Kyung Hee University Chapter 5 IP addresses Classless Addressing.
Copyright © Lopamudra Roychoudhuri
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Network Layer: Logical Addressing. Address Space Notations Classful Addressing Classless Addressing Network Address Translation (NAT) Topics Discussed.
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 Kyung Hee University Prof. Choong Seon HONG Subnetting/ Supernetting and Classless Addressing.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 5 IPv4 Addresses.
Chapter 5 IPv4 Address.
21-IP addressing Dr. John P. Abraham Professor UTPA.
IP ADDRESSING Lecture 2: IP addressing Networks and Communication Department 1.
21-IP addressing Dr. John P. Abraham Professor UTPA.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 5 IPv4 Addresses.
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.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Subnetting.
TCP/IP Protocol Suite 1 Chapter 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
Introduction to Internetworking. 2 The IP Addressing Scheme (IPv4) (psu.edu) Dotted Decimal Notation: A notation more convenient for humans.
IP Logical Networks COMP 3270 Computer Networks Computing Science Thompson Rivers University.
IP Addressing. A 32-bit logical naming convention A dotted-decimal notation is used: – –Each number represents 8 bits. Number is Part.
Network Layer/IP Protocols 1. Outline IP Datagram (IPv4) NAT Connection less and connection oriented service 2.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Behrouz A. Forouzan TCP/IP Protocol Suite, 3 rd Ed. IP Addressing.
IP – Subnetting and CIDR
Chapters 4 & 5 Addressing Part 2 of 2
Subnetting and Supernetting
IP Addresses: Classful Addressing IP Addresses. CONTENTS INTRODUCTION CLASSFUL ADDRESSING Different Network Classes Subnetting Classless Addressing Supernetting.
Subnetting and Supernetting.
Chapter 5 IPv4 Addresses TCP/IP Protocol Suite
Chapter-5 TCP/IP Suite.
4 Network Layer Part I Computer Networks Tutun Juhana
Subnetting.
An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device (for example, a computer or a router) to the Internet.
Chapter 5 Addressing Dr. Clincy Lecture.
IDC part II (week 6-12) 6 weeks will cover three layers of interest
Unit 2: IP addressing (Contd.). Delivery and routing of packets
Subnetting/Supernetting and Classless Addressing
Delivery and Forwarding of
Supernetting Recall: subnetting allows an organization to share a single IP network address among multiple physical networks Supernetting (a.k.a. classless.
Dr. John P. Abraham Professor UTRGV
Chapter 5 IP addresses Classless Addressing
Figure 6.11 Configuration for Example 4
Figure 6.6 Default routing
Dr. John P. Abraham Professor UTPA
Introduction to Network
Presentation transcript:

A supernetwork

Comparison of subnet, default, and supernet masks

We need to make a supernetwork out of 16 class C blocks We need to make a supernetwork out of 16 class C blocks. What is the supernet mask? Solution We need 16 blocks. For 16 blocks we need to change four 1s to 0s in the default mask. So the mask is 11111111 11111111 11110000 00000000 or 255.255.240.0

A supernet has a first address of 205. 16. 32 A supernet has a first address of 205.16.32.0 and a supernet mask of 255.255.248.0. A router receives three packets with the following destination addresses: 205.16.37.44 205.16.42.56 205.17.33.76 Which packet belongs to the supernet? We apply the supernet mask to see if we can find the beginning address. 205.16.37.44 AND 255.255.248.0  205.16.32.0 205.16.42.56 AND 255.255.248.0  205.16.40.0 205.17.33.76 AND 255.255.248.0  205.17.32.0 Only the first address belongs to this supernet.

A supernet has a first address of 205. 16. 32 A supernet has a first address of 205.16.32.0 and a supernet mask of 255.255.248.0. How many blocks are in this supernet and what is the range of addresses? Solution The supernet has 21 1s. The default mask has 24 1s. Since the difference is 3, there are 23 or 8 blocks in this supernet. The blocks are 205.16.32.0 to 205.16.39.0. The first address is 205.16.32.0. The last address is 205.16.39.255.

Classless Addressing Number of Addresses in a Block Beginning Address There is only one condition on the number of addresses in a block; it must be a power of 2 (2, 4, 8, . . .). A household may be given a block of 2 addresses. A small business may be given 16 addresses. A large organization may be given 1024 addresses. Beginning Address The beginning address must be evenly divisible by the number of addresses. For example, if a block contains 4 addresses, the beginning address must be divisible by 4. If the block has less than 256 addresses, we need to check only the rightmost byte. If it has less than 65,536 addresses, we need to check only the two rightmost bytes, and so on.

Which of the following can be the beginning address of a block that contains 16 addresses? 205.16.37.32 190.16.42.44 17.17.33.80 123.45.24.52 Solution The address 205.16.37.32 is eligible because 32 is divisible by 16. The address 17.17.33.80 is eligible because 80 is divisible by 16.

Which of the following can be the beginning address of a block that contains 1024 addresses? 205.16.37.32 190.16.42.0 17.17.32.0 123.45.24.52 Solution To be divisible by 1024, the rightmost byte of an address should be 0 and the second rightmost byte must be divisible by 4. Only the address 17.17.32.0 meets this condition.

Mask and slash Notation In subnetting, an organization is given a first address + a subnet mask In supernetting, an organization is given a first address + a supernet mask Similarly, in classless addressing it is given the first address + mask X.Y.Z.W/16 means the mask is 255.255.0.0 (class B) X.Y.Z.W/17 means the mask is 255.255.128.0 (own class) CIDR (Classless Interdomain Routing) Address is classless Routing is interdomain

There are only 8 addresses in this block. A small organization is given a block with the beginning address and the prefix length 205.16.37.24/29 (in slash notation). What is the range of the block? Solution The beginning address is 205.16.37.24. To find the last address we keep the first 29 bits and change the last 3 bits to 1s. Beginning:11001111 00010000 00100101 00011000 (24) Ending : 11001111 00010000 00100101 00011111 (33) There are only 8 addresses in this block.

Finding the network address What is the network address 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 5 bits affect only the last byte. The last byte is 01010010. Changing the last 5 bits to 0s, we get 01000000 or 64. The network address is 167.199.170.64/27.

Subnetting An organization is granted the block 130.34.12.64/26. The organization needs to have four subnets. What are the subnet addresses and the range of addresses for each subnet? Solution The suffix length is 6. This means the total number of addresses in the block is 64 (26). If we create four subnets, each subnet will have 16 addresses.

Let us first find the subnet prefix (subnet mask) Let us first find the subnet prefix (subnet mask). We need four subnets, which means we need to add two more 1s to the site prefix. The subnet prefix is then /28. Subnet 1: 130.34.12.64/28 to 130.34.12.79/28. Subnet 2 : 130.34.12.80/28 to 130.34.12.95/28. Subnet 3: 130.34.12.96/28 to 130.34.12.111/28. Subnet 4: 130.34.12.112/28 to 130.34.12.127/28.

Example An ISP is granted a block of addresses starting with 190.100.0.0/16. The ISP needs to distribute these addresses to three groups of customers as follows: 1. The first group has 64 customers; each needs 256 addresses. 2. The second group has 128 customers; each needs 128 addresses. 3. The third group has 128 customers; each needs 64 addresses. Design the subblocks and give the slash notation for each subblock. Find out how many addresses are still available after these allocations.

Configuration for routing example

Mask Dest. Next Hop I. 255.0.0.0 111.0.0.0 -- m0 255.255.255.224 193.14.5.160 - m2 255.255.255.224 193.14.5.192 - m1 ------------------------------------------------------------------------------------- 255.255.255.255 194.17.21.16 111.20.18.14 m0 ------------------------------------------------------------------------------------- 255.255.255.0 192.16.7.0 111.15.17.32 m0 255.255.255.0 194.17.21.0 111.20.18.14 m0 0.0.0.0 0.0.0.0 111.30.31.18 m0

Data structures and algorithms For Classless lookup One major consideration is speed Speed of finding next hop Speed of making changes to values in the table CIDR address is not self-identifying Router cannot determine the subdivision between prefix and suffix by looking at the address In Classfull addressing Hashing is used to optimize speed lookup, ( router extracts network portion and uses it as a hash key), if same hash function Host key precedes Subnet key precedes Network key Hashing does not work well in CIDR

Classless lookup Searching by mask length Iterate over all possible divisions between prefix and suffix Given a destination address D: Algorithm tries using 32 bits of D, then 31 and so on … For each possible size M, the router extracts M bits from D, assumes it contains a network prefix and looks up the prefix in the table Worst case is 32 searches when no routes exists To find a traditional class B address it needs 16 searches And the default route for 31 searches

Classless lookup (cont.) Searching using a binary trie structure To avoid inefficient searches, classless routing tables are usually stored in a hierarchical data structure A binary trie is a tree with paths determined by the data stored

Classless lookup (cont.) Searching using a binary trie structure A search for address 10010010 11110000 00000000 00000001 fails because no entry in the trie with 100 Each exterior node in must contain a 32 bit address A and a mask M. If search reaches an exterior node then conventional look up algorithm is used What if there is more than one prefix ??? In practice, routing table could Have a network-specific route And a particular subnet of the Same network ????