McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer PART IV.

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.
Chapter 19 Network Layer: Logical Addressing Stephen Kim.
1 Computer Communication & Networks Lecture 17 & 18 Network Layer: Logical Addressing Waleed Ejaz.
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 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
Chapter 5 IPv4 Addresses TCP/IP Protocol Suite
TCP/IP Protocol Suite 1 Chapter 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 PART IV NETWORK LAYER.
Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.
7/3/2015 Unit-3 : Network Layer 1 CS 1302 Computer Networks — Unit - 3 — — Network Layer — Text Book Behrouz.A. Forouzan, “Data communication and Networking”,
McGraw-Hill©The McGraw-Hill Companies, Inc., 2001 Chapter 24 TCP/IP.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 4 IP Addresses: Classful Addressing.
IP Addresses: Classful Addressing An IP address is a 32-bit address.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 19 Network Layer: Logical Addressing
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.
IP-adresses and subnet masks. Figure 19.9 Dotted-decimal notation.
Fall 2006Computer Networks19-1 Chapter 19. Host-to-Host Delivery: Internetworking, Addressing, and Routing 19.1 Internetworks 19.2 Addressing 19.3 Routing.
1 Chapter 24 TCP/IP. 2 An Internet According to TCP/IP.
1 Kyung Hee University Part 4 : Network Layer. 2 Kyung Hee University Role and Position of Network Layer o Network layer in the Internet model is responsible.
IP Addressing and Network Software. IP Addressing  A computer somewhere in the world needs to communicate with another computer somewhere else in the.
Introduction to Network Layer
November 29, 2004 Prof. Paul Lin 1 CPET Internetworking, Addressing, and Routing Paul I-Hai Lin, Professor Electrical and Computer Engineering.
 An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 SUBNETTING.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 4 Network Layer.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 IP Addresses: Classful Addressing Teeratorn Saneeyeng, KMUTNB.
Network Layer: Logical Addressing. Address Space Notations Classful Addressing Classless Addressing Network Address Translation (NAT) Topics Discussed.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2003 Chapter 6 Delivery and Routing of IP Packets.
Network Protocols Chapter 5 (TCP/IP Suite Book): IPv4 Addresses
Chapter 4 IP Addressing : Classful Addressing
Chapter 4 Objectives Upon completion you will be able to: Classful Internet Addressing Understand IPv4 addresses and classes Identify the class of an.
1 Chapter 4 IP Addressing : Classful Addressing Chapter 4 IP Addressing : Classful Addressing Mi-Jung Choi Dept. of Computer Science, KUN
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 5 IPv4 Addresses.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer: 19.1 Internetworks 19.2 Addressing Classful, Classless addressing, NAT 19.3 Routing.
CS4500CS4500 Dr. ClincyLecture1 Lecture #6 Chapter 5: Addressing (part 1 of 3) Address Structure Classful Addressing Number Systems (Appendix B) Mask –
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 5 IPv4 Address.
NETWORK LAYER.
IP ADDRESSING Lecture 2: IP addressing Networks and Communication Department 1.
CS4500CS4500 Dr. ClincyLecture1 Lecture #1 Chapter 5: Addressing (part 1 of 3)
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.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Subnetting.
TCP/IP Protocol Suite 1 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes Identify.
1 Kyung Hee University Chapter 19 Network Layer: Logical Addressing.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 IP Addresses: Classful Addressing.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
UNIT 4 NETWORK LAYER. Position of network layer 7/8/2016 UNIT-3 : NETWORK LAYER 2.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Subnetting/Supernetting and Classless Addressing.
IP Addresses: Classful Addressing
NET 221D:Computer Networks Fundamentals
IP Addresses: Classful Addressing IP Addresses. CONTENTS INTRODUCTION CLASSFUL ADDRESSING Different Network Classes Subnetting Classless Addressing Supernetting.
Network Layer, and Logical Addresses
Chapter 5 IPv4 Addresses TCP/IP Protocol Suite
Chapter-5 TCP/IP Suite.
PART IV Network Layer.
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.
CS 1302 Computer Networks — Unit - 3 — — Network Layer —
IP Addresses: Classful Addressing
Chapter 19 Network Layer: Logical Addressing
Data Communications and Networking
Part IV Network layer 10. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Introduction to Network
Presentation transcript:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer PART IV

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Position of network layer

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network layer duties

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapters Chapter 19 Host-to-Host Delivery Chapter 20 Network Layer Protocols Chapter 21 Unicast and Multicast Routing Protocols

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 19 Host-to-Host Delivery: Internetworking, Addressing, and Routing

McGraw-Hill©The McGraw-Hill Companies, Inc., Internetworks Need For Network Layer Internet As A Packet-Switched Network Internet As A Connectionless Network

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 19.1 Internetwork

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 19.2 Links in an internetwork

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 19.3 Network layer in an internetwork

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 19.4 Network layer at the source

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 19.5 Network layer at a router

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 19.6 Network layer at the destination

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 19.7 Switching

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 19.8 Datagram approach

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Switching at the network layer in the Internet is done using the datagram approach to packet switching. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Communication at the network layer in the Internet is connectionless. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., Addressing Internet Address Classful Addressing Supernetting Subnetting Classless Addressing Dynamic Address Configuration Network Address Translation

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 An IP address is a 32-bit address. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 The IP addresses are unique and universal. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 19.9 Dotted-decimal notation

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 The binary, decimal, and hexadecimal number systems are reviewed in Appendix B. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Example 1 Change the following IP addresses from binary notation to dotted- decimal notation. a b Solution We replace each group of 8 bits with its equivalent decimal number (see Appendix B) and add dots for separation: a b

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Example 2 Change the following IP addresses from dotted-decimal notation to binary notation. a b Solution We replace each decimal number with its binary equivalent (see Appendix B): a b

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 In classful addressing, the address space is divided into five classes: A, B, C, D, and E. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Finding the class in binary notation

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Finding the address class

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Example 3 Find the class of each address: 0 a b Solution See the procedure in Figure a.The first bit is 0; this is a class A address. b.The first 4 bits are 1s; this is a class E address.

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Finding the class in decimal notation

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Example 4 Find the class of each address: a b c Solution a.The first byte is 227 (between 224 and 239); the class is D. b.The first byte is 252 (between 240 and 255); the class is E. c.The first byte is 134 (between 128 and 191); the class is B.

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Netid and hostid

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Blocks in class A

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Millions of class A addresses are wasted. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Blocks in class B

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Many class B addresses are wasted. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 The number of addresses in class C is smaller than the needs of most organizations. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Blocks in class C

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Network address

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 In classful addressing, the network address is the one that is assigned to the organization. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Example 5 Given the address , find the network address. Solution The class is A. Only the first byte defines the netid. We can find the network address by replacing the hostid bytes ( ) with 0s. Therefore, the network address is

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Example 6 Given the address , find the network address. Solution The class is B. The first 2 bytes defines the netid. We can find the network address by replacing the hostid bytes (17.85) with 0s. Therefore, the network address is

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Example 7 Given the network address , find the class. Solution The class is A because the netid is only 1 byte.

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 A network address is different from a netid. A network address has both netid and hostid, with 0s for the hostid. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Sample internet

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 IP addresses are designed with two levels of hierarchy. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure A network with two levels of hierarchy

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure A network with three levels of hierarchy (subnetted)

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Addresses in a network with and without subnetting

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Hierarchy concept in a telephone number

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Table 19.1 Default masks Class In Binary In Dotted- Decimal Using Slash A /8 B /16 C /24

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 The network address can be found by applying the default mask to any address in the block (including itself). It retains the netid of the block and sets the hostid to 0s. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Example 8 A router outside the organization receives a packet with destination address Show how it finds the network address to route the packet. Solution The router follows three steps: 1.The router looks at the first byte of the address to find the class. It is class B. 2.The default mask for class B is The router ANDs this mask with the address to get The router looks in its routing table to find out how to route the packet to this destination. Later, we will see what happens if this destination does not exist.

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Subnet mask

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Example 9 A router inside the organization receives the same packet with destination address Show how it finds the subnetwork address to route the packet. Solution The router follows three steps: 1.The router must know the mask. We assume it is /19, as shown in Figure The router applies the mask to the address, The subnet address is The router looks in its routing table to find how to route the packet to this destination. Later, we will see what happens if this destination does not exist.

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure DHCP transition diagram

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Table 19.2 Default masks Range Total to to to

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure NAT

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Address translation

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Translation

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Table 19.3 Five-column translation table Private Address Private Port External Address External Port Transport Protocol TCP TCP...

McGraw-Hill©The McGraw-Hill Companies, Inc., Routing Routing Techniques Static Versus Dynamic Routing Routing Table for Classful Addressing Routing Table for Classless Addressing

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Next-hop routing

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Network-specific routing

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Host-specific routing

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Default routing

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Classful addressing routing table

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Example 10 Using the table in Figure 19.32, the router receives a packet for destination For each row, the mask is applied to the destination address until a match with the destination address is found. In this example, the router sends the packet through interface m0 (host specific).

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Example 11 Using the table in Figure 19.32, the router receives a packet for destination For each row, the mask is applied to the destination address until a match with the next-hop address is found. In this example, the router sends the packet through interface m2 (network specific).

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Example 12 Using the table in Figure 19.32, the router receives a packet for destination For each row, the mask is applied to the destination address, but no match is found. In this example, the router sends the packet through the default interface m0.