A simple GUI for exploring the data in the Windows Host Network Service.
The Host Network Service is the system underpinning container networking on Windows:
https://docs.microsoft.com/en-us/virtualization/windowscontainers/container-networking/architecture
This was created while I've been learning more about the HNS and how to debug container networking issues on Windows Kubernetes nodes.
Entering something like a container ID in the text entry field and hitting enter will do a primitive search for all HNS activities that reference it.
The "Dump to JSON" button will dump all the data collected by the tool to a massive JSON file.
Packet capture for these virtual adaptors can be done with the pktmon tool https://docs.microsoft.com/en-us/windows-server/networking/technologies/pktmon/pktmon
The "Packet Capture" button just sets up a basic capture using pktmon and converts the output to something that can be opened in Wireshark.
Launch a WPR trace using a cut down version of the trace format at https://github.com/MicrosoftDocs/Virtualization-Documentation/blob/main/windows-server-container-tools/wpr-profiles/HcsTraceProfile.wprp
The "Reload HNS Data" button will reload the data from the HNS/HCS apis.
To build install the dotnet 6 SDK https://dotnet.microsoft.com/en-us/download/dotnet/6.0
This will generate a single exe output
dotnet publish -c Release -r win-x64 -p:PublishSingleFile=true -p:EnableCompressionInSingleFile=true --self-contained