McGraw-Hill The McGraw-Hill Companies, Inc., 2000

Similar documents
Network Layer/IP Protocols

IP Addresses McGraw-Hill The McGraw-Hill Companies, Inc., 2000

IP Addressing and Subnetting

NETWORK LAYER: IP Addressing

Lecture 8 Network Layer: Logical addressing

TSIN02 - Internetworking

CC231 Introduction to Networks Dr. Ayman A. Abdel-Hamid. Internet Protocol Suite

Computer Networks Lecture -5- IPv4 Addresses. Dr. Abbas Abdulazeez

The identifier used in the IP layer of the TCP/IP protocol suite to identify each device connected to the Internet is called the Internet address or

CIS-331 Final Exam Fall 2015 Total of 120 Points. Version 1

Chapter 19 Network Layer: Logical Addressing 19.1

Chapter 19 Network Layer: Logical Addressing 19.1

LECTURE -4 IP ADDRESSES. IP Addresses: Classful Addressing

CIS-331 Final Exam Spring 2016 Total of 120 Points. Version 1

TSIN02 - Internetworking

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

Chapter 19 Network Layer: Logical Addressing

ETSF10 Internet Protocols Network Layer Protocols

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

Chapter 06 IP Address

Communication at the network layer is host-to-host Length of address. Total number of addresses used by the protocol. IPv4 & IPv6

Figure 11 Two-level addressing in classful addressing

IP Addressing - Subnetting

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Module 7 Internet And Internet Protocol Suite

Internet Fundamentals

CIS 551 / TCOM 401 Computer and Network Security. Spring 2006 Lecture 16

CIS-331 Final Exam Spring 2015 Total of 115 Points. Version 1

CIS-331 Final Exam Spring 2018 Total of 120 Points. Version 1

The Internet Protocol. IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly

LOGICAL ADDRESSING. Faisal Karim Shaikh.

To make a difference between logical address (IP address), which is used at the network layer, and physical address (MAC address),which is used at

Networking Basics. EC512 Spring /15/2015 EC512 - Prof. Thomas Skinner 1

Networking: Network Layer

Linux System Administration

SEN366 (SEN374) (Introduction to) Computer Networks

Department of Computer and IT Engineering University of Kurdistan. Network Layer. By: Dr. Alireza Abdollahpouri

TCP /IP Fundamentals Mr. Cantu

Manipal Institute of Technology

Network Layer PREPARED BY AHMED ABDEL-RAOUF

Network Basic v0.1. Network Basic v0.1. Chapter 3 Internet Protocol. Chapter 3. Internet Protocol

Objectives. Note: An IP address is a 32-bit address. The IP addresses are unique. The address space of IPv4 is 2 32 or 4,294,967,296.

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

5.7 K E Y TE R M S 5.8 SUM M A R Y

Chapter 8 ARP(Address Resolution Protocol) Kyung Hee University

OSI Data Link & Network Layer

INTERNET ARCHITECTURE & PROTOCOLS

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

Each ICMP message contains three fields that define its purpose and provide a checksum. They are TYPE, CODE, and CHECKSUM fields.

The Internet. The Internet is an interconnected collection of netw orks.

OSI Data Link & Network Layer

Data Communication & Computer Networks Week # 13

Chapter 6 Addressing the Network- IPv4

IP - The Internet Protocol

Chapter 18 and 22. IPv4 Address. Data Communications and Networking

Chapter Motivation For Internetworking

Network Layer: outline

Unit C - Network Addressing Objectives Purpose of an IP Address and Subnet Mask Purpose of an IP Address and Subnet Mask

IP address. Subnetting. Ping command in detail. Threads in Python. Sub process in Python

Lab 8 (IP Addressing)

Interconnecting Networks with TCP/IP

Lesson 3. IPv4 and IPv6 Protocols. Chapter-4 L03: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

TCP/IP and the OSI Model

End-to-End Communication

Chapter 7. ARP and RARP MGH T MGH C I 20

Network Layer (4): ICMP

Chapter 2 Review Questions

The Internet Protocol (IP)

IP: Addressing, ARP, Routing

The Internet. 9.1 Introduction. The Internet is a global network that supports a variety of interpersonal and interactive multimedia applications.

Internet Protocol (IP)

Computer Networking: A Top Down Approach Featuring the. Computer Networks with Internet Technology, William

IT220 Network Standards & Protocols. Unit 8: Chapter 8 The Internet Protocol (IP)

Internet Control Message Protocol (ICMP)

Network Layer: Control/data plane, addressing, routers

Lecture 8. Network Layer (cont d) Network Layer 1-1

On Distributed Communications, Rand Report RM-3420-PR, Paul Baran, August 1964

CCNA Exploration Network Fundamentals. Chapter 06 Addressing the Network IPv4

Chapter 5 TCP/IP SUITE

CIS 551 / TCOM 401 Computer and Network Security

Chapter 4 Network Layer

The Interconnection Structure of. The Internet. EECC694 - Shaaban

OSI Data Link & Network Layer

Kent State University

Tutorial 9. SOLUTION Since the number of supported interfaces is different for each subnet, this is a Variable- Length Subnet Masking (VLSM) problem.

Department of Computer Science and Engineering. CSE 3214: Computer Network Protocols and Applications Instructor: N. Vlajic Date: Feb 23, 2016

TCP/IP Networking. Training Details. About Training. About Training. What You'll Learn. Training Time : 9 Hours. Capacity : 12

ET4254 Communications and Networking 1

CS-435 spring semester Network Technology & Programming Laboratory. Stefanos Papadakis & Manolis Spanakis

CS 5520/ECE 5590NA: Network Architecture I Spring Lecture 10: IP Routing and Addressing Extensions

IP Address Assignment

IPv6. (Internet Protocol version 6)

Internet Addresses (You should read Chapter 4 in Forouzan)

Integrated Services. Integrated Services. RSVP Resource reservation Protocol. Expedited Forwarding. Assured Forwarding.

Assignment - 1 Chap. 1 Wired LAN s

Just enough TCP/IP. Protocol Overview. Connection Types in TCP/IP. Control Mechanisms. Borrowed from my ITS475/575 class the ITL

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

Network Layer: Logical Addressing

Transcription:

!! McGraw-Hill The McGraw-Hill Companies, Inc., 2000

"#$% & '$# )1 ) ) )6 ) )* )- ). )0 )1! )11 )1 )1 )16 )1 3'' 4", ( ( $ ( $ $$+, $$, /+ & 23,4 )/+ &4 $ 53"

Network Layer

Position of network layer

Figure 19.4 Network layer at the source

Figure 19.5 Network layer at a router

Figure 19.6 Network layer at the destination

19.2 Addressing Internet Address Classful Addressing Subnetting Network Address Translation

Note: An IP address is a 32-bit address. The IP addresses are unique and universal.

Figure 19.9 Dotted-decimal notation

Example 1 Change the following IP addresses from binary notation to dotteddecimal notation. a. 10000001 00001011 00001011 11101111 b. 11111001 10011011 11111011 00001111 Solution We replace each group of 8 bits with its equivalent decimal number (see Appendix B) and add dots for separation: a. 129.11.11.239 b. 249.155.251.15

Example 2 Change the following IP addresses from dotted-decimal notation to binary notation. a. 111.56.45.78 b. 75.45.34.78 Solution We replace each decimal number with its binary equivalent a. 01101111 00111000 00101101 01001110 b. 01001011 00101101 00100010 01001110

Note: In classful addressing, the address space is divided into five classes: A, B, C, D, and E.

Figure 19.10 Finding the class in binary notation

Figure 19.11 Finding the address class

Example 3 Find the class of each address: a. 00000001 00001011 00001011 11101111 b. 11110011 10011011 11111011 00001111 Solution See the procedure in Figure 19.11. 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.

Figure 19.12 Finding the class in decimal notation

Example 4 Find the class of each address: a. 227.12.14.87 b. 252.5.15.111 c. 134.11.78.56 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.

Figure 19.13 Netid and hostid

Figure 19.14 Blocks in class A

Note: Millions of class A addresses are wasted.

Figure 19.15 Blocks in class B

Note: Many class B addresses are wasted.

Note: The number of addresses in class C is smaller than the needs of most organizations.

Figure 19.16 Blocks in class C

Figure 19.17 Network address

Note: In classful addressing, the network address is the one that is assigned to the organization.

Example 5 Given the address 23.56.7.91, 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 (56.7.91) with 0s. Therefore, the network address is 23.0.0.0.

Example 6 Given the address 132.6.17.85, 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 132.6.0.0.

Example 7 Given the network address 17.0.0.0, find the class. Solution The class is A because the netid is only 1 byte.

Note: A network address is different from a netid. A network address has both netid and hostid, with 0s for the hostid.

Figure 19.18 Sample internet

Note: IP addresses are designed with two levels of hierarchy.

Figure 19.19 A network with two levels of hierarchy

Figure 19.20 A network with three levels of hierarchy (subnetted)

Figure 19.21 Addresses in a network with and without subnetting

Table 19.1 Default masks Class In Binary In Dotted- Decimal Using Slash A 11111111 00000000 00000000 00000000 255.0.0.0 /8 B 11111111 11111111 00000000 00000000 255.255.0.0 /16 C 11111111 111111111 11111111 00000000 255.255.255.0 /24

Note: 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.

Example 8 A router outside the organization receives a packet with destination address 190.240.7.91. 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 255.255.0.0. The router ANDs this mask with the address to get 190.240.0.0. 3. 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.

Figure 19.23 Subnet mask

Example 9 A router inside the organization receives the same packet with destination address 190.240.33.91. 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 19.23. 2. The router applies the mask to the address, 190.240.33.91. The subnet address is 190.240.32.0. 3. 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.

"% $$ Binary Representation Dotted Decimal IP address 11000000.11100100.00010001.00111001 192.228.17.57 Subnet mask 11111111.11111111.11111111.11100000 255.255.255.224 Bitwise AND o f address and mask (resultant network/subnet number) 11000000.11100100.00010001.00100000 192.228.17.32 Subnet number 11000000.11100100.00010001.001 1 Host number 00000000.00000000.00000000.00011001 25

Figure 19.25 NAT Network Address Translation Figure 19.26 Address translation

Figure 19.27 Translation

Table 19.3 Five-column translation table Private Address Private Port External Address External Port Transport Protocol 172.18.3.1 1400 25.8.3.2 80 TCP 172.18.3.2 1401 25.8.3.2 80 TCP...............

+& $ 7 8 $,4 ) 7 9,4 : ; <' <,4 (' 1!!!!9 1! =1*;---; 1*> 1-1*!!9 1-1 1 =1;!6.;-* > 10 1*.!!9 10 1*. 1*=*;* >

? (8%$# #'< 7 $ %# < 8%$ $' 8%$# $%< %<#<$< $<

,4?,48%$ $# <$ @, <=,@> < # @$ $ < 3< << < $ $$<*6%=.> <$ $<

? A$

,4'6B

Figure 20.9 Example of checksum calculation

,4? (%$# A$ 6!!!%# &C1!! %#

Figure 20.1 Protocols at network layer

Figure 20.2 ARP operation An ARP request is broadcast; an ARP reply is unicast.

Figure 20.3 ARP packet

Figure 20.5 Four cases using ARP

Example 1 A host with IP address 130.23.3.20 and physical address B23455102210 has a packet to send to another host with IP address 130.23.43.25 and physical address A46EF45983AB. The two hosts are on the same Ethernet network. Show the ARP request and reply packets encapsulated in Ethernet frames. Solution

Figure 20.6 Example 1

20.3 ICMP Internet Control Message Protocol ICMP always reports error messages to the original source.

Figure 20.13 Error-reporting messages

Figure 20.14 Query messages

20.4 IPv6 IPv6 Addresses Categories of Addresses IPv6 Packet Format Fragmentation ICMPv6 Transition

Figure 20.15 IPv6 address

Figure 20.19 Format of an IPv6 datagram

Figure 20.21 Three transition strategies

Figure 20.22 Three transition strategies

& $ ()*! " # $ ' %& %& %& %& %)*! " + # $ %& %& % % %& %& $)*, -*! *$ -*" *# $)*, -*! *$ -*" *# $)*, -*! *$ $)*, -*! *$!.."* #..$* "..+* "..+* %& %& %& %& McGraw-Hill % % The McGraw-Hill Companies, Inc., 2004

Figure 20.24 Header translation