Jump to content

Cheatsheet: Difference between revisions

Line 94:
</center>
 
= Header FieldsHeaders =
<div style="column-count:5;-moz-column-count:5;-webkit-column-count:5">
*;IP Header
Version
HLEN
DSCP
ECN
Total Length
Identification
Flags(DF,MF)
Fragment Offset
TTL
Protocol
Header Checksum
Source IP
Destination IP
Options
 
{| class="wikitable" style="margin: 0 auto; text-align: center; width:50%;"
*;TCP Header
|+IPv4 Header Format
Source port
|-
Destination port
| colspan="4"|Version
Sequence number
| colspan="4"|HLEN
Ack number
| colspan="6"|DSCP
Data offset
| colspan="2"|ECN
Flags
| colspan="16"|Total Length
Window Size
|-
Checksum
| colspan="16"|Identification
Urgent pointer
| colspan="3"|Flags(DF,MF)
Options
| colspan="13"|Fragment Offset
<br />
|-
<br />
| 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'' &gt; 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 />
<br />
<br />
<br />
 
*;UDP Header
Source port
Destination port
Length
Checksum
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
 
*;ICMP Header
Line 162 ⟶ 165:
Rest of Header
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</div>
 
= TCP Topics Hierarchy =
Cookies help us deliver our services. By using our services, you agree to our use of cookies.