You can start a Traceflow session in NSX Manager to trace the path of packet in an Antrea Kubernetes cluster. Antrea Traceflow currently supports tracing the path of only Unicast traffic. Broadcast and Multicast traffic are not supported.
Note: In a multi-tenant
NSX environment, the
Antrea Traceflow feature is currently not supported under projects. You must use this feature in the
Default view (default space) of the
NSX environment.
The source of a
Traceflow session must be a pod, whereas the destination can be a pod or a service in the same
Antrea Kubernetes cluster. You can trace the path of a packet for the following types of traffic in an
Antrea Kubernetes cluster:
- Pod to pod traffic on the same node (intra-node traffic)
- Pod to pod traffic between nodes (inter-node traffic)
- Pod to service traffic on the same node
- Pod to service traffic between nodes
- Pod to an arbitrary IP address
Note: Currently,
Antrea Traceflow does not support tracing the path of a packet that travels between
Antrea Kubernetes cluster and
NSX overlay network. However, some workaround is possible. For more information, see
Workaround to Trace the Packet Flow Between an Antrea Kubernetes Cluster and an NSX Overlay Network.
Traceflow injects a test packet into the Antrea Kubernetes cluster network and monitors the flow of the packet. As the packet flows from the source to destination, observations are collected from various components along the path of the packet. These observations are displayed in the Traceflow output, which shows the various components in the path of the packet.
Prerequisites
Antrea Kubernetes cluster is registered to NSX.
Procedure
Results
The
Traceflow observations are displayed in a tabular format. For each observation, the table shows the following information.
- Observation Type
-
This column takes the following values.
Observation Type Description Delivered The packet is delivered to destination Pod or Service properly. Dropped The packed is dropped by a network policy. Received The packet is received from another node in the Kubernetes cluster. Forwarded The packet is forwarded to the next logical node or a Kubernetes cluster object. - Component
-
This column shows the components that the test packet had encountered on its path from the source to the destination. Sample component values are: IngressRule, EgressRule, SpoofGuard, Classification, Output, and so on.
Click the component name to view more information in a pop-up window.
- Timestamp
- The date and time for each observation.