Wireshark Notes
Wireshark Notes
Wireshark Notes
TCP Options
• MTU: Layer 3 Maximum Transmission Unit of an interface
• MSS: Layer 4 Maximum Segment Size of end to end flow, from client to
server and vice versa
• TCP Fin: Gracefully shutdown
• TCP Reset: Abrupt shutdown, possibly because port is not opened, notice
time-to-live value to know if end host or intermediate host is replying
• TCP Windows Size: Maximum amount of bytes that sender can receive
before sending ACK. This is usually multiplied by scaling windows to get
calculated windows size
• TCP Timestamps: the timestamp assigned by sender and sent back by
receiver, used to identify round trip time of packets
• TCP Duplicate ACK: Missing packet will be requested by sending duplicate
ACK up to received sequence number until the missing sequenced packet
received. This can be a long time depending on distance between client
and server
• TCP Selective ACK
• TCP NOP (No Operation): Padding for TCP Options that is less than 4 bits
Capture Filter
Primitive can be
• [src|dst] host <host>
• ether [src|dst] host <host>
• gateway host <host>
• [src|dst] net <net> [{mask <mask>}|{len <len>}]
• [tcp|udp] [src|dst] port <port>
• less|greater <length>
• ip|ether proto <protocol>
• ether|ip broadcast|multicast
• <exp> relop <exp>
Examples
• host 10.1.1.1
• net 10.0.0.0 mask 255.255.255.0
• net 10.0.0.0/24
• port 8080
• tcp port 23 and host 10.0.0.1: capture telnet to and from 10.0.0.1
• tcp port 23 and not src host 10.0.0.1: capture telnet not from 10.0.0.1
• host http://www.example.com and not (port 80 or port 25)
host http://www.example.com and not port 80 and not port 25
Display FIlter
Logical Operation
• And: &&, and
• Or: ||, or
• XOR: xor, ^^: exclusive alternation – Only one of the two conditions
should match not both
• NOT: not, !
• Equal: ==, eq
• Substring: [n] […]: filter a specific word or text
Happy Learning…
Thanks
Rakesh