03 04layers Model
03 04layers Model
03 04layers Model
Encapsulation
Data exists at each layer contained within a unit called a Protocol Data Unit (PDU) The process by which data moves between PDU types is called Encapsulation PDU move through interfaces between layers using Service Access Points (SAP)
5.) Session
4.) Transport 3.) Network 2.) Data Link 1.) Physical
Data
Segment Packet Frame Bits
IP Addresses
Uniquely & universally defines connection of a host or router on Internet Internet address are usually written in decimal notation with decimal point separating the bytes
A, B, C, D, & E
Each class is divided into fixed number of blocks with each block having a fixed size Class A -> divided into 128 blocks
Each block have a different netid 1st block -> addresses from 0.0.0.0 to 0.255.255.255 (netid 0) 2nd block -> addresses from 1.0.0.0 to1.255.255.255 (netid 1) Last block -> addresses from 127.0.0.0 to 127.255.255.255 (netid 127)
first & last block in each class is reserved for special purposes. In addition One block (netid 10) -> private addresses total number of organizations that can have class A is only 125
Each block in a class contains 16,777,216 address . Millions of class A addresses are wasted . Next slide shows blocks in class A graphically
Blocks in Class A
An organization granted a block with netid 73 uses its addresses First address in block used to identify organization from rest of Internet -> address is called network address
Class B
Divided into 16, 384 blocks with each block having different netid
Each block in a class contains 65,536 classes Next slide shows blocks in class B graphically
Blocks in Class B
Class C
Divided into 2,097,152 blocks with each block having different netid
Blocks in Class C
Network Address
Example -> given network address 17.0.0.0, find the class, the block, and range of addresses
This is class A address -> first byte is between 0 & 127 Block has a netid of 17
Mask
Mask is 32-bit binary number that gives first address in block i.e., network address when
ANDed bitwise with an address in block
Default Masks
The network address is the beginning address of each block It can be found by applying the default mask to any of the addresses in the block (including itself). It retains the netid of the block and sets the hostid to zero
Class A
B C
Given address is 23.56.7.91 & default class A mask, find the network address?
Given address 201.180.56.5 & class C default mask, find network address?
Multihomed Devices
Will have more than one address, each possibly belonging to a different class
A router must be connected to more than one network otherwise -> it cannot route
Router has more than one IP address, one for each interface Figure shows one multihomed computer & one router
Special IP addresses
IP address 0.0.0.0 is used by hosts when they are booted IP addresses with 0s as network number refer to the current network Address with all 1s allows broadcasting on local network All address of form 127.xx.yy.zz are reserved for loop back testing
Private Addresses
Blocks 1 16 256
Practice Question 3
Suppose that instead of using 16 bits for network part of a class B address originally, 20 bits had been used. How many class B networks would there have been?
With a 2-bit prefix, there would have been 18 bits left over to indicate the network
However, all 0s and all 1s are special, so only 262,142 are available.
Practice Question 4
A network on Internet has a subnet mask of 255.255.240.0. What is maximum no. of hosts it can handle?
The remaining 12 bits are for the host, so 4096 host addresses exist
THE END