IPv4 - IPv6 - Header Autosaved
IPv4 - IPv6 - Header Autosaved
Payload:0-65515 bytes
Total bits
160 bits
32 bits
32 bits
Precedence: Priority
Delay occurs when you call you use internet
Delay should 1 when u want minimum delay
else 0
Throughput:Rate of transfer should be high
then value 1 else 0
Reliability more value 1 else 0
Cost: minimum value 1 else 0
20.7
Table 20.1 Types of service
20.8
Note
Solution
There is an error in this packet. The 4 left-most
bits (0100) show the version, which is correct.
The next 4 bits (0010) show the wrong header
length (2 × 4 = 8). The minimum number of bytes
in the header must be 20. The packet has been
corrupted in transmission.
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.
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).
Solution
To find the time-to-live field, we skip 8 bytes (16
hexadecimal digits). 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 (see Table 7.2)
TCP/IP Protocol Suite 18
7-3 FRAGMENTATION
IP datagram
20.22
Note
First is reserved
FLAG
RESERVE DF MF
D
0 0
DF=0 means 0 1
fragmentation 1 1
done
1 1
Offset = 0000/8 = 0
0000 1399
1420
14,567 1 000
Bytes 0000–3999
Bytes 1400–2799
1220
14,567 0 350
Bytes 2800–3999
Fragment 3
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 nonfragmented
packet is considered the last fragment
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.
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 of the data.
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.
Offset value shows number is 800 for first byte
Datagram has 80 bytes which means the last byte
number must be 879.
20.35
7-4 OPTIONS
20.
41
Figure 27.1 IPv6 datagram
20.
49
Table 20.9 Comparison between IPv4 and IPv6 packet
headers
20.50
20.51
Table 20.10 Comparison between IPv4 options and IPv6 extension
headers
20.52
Transition from IPv4 to
IPv6
Figure 20.19 Dual stack
20.
54
Figure 20.20 Tunneling strategy
20.5
0