Professional Documents
Culture Documents
EL 317
05-Sep-16
Lab 4
EL 317
05-Sep-16
Lab Contents
Introduction to Packets
OSI and TCP/IP Models
Layers and Headers
Introduction to IPv4 Header in detail
EL 317
05-Sep-16
EL 317
05-Sep-16
OSI Model
EL 317
05-Sep-16
EL 317
05-Sep-16
EL 317
05-Sep-16
Addresses
EL 317
05-Sep-16
Layering
Layering
EL 317
05-Sep-16
Physical Addresses
EL 317
05-Sep-16
100
Example
EL 317
05-Sep-16
111
4500
003c
1c46
4000 4006
0a63
ac10
0a0c
Muhammad Adan Abid (FAST-NUCES)
EL 317
b1e6
05-Sep-16
ac10
122
EL 317
05-Sep-16
133
Version
Current IP Protocol Version is 4,
called IPv4
4
Version
16
TOS
HLen
Identification
TTL
19
Protocol
31
Length
Flags
Fragment
Offset
IP Header Checksum
Source IP Address
Destination IP Address
Options (variable)
Pad (variable)
EL 317
05-Sep-16
144
Header Length
Length of IP Header in number of 32 bit words
including options. Maximum header size is 60
bytes.
4
Version
16
TOS
HLen
Identification
TTL
19
Protocol
31
Length
Flags
Fragment
Offset
IP Header Checksum
Source IP Address
Destination IP Address
Options (variable)
Pad (variable)
EL 317
05-Sep-16
155
Type of Service
The type-of-service field (8-bit) is used to differentiate the packets based
on the services they need. (It is largely ignored in current routers)
4
Version
16
TOS
HLen
Identification
TTL
19
Protocol
31
Length
Flags
Fragment
Offset
IP Header Checksum
Source IP Address
Destination IP Address
Options (variable)
Pad (variable)
EL 317
05-Sep-16
166
Length
Total length of IP datagram (including header) in bytes. It is a 16 bit
field. Largest size of an IP datagram thus is 65,535 bytes. Maximum
header size is 60 bytes.
4
Version
16
TOS
HLen
Identification
TTL
19
Protocol
31
Length
Flags
Fragment
Offset
IP Header Checksum
Source IP Address
Destination IP Address
Options (variable)
Pad (variable)
EL 317
05-Sep-16
177
Identification
4
Version
16
TOS
HLen
Identification
TTL
19
Protocol
31
Length
Flags
Fragment
Offset
IP Header Checksum
Source IP Address
Destination IP Address
Options (variable)
Pad (variable)
EL 317
05-Sep-16
188
Flags
flags field also used for fragmentation and
reassembly.
4
Version
16
TOS
HLen
Identification
TTL
19
Protocol
31
Length
Flags
Fragment
Offset
IP Header Checksum
Source IP Address
Destination IP Address
Options (variable)
Pad (variable)
EL 317
05-Sep-16
199
Fragment Offset
Fragmentation offset used for fragmentation
and reassembly.
4
Version
16
TOS
HLen
Identification
TTL
19
Protocol
31
Length
Flags
Fragment
Offset
IP Header Checksum
Source IP Address
Destination IP Address
Options (variable)
Pad (variable)
EL 317
05-Sep-16
20
TTL
4
Version
16
TOS
HLen
Identification
TTL
19
Protocol
31
Length
Flags
Fragment
Offset
IP Header Checksum
Source IP Address
Destination IP Address
Options (variable)
Pad (variable)
EL 317
05-Sep-16
221
Protocol
Identifies the protocol that sent the datagram. The protocol
(today) can be TCP, UDP, ICMP, IGMP etc.
4
Version
16
TOS
HLen
Identification
TTL
19
Protocol
31
Length
Flags
Fragment
Offset
IP Header Checksum
Source IP Address
Destination IP Address
Options (variable)
Pad (variable)
22
Muhammad Adan Abid (FAST-NUCES)
EL 317
05-Sep-16
22
Header Checksum
The header checksum is calculated over the IP header only.
TCP, UDP etc protect their own data and header by a
checksum.
0
4
Version
16
TOS
HLen
Identification
TTL
19
Protocol
31
Length
Flags
Fragment
Offset
IP Header Checksum
Source IP Address
Destination IP Address
Options (variable)
Pad (variable)
EL 317
05-Sep-16
23
EL 317
05-Sep-16
24