Routing and Addressing

Slides:



Advertisements
Similar presentations
Classifying Network Addressing
Advertisements

© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Introduction to IPv4 Introduction to Networks.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
Chapter 9a Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Explain why routing is necessary for hosts on different.
IP Addressing and Subnetting
Instructor: Sam Nanavaty DNS and IP addressing. Instructor: Sam Nanavaty How does a router know where to route the information when you simply type in.
Prepared By: Eng.Ola M. Abd El-Latif
2440: 141 Web Site Administration IP Addressing Instructor: Enoch E. Damson.
1 Version 3.0 Module 10 Routing Fundamentals and Subnetting.
IP Addressing & Subnetting
© 2007 Cisco Systems, Inc. All rights reserved.ICND1 v1.0—4-1 LAN Connections Constructing a Network Addressing Scheme.
IP Addressing Internet Protocol (IP) A unique identifier for host, on an IP network 32-bit binary number, usually expressed as 4 “dotted decimal” values.
Chapter 21 IP Addressing “If we all did the things we are capable of doing, we would literally astound ourselves” - Thomas Alva Edison,
IP Addressing & Subnetting Made Easy. Part 1: Working with IP Addresses.
IP Addressing. Each TCP/IP host is identified by a logical IP address. –The IP address is a network layer address –No dependence on the Data-Link layer.
NETWORK LAYER IP Addressing 1. ANNOUNCEMENT: Rescheduled  NO PRACTICAL SESSIONS ON TUESDAY 22, November 2010  Rescheduled sessions: MONDAY: November.
Week 3 - IP addressing 4 Introduction to IP addressing 4 Classes of IP addressing 4 Why Subnet Masks are necessary? 4 How to create subnet masks.
Types of Addresses in IPv4 Network Range
1 26-Aug-15 Addressing the network using IPv4 Lecture # 2 Engr. Orland G. Basas Prepared by: Engr. Orland G. Basas IT Lecturer.
4: Addressing Working At A Small-to-Medium Business or ISP.
Chap 10 Routing and Addressing Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
1 Real Networkers don’t use Decimal! Part 1. Binary & Interpreting IP Addresses October 19, 2004.
IP Addressing and Network Software. IP Addressing  A computer somewhere in the world needs to communicate with another computer somewhere else in the.
IP Addressing Basics LAB 8.
© 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.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Addressing Networking for Home and Small Businesses – Chapter 5.
IP Addresses & Classes Presented By: M.Usman Khan Ghauri Nauman Aslam.
11 NETWORK LAYER PROTOCOLS Chapter 5 IP IPX NetBEUI AppleTalk.
The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung.
Chapter 18 IP: Internet Protocol Addresses
Chapter 4, slide: 1 CS 372 – introduction to computer networks* Friday July 23, 2010 Announcements: r Midterms are graded. r Lab 4 is posted. Acknowledgement:
SYSTEM ADMINISTRATION Chapter 8 Internet Protocol (IP) Addressing.
IP ADDRESSING, SUBNETTING & VLSM 1. Decimal vs. Binary Numbers – Decimal numbers are represented by the numbers 0 through 9. – Binary numbers are represented.
Addressing the Network - IPV4 Part II
Addressing IP v4 W.Lilakiatsakun. Anatomy of IPv4 (1) Dotted Decimal Address Network Address Host Address.
Cisco – Chapter 8&9 - Ethernet Technologies and Ethernet Switching TCP/IP IP Addressing ARP and RARP.
LECTURE ON IP Addressing. What is Networking? –by ‘computer network’ we mean the interconnection between different computers. Why Networking? –to share.
10 Semester 1 JEOPARDY Frank Mann LayersPathsPathsSubnetsSubnetsClassesClassesReservedReserved
Chapter 4 Objectives Upon completion you will be able to: Classful Internet Addressing Understand IPv4 addresses and classes Identify the class of an.
Layer 3: Internet Protocol.  Content IP Address within the IP Header. IP Address Classes. Subnetting and Creating a Subnet. Network Layer and Path Determination.
IP Addressing Lecture # 1 Hassan Shuja 01/31/2006.
The Saigon CTT Semester 1 CHAPTER 10 Wael Yousif.
Chapter 5.  Upon completion of this chapter, you should be able to:  Configure IP addresses  Identify & select valid IP addresses for networks  Configure.
Chapter 5b.  Upon completion of this chapter, you should be able to:  Subnet an IPv4 address to make separate networks out of one address given  Use.
Network layer (Part III)
CS470 Computer Networking Protocols
Introduction to Computer Networking
Lecture#7: Subnetting IP Networks
1 Layer 3: Routing & Addressing Honolulu Community College Cisco Academy Training Center Semester 1 Version
Layer 3 Routing and Addressing. Layer 3 Responsibilities Move data through a set of networks. Use a hierarchical addressing scheme. Segment network and.
Cisco – Chapter 10 - Routers IP Addressing Subnetmasking.
Chapter 15 PPT for IPV4 and IPV6 Working with IP Addresses.
IP Addressing, Sub-netting & VLSM
Internet Architecture
IP – Subnetting and CIDR
IP Addressing and Subnetting
Instructor Materials Chapter 8: Subnetting IP Networks
Chapter-5 TCP/IP Suite.
Chapter 8: Subnetting IP Networks
CS4470 Computer Networking Protocols
Introduction  Hector Macleod  CCNA student  Systems Integration Engineer  Subject - IP addressing.
Chapter 5 Working with IP Addresses
Chapter 9: Subnetting IP Networks
Chapter 8: Subnetting IP Networks
Chapter 9: Subnetting IP Networks
Subnetting Surasak Sanguanpong
Data Communications and Networking
IP Addressing & Subnetting
Lec2: Experiment Designing the network, IP addressing and Subnets, designing using Variable Length Subnet Mask Dr. Mohamed Abd-Eldayem References: CCNA.
Presentation transcript:

