Packet Captures

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
IS-IS Point-to-Point Hello1Type 17 hello, three-way adjacency state TLV, no DIS or priority
IS-IS LSP and PSNP Acknowledgment2An LSP on a point-to-point link and the PSNP that acknowledges it
OSPF HMAC-SHA-256 Authentication1Cryptographic auth type 2, key ID, sequence number and the 32-byte digest
OSPF Max-Metric Router LSA1Stub router: transit links advertised with metric 65535
RIPv2 Request and Response2UDP 520 to 224.0.0.9, the full-table request (AF 0, metric 16) and the response
RIPv2 MD5 Authentication1Authentication entry with key ID and sequence number, and the MD5 trailer

BGP

CapturePacketsWhat you’ll see
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
BGP NOTIFICATION Bad Peer AS2OPEN with the wrong AS number and the OPEN Message Error / Bad Peer AS notification
BGP Route Reflector ORIGINATOR_ID and CLUSTER_LIST1A reflected route with the two attributes a route reflector adds
BGP Aggregate with AS_SET1AS_PATH with an AS_SEQUENCE and an AS_SET {2, 3}, and the AGGREGATOR attribute
BGP NO_ADVERTISE Community1The COMMUNITIES attribute with the well-known value 0xFFFFFF02
BGP AIGP Attribute1Optional non-transitive attribute 26 with the accumulated IGP metric

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
DHCP Relay Option 824Relayed DHCP with giaddr, hop count and option 82 with the remote ID
GLBP Hello1UDP 3222 to 224.0.0.102, AVG priority, virtual IP and forwarder TLVs
GLBP ARP Reply with Virtual MAC2The AVG answering an ARP request with virtual forwarder MAC 0007.b400.0101
TFTP Read Request and File Transfer9RRQ on UDP 69, a new server port, 512-byte DATA blocks and ACKs

Network management

CapturePacketsWhat you’ll see
SNMPv2c Trap1A linkDown trap on UDP 162, community string, sysUpTime, snmpTrapOID and varbinds
SNMP Get Request and Response2GetRequest and Response on UDP 161, request ID, OID and value
Syslog Message1UDP 514, the PRI value with facility and severity, and the Cisco message format
NetFlow v9 Template and Data2A template FlowSet that defines the fields and the data FlowSet that uses it

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
RIPng Response1UDP 521 to ff02::9 from a link-local address, prefix length instead of a netmask

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
LISP Map-Register and Map-Notify2EID prefix registration on UDP 4342, nonce, authentication data, RLOC priority and weight

Switching

CapturePacketsWhat you’ll see
VTP Version 2 Advertisements2Summary and subset advertisement, revision number, MD5 digest and VLAN list
PAgP Desirable and Auto2Auto vs desirable mode, SNAP PID 0x0104, device IDs and port name TLVs
LACP PDU1Slow protocols frame, actor and partner info, system and port priority, state flags
LLDP Advertisement1Chassis ID, port ID, TTL, system name and capabilities TLVs
MST BPDU2Protocol version 3, the region name, revision and digest, and one MSTI record per instance
PVST+ IEEE and SSTP BPDU2The IEEE BPDU and the Cisco SSTP BPDU for VLAN 1 with the Originating VLAN TLV

Multicast

CapturePacketsWhat you’ll see
PIM Bidir DF Election2PIM type 10 Offer and Winner messages for an RP, with metric preference and metric
MSDP Source-Active1TCP 639 between RPs, the originating RP address and an (S,G) entry

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
ICMP Port Unreachable2Type 3 code 3 with the original IP and UDP header inside
ICMP Fragmentation Needed2Type 3 code 4 with the next-hop MTU, the error behind path MTU discovery

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.