Objectives
Familiarize student with IP Header fields
Learn how the fields control the handling
of data
Learn how Source and Destination
addresses are handled by the local
machine
Use Troubleshooting Tools related to IP
IP Features
OSI Layer 3 Protocol
Connectionless
needs TCP to add connection oriented
functions
Best effort delivery, no retransmit attempt
Context of IP Header
Frame
Header
Packet
Header
Transport Data
Header
type=ip
0800
Trailer
1500bytes
Packet
Header
5x32 bits
Transport
Header
Data
Trailer
1500bytes
Though this graphic is presented in 32 bit lines organized as fields, the node
sees a single string of bits.
Bits are counted off and organized into the fields seen here.
The IP Header
Version Field
First 4 bits
can be ordered in 2^4th power (16 bit) patterns
Important to know because IPv4 uses a 32 bit address and IPv6 has 128 bits
Each version has a different number of fields and different uses for them
4 bits
Tells the TCPIP node what how many bytes of data are in the header, in this
case there are 5 lines of 32 bits, the bit number is set to 1001
This tells the node to count off 160 total bits before it comes to the transport
layer header
8 bits long
6 bits=Differentiated Services Code Point ( DSCP or just DS)
Allows VOIP or Streaming Media to have higher delivery priorities to avoid
delays resulting in choppy reception
Replaces older Type of Service field
Often associated with Quality of Service (QoS)
Type of Service:TOS
http://www.oreilly.com/catalog/coreprot/chapter/ch02.html#13340
Value
Service
Description
Normal
IP datagram is treated as a normal datagram, and not given any special handling.
Datagrams are usually marked with all zeroes in the Type-of-Service field.
Minimize Delay
Delay flag is used to request IP to route this packet over a network that provides
lower latency than normal. It may be set to either 0 (normal) or 1 (low delay).
Maximize
Throughput
Throughput flag requests that IP route this packet over a network that provides
higher throughput than normal. This flag may be set to 0 (normal) or 1 (high
throughput).
Maximize
Reliability
Reliability flag requests that IP route this packet over a network that provides the
most reliable service. The Reliability flag may be set to 0 (normal) or 1 (high
reliability).
Minimize Cost
Cost flag was added by RFC 1349 and was not defined in RFC 791. For this
reason, many systems do not recognize or use it. The Cost flag is used to
request that IP route this packet over the least expensive route available.
15
Maximize
Security
16 bits long
Tells the TCPIP node what how many bytes of data are in the entire packet including
the data.
Tells system to look for 150 bytes of data (170TLBytes-20 IHL bytes)
Example: a hexadecimal number of 00 AA would tell the system to look for 170 bytes
of data in the packet
Identification Field
16 bits long
Provides a packet number so that if identical packets are
received, the extra copies can be discarded
Multiple packets could be received with wireless systems
reflecting packets off multiple surfaces.
Flags Field
3 bits long
Tell if fragmentation is set
Fragmentation is not used very often
13 bits long
Used when total length exceeds the maximum
transmission unit size defined by the interface
Protocol Field
16 bits
Tells the node how to mathematically compare the sent packet with
the received one to verify that the data is intact
The checksum send must agree with the checksum received
32 bits
Tells the node where the data packet came from
If data acknowledgements are sent or data requests are being
returned, this become the destination address in the return packets
32 bits
Tells the node where the data packet was intended to go.
The receiving node must see its own address in this field in order to
process the data further. Otherwise, it drops the packet and does
not respond to other nodes any further about the packets contents.
Summary
The packet header tells the TCPIP software how
to handle the routing of the data to the right
network
Fields in the header are defined by bits in a
particular location in the header
Each field is interpreted by the software based
on the bit pattern it sees.
Bit patterns are matched up against a list of
actions to be taken
The Source and Destination IP Address fields
make the Packet Header important to routers