How to Use Wireshark to Analyze Network Performance
How to use Wireshark to analyze slow network traffic to a Perforce Helix Core p4d server. What to Look For in the Wireshark OutputApr 10, 2019PROBLEM
How to use Wireshark to analyze slow network traffic to a Perforce server.
Note: Wireshark was formerly known as Ethereal.SOLUTION
Wireshark is a useful tool to determine the cause of slow network connections. The following steps show you how to configure Wireshark:
- Install Wireshark:On Windows, download Wireshark and install with the default selections, including WinPcap.On Linux, enter the commands:yum search wireshark
yum install wireshark.x86_64k
yum install wireshark-gnomeNote: Replace “wireshark.x86_64” with the build that corresponds to your Linux workstation platform.
- If the Protocol field lists “UNKNOWN”, select Analyze->Enabled Protocols->Enable All
- Configure the interface to be analyzed:To configure a filter with a focus on Perforce P4 network traffic click the Expression item next to the Filter item.
- Start Wireshark.
- Select the “Capture | Options” menu item.
- Choose the network interface that connect to the Helix Server and click Start.
- Define filters:To capture P4V client access to a Helix server configure the filter.Example to connect to 10.20.30.40:1666
Enter in Expression line to connect to 10.20.30.40:1666
(ip.addr eq 10.20.30.400) and (tcp.port eq 1666)
Select Capture | Start
and choose Continue without Saving
- Run “p4 info” from a command prompt to the server
Check to see if there is a immediate response in the Wireshark display.
You can also run
p4 -v rpc=5 -v net=5 info
to see similar information from a p4 client.
- Launch the application you want to analyze and reproduce the issue.
- Select the Capture | Stop menu item when you have completed reproducing the issue.
- Double-click any of the packets to see the packet contents
- To save the results, select the File | Save as… menu item to save the output as a .pcap file for analysis. Search the output as described below.