Routing and Addressing Layer 3 Routing and Addressing

Layer 3 Responsibilities move data through a set of networks use a hierarchical addressing scheme (opposed to MAC addressing, which is flat) segment network and control flow of traffic reduce congestion talk to other networks

Layer 3 Devices Routers interconnect network segments or entire networks make logical decisions based on IP addresses determine best path for data on an internetwork (routing of packets)

Path Determination the process the router uses to choose the next hop in the path the packet travels The router uses the network address to identify the destination network of a packet within an internetwork. IP addresses can be assigned by a network administrator or automatically (dynamically).

Routers connect separate networks, routers make best path decisions based on Layer 3 information, and routers actually switch packets from incoming ports to appropriate outgoing ports. Without routers you could not connect separate networks efficiently, there would be no devices intelligent enough to route packets along a best path nor to switch them to that best path.

Layer 3 Packet/Datagram Header includes source AND destination addresses

Network Layer Addresses IP addresses are 32 bits long. They are represented as four octets in dotted decimal format. 233.14.17.0 The IP address has two components: The network ID The host ID

Layer 3 Addresses Network ID Host ID assigned by ARIN (www.arin.net) identifies the network to which a device is attached may be identified by one, two, or three of the first three octets Host ID assigned by a network administrator identifies the specific device on that network may be identified by one, two, or three of the last three octets

IP Addresses Class A N H Class B Class C 32 bit address represented as 8 bit dotted decimals different class addresses reserve different amounts of bits for the network and host portions of the address Class A N H Class B Class C

Number of Hosts The maximum number of hosts vary for each class. Class A has 16,777,214 available hosts (224 –2) Class B has 65,534 available hosts (216 –2) Class C has 254 available hosts (28 –2) The first address in each network is reserved for the network address and the last address is reserved for the broadcast address.

Classes How do you know what class an IP address is in? 0–127 Class A address 128-191 Class B address 192–223 Class C address 224–239 Class D - Multicast 240–255 Class E - Research

There are certain IP address ranges reserved for private IP addressing schemes. Not everyone needs connectivity to the Internet. Another relevant discussion is IP address depletion. Various schemes are being pursued to deal with IP address depletion. First there is NAT. Second there is CIDR. Third there is IP v6. While all of these have there benefits, you should be well-grounded in classful IP addresses.

Recognizing Class in Binary Format 1 Class C Class B Class A 32s place 64s place 128s place Initial bit pattern in first octet of IP address.

Reserved Addresses Network Address (wire address) – This is an IP address that ends with binary 0s in the host part of the address. Class A network address example: 113.0.0.0 Hosts on a network can only communicate directly with other hosts if they have the same network ID. If they don’t, they will not be able to communicate unless there is another device connecting the networks.

(Remember decimal 255 = binary 11111111) Reserved Addresses Broadcast Address – is used to send data to all of the devices on a network. Broadcast IP addresses end with binary 1s in the host part of the address. Class B broadcast address example: 176.10.255.255 (Remember decimal 255 = binary 11111111)

For a Class A address 99. 0 would be a reserved network number and 99 For a Class A address 99.0.0.0 would be a reserved network number and 99.255.255.255 would be a broadcast number. For a Class B address 156.1.0.0 would be a reserved network "wire" number and 156.1.255.255 would be a broadcast number. For a Class C address 203.1.17.0 would be a reserved network number and 203.1.17.255 would be a broadcast number. Once subnets are created, the reserved network numbers and broadcast numbers become less obvious and require more work to compute.

You must recognize the number of bits in the network and host portions of all three classes of IP addresses. If you can recognize this, then it is a matter of powers of 2 to determine how many hosts are intrinsically part of classful IP addressing. Remember that the first address on each segment is reserved for the network number and the final address on each segment is reserved for broadcasts.

Network administrators sometimes need to divide networks, particularly large networks, into smaller networks, called subnetworks, in order to provide extra flexibility. Most of the time subnetworks are simply referred to as subnets.

The primary reason for using a subnet is to reduce the size of a broadcast domain. Broadcasts are sent to all hosts on a network or subnetwork. When broadcast traffic begins to consume too much of the available bandwidth, network administrators may chose to reduce the size of the broadcast domain.

An unfortunate by-product of creating subnetworks is that the reserved network and broadcast numbers now exist for each and every subnetwork created. Thus entire blocks of IP addresses, which begin with these subnetwork ID and subnetwork broadcast numbers, are wasted. So the network administrator must strike a balance between the number of subnets required, the hosts per subnet that is acceptable, and the resulting waste of addresses.

Basics of Subnetting Subnetworks are smaller divisions of networks. They provide addressing flexibility. Subnet addresses are assigned locally, usually by a network administrator. Subnets reduce a broadcast domain.

Subnet Addresses Include Class A, B, or C network portion plus a subnet field and a host field. Bits are borrowed from the host field and are designated as the subnet field. Network Subnet Host

How many bits can I borrow? The minimum number of bits you can borrow is two. Size of Host Field Maximum # of borrowed bits Class A 24 22 Class B 16 14 Class C 8 6

To create a subnet address, a network administrator borrows bits from the host field and designates them as the subnet field. The minimum number of bits that can be borrowed is 2. If you were to borrow only 1 bit, to create a subnet, then you would only have a network number - the .0 network - and the broadcast number - the .1 network. The maximum number of bits that can be borrowed can be can any number that leaves at least 2 bits, remaining, for the host number.

The longer name for subnet mask is instructive -- "extended network prefix". The mask's ones show how far we are extending the network number (at the expense of the host numbers).

Default Subnet Masks Class A 255.0.0.0 Class B 255.255.0.0 Class C 255.255.255.0

Calculating a Subnet We will subnet the IP address: 223.14.17.0 What class IP address is this? Class C

Step #1 Determine the default subnet mask Class C default subnet mask: 255.255.255.0

Step #2 Determine the number of subnets needed and the number of hosts needed on each subnet to determine how many bits to borrow from the host ID. Need: 13 subnets 10 hosts on each subnet

Step #3 Figure the actual number of subnets and hosts by borrowing bits from host ID. Let’s see how many subnets and hosts we will have by borrowing 4 bits from the host.

16 possible hosts for each subnet Step #3 continued… 223.14.17.0 X X X X H H H H 16 possible subnets 16 possible hosts for each subnet

Step #3 continued… We get 16 possible subnets and 16 possible hosts for each subnet because: For the 4 bits borrowed each bit can be a 1 or a 0 leaving you with 24 or 16 possible combinations. The same goes for the 4 leftover host bits. Important: There are only 14 available subnets and hosts on each subnet. Why?

Step #3 continued… Because you cannot use the first and last subnet. Because you cannot use the first and last address within each subnet. For each, one is the broadcast address and one is the network address.

Step #4 Determine the subnet mask. 223.14.17.0 X X X X H H H H Where X represents the borrowed bits for subnetting.

Step #4 continued… Add the place values of X together to get the last octet decimal value of the subnet mask. 128 + 64 + 32 + 16 = 240 The subnet mask is: 255.255.255.240 The subnet mask is used to reveal the subnet and host address fields in IP addresses.

Step 5 Determine the ranges of host addresses for each subnet. Subnet Bits Host Bits In Decimal 1 0000 0000-1111 .0 -.15 2 0001 .16 - .31 3 0010 .32 - .47 4 0011 .48 - .63 5 0100 .64 - .79 6 0101 .80 - .95 7 0110 .96 - .111 8 0111 .112 - .127

Step 5 continued… Subnet # Subnet Bits Host Bits In Decimal 9 1000 0000-1111 .128 -.143 10 1001 .144 - .159 11 1010 .160 - .175 12 1011 .176 - .191 13 1100 .192 - .207 14 1101 .208 - .223 15 1110 .224 - .239 16 1111 .240 - .255

Step 5 continued… There are 16 possible subnets. There are 16 possible hosts on each subnet. That equals 256 possible hosts. What are our available subnets? What are our available hosts on each subnet? Why?????

Figuring Subnet Network Addresses Step #1: Change the IP host address to binary. Step #2: Change the subnet mask to binary. Step #3: Use the boolean operator AND to combine the two. Step #4: Convert the network binary address to dotted decimal.

Figuring Subnet Network Addresses IP Host 172.16.2.120 Subnet Mask 255.255.255.0 10101100.00010000.00000010.01111000 11111111.11111111.11111111.00000000 AND 10101100.00010000.00000010.00000000 172.16.2.0 This is the subnet network address. It is the lowest numbered address on the subnet network. It can help determine path.

Types of IP Addressing Problems Problem: Given 195.137.92.0 and needing 8 usable subnets, find the subnetwork numbers, the ranges of host numbers, and subnetwork broadcast numbers.

SOLUTION: IP Address is a class C. Default subnet mask is 255.255.255.0. We need to extend the network number by enough bits to give 8 usable subnets. Stealing 2 bits yields 2 usable subnets, stealing 3 bits yields 6 usable subnets, so we must steal 4 bits to get 14 usable subnets, of which we needed 8. This makes the subnet mask 255.255.255.240. So the Network number is 195.137.92.NNNN HHHH where Ns stand for network extension bits (subnets) and Hs stand for host numbers. Next we must number the subnets; there are 16 combinations of 4 bit binary numbers but they retain their place value within the last octet.

The key to understanding the result of the Boolean ANDing of an IP address and a subnet mask is to realize that once created, subnetworks are valid network numbers as far as the "outside" world is concerned. So as with the earlier calculation, the bit-by-bit ANDing of the IP address and the subnet mask gives the subnetwork number.

The router performs the Boolean operations, the most important of which is the AND operation. In order to find the network ID of a subnet, the router must take the IP address, and the subnet mask, and logically, AND them together. The resulting number is the network/subnetwork number.

Check Your Understanding Lab Activities Check Your Understanding Journal