Giter Club home page Giter Club logo

hnsexplorer's Introduction

HNS Explorer

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.

How To Use

Search

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. image

Dump to JSON

The "Dump to JSON" button will dump all the data collected by the tool to a massive JSON file.

Packet Capture

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.
image

Windows Performance Recorder Trace

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
image image image

Reload HNS Data

The "Reload HNS Data" button will reload the data from the HNS/HCS apis.

Build Instructions

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

hnsexplorer's People

Contributors

shaunlawrie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

zeta1999

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.