You can create a Live Traffic Analysis (LTA) session. Traffic analysis is helpful in troubleshooting virtual network problems.

Procedure

  1. With admin privileges, log in to NSX Manager.
  2. Navigate to Plan & Troubleshoot > Traffic Analysis > Live Traffic Analysis > Get Started.
  3. To start a traffic analysis, click New Session.
  4. System generates the session name. If you wish, you can edit the session name.
  5. Select the trace, packet count, and packet capture and provide related information.
    Protocol Parameters
    Trace & Packet Capture Sampling Type System supports only the FirstNSampling type.

    First N number of packets that match the packet filter under the Advanced Settings tab are sampled for analysis.

    Trace By default, the toggle is active. Trace generates the packet traceflow. If you select only the source, system generates the traceflow for the packets ingressed from the source (matching the forward filter, if any).

    If you also select the destination, in addition system generates the traceflow for the packets ingressed from the destination (matching the reverse filter, if any).

    Trace Sampling Value Number of packets to be sampled. Enter the value from 1 through 50.
    Packet Count Captures the counters at each of the observation points when packet is received. By default, the toggle is active.
    Packet Capture Generates the PCAP files with live trace telemetry. By default, the toggle is active.
    Packet Capture Sampling Value Enter the value from 1 through 500.
  6. Specify the source and destination information according to the traffic type. Click Add Destination, and select a destination to capture.

    Bi-directional trace traces the traffic ingressed from the source and the traffic ingressed from the destination, respectively.

    For example, consider three VMs: App-VM, Web-VM, and DB-VM, and there is a ping traffic from the App-VM to the Web-VM and a ping traffic from the App-VM to the DB-VM. If you perform bi-directional trace without any packet filters with source as the App-VM and destination as the Web-VM, then the traces of the forward direction contains traces for ICMP echo from the App-VM to the Web-VM and the DB-VM, while the traces of the reverse direction contains traces for ICMP reply from the Web-VM to the App-VM.

    To see the traffic between the source and destination only, specify the proper packet filter.

    Traffic Type Source Destination
    Virtual Machine For a VM:
    • Select the name of the virtual machine from the list.
    • You can select or view the virtual interface and the segment port for the selected VM.
    For a VM:
    • Select the name of the virtual machine from the list.
    • You can select or view the virtual interface and the segment port for the selected VM.
    Port/Interface For a logical port:
    • Select an attachment type as Virtual Interface, Edge Uplink, or Edge Centralized Service.
    • Select a port.
    For a logical port:
    • Select an attachment type as Virtual Interface, Edge Uplink, or Edge Centralized Service.
    • Select a port.
  7. (Optional) Click Advanced Settings and view the advanced options.
    Enter the desired values for the following parameters and click Apply.
    Table 1.
    Option Description
    General Tab
    Session Timeout Default timeout value is 10 seconds. You can add value between 5 to 300 seconds.
    Packet Count Settings > Include Only Interface Points Activate the toggle button if you want the packet count observation to include only the interface points.
    Filters Tab
    IP Type Select IPv4 or IPv6.
    Forward Filters or Reverse Filters

    Forward filters formulate the flows of interest for the traffic ingressed from the source.

    Reverse filters formulate the flows of interest for the traffic ingressed from the destination.

    You can apply filter based on 5-tuple or plain text as Fields Filter Data or Plain Filter Data.

    Filter Type: Fields Filter Data

    For bi-directional LTA session, the system populates the source and destination IPs.

    If you change the filter type to plain filter data and set the empty values, then all IP observations are reported for all the traffic in the source and destination VMs.

    Filter Type: Plain Filter Data Add details for basic and extended filter such as IP address and port number.
    Note: Plain filter data is realized on ESXi only.
  8. Click Start Session.

Results

You can view the status of the created session. After the session is finished, you can view the session for further analysis.

What to do next

You can perform the following tasks:

Option Description
Download PCAP Files You can download the PCAP file to your system for further analysis. For the bi-directional LTA sessions, you can download both forward and reverse PCAP files.
Rerun Run an existing session again. The session persists only for one hour.
Duplicate Session You can copy the session parameters to create a new session. You can quickly change few options in the new session.
New Trace You can start a new traffic analysis session again.