Académique Documents
Professionnel Documents
Culture Documents
0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
Source IP address
Destination IP address
00 01 02 03 04 05 06 07
Precedence D T R M 0
R DF MF
Value Description
0 This is the last fragment.
1 More fragments follow this fragment.
IPV4 (Internet Protocol
version 4)
Fragment Offset. 13 bits.
Used to direct the reassembly of a
fragmented datagram.
TTL, Time to Live. 8 bits.
A timer field used to track the lifetime of the
datagram. When the TTL field is decremented
down to zero, the datagram is discarded.
Protocol. 8 bits.
This field specifies the next encapsulated
protocol.
Options. Variable length.
TCP (Transmission Control
Protocol )
MAC header IP header TCP header Data :::
0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3
0
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
0
Source Port Destination Port
Sequence Number
Acknowledgment Number
Data Offset reserved ECN Control Bits Window
Checksum Urgent Pointer
Options and padding :::
Data :::
TCP
Source Port. 16 bits.
Destination Port. 16 bits.
Sequence Number. 32 bits.
The sequence number of the first data byte in this
segment. If the SYN bit is set, the sequence number
is the initial sequence number and the first data byte
is initial sequence number + 1.
Acknowledgment Number. 32 bits.
If the ACK bit is set, this field contains the value of
the next sequence number the sender of the
segment is expecting to receive. Once a connection is
established this is always sent.
TCP
Data Offset. 4 bits.
The number of 32-bit words in the TCP
header. This indicates where the data begins.
The length of the TCP header is always a
multiple of 32 bits.
reserved. 4 bits.
Must be set to zero.
ECN, Explicit Congestion Notification. 2
bits.
Added in RFC 3168.
TCP
Checksum. 16 bits.
This is computed as the 16-bit one's
complement of the one's complement sum of
a pseudo header of information from the IP
header, the TCP header, and the data,
padded as needed with zero bytes at the end
to make a multiple of two bytes
Data. Variable length.
TCP
00 01 02 03 04 05
U A P R S F
TCP
ACK
Value showing the acknowledgement number of segment
PSH
Push the data
RST
Value showing the connection is resetting
SYN
Synchronize sequence number during convention
FIN
Terminate the connection
UDP (User Datagram Protocol )
0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3
0
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
0
Length Checksum
Data :::
UDP
Source Port. 16 bits.
This is an optional field. If it is not used, it is cleared to zero.
Otherwise, it specifies the port of the sender.
Destination Port. 16 bits.
The port this packet is addressed to.
Length. 16 bits.
The length in bytes of the UDP header and the encapsulated data. The
minimum value for this field is 8.
Checksum. 16 bits.
This is computed as the 16-bit one's complement of the one's
complement sum of a pseudo header of information from the IP
header, the UDP header, and the data, padded as needed with zero
bytes at the end to make a multiple of two bytes. If the checksum is
set to zero, then checksuming is disabled. If the computed checksum is
zero, then this field must be set to 0xFFFF
Data. Variable length.
PPP (Point to Point Protocol)
0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3
0
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
0
Version Flags Message type RSVP checksum
TTL reserved RSVP length
Data :::
RSVP
Version. 4 bits.
RSVP version number.
Flags. 4 bits.
Message type. 8 bits.
RSVP checksum. 16 bits.
The one's complement of the one's
complement sum of the message, with the
checksum field replaced by zero for the
purpose of computing the checksum. An all-
zero value means that no checksum was
transmitted.
RSVP
TTL, Time to Live. 8 bits.
The IP TTL value with which the message
was sent.
reserved. 8 bits.
RSVP length. 16 bits.
The total length of this RSVP message in
bytes, including the common header and the
variable length objects that follow.
Data. Variable length.
Real Time Protocol RFC1889
V
E
Payload
4 bytes CC M Sequence Number
R Type
0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3
0
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
0
Data :::
RTCP (RTP Control Protocol)
Version. 2 bits.
The version of RTP which is the same in RTCP
packets as in RTP data packets.
P, Padding. 1 bit.
If set, this RTCP packet contains some additional
padding bytes at the end which are not part of the
control information. The last byte of the padding is a
count of how many padding bytes should be ignored.
Padding may be needed by some encryption
algorithms with fixed block sizes. In a compound
RTCP packet, padding should only be required on the
last individual packet because the compound packet
is encrypted as a whole.
RTCP (RTP Control Protocol)
Count. 5 bits. 0 to 31.
The number of reception report blocks contained in
this packet.
Type. 8 bits.
RTCP packet type.
Length. 16 bits.
The length of this RTCP packet in 32 bit words minus
one, including the header and any padding. The
offset of one makes zero a valid length and avoids a
possible infinite loop in scanning a compound RTCP
packet, while counting 32 bit words avoids a validity
check for a multiple of 4.