9.2.6 Lab - Using Wireshark To Observe The TCP 3-Way Handshake
9.2.6 Lab - Using Wireshark To Observe The TCP 3-Way Handshake
• Objectives
Part 1: Prepare the Hosts to Capture the Traffic
• Background / Scenario
In this lab, you will use Wireshark to capture and examine packets generated between the PC
browser using the HyperText Transfer Protocol (HTTP) and a web server, such as www.google.com.
When an application, such as HTTP or File Transfer Protocol (FTP) first starts on a host, TCP uses
the three-way handshake to establish a reliable TCP session between the two hosts. For example,
when a PC uses a web browser to surf the internet, a three-way handshake is initiated, and a session
is established between the PC host and web server. A PC can have multiple, simultaneous, active
TCP sessions with various web sites.
• Required Resources
• CyberOps Workstation virtual machine
• Instructions
Questions:
Questions:
NAME
[ -c count ]
[ --number ] [ -Q in|out|inout ]
[ -W filecount ]
[ -E spi@ipaddr algo:secret,... ]
[ --time-stamp-precision=tstamp_precision ]
[ --immediate-mode ] [ --version ]
[ expression ]
• In the same terminal, open the capture file using the following command to view the first
3 TCP packets captured:
[analyst@secOps ~]$ tcpdump -r /home/analyst/capture.pcap tcp -c 3
reading from file capture.pcap, link-type EN10MB (Ethernet)
To view the 3-way handshake, you may need to increase the number of lines after the -c option.
• Navigate to the terminal used to start Mininet. Terminate the Mininet by entering quit in
the main CyberOps VM terminal window.
mininet> quit
*** Stopping 0 controllers
*** Stopping 2 terms
.....
s1
H1 H2 H3 H4 R1
*** Done
[analyst@secOps ~]$
• After quitting Mininet, enter sudo mn -c to clean up the processes started by Mininet.
Enter the password cyberops when prompted.
[analyst@secOps ~]$ sudo mn -c
[sudo] password for analyst:
• Reflection Questions
• There are hundreds of filters available in Wireshark. A large network could have numerous filters and
many different types of traffic. List three filters that might be useful to a network administrator.
TCP, specific IP Addresses (source and/or destination), and protocols such as HTTP.e
your answers here.
End of document