The Type of Service facility is provided by the IP protocol to convey information about how individual packets should be directed over the Internet. The TOS field controls the routing and queueing algorithms in gateway operations.
The TOS byte contains a Precedence field, a TOS field and an Empty field.
The Precedence field contains 3 bits which sets the Precedence level for the byte.
The TOS field contains the TOS match value. This will be matched against the packet and is expressed as a hexadecimal value.
The MBZ field is currently unused and must be set to 0.
For more information, refer to RFC 1349 Type of Service in the Internet Protocol Suite, by P. Almquist.