First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

What does options field mean in IP header?

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

anonymous user
asked 2018-10-13 22:02:00 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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.

Guy Harris's avatar
19.9k
Guy Harris
answered 2018-10-14 02:13:07 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer