Articles

 

Here are links to some articles I have written.


The ability to process a packet capture (PCAP) file programmatically is invaluable when debugging a network issue, or when trying to understand the behaviour of network applications. When you have dozens of PCAPs, each containing thousands of packets, and you want to look for a particular pattern or event, examining each PCAP manually in Wireshark is not an option. This article I wrote – Analyzing Packet Captures with Python – walks you through a series of steps that will help you get started with writing your own PCAP analysis program in Python.

Google Analytics tells me that this article gets something like 1000 views a month, and is the first search result on Google Search when you search for “read packet capture in python”.


I got a little tired of Googling for “Network Automation” and ending up with a bunch of  articles filled with buzzwords and marketing-speak. So I decided to take one specific task – adding a new VLAN to a Distribution switch – and use that task as the basis for understanding various network automation approaches. If you’re like me – a hands-on person who likes learning things bottom-up – you’ll probably appreciate this article: Network Automation: A 1000-ft tour


Pretty much every Python program I’ve written starts off by parsing the command line. The argparse module is the standard Python library for parsing command lines. I know how it works, but I keep forgetting the exact invocation needed to elicit a particular behaviour. What I wanted was a cheat sheet, so I wrote one: Python argparse recipes