ch20 Network Layer - IP Protocal 25 nov
ch20 Network Layer - IP Protocal 25 nov
ch20 Network Layer - IP Protocal 25 nov
Internet Protocol
Links between two hosts
Internetworking, connecting networks together to make an
internetwork or an internet.
20.2
Network layer in an internetwork
20.3
Functioning of Network layer at the Source, Router, and Destination
20.4
Functioning of Network layer at the Source, Router, and Destination
(continued)
20.5
Internet Protocol (IPv4)
22.6
Position of IPv4 in TCP/IP protocol suite
20.7
Internet Protocol (IPv4) Header Format
22.8
IPv4 datagram format
20.9
Internet Protocol (IPv4) Header Format
22.10
Internet Protocol (IPv4) Header Format
3.Service
8 bits long;
called differentiated services.
Specify the services provide to this
datagram;
Define the version of IP protocol
handling S/W;
Subfields – precedence (3 bits)
define priority, TOS ( 4bits) ; (DTRC)
22.11
Internet Protocol (IPv4) Header Format
4.Total length
4.16 bits long;
5.Specify the size of datagram ( header + data) ;
5.Identification
16 bits long;
Having same identification number for all datagram
packets belong to one message.
It helps the destinations to reassemble the packets of
same message.
22.12
Internet Protocol (IPv4) Header Format
6.Flags
3 bits long field;
Specify the more packets of belongs to same message
exist or not.
First bit is reserved; second and third bit is set to
having more fragments or not.
22.13
Internet Protocol (IPv4) Header Format
7.Fragmentation Offset
13 bits long; Specify the offset /position of the
datagram in whole message;
Offset is measured in units of 8 bytes.
8.Time to Live
8 bits long; Specify the lifetime of a datagram ;
Applying in forwarding the datagram during routing;
Reduce TOL value by each router;
Not Forwarded when it hits to zero.
22.14
Internet Protocol (IPv4) Header Format
9.Protocol
8 bit field
Defines the higher level protocol that uses it.
22.15
Internet Protocol (IPv4) Header Format
10.Header checksum
16-bit field used for error control;
Only responsible of error handling for header only,
not data part.
11.Source IP Address
12.Destinations IP Address
22.16
Internet Protocol (IPv4) Header Format
13.Options
0 to 40 (max) bytes variable size optional field;
Options, as the name implies, are not required for a
datagram.
They can be used for network testing and debugging.
Although options are not a required part of the IPv4
header, option processing is required of the IPv4 software.
22.17
Taxonomy of options in IPv4
20.18
Fragmentation in Network Layer
22.19
Fragmentation in Network Layer
22.20
Maximum transfer unit (MTU) in Frames
of Data Link layer Protocol
20.21
Maximum transfer unit (MTU) in Frames
of Data Link layer Protocol for some networks
20.22
Fragmentation in Network Layer
22.23
Fragmentation in Network Layer
22.24
Fragmentation in Network Layer
22.25
Fragmentation in Network Layer
22.26
Fragmentation in Network Layer
2. Flags:
This is a 3-bit field (0DM).
The first bit is reserved.
The second bit is called the do notfragment bit. If its value is 1, the
machine must not fragment the datagram.
If its value is 0, the datagram can be fragmented if necessary.
The third bit is called the more fragment bit.
If its value is 1, it means the datagram is not the last fragment;
there are more fragments after this one.
If its value is 0, it means this is the last or only fragment.
22.27
Fragmentation in Network Layer
3. Fragmentation Offset:
13-bit field shows the relative position of this fragment with respect to
the whole datagram.
The value of the offset of the data in the original datagram measured
in units of 8 bytes.
Since the length of the offset field is only 13 bits and cannot represent
a sequence of bytes greater than 8191 (1111111111111).
This forces hosts or routers that fragment datagrams to choose a
fragment size so that the first byte number is divisible by 8.
22.28
Fragmentation Example
20.29
Detailed fragmentation example
20.30
Fragmentation in Network Layer
Checksum:
The checksum in the IPv4 packet covers only the header, not the
data.
The header of the IPv4 packet changes with each visited router,
but the data do not.
So the checksum includes only the part that has changed.
If the data were included, each router must recalculate the
checksum for the whole packet, which means an increase in
processing time.
22.31
Demerits of Internet Protocol (IPv4)
22.32
Demerits of Internet Protocol (IPv4)
22.33
Internet Protocol (IPv6)
22.34
Internet Protocol (IPv6)
22.35
Internet Protocol (IPv6) Header Format
22.36
IPv6 datagram header and payload
20.37
Format of an IPv6 datagram
20.38
Internet Protocol (IPv6) Base Header Format
3.Flow label :
24 bit (3 bytes) long;
A sequence of packets, that needs special handling by
routers is called a flow of packets.
The combination of the source address and the value of
the flow label uniquely defines a flow of packets.
To a router, a flow is a sequence of packets that share the
same characteristics, such as traveling the same path, using the
same resources, having the same kind of security, and so on.
22.40
Internet Protocol (IPv6) Base Header Format
4.Payload length :
16 bits (2 bytes) long field;
Define the size of IP packet excluding the base header.
5.Next header :
8 –bits field defining the header that follows the base
header.
Optional part
Each extension header also contains this field.
22.41
Next header codes for IPv6
20.42
Internet Protocol (IPv6) Base Header Format
6.Hop Limit :
8 bits (1 bytes) long field; work as the same as Time to
Live in IPv4.
7.Source address :
16 Bytes IPv6 address of sender station.
8.Destination Address :
16 Bytes IPv6 address of receiver station.
22.43
Advantage of Internet Protocol (IPv6)
22.44
Advantage of Internet Protocol (IPv6)
22.45
Comparison between IPv4 and IPv6 packet headers
20.46
TRANSITION FROM IPV4 TO IPV6
1. Dual Stack
2. Tunneling
3. Header Translation
22.47
Three transition strategies
20.48
Dual stack
20.49
Tunneling Strategy
20.50
Tunneling strategy
20.51
Header translation strategy
20.52
Header translation strategy
20.53
Header translation
20.54
Address Mapping
22.55
Mapping Logical to Physical Address
22.56
Address Resolution Protocol: ARP
22.57
Address Resolution Protocol: ARP
22.58
ARP operation
21.59
Four cases using ARP
21.60
Reverse Address Resolution Protocol: RARP
22.61
Reverse Address Resolution Protocol: RARP
22.62
Demerit of Reverse Address Resolution Protocol: RARP
22.63
Bootstrap Protocol: (BOOTP)
22.64
BOOTP client and server on the same and different networks
21.65
Bootstrap Protocol: (BOOTP)
22.66
Demerit of Bootstrap Protocol: (BOOTP)
22.67
Dynamic Host Configuration Protocol: (DHCP)
22.69