Options Field of IPv4 Header

For Complete YouTube Video: Click Here

In this class, we will try to understand the concepts of the Options Field of IPv4 Header.

We have already discussed all the mandatory fields of IPv4 in our previous classes.

Options Field of IPv4 Header

The options field is dynamic.

In data transmission, the IPv4 packet may or may not have an option.

IPv4 packets can accommodate more than one option.

The structure of the option is as shown below.

Options Field of IPv4 Header
Options Field of IPv4 Header

The first 8 bits of the option will decide the type of option.

The following 8 bits decide the size of the option. With that, we can know where the “option” ends.

After the size, the actual data for the options start.

In this way, an IPv4 packet can accommodate multiple options.

The image below shows the list of all options.

Option Type (decimal / hexadecimal)Option NameDescription
0 / 0x00EOOLEnd of Option List
1 / 0x01NOPNo Operation
2 / 0x02SECSecurity (defunct)
7 / 0x07RRRecord Route
10 / 0x0AZSUExperimental Measurement
11 / 0x0BMTUPMTU Probe
12 / 0x0CMTURMTU Reply
15 / 0x0FENCODEENCODE
25 / 0x19QSQuick-Start
30 / 0x1EEXPRFC3692-style Experiment
68 / 0x44TSTime Stamp
82 / 0x52TRTraceroute
94 / 0x5EEXPRFC3692-style Experiment
130 / 0x82SECSecurity (RIPSO)
131 / 0x83LSRLoose Source Route
133 / 0x85E-SECExtended Security (RIPSO)
134 / 0x86CIPSOCommercial IP Security Option
136 / 0x88SIDStream ID
137 / 0x89SSRStrict Source Route
142 / 0x8EVISAExperimental Access Control
144 / 0x90IMITDIMI Traffic Descriptor
145 / 0x91EIPExtended Internet Protocol
147 / 0x93ADDEXTAddress Extension
148 / 0x94RTRALTRouter Alert
149 / 0x95SDBSelective Directed Broadcast
151 / 0x97DPSDynamic Packet State
152 / 0x98UMPUpstream Multicast Pkt.
158 / 0x9EEXPRFC3692-style Experiment
205 / 0xCDFINNExperimental Flow Control
222 / 0xDEEXPRFC3692-style Experiment
Options Field of IPv4 Header 2

Record Route Option

For better understanding, we will try to understand the Record Route option.

The network administrator uses this option.

The network administrators use this option to get the IP address of routers through which the packet is transmitted.

Let’s consider a network with 3 routers R1 R2 and R3 in between source and destination.

After reaching the first router from the source, the router will insert its IP address in the options field.

Similarly, the second and third routers will also insert their IP address in the options field.

Now the destination will know the IP addresses of all the routers.