Tcpipheadres PDF
Tcpipheadres PDF
DNS
Bit Number
1111111111222222222233
01234567890123456789012345678901
Bit Number
0
Source Port
Destination Port
Length
Checksum
ID.
QR
Opcode
AA TC RD RA
ARP
Operation
1
2
1
3
1
4
TCP/IP and
tcpdump
1
5
SANS Institute
RCODE
[email protected]
+1 317.580.9756
http://www.sans.org
http://www.incidents.org
ANCOUNT
NSCOUNT
ARCOUNT
tcpdump Usage
Question Section
Answer Section
Authority Section
Length
(Number of bytes in entire datagram including header;
minimum value = 8)
Bit Number
1111111111222222222233
01234567890123456789012345678901
1
1
QDCOUNT
Checksum
(Covers pseudo-header and entire UDP datagram)
1
0
DNS Parameters
Query/Response
0 Query
1 Response
Opcode
0 Standard query (QUERY)
1 Inverse query (IQUERY)
2 Server status request (STATUS)
AA
(1 = Authoritative Answer)
TC
(1 = TrunCation)
Acronyms
RD
(1 = Recursion Desired)
RA
(1 = Recursion Available)
Z
(Reserved; set to 0)
Response code
0 No error
1 Format error
2 Server failure
3 Non-existant domain (NXDOMAIN)
4 Query type not implemented
5 Query refused
QDCOUNT
(No. of entries in Question section)
ANCOUNT
(No. of resource records in Answer section)
NSCOUNT
(No. of name server resource records in Authority section)
ARCOUNT
(No. of resource records in Additional Information section.
AH
ARP
BGP
CWR
DF
DHCP
DNS
ECN
EIGRP
ESP
FTP
GRE
HTTP
ICMP
IGMP
IGRP
IMAP
IP
ICMP
IP Header
TCP Header
Bit Number
1111111111222222222233
01234567890123456789012345678901
Bit Number
1111111111222222222233
01234567890123456789012345678901
Bit Number
1111111111222222222233
01234567890123456789012345678901
Type
Code
Checksum
Version
4
5
8
9
10
11
12
13
14
15
16
17
18
30
Echo Reply
Destination Unreachable
0 Net Unreachable
1 Host Unreachable
2 Protocol Unreachable
3 Port Unreachable
4 Fragmentation Needed & DF Set
5 Source Route Failed
6 Destination Network Unknown
7 Destination Host Unknown
8 Source Host Isolated
9 Network Administratively Prohibited
10 Host Administratively Prohibited
11 Network Unreachable for TOS
12 Host Unreachable for TOS
13 Communication Administratively Prohibited
Source Quench
Redirect
0 Redirect Datagram for the Network
1 Redirect Datagram for the Host
2 Redirect Datagram for the TOS & Network
3 Redirect Datagram for the TOS & Host
Echo
Router Advertisement
Router Selection
Time Exceeded
0 Time to Live exceeded in Transit
1 Fragment Reassembly Time Exceeded
Parameter Problem
0 Pointer indicates the error
1 Missing a Required Option
2 Bad Length
Timestamp
Timestamp Reply
Information Request
Information Reply
Address Mask Request
Address Mask Reply
Traceroute
Code (0)
Checksum
Sequence Number
Identifier
Data...
IHL
Type of Service
Identification
Time to Live
Total Length
Flags
Protocol
Source Port
Fragment Offset
Sequence Number
Header Checksum
Acknowledgment Number
Offset Reserved
Source Address
Flags
(Header Length)
Destination Address
IP Header Contents
Total Length
Number of bytes in packet; maximum length = 65,535
Flags (xDM)
x (reserved and set to 0)
D (1 = Don't Fragment)
M (1 = More Fragments)
UDP
GRE
ESP
AH
57
88
89
115
SKIP
EIGRP
OSPF
L2TP
Header Checksum
Covers IP header only
Addressing
NET_ID
0-127
128-191
192-223
224-239
240-255
HOST_ID
0
255
Class
Class
Class
Class
Class
pop3
sunrpc
nntp
netbios-ssn
imap
bgp
ldap
https (ssl)
microsoft-ds
socks
Offset
Number of 32-bit words in TCP header; minimum value = 5
Reserved
4 bits; set to 0
Flags (CEUAPRSF)
Fragment Offset
Position of this fragment in the original datagram,
in units of 8 bytes
17
47
50
51
Urgent Pointer
Options (optional)
Version
4
IP version 4
Protocol
1 ICMP
2 IGMP
6 TCP
9 IGRP
Window
Checksum
Options (optional)
Destination Port
(1
(1
(1
(1
(1
(1
=
=
=
=
=
=
Checksum
Covers pseudoheader and entire TCP segment
Urgent Pointer
Points to the sequence number of the byte
following urgent data.
Options
0 End of Options list
1 No operation (pad)
2 Maximum segment size
3 Window scale
4 Selective ACK ok
8 Timestamp