Ask Your Question
0

What does options field mean in IP header?

asked 2018-10-13 22:02:00 +0000

anonymous user

Anonymous

I want to know what the option filed contains, but I do not know what it is and where it is.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2018-10-14 02:13:07 +0000

Guy Harris gravatar image

It contains information carried in the IP header that may be present but that isn't required to be present, i.e. it's "optional".

For IPv4, see RFC 791, section 3.1 "Internet Header Format", which says:

Options:  variable

  The options may appear or not in datagrams.  They must be
  implemented by all IP modules (host and gateways).  What is optional
  is their transmission in any particular datagram, not their
  implementation.

It describes the first few options supported by IPv4; the list of "registered" IPv4 options is on Internet Protocol Version 4 (IPv4) Parameters, under IP Option Numbers.

For IPv6, see RFC 8200, section 4 "IPv6 Extension Headers", which says:

In IPv6, optional internet-layer information is encoded in separate
headers that may be placed between the IPv6 header and the upper-
layer header in a packet.  There is a small number of such extension
headers, each one identified by a distinct Next Header value.

and section 4.2 "Options", which says:

Two of the currently defined extension headers specified in this
document -- the Hop-by-Hop Options header and the Destination Options
header -- carry a variable number of "options" that are type-length-
value (TLV) encoded in the following format:

and describes the padding options; the list of "registered" IPv6 options is on Internet Protocol Version 6 (IPv6) Parameters, under Destination Options and Hop-by-Hop Options.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-10-13 22:02:00 +0000

Seen: 2,306 times

Last updated: Oct 14 '18