Unraveling the Network Stack
Thursday, January 8, 2026
From a Windows Terminal-
winget install Microsoft.VisualStudioCode # if needed
winget install Docker.DockerDesktop
winget install Git.Git
winget install WiresharkFoundation.Wireshark
code --install-extension ms-vscode-remote.remote-wsl
wsl --update
wsl --list
wsl --list --online
wsl --install ubuntu
# now enter wsl
wsl
From within WSL environment-
sudo apt install tcpdump tshark bind9-dnsutils traceroute # network tools
sudo apt install python-is-python3 fish # quality of life upgrades
Create your class directory, navigate the filesystem, list contents to confirm-
mkdir cy350
cd cy350
ls
pwd
Finally, launch vscode from your current directory in Linux-
code .
hello.pypython hello.py
In a terminal-
sudo tcpdump -i eth0 -c 20 --print -w lab2.pcap
Run man tcpdump or tcpdump --help for an explanation of these command line flags.
In another terminal-
curl -v -i httpforever.com
Here, -v will ensure verbose output and -i will display HTTP headers in addition to the content.
Now return to the first terminal and press Ctrl+C to stop the packet capture process. Type ls to ensure that the captured packets were written to
httpforever.com and the corresponding HTTP response.Features > Chat > Disable AI Features to protect yourself from unintentional AI completions!
Alternatively:
Ctrl + Shift + P