Cheatsheet: Difference between revisions
→Header Fields
Line 94:
</center>
=
{| class="wikitable" style="margin: 0 auto; text-align: center; width:50%;"
|+IPv4 Header Format
|-
| colspan="4"|Version
| colspan="4"|HLEN
| colspan="6"|DSCP
| colspan="2"|ECN
| colspan="16"|Total Length
|-
| colspan="16"|Identification
| colspan="3"|Flags(DF,MF)
| colspan="13"|Fragment Offset
|-
| colspan="8"|Time To Live
| colspan="8"|Protocol
| colspan="16"|Header Checksum
|-
| colspan="32"|Source IP Address
|-
| colspan="32"|Destination IP Address
|-
| colspan="32" rowspan="4" style="background:#ffd0d0;"|Options (if HLEN > 5)
|}
<br />
{| class="wikitable" style="margin: 0 auto; text-align:center; width:80%;"
|+TCP Header
|-
| colspan="16"| Source port || colspan="16"| Destination port
|-
| colspan="32"| Sequence number
|-
| colspan="32"| Acknowledgment number (if <tt>ACK</tt> set)
|-
| colspan="4"| Data offset || colspan="3"| Reserved<br><tt>'''0 0 0'''</tt> || cellpadding="1"|<tt>N<br>S</tt>|||<tt>C<br>W<br>R</tt>|||<tt>E<br>C<br>E</tt>|||<tt>U<br>R<br>G</tt>|||<tt>A<br>C<br>K</tt>|||<tt>P<br>S<br>H</tt>|||<tt>R<br>S<br>T</tt>|||<tt>S<br>Y<br>N</tt>|||<tt>F<br>I<br>N</tt>|| colspan="16"| Window Size
|-
| colspan="16"| Checksum || colspan="16" | Urgent pointer (if <tt>URG</tt> set)
|-
| colspan="32" style="background:#ffd0d0;"| Options (if ''data offset'' > 5. Padded at the end with "0" bytes if necessary.)<br />...
|}
<br />
{| class="wikitable" style="margin: 0 auto; text-align: center; width:40%;"
|+UDP Header
|-
| style="background:#fdd;"| Source port || Destination port
|-
| Length || style="background:#fdd;"| Checksum
|}
*;ARP Header
Line 138 ⟶ 157:
Dest MAC
Dest IP
<br />
*;ICMP Header
Line 162 ⟶ 165:
Rest of Header
<br />
= TCP Topics Hierarchy =
|