Network Layer

Views:
 
Category: Education
     
 

Presentation Description

No description available.

Comments

Presentation Transcript

Slide 1: 

Network Layer PART IV

Slide 2: 

Position of network layer

Slide 3: 

Network layer duties

Slide 4: 

Chapters Chapter 19 Host-to-Host Delivery Chapter 20 Network Layer Protocols Chapter 21 Unicast and Multicast Routing Protocols

Slide 5: 

Chapter 19 Host-to-HostDelivery: Internetworking, Addressing, and Routing

Slide 6: 

Figure Protocols at network layer

Slide 7: 

IP Datagram Fragmentation

Slide 8: 

Figure IP datagram

Slide 9: 

The total length field defines the total length of the datagram including the header. Note:

Slide 10: 

Addressing Internet Address Classful Addressing Supernetting Subnetting Classless Addressing Dynamic Address Configuration Network Address Translation

Slide 11: 

An IP address is a 32-bit address. Note:

Slide 12: 

The IP addresses are unique and universal. Note:

Slide 13: 

Figure Dotted-decimal notation

Slide 14: 

The binary, decimal, and hexadecimal number systems are reviewed in Appendix B. Note:

Slide 15: 

Example 1 Change the following IP addresses from binary notation to dotted-decimal 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

Slide 16: 

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 (see Appendix B): a. 01101111 00111000 00101101 01001110 b. 01001011 00101101 00100010 01001110

Slide 17: 

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

Slide 18: 

Figure Finding the class in binary notation

Slide 19: 

Figure Finding the address class

Slide 20: 

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.

Slide 21: 

Figure Finding the class in decimal notation

Slide 22: 

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.

Slide 23: 

Figure Netid and hostid

Slide 24: 

Figure Blocks in class A

Slide 25: 

Millions of class A addresses are wasted. Note:

Slide 26: 

Figure Blocks in class B

Slide 27: 

Many class B addresses are wasted. Note:

Slide 28: 

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

Slide 29: 

Figure Blocks in class C

Slide 30: 

In classful addressing, a large part of the available addresses are wasted. Note:

Slide 31: 

Figure Network address In classful addressing, an IP address in class A, B or C is divided into netid and hostid 1st byte – Netid Next 3 bytes - Hostid 1st 2 bytes – Netid Next 2 bytes - Hostid 1st 3 bytes – Netid Next 1 byte - Hostid

Slide 32: 

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

Slide 33: 

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

Mask : 

Mask A mask is a 32 bit number made of contiguous 1s followed by contiguous 0s The default masks for classes A,B and C are as shown in the table The mask can help in finding netid and hostid Note: No mask concept in Class D & E

Slide 35: 

The network address can be foundby applying the default mask to anyaddress in the block (including itself).It retains the netid of the block and sets the hostid to 0s. Note:

Slide 36: 

Table 19.1 Default masks

Slide 37: 

Figure Sample internet

Slide 38: 

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.

Slide 39: 

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.

Slide 40: 

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.

Subnetting : 

Subnetting If an organization was granted a large block in class A or B, it can divide the addresses into several contiguous groups and assign each group to smaller networks

Slide 42: 

Figure Addresses in a network with and without Subnetting If an organization was granted a large block in class A or B, it could divide the addresses into several contiguous groups and assign each group to smaller networks-subnet.

Supernetting : 

Supernetting Due to additional demand of midsize blocks Class A & Class B addresses were depleted & size of Class C block did not satisfy the needs of most organizations One Solution – Supernetting –Several Class C blocks are combined to create a larger range of addresses i.e Several networks are combined to create a supernet.

Slide 44: 

Subnetting increases the number of 1s in the mask Supernetting decreases the number of 1s in the mask Note:

Slide 45: 

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: The router looks at the first byte of the address to find the class. It is class B. 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. 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.

Slide 46: 

Figure Subnet mask

Problems with Classful addressing : 

Problems with Classful addressing Fast growth of Internet led to near depletion of available addresses We have run out of Class A & Class B addresses Class C address block is too small for most mid size organizations Hence Classful addressing is replaced with Classless addressing

Classless Addressing : 

Classless Addressing In this scheme, there are no classes but the addresses are still granted in blocks Address Blocks When an entity needs to be connected to the Internet it is granted a block of addresses The size of the block varies based on the nature and size of the entity Ex: A household- 2 addresses An ISP – 1000’s or 100’s of addresses

Restrictions : 

Restrictions To simplify the handling of addresses, the Internet authorities impose three restrictions on classless address blocks: The addresses in a block must be contiguous, one after another The number of addresses in a block must be a power of 2 The first address must be evenly divisible by the by number of addresses.

Mask-Classless addressing : 

Mask-Classless addressing An IPv4 addressing, a block of addresses can be defined as x.y.z.t/n x.y.z.t – defines one of the addresses /n – mask Ex.123.34.45.2/24 - indicates that the first 3 bytes are the network address & last byte is the host address.

First Address : 

First Address The first address in the block can be found by setting the rightmost 32-n bits to 0s Last Address The last address in the block can be found by setting the rightmost 32-n bits to 1s Number of Addresses The number of addresses in the block can be found by using the formula 232-n

Slide 52: 

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

Slide 53: 

The first address in a block is normally not assigned to any device; it is used as the network address that represents the organization to the rest of the world. Note:

Slide 54: 

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

Slide 55: 

Figure Hierarchy concept in a telephone number

Slide 56: 

Figure A network with two levels of hierarchy

Slide 57: 

Figure A network with three levels of hierarchy (subnetted)

Slide 58: 

Example 9 A router inside the organization receives a packet with destination address 190.240.33.91/19. Show how it finds the subnetwork address to route the packet. Solution The router follows three steps: The router must know the mask. It is /19, as given in the destn. Address. The router applies the mask to the address, 190.240.33.91. The subnet address is 190.240.32.0. The router looks in its routing table to find how to route the packet to this destination.

NAT : 

NAT The number of users and small businesses that want to use the Internet is ever increasing An address was given to a user when it was needed dynamically But this is not possible due to shortage of addresses Hence a simple solution is – Network Address Translation

NAT : 

NAT Enables a user to have a large set of addresses internally & a small set of addresses externally To separate these addresses the Internet authorities have reserved three sets of addresses as private addresses as shown in table. These addresses are unique inside the orgn. But are not unique globally No router will forward a packet that has one of these addresses as the destination address

Slide 61: 

Table 19.2 Default masks

Slide 62: 

Figure NAT Implementation

Slide 63: 

Figure Address translation

Slide 64: 

Figure NAT Address Translation

Slide 65: 

Table 19.3 Five-column translation table

Slide 66: 

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

Slide 67: 

Figure IPv6 address

Slide 68: 

Figure Abbreviated address

Slide 69: 

Figure Abbreviated address with consecutive zeros

Slide 70: 

Figure CIDR address

Slide 71: 

Figure Format of an IPv6 datagram

Slide 72: 

Figure Comparison of network layers in version 4 and version 6

Slide 73: 

Figure Three transition strategies

Slide 74: 

Figure Three transition strategies

Slide 75: 

Figure Tunneling

Slide 76: 

Figure Header translation