Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Using Sandump Tool​

Starting with Contrail Networking Release 2008, Sandump tool is available in contrail-tools container. You can use the Sandump tool on macOS machines.

Sandump tool captures the Sandesh messages from netlink connection between Agent and vRouter (only DPDK mode) and provides interpretation of all the captured bytes.​

Starting with Contrail Networking Release 2011, you can use Sandump tool on Windows machines.

Sandesh is a southbound interface protocol based on Apache Thrift, to send analytics data such as system logs, object logs, UVEs, flow logs, and the like, to the collector service in the Contrail Insights node.

You can analyze the captured bytes in Wireshark. The Wireshark plugin parses the hex dumps of all Sandesh objects. You must use Wireshark Release 3.2 and later.

You must have Wireshark application installed on your machine. You can download Wireshark from the Download Wireshark page.

For more details on Wireshark, see https://www.wireshark.org/docs/.

Follow the procedure to use Sandump tool:

  1. Run the sandump command. It gives summary of each message which is being transferred between the agent and the vRouter.​
  2. Copy the output into a file.

    The command generates a file which contains sniffed bytes converted in to the pcap format.

  3. Analyze the captured packets transferred between the agent and the vRouter.
  4. Analyze the pcap file in WireShark.
    • Follow the procedure to analyze the packets in Wireshark for Windows OS.

      1. Download the sandump_wireshark_plugin folder from the https://github.com/tungstenfabric/tf-vrouter/tree/master/utils/sandump repository.

      2. Copy the sandump_wireshark_plugin/main.lua file in C:\Program Files\Wireshark\plugins\ folder.

        Create new lua folder in C:\Program Files\Wireshark\ and copy the rest of the lua files present in sandump_wireshark_plugin folder to the newly created lua folder.

        Note:

        Wireshark installation directory for 32-bit Windows is present in C:\Program Files (x86)\Wireshark\and for 64-bit Windows is present in C:\Program Files\Wireshark\.

      3. Run Notepad as administrator and open C:/Windows/System32/drivers/etc/hosts file.

      4. ​​​​​​​Add the host names with the following details:

        • Agent IP address—0.0.0.0

        • vRouter IP address—1.1.1.1

        Figure 1 shows the host file with the required IP addresses.

        Figure 1: host file host file
      5. Open the pcap file generated from Sandump tool for further debugging in Wireshark.

        Figure 2: File debugging in WiresharkFile debugging in Wireshark
    • Follow the procedure to analyze the packets in Wireshark for macOS.

      1. Download the sandump_wireshark_plugin folder from the https://github.com/tungstenfabric/tf-vrouter/tree/master/utils/sandump repository.

      2. Copy the sandump_wireshark_plugin folder in /Applications/Wireshark.app/Contents/PlugIns/wireshark directory which is also know as Global Lua Plugins directory.

      3. Un-comment the package.prepend_path(…) line in main.lua, common.lua and helpers.lua files found in sandump_wireshark_plugin folder.

      4. Navigate to Wireshark > About Wireshark > Folders > Personal configuration to edit the configuration.

      5. ​​​​​​​Create hosts file in the Personal configuration directory and add the host names with the following details:

        • Agent IP address—0.0.0.0

        • vRouter IP address—1.1.1.1

        Figure 3 shows the host file with the required IP addresses.

        Figure 3: host file host file
      6. Navigate to Wireshark > Preferences > Name Resolution and check Resolve network (IP) addresses option.

        Figure 4: Wireshark—PreferencesWireshark—Preferences
      7. Open the pcap file generated from Sandump tool for further debugging in Wireshark.

        Figure 5: File debugging in WiresharkFile debugging in Wireshark
Release History Table
Release
Description
2011
Starting with Contrail Networking Release 2011, you can use Sandump tool on Windows machines.
2008
Starting with Contrail Networking Release 2008, Sandump tool is available in contrail-tools container. You can use the Sandump tool on macOS machines.