0% found this document useful (0 votes)
20 views50 pages

CH 20

Uploaded by

patreshraddha989
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views50 pages

CH 20

Uploaded by

patreshraddha989
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 50

Network Layer:

examp
note
info

Internet
le

Protocol
INTERN
ETWOR
KING In this section, we discuss internetworking,
connecting networks together to make an
internetwork or an internet.
examp
note

info
le

Topics discussed in this section:

Need for Network Layer


Internet as a Datagram Network
Internet as a Connectionless Network
examp

note
info
le

Links between two hosts


Please note it down...
examp

note
info
le

Network layer in an internetwork


Please note it down...
examp

note
info
le

Network layer at the source, router, and destination


Please note it down...
examp

note
info
le

Network layer at the source, router, and destination (continued)


Please note it down...
examp

note
info
Switching at the network layer in the Internet
le

uses the datagram approach to packet switching.

Please note it down...


examp

note
info
Communication at the network layer in the
le

Internet is connectionless.

Please note it down...


IPv4
The Internet Protocol version 4 (IPv4) is the
delivery mechanism used by the TCP/IP
protocols.
examp

note
info
Communication at the network layer in the
le

Internet is connectionless.

Topics discussed in this section:

Datagram
Fragmentation
Checksum
Options
examp

note
info
le

Position of IPv4 in TCP/IP protocol suite

Please note it down...


examp

note
info
le

IPv4 datagram format

Please note it down...


examp

note
info
le

Service type or differentiated services

Please note it down...


examp

note
info
The precedence subfield was part of version 4,
le

but never used.

Please note it down...


examp

note
info
le

Types of service

Please note it down...


examp

note
info
le

Default types of service


Please note it down...
examp

note
info
le

Values for codepoints

Please note it down...


examp

note
info
The total length field defines the total length of
le

the datagram including the header.

Please note it down...


examp

note
info
le

Encapsulation of a small datagram in an Ethernet frame

Please note it down...


examp

note
info
le

Protocol field and encapsulated data

Please note it down...


examp

note
info
le

Protocol values

Please note it down...


An IPv4 packet has arrived with the first 8 bits as
shown:
01000010
The receiver discards the packet. Why?

examp
note
info
le
Solution
There is an error in this packet. The 4 leftmost bits
(0100) show the version, which is correct. The next 4
bits (0010) show an invalid header length (2 × 4 =
8). The minimum number of bytes in the header
must be 20. The packet has been corrupted in
transmission.
In an IPv4 packet, the value of HLEN is 1000 in
binary. How many bytes of options are being carried
by this packet?

examp
note
info
le
Solution
The HLEN value is 8, which means the total number
of bytes in the header is 8 × 4, or 32 bytes. The first
20 bytes are the base header, the next 12 bytes are
the options.
In an IPv4 packet, the value of HLEN is 5, and the
value of the total length field is 0x0028. How many
bytes of data are being carried by this packet?

examp
note
info
le
Solution
The HLEN value is 5, which means the total number
of bytes in the header is 5 × 4, or 20 bytes (no
options). The total length is 40 bytes, which means
the packet is carrying 20 bytes of data (40 − 20).
An IPv4 packet has arrived with the first few
hexadecimal digits as shown.
0x45000028000100000102 . . .
How many hops can this packet travel before being
dropped? The data belong to what upper-layer

examp
note
protocol?

info
le
Solution
To find the time-to-live field, we skip 8 bytes. The
time-to-live field is the ninth byte, which is 01. This
means the packet can travel only one hop. The
protocol field is the next byte (02), which means that
the upper-layer protocol is IGMP.
An IPv4 packet has arrived with the first few
hexadecimal digits as shown.
0x45000028000100000102 . . .
How many hops can this packet travel before being
dropped? The data belong to what upper-layer

examp
note
protocol?

info
le
Solution
To find the time-to-live field, we skip 8 bytes. The
time-to-live field is the ninth byte, which is 01. This
means the packet Maximum
can transfer unit (MTU)
travel only one hop. The
protocol field is the next byte (02), which means that
the upper-layer protocol is IGMP.

Please note it down...


examp

note
info
le

MTUs for some networks


Please note it down...
examp

note
info
le

Flags used in fragmentation

Please note it down...


examp

note
info
le

Fragmentation example

Please note it down...


examp

note
info
le

Detailed fragmentation example


Please note it down...
A packet has arrived with an M bit value of 0. Is this
the first fragment, the last fragment, or a middle
fragment? Do we know if the packet was
fragmented?

examp
note
info
le
Solution
If the M bit is 0, it means that there are no more
fragments; the fragment is the last one. However,
we cannot say if the original packet was fragmented
or not. A non-fragmented packet is considered the
last fragment.
A packet has arrived with an M bit value of 1. Is this
the first fragment, the last fragment, or a middle
fragment? Do we know if the packet was
fragmented?

examp
note
info
le
Solution
If the M bit is 1, it means that there is at least one
more fragment. This fragment can be the first one or
a middle one, but not the last one. We don’t know if
it is the first one or a middle one; we need more
information (the value of the fragmentation offset).
A packet has arrived with an M bit value of 1 and a
fragmentation offset value of 0. Is this the first
fragment, the last fragment, or a middle fragment?

examp
note
info
le
Solution
Because the M bit is 1, it is either the first fragment
or a middle one. Because the offset value is 0, it is
the first fragment.
A packet has arrived in which the offset value is 100.
What is the number of the first byte? Do we know
the number of the last byte?

examp
note
info
le
Solution
To find the number of the first byte, we multiply the
offset value by 8. This means that the first byte
number is 800. We cannot determine the number of
the last byte unless we know the length.
A packet has arrived in which the offset value is 100,
the value of HLEN is 5, and the value of the total
length field is 100. What are the numbers of the first
byte and the last byte?

examp
note
info
le
Solution
The first byte number is 100 × 8 = 800. The total
length is 100 bytes, and the header length is 20
bytes (5 × 4), which means that there are 80 bytes
in this datagram. If the first byte number is 800, the
last byte number must be 879.
A packet has arrived in which the offset value is 100,
the value of HLEN is 5, and the value of the total
length field is 100. What are the numbers of the first
byte and the last byte?

examp
note
info
le
Solution
The first byte number is 100 × 8 = 800. The total
length is 100 bytes, and the header length is 20
bytes (5 × 4), which means that there are 80 bytes
in this datagram. If the first byte number is 800, the
last byte number must be 879.

Example of checksum calculation in IPv4


Please note it down...
examp

note
info
le

Taxonomy of options in IPv4

Please note it down...


IPv6
The network layer protocol in the TCP/IP
protocol suite is currently IPv4. Although IPv4 is
well designed, data communication has
evolved since the inception of IPv4 in the
examp

1970s. IPv4 has some deficiencies that make it

note
info
unsuitable for the fast-growing Internet.
le

Topics discussed in this section:

Advantages
Packet Format
Taxonomy of options in IPv4
Extension Headers
examp

note
info
le

Format of an IPv6 datagram


Please note it down...
examp

note
info
le

Next header codes for IPv6


Please note it down...
examp

note
info
le

Priorities for congestion-controlled traffic


Please note it down...
examp

note
info
le

Priorities for noncongestion-controlled traffic

Please note it down...


examp

note
info
le

Comparison between IPv4 and IPv6 packet headers


Please note it down...
examp

note
info
le

Extension header types

Please note it down...


examp

note
info
le

Comparison between IPv4 options and IPv6 extension headers

Please note it down...


TRANSITI
ON FROM
Because of the huge number of systems on the
IPv4 TO Internet, the transition from IPv4 to IPv6 cannot
IPv6 happen suddenly. It takes a considerable
amount of time before every system in the
examp

Internet can move from IPv4 to IPv6. The

note
info
transition must be smooth to prevent any
le

problems between IPv4 and IPv6 systems.

Topics discussed in this section:

Dual Stack
Tunneling
Comparison between IPv4 options and IPv6 extension headers
Header Translation
examp

note
info
le

Three transition strategies

Please note it down...


examp

note
info
le

Dual stack

Please note it down...


examp

note
info
le

Tunneling strategy

Please note it down...


examp

note
info
le

Header translation strategy

Please note it down...


examp

note
info
le

Header translation

Please note it down...

You might also like