-
ethernet
Package ethernet implements marshaling and unmarshaling of IEEE 802.3 Ethernet II frames and IEEE 802.1Q VLAN tags. MIT Licensed.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I find looking at the header structure directly helps me to wrap my head around it. At layer 2 you are dealing exclusively with Ethernet frames which have a number of fields in their header that indicate their source and destination MAC addresses, among other things. These frames are what the switch builds it's CAM table from and it uses that table to forward traffic, and for a layer 2 switch that is the entire picture.