Menu

Quickly resolve network connectivity issues

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:

  1. 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.
  2. If the Protocol field lists “UNKNOWN”, select Analyze->Enabled Protocols->Enable All
  3. 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.
    1. Start Wireshark.
    2. Select the “Capture | Options” menu item.
    3. Choose the network interface that connect to the Helix Server and click Start.
  4. 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
     
  5. Run “p4 info” from a command prompt to the server

p4 info

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.

  1. Launch the application you want to analyze and reproduce the issue.
  2. Select the Capture | Stop menu item when you have completed reproducing the issue.
  3. Double-click any of the packets to see the packet contents
  4. 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.

0 Comment

Leave a Reply