4.1: Introduction
- Page ID
- 121341
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\dsum}{\displaystyle\sum\limits} \)
\( \newcommand{\dint}{\displaystyle\int\limits} \)
\( \newcommand{\dlim}{\displaystyle\lim\limits} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\(\newcommand{\longvect}{\overrightarrow}\)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)A network switch or Ethernet switch is a multi-port networking hardware system that connects devices on a computer network using packet switching to receive, process, and forward data to a destination device whose address is in the packet.[1]
A simple network hub broadcasts the same data out of each of its ports. However, a network switch forwards data only to one or multiple devices that need to receive the packet.[2]
Packet Switching
Packet switching is a method of grouping data to be transmitted over a telecommunications network into short messages in a fixed format, called a packet.
Packets consist of a "header" section and a "payload" section.
- The header provides the means for directing a packet to its destination (e.g., Destination MAC address)
- The payload consists of the actual data that an application wants to transmit.[3]
In the Open Systems Interconnect (OSI) model developed by the International Organization for Standardization (ISO), there are several layers:
- Physical layer
- Data Link layer
- Network layer
- Transport layer
- Session layer
- Presentation layer
- Application layer.
Ethernet frame
An Ethernet frame is a data link layer (Layer 2) protocol data unit that uses the underlying Ethernet physical layer (Layer 1) transport mechanisms.
- Layer 2 is the layer at which one transmits data frames between two network nodes that are connected by a physical layer.
- Layer 1 handles the transmission and reception of bit streams over a physical medium (e.g., copper cable, fiber optic cable).
An Ethernet frame (described below) is preceded by a "preamble" and a "start frame delimiter (SFD):, which are both part of the Ethernet packet at the physical layer (Layer 1).
An Ethernet frame consists of:
- An Ethernet header, which contains destination and source Media Access Control (MAC) Addresses as its first two fields. A MAC address is a unique identifier assigned by network device manufacturers and are typically store in the device's read-only memory.
- The middle section of the frame is payload data, including any headers for other protocols (for example, Internet Protocol) carried in the frame.
- The frame ends with a Frame Check Sequence (FCS), which is a 32-bit Cyclic Redundancy Check (CRC) that is used to detect any in-transit corruption of data.[4]
An Ethernet packet is shown in Figure \(\PageIndex{1}\).
Figure \(\PageIndex{1}\): Ethernet packet. The SFD (start frame delimiter) marks the end of the packet preamble. It is immediately followed by the Ethernet frame, which starts with the destination MAC address. (Ethernet frame - Wikipedia, in the public domain)
An Ethernet packet is structured as follows:
- Preamble
- Start Frame Delimiter (SFD)
- Destination MAC Address
- Source MAC Address
- Ethertype
- Payload
- Frame Check Sequence (FCS)
A data packet on the wire and the frame as its payload consist of binary data. Ethernet transmits data with the most-significant octet of eight bits (byte) first; within each octet, however, the least-significant bit is transmitted first.[4]
The internal structure of an Ethernet frame is specified in the IEEE 802.3 specification. Figure \(\PageIndex{2}\) shows the complete Ethernet packet and the frame inside, as transmitted, for the payload size up to the Maximum Transmission Unit (MTU) of 1500 octets. Some implementations of Gigabit Ethernet and other higher-speed variants of Ethernet support larger frames that are called jumbo frames.[4]
802.3 Ethernet packet and frame structure showing the number of octets in each component:
- Preamble: 7 octets
- Start Frame Delimiter (SFD): 1 octet
- Frame: 64 to 1522 octets
- Destination MAC Address: 6 octets
- Source MAC Address: 6 octets
- Ethertype or length: 2 octets
- Payload: 42-1500 octets
- Frame Check Sequence (FCS): 4 octets
Ethernet II framing
Ethernet II framing defines the two-octet Ethertype field in an Ethernet frame, that is located right after the destination and source MAC addresses. It identifies an upper layer protocol encapsulated by the frame data.
For example:
- an EtherType value of 0x0800 indicates that the frame contains an IPv4 datagram (IPv4 supports 4 billion (232) addresses with a 32-bit address).
- 0x0806 indicates an Address Resolution Protocol (ARP) datagram,
- 0x86DD indicates an IPv6 datagram.[4] IPv6 uses 128-bit addresses, supporting an address space of 2128, or 1038
As this industry-developed standard went through a formal Institute of Electrical and Electronics Engineers (IEEE) standardization process, the EtherType field was changed to a (data) length field in the new 802.3 standard.
Since the packet receiverl needs to know how to interpret the frame, the standard required an IEEE 802.2 header to follow the length and specify the type. IEEE 802.2 defines Logical Link Control (LLC) as the upper portion of the data link layer of the OSI model.[5]
In the 802.3x-1997 standard, and later versions of the 802.3 standard, formally approved of both types of framing. Ethernet II framing is the most common in Ethernet local area networks, due to its simplicity and lower overhead.[4]
Figure \(\PageIndex{3}\): Ethernet Type II frame. (Ethernet frame - Wikipedia[4] in the public domain)
An Ethernet Type II frame is structured as follows:
- MAC Header (14 bytes)
- Destination MAC Address
- Source MAC Address
- Ethertype
- Data/Payload (46-1500 bytes)
- CRC Checksum (4 bytes)
Location in a network
Access Switches
Access switches reside at the edge of a network, connecting WiFi access points, IP telephones sitting on the desks of employees, Ethernet-cabled equipment such as servers, security cameras, and so on. Some of the connections may require support for Power over Ethernet (PoE) in which the Ethernet cable provides power from the switch to the connected device, supporting 15, 30, or 60 watts.
Access switches often are placed in wiring closets.
Aggregation Switches
Aggregation switches serve to connect access switches, aggregating traffic from access switches for transport to the network core switch or switches. The up-link speeds of aggregation switches tend to be higher. Additionally, they have more Layer 3 routing functionality.
Core Switch
Core switches are connected to aggregation switches and would be connected to a router for connectivity to a Wide Area Network (WAN) and the internet.
Switch functions
A network switch needs to learn MAC addresses. As part of the learning process, it might store the addresses in a pice of specialized hardware called a Content Addressable Memory (CAM).
The switch has to forward packets to the specified destination, i.e, the Destination MAC address at Layer 2 or the IP address in a Layer 3 network. It may forward the packet to the next hop on its way to its ultimate destination.
More advanced switches might incorporate security features such as Virtual Private Networks and encryption.
References
- Network switch - Wikipedia. Accessed February 4, 2026.
- Networking hardware - Wikipedia. Accessed February 4, 2026.
- Packet switching - Wikipedia. Accessed February 4, 2026.
- Ethernet frame - Wikipedia. Accessed February 4, 2026.
- IEEE 802.2 - Wikipedia. Accessed February 15, 2026.
- Ethernet packet image.

