Professional Documents
Culture Documents
Ipv4 Addresses
Ipv4 Addresses
Classful addressing
Special IP addresses
Classless addressing
Header format
IP fragmentation
Options
Subnetting a network
Network address translation
CIDR
• IP-Network layer. Connectionless best effort delivery service to the TP
layer.
• Address has a fixed length-32 bits
• Unique. Two devices on the internet can never have the same address at
the same time
• STRUCTURE-Two levels. Network ID-network of the host. Host ID- network
connection to the host rather than the actual host
• Address Space- Total No of addresses used by the protocol. N-address
space-2
N
A 128 16777216
B 16384 65536
C 2097152 256
D 1 268435456
E 1 268435456
Classless Addressing
• Variable length blocks are assigned that belong to no class.
• Entire address space-divided into blocks of different sizes
• When the entity, small or large 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
• Restriction: Address handle-3 restriction
• 1. The address in a block must be contiguous , one after another
• 2. The number of the addresses in a block must be a power of 2
• 3. The first address must be evenly divisible by the number of addresses
• A block of addressing-x.y.z.t/n
• x.y.z.t—one of the address
• n-mask
• TCP/IP protocols
• Unreliable and connectionless datagram protocol
HEADER FORMAT
• Packets in the IPv4-datagram.Datagram-variable length packet. 2 parts-Header and data
• Total length-datagram+header+data
• Flags-control flags
•TTL-time to live. Specifies the time. The datagram is allowed to travel. Used as
datagram
•Header checksum-error check. Doesnot match the content, the datagram is
discarded
•IP options- variable length field. Used for control or debugging and
measurement
• Loose source routing-mean for the source of an IP datagram to supply
explicit routing infn
• Timestamp-tell the routers along the route to put time stamp in the
option data
• Padding-ensure that the IP header ends on a 32 bit boundary. Padding
is 0
IP FRAGMENTATION
• Each physical network has maximum frame size, called maximum transfer unit
which limits the datagram length
IP FRAGMENTATION
• Maximum Length -65,535 Octets.
Modification of header of fragments
• Mf flag is set in all fragments except the last
• The fragment offset field is updated.
• If options were included in the original datagram,they may be copied
to all fragment datagram’s or only the first datagram.
• The header lenth field is set;
• Total length field is set;
• The header checksum is re-calculated
What problems can IP fragmentation cause?
• Inside global address – IP address that represents one or more inside local IP
addresses to the outside world. This is the inside host as seen from the outside
network.
• Outside local address – This is the actual IP address of the destination host in the
local network after translation.
• Outside global address – This is the outside host as seen from the outside network.
It is the IP address of the outside destination host before translation.
CIDR
• Classless Interdomain routing
• IP address allocation and IP routing that allows for more efficient use
of IP addresses.
• CIDR is based on the idea that IP addresses can be allocated and
routed based on their network prefix rather than their class, which was
the traditional way of IP address allocation.
• CIDR addresses are represented using a slash notation, which specifies
the number of bits in the network prefix.
• For example, an IP address of 192.168.1.0 with a prefix length of 24
would be represented as 192.168.1.0/24. This notation indicates that
the first 24 bits of the IP address are the network prefix and the
remaining 8 bits are the host identifier.