22B91A04H9-1Capturing and Analyzing TCP and IP Protocols Using Wireshark
22B91A04H9-1Capturing and Analyzing TCP and IP Protocols Using Wireshark
using wireshark
Objectives:
1) Accessing a website in web browser while capturing the network traffic
using wireshark.
2) Filtering the relevant packets of the conversation with the particular
website in the captured file.
3) Analysing the IPV4, TCP header fields and TCP three way handshake
procedure in establishing and releasing the connections.
Tool(s) required: Wireshark Network Analyzer
● Open the wireshark file and observe the total number of packets
Step 3 Analyzing the TCP Header and understanding TCP three way
handshake procedure.
filter TCP.
● These are the total number packets transferred when accessing the
website.
● Determining TCP Conversation Completeness: A full TCP
conversation has the following scenario.
4 : ACK
8 : DATA
16 : FIN
32 : RST
● Observe the numeric value corresponding to the conversation
completeness field of the first TCP packet.
● Equate the value observed as sum of all or any of the values assigned to
the packet types above.
● Filter the FIN packet using the filter: (ip.addr eq 192.168.0.171 and
ip.addr eq 104.120.58.228) and (tcp.port eq 52040 and tcp.port eq
443) && (tcp.flags.fin == 1)
Displayed packets 9
● Filter the SYN-ACK packet using the filter: (ip.addr eq 196.1.1.30 and
ip.addr eq 192.168.0.49) and (tcp.port eq 80 and tcp.port eq
50198)&&tcp.flags.syn == 1 && tcp.flags.ack == 1
● Filter the FIN packet using the filter: (ip.addr eq 196.1.1.30 and ip.addr
eq 192.168.0.49) and (tcp.port eq 80 and tcp.port eq 50198)&&
(tcp.flags.fin == 1)
Conclusion: