Tracing Packet Flow
SITL gateway nodes (sitl_virtual_gateway_to_real_world) can capture real and simulated packets passing through them and save those packets to trace files. This capability is controlled by two attributes of the gateway node.
Real Packet Capture Trace File Name—This attribute controls capture of real packets (both inbound and outbound) in the gateway node. Inbound packets are captured as received from the real world. Outbound packets are captured after being converted from simulated.
Simulated Packet Capture Trace File Name—This attribute controls capture of simulated packets (both inbound and outbound) in the gateway node. Inbound packets are captured after being converted from real. Outbound packets are captured as received from the simulation.
Both attributes take the following values:
-
"Not Used"—No packets are captured (default).
-
"default"—Packets are captured. The file name is created automatically, as follows:
For real packets:
<project>-<scenario>-<hname>-pkt_trace.pcapFor simulated packets:
<project>-<scenario>-<hname>-pkt_trace.csv -
<name>—Packets are captured. The specified file name is used.
Packet trace files are created in the primary model directory.