Packet Capture Library

This is the NetworkLessons packet capture library: sample pcap files of network protocols, recorded in our own labs with Cisco IOS, FRRouting and VyOS. Every capture comes with a download link and a walkthrough that explains the important fields in each packet and why they’re there.

Each page focuses on one capture: a single packet or a short exchange that shows how something works. There are no long lab setups. You open the pcap in Wireshark, read along, and see the protocol on the wire. If you want the full theory or configuration, every capture links to the matching lesson.

How to use these captures

  • Download the capture from its page and open it in Wireshark (or tshark, tcpdump, or any tool that reads pcap/pcapng).
  • Each page lists a display filter to show only the interesting packets.
  • Fields highlighted in red in the walkthrough are the ones that matter. The rest is shown so you can match the output with your own Wireshark window.

MPLS

CapturePacketsWhat you’ll see
MPLS LDP Hello1LDP discovery on UDP 646, LSR ID, hold time and transport address
MPLS LDP Session and Label Mapping20TCP 646 session, Initialization, Address and Label Mapping messages, implicit null
MPLS L3VPN Label Stack70Transport and VPN label, bottom-of-stack bit, penultimate hop popping

Routing protocols

CapturePacketsWhat you’ll see
EIGRP Query and Reply11Multicast query, unicast reply, ACKs, sequence numbers and infinite delay
EIGRP Static Neighbor Unicast Hello22Unicast Hellos, K-values, the Init exchange and End of Table updates
IS-IS Level 1 LAN Hello1802.3/LLC encapsulation, circuit type, DIS, area address and hello padding
OSPFv3 Authentication Trailer1AT bit, HMAC-SHA-1 trailer, SA ID and cryptographic sequence number
BGP UPDATE with Multiple Prefixes38Eight prefixes in one UPDATE vs. eight UPDATEs when every prefix has a different MED
BGP Update-Source on One Side26A TCP RST for the wrong source address, then a working iBGP session from the other side
BGP Role and OTC Attribute10RFC 9234 BGP Role capability, connection collision and the Only to Customer attribute
BGP Role Mismatch13Provider-provider mismatch and the OPEN Message Error / Role Mismatch notification

IP services

CapturePacketsWhat you’ll see
DNS Query and Response2Transaction ID, RD/RA flags, answer, authority and additional records, name compression
NTP Authentication2NTP modes, stratum, the four timestamps, Key ID and MD5 MAC
VRRP Advertisement4VRRPv2 header, virtual MAC, priority, gratuitous ARP and preemption
BFD Control Packet1UDP 3784, session state, discriminators, intervals and detect multiplier

IPv6

CapturePacketsWhat you’ll see
DHCPv6 Solicit, Advertise, Request, Reply4Stateful DHCPv6, DUIDs, IA_NA, T1/T2 and lifetimes, DNS options
IPv6 Router Advertisement with Router Lifetime 02A regular RA vs. the final RA when a router stops advertising, prefix lifetimes and SLAAC

Tunnels and VPN

CapturePacketsWhat you’ll see
L2TPv3 Control Connection and Session Setup15IP protocol 115, tie-breaker collision, SCCRQ/SCCRP/SCCCN and ICRQ/ICRP/ICCN

Switching

CapturePacketsWhat you’ll see
VTP Version 2 Advertisements2Summary and subset advertisement, revision number, MD5 digest and VLAN list

Network automation

CapturePacketsWhat you’ll see
gRPC on Cisco IOS XR35HTTP/2 streams, ReplaceConfig and GetConfig RPCs, YANG JSON in protobuf, grpc-status trailers

Network fundamentals

CapturePacketsWhat you’ll see
Ping on the Linux Loopback Interface2All-zero MACs, 127.0.0.1, a 13 microsecond round trip and the ping timestamp

Frequently asked questions

What is a pcap file?

A pcap (or the newer pcapng) file stores captured network packets exactly as they were on the wire, with a timestamp for each packet. Tools like Wireshark, tshark and tcpdump write and read this format, so you can analyze traffic later or on another computer.

Can I use these captures for training or testing?

Yes. The captures come from isolated lab networks and contain no customer data. They’re useful for learning protocols, preparing for CCNA, CCNP and CCIE exams, and testing parsers, IDS rules or replay tools.

How do I capture packets on Cisco devices myself?

Cisco IOS and IOS XE can capture packets on the device itself with Embedded Packet Capture (EPC). In a virtual lab such as CML or Containerlab, you can capture directly on the links between devices.