Computer Networking Basics
Computer Networking Fundamentals
What Is Computer Networking?
Computer networking is the full scope of how computers and other devices communicate with one another. Networking allows devices to exchange data across:
A direct cable connection
A local network in a home, office, or data center
Multiple interconnected networks
The global Internet
Effective communication requires devices to follow shared rules. Human communication provides a useful analogy:
Participants must use a language they both understand.
They must be able to hear one another.
They may need to repeat or clarify information.
Messages may be directed to one person or to a group.
Conversations usually have a beginning and an ending.
Computers follow similar rules through formal communication standards.
A protocol is a defined set of rules and standards that devices must follow in order to communicate correctly.
Protocols determine how data is formatted, addressed, transmitted, received, interpreted, and sometimes retransmitted when errors occur.
Networking is important in IT support because applications rarely operate in isolation. A support specialist may need to understand:
How one computer communicates with another
How applications communicate across a network
How data travels between local and external networks
How network changes affect users and support teams
How to diagnose failed or slow communication
Layered Network Models
Networking involves many technologies operating simultaneously. A local cable connection uses different rules from the protocols that move data across the Internet, yet both are necessary for communication to succeed.
A network model organizes these responsibilities into layers. Each layer performs a particular function and supports the layers above it.
The course uses the TCP/IP five-layer model:
Physical layer
Data link layer
Network layer
Transport layer
Application layer
The OSI model is another major network model and divides networking into seven layers. The five-layer model combines some responsibilities differently, but both models are used to understand how network communication is organized.
Why Layering Matters
Layering makes networking easier to design, operate, and troubleshoot:
Each layer has a defined responsibility.
A layer can hide lower-level implementation details from higher layers.
Technologies at one layer can often change without requiring changes to every other layer.
Troubleshooting can proceed systematically from the physical connection upward.
For example, a web browser does not need to know whether a device is connected through copper Ethernet, fiber, or Wi-Fi. The lower layers provide the necessary communication services, allowing the browser to operate consistently.
Protocols at each layer carry the data and services of the layers above them.
The TCP/IP Five-Layer Model
1. Physical Layer
The physical layer is the lowest layer of the network stack. It represents the physical equipment and methods used to transmit raw bits between connected devices.
The physical layer includes specifications for:
Network cables
Connectors and plugs
Network ports
Electrical or optical signals
Signal timing and transmission characteristics
The representation of binary ones and zeros over a physical medium
The physical layer does not interpret the meaning of the data. It is concerned with moving the underlying bits from one endpoint of a link to the other.
Examples of physical-layer elements include:
Copper twisted-pair cables
Fiber-optic cables
RJ45 connectors
Electrical voltage changes
Pulses of light
Physical network ports
2. Data Link Layer
The data link layer defines how devices interpret signals and communicate over a single local link or network segment.
Some sources call this layer the:
Network interface layer
Network access layer
The data link layer introduces protocols that organize raw physical signals into meaningful local-network communication. Its responsibilities include:
Defining how devices communicate over one link
Identifying local network interfaces
Delivering data to devices on the same network
Organizing data into frames
Detecting certain transmission errors
The most common data link protocol is Ethernet, although wireless technologies also operate at this general level.
The physical layer determines how signals travel through cables or the air. Ethernet provides rules for interpreting those signals and delivering data to the appropriate device on the local network.
3. Network Layer
The network layer, also called the Internet layer, allows separate networks to communicate with one another.
Its primary responsibilities are:
Identifying devices and networks using logical addresses
Determining how data should travel between networks
Forwarding data through routers
Delivering data across an internetwork
An internetwork is a collection of separate networks connected through routers. The Internet is the best-known example.
The data link layer delivers data across a single local link. The network layer delivers data across multiple interconnected networks.
For example, when a home computer accesses a web server on the Internet:
The data link layer handles communication across the local connection.
The network layer uses IP addressing and routers to move the data across many networks.
The data eventually reaches the destination server.
The most common network-layer protocol is IP, or Internet Protocol.
IP is responsible for delivering data from one network node to another, potentially across many interconnected networks.
4. Transport Layer
The transport layer delivers data to the correct program running on a device.
A single computer may run many network applications at the same time, such as:
A web browser
An email application
A video-conferencing program
A file-transfer application
The network layer can deliver data to the correct destination device, but it does not by itself determine which application should receive that data. The transport layer performs that additional sorting function.
The two major transport protocols are:
TCP
TCP, or Transmission Control Protocol, provides reliable delivery mechanisms. It can:
Track transmitted data
Detect missing data
Detect data arriving out of order
Request retransmission
Help ensure that the complete data stream reaches the correct application
UDP
UDP, or User Datagram Protocol, provides a simpler transport service. Unlike TCP, UDP does not generally guarantee reliable delivery.
UDP may be useful when speed and low overhead are more important than retransmission and delivery guarantees.
TCP/IP Is Two Different Protocols
The phrase TCP/IP commonly refers to the combination of TCP and IP, but they operate at different layers and serve different purposes:
IP: Moves data between network nodes.
TCP: Delivers data to the correct applications and provides reliable delivery.
UDP: Delivers data to applications without TCP’s reliability mechanisms.
5. Application Layer
The application layer contains protocols designed for specific types of network applications.
Examples include protocols used for:
Browsing websites
Sending email
Receiving email
Name resolution
Network configuration
Other application-specific services
These protocols are often the most familiar because users interact with their associated applications directly. However, applications depend on all lower layers to transport their data.
A web browser, for example, relies on:
The application layer for web communication
The transport layer for application delivery
The network layer for movement between networks
The data link layer for local-link communication
The physical layer for transmitting bits
Layering Analogy: Package Delivery
The layers can be compared to delivering a package:
Physical layer: The roads and delivery vehicle that physically move the package.
Data link layer: The process of moving between nearby intersections or local links.
Network layer: The route selected to travel from the sender’s address to the receiver’s address.
Transport layer: Ensuring the delivery reaches the correct person or application at the destination.
Application layer: The actual contents of the package.
The analogy illustrates that each layer handles a different part of the overall delivery process.
Cables and Physical Network Connections
Point-to-Point Connections
A cable can create a point-to-point connection, in which one device is connected directly to one other device.
Although point-to-point links are useful, large networks require devices that can connect many computers simultaneously.
Most wired network cables belong to one of two broad categories:
Copper
Fiber optic
Copper Cables
Copper cables are the most common traditional networking cables. They contain multiple pairs of copper wires surrounded by plastic insulation.
Computers represent data as binary values:
A binary
0A binary
1
Copper networks transmit these values by changing the voltage carried over the wires. The receiving device measures the voltage changes and interprets them as binary data.
Copper cables are widely used because they are:
Relatively inexpensive
Flexible
Easy to install
Common in offices and homes
Their limitations include susceptibility to:
Electromagnetic interference
Crosstalk
Signal degradation over distance
Twisted-Pair Cable Categories
Common twisted-pair cable categories include:
Cat5
Cat5e
Cat6
“Cat” is short for category.
These cable categories differ in their physical construction and performance characteristics, including:
The number and arrangement of wire twists
Resistance to interference
Maximum transmission distance at a given speed
Maximum data-transfer rate
Cat5
Cat5 is an older standard that has largely been replaced by Cat5e and Cat6. Although Cat5, Cat5e, and Cat6 cables may look similar externally, their internal construction can significantly affect performance.
Cat5e
Cat5e improved upon Cat5 by reducing crosstalk.
Crosstalk occurs when an electrical signal traveling on one wire is unintentionally detected on another wire.
Crosstalk can cause the receiving device to misinterpret data, resulting in network errors. Higher-level protocols may detect missing or corrupted information and request retransmission, but retransmissions consume time and reduce effective throughput.
Cat5e cables reduce the likelihood of retransmissions, allowing more data to be transferred during a given period.
Cat6
Cat6 cables follow stricter specifications for controlling crosstalk. Compared with Cat5e, Cat6 generally offers:
Higher data-transfer speeds
Greater reliability
Better resistance to interference
Higher cost
At higher speeds, Cat6 may have a shorter maximum usable distance because of its internal design and transmission requirements.
Fiber-Optic Cables
Fiber-optic cables transmit data using light rather than electrical voltage.
A fiber cable contains optical fibers, which are extremely thin glass tubes—approximately the width of a human hair. These fibers carry pulses of light representing binary data.
Fiber has several important advantages:
Higher potential transmission speeds
Much longer usable distances
Resistance to electromagnetic interference
Lower risk of electrical signal interference
Fiber is particularly useful in environments with substantial electromagnetic interference because outside electrical signals do not directly affect the light traveling through the glass fiber.
Its disadvantages include:
Higher cost
Greater fragility
More specialized installation and repair requirements
Fiber is especially common in data centers and other high-capacity infrastructure environments. Copper remains more common in many offices and homes.
Network Devices
Hubs
A hub is a physical-layer, or Layer 1, networking device that allows multiple devices to connect.
When a device sends data through a hub:
The hub repeats the signal to every connected device.
Every connected device receives the transmission.
Each device decides whether the data is intended for it.
Devices ignore transmissions addressed to other devices.
This creates substantial unnecessary traffic.
Collision Domains
A collision domain is a network segment in which only one device can successfully communicate at a time.
If multiple devices transmit simultaneously:
Their electrical signals interfere.
The resulting data becomes unintelligible.
The devices detect the collision.
The devices wait before attempting to transmit again.
Hubs create large collision domains and therefore reduce network performance. Because of this, hubs are now uncommon and are primarily considered historical networking technology.
Switches
A switch is a Layer 2, or data link layer, device used to connect multiple devices on a local network.
A switch is more intelligent than a hub because it can inspect Ethernet information and determine which device should receive a frame.
Instead of sending every frame to every connected device, a switch generally:
Examines the frame’s destination MAC address.
Determines which port leads to that device.
Sends the frame only through the appropriate port.
This approach:
Reduces unnecessary transmissions
Greatly reduces collision domains
Improves network throughput
Allows many devices to communicate efficiently
Switches are among the primary devices used to build a LAN, or Local Area Network.
Routers
A router is a Layer 3, or network layer, device that forwards data between independent networks.
Routers inspect IP information to determine where data should go. Their responsibilities include:
Connecting separate networks
Selecting paths for traffic
Forwarding packets toward their destinations
Maintaining routing information
A router differs from a switch in the type of address it primarily uses:
Switch: Uses Ethernet and MAC-address information to forward traffic within a local network.
Router: Uses IP-address information to forward traffic between networks.
Home and Small-Office Routers
A typical home or small-office router mainly:
Receives traffic from the local LAN
Forwards traffic to an Internet Service Provider, or ISP
Receives returning traffic
Forwards it to the appropriate local device
These routers generally have less complex routing information than Internet backbone routers.
Core ISP Routers
Large ISP or Internet core routers:
Handle enormous volumes of traffic.
Maintain many connections to other routers.
Make complex routing decisions.
Form part of the backbone of the Internet.
Routers exchange routing information using BGP, or Border Gateway Protocol.
BGP allows routers to learn about available paths and select efficient routes for forwarding traffic between large networks.
When a browser loads a web page, the traffic may pass through dozens of routers before reaching the destination server.
Clients, Servers, and Nodes
Nodes
A node is a device or network-connected system that can participate in communication.
Examples include:
Desktop computers
Laptops
Servers
Routers
Switches
Networked printers
Other connected devices
Servers and Clients
A server is something that provides data or a service to another system.
A client is something that requests or receives data or services.
Examples include:
A web server providing web pages to a browser
An email server providing messages to an email application
A DNS server responding to name-resolution requests
A file server providing files to client computers
The terms can apply to both complete devices and individual programs.
Program-Level Roles
A single node can run multiple client and server applications at the same time. For example:
A desktop may run a web browser and an email application as clients.
A server may run both email-server software and web-server software.
An email server may act as a client when it requests information from a DNS server.
Therefore, “client” and “server” describe roles in a particular communication rather than permanent categories.
Most network devices can act as both clients and servers, although a device is often primarily associated with the role that represents its main purpose.
Physical-Layer Fundamentals
Bits
A bit is the smallest unit of data a computer can understand. It has one of two possible values:
0
1
All network communication—whether streaming audio, sending email, accessing an ATM, or loading a web page—ultimately consists of bits transmitted across physical links.
Higher-layer structures such as frames and packets are built from these underlying bits.
Modulation and Line Coding
Copper cables carry an electrical charge. Network devices represent binary data by changing the voltage of that charge.
Modulation is the process of varying a signal to encode information.
For computer networking, this form of modulation is more specifically called line coding. Line coding defines how different electrical states represent binary values.
For example, a particular signal state may represent a binary 0, while another state represents a binary 1.
Modern networks can transmit billions of bits per second over a single cable. The ability to transmit approximately 10 billion bits per second depends on sophisticated signaling methods and physical-layer engineering.
Twisted-Pair Construction
A twisted-pair cable contains pairs of copper wires twisted around one another.
The twisting serves two major purposes:
It reduces electromagnetic interference from outside sources.
It reduces crosstalk between neighboring wire pairs.
A standard Cat6 cable contains:
Eight copper wires
Four twisted pairs
A protective outer jacket
The number of pairs actively used depends on the transmission technology, but modern twisted-pair networks support communication in both directions.
Simplex and Duplex Communication
Simplex Communication
Simplex communication is one-way communication. Data can travel in only one direction.
Example:
A basic baby monitor that transmits sound from one side to the other
Duplex Communication
Duplex communication allows information to travel in both directions.
Example:
A telephone call, in which both participants can speak and listen
Full Duplex
Full duplex allows both devices to transmit at the same time.
Twisted-pair Ethernet supports full duplex by assigning wire pairs to communication in different directions. One or more pairs may carry traffic in one direction, while other pairs carry traffic in the opposite direction.
Half Duplex
Half duplex allows communication in both directions, but only one device can transmit at a time.
A network link may fall back to half-duplex operation when there is a connection problem or a mismatch in link configuration. Half duplex is less efficient because devices must take turns transmitting.
Network Ports, Connectors, and Patch Panels
RJ45 Connectors
Twisted-pair network cables are commonly terminated with RJ45 plugs.
An RJ45 plug:
Exposes and arranges the individual wires inside the cable
Connects to a compatible network port
Is the most common physical connector for wired Ethernet networking
Network Ports
A network port is the physical interface where a cable connects to a device.
Typical port counts vary:
Switches have many ports because they connect many devices.
Servers and desktop computers often have one or two ports.
Laptops, tablets, and phones may have no wired network port and instead use wireless networking.
Link and Activity Lights
Many network ports contain two LEDs:
Link Light
The link light indicates that:
A cable is connected correctly.
Both connected devices are powered on.
A physical connection has been established.
Activity Light
The activity light flashes when data is being transmitted across the link.
At modern network speeds, the activity light does not correspond to each individual bit. Instead, it generally indicates whether network traffic is occurring.
On some switches, one LED may indicate both link and activity. LEDs may also communicate link speed or other status information. The exact meaning depends on the hardware.
Port LEDs are useful troubleshooting indicators because they can reveal whether a physical connection exists and whether traffic is being exchanged.
Patch Panels
A patch panel is a physical device containing many network ports. Unlike a switch or router, it does not process or forward data.
Its purpose is to organize the endpoints of cables that run through walls, ceilings, or floors.
A typical wired connection may follow this path:
A computer connects to a wall or desk-mounted network port.
The port connects through cable inside the building.
The cable terminates at a patch panel.
A short patch cable connects the patch panel to a switch or router.
The computer gains access to the network.
Patch panels simplify cable organization and make it easier to manage building-wide network wiring.
Ethernet and the Data Link Layer
Ethernet is the most widely used technology for transmitting data across an individual wired network link.
Ethernet:
Operates primarily at the data link layer
Uses physical-layer connections to transmit data
Defines the format of local network frames
Uses MAC addresses to identify network interfaces
Supports communication among devices on a LAN
One important role of Ethernet is to abstract the physical hardware from higher layers. Higher-level protocols do not need to know whether the underlying connection uses:
Copper twisted-pair cable
Fiber optic cable
Wireless technology
This abstraction allows IP, transport protocols, and application protocols to function consistently across different physical media.
Ethernet History and Collision Handling
Ethernet originated in 1980 and was first fully standardized in 1983. Its fundamental concepts remain recognizable, although later versions support much higher bandwidth.
Early Ethernet networks often lacked switches. Many devices shared one collision domain, meaning that all devices received traffic sent across the shared segment.
CSMA/CD
Early shared Ethernet used Carrier Sense Multiple Access with Collision Detection, abbreviated CSMA/CD.
CSMA/CD controlled access to a shared communication channel:
A device listens to determine whether the channel is currently in use.
If the channel is clear, the device begins transmitting.
If multiple devices transmit simultaneously, a collision occurs.
The devices detect the collision and stop transmitting.
Each device waits for a randomly selected interval.
The devices attempt transmission again.
The random waiting period reduces the chance that the same devices will collide again immediately.
Switches largely eliminated the need for CSMA/CD in modern full-duplex Ethernet because each switch port can provide a separate communication path and collision domain.
MAC Addresses
Definition and Purpose
A MAC address, or Media Access Control address, is a globally unique identifier assigned to a network interface.
Ethernet uses MAC addresses to identify:
The device or interface that sent a frame
The device or interface intended to receive a frame
This allows devices sharing a local network segment to determine whether a frame is meant for them.
A MAC address is:
48 bits long
Usually written as six groups of two hexadecimal digits
Commonly divided into six octets
A generic format looks like:
AA:BB:CC:DD:EE:FF
Hexadecimal and Octets
Hexadecimal is a base-16 number system using:
Digits 0 through 9
Letters A through F for values 10 through 15
One pair of hexadecimal digits represents 8 bits. In networking, an 8-bit group is called an octet.
Since a MAC address contains six octets, the total number of possible addresses is:
This enormous address space supports globally unique hardware identifiers.
OUI and Manufacturer Identification
A MAC address has two main sections:
Organizationally Unique Identifier
The first three octets form the Organizationally Unique Identifier, or OUI.
The IEEE assigns OUIs to hardware manufacturers. Therefore, the OUI can often be used to identify the manufacturer of a network interface.
Device-Specific Portion
The final three octets are assigned by the manufacturer.
The manufacturer must ensure that each address is assigned only once so that MAC addresses remain globally unique.
Ethernet Transmission Types
Ethernet supports three major destination types.
Unicast
A unicast transmission is intended for one receiving address.
At the Ethernet level, the least significant bit of the first octet of the destination MAC address indicates whether the frame is unicast or multicast:
Bit set to 0: unicast
Bit set to 1: multicast
A unicast frame may be physically visible to multiple devices on a shared segment, but only the intended destination processes it as its own.
Multicast
A multicast transmission is intended for a selected group of devices.
A multicast frame can reach all devices on the local segment, but network interfaces accept or discard it based on configured multicast addresses rather than solely on their individual hardware address.
Multicast is useful when a message should reach a specific group without being sent separately to every member.
Broadcast
A broadcast transmission is intended for every device on a LAN.
Ethernet uses a special broadcast destination address consisting entirely of hexadecimal F values:
FF:FF:FF:FF:FF:FF
Broadcast traffic allows devices to discover or learn information about other devices on the local network. Address Resolution Protocol is one technology that makes use of broadcasts.
Ethernet Frames
Data Packets and Frames
A data packet is a general term for one set of binary data transmitted from one point to another. The term is not restricted to a particular networking layer or technology.
At the Ethernet data link layer, a packet is called an Ethernet frame.
An Ethernet frame is a structured collection of fields arranged in a specific order. This structure allows receiving network interfaces to interpret a stream of bits as meaningful information.
A frame typically contains:
Preamble
Start Frame Delimiter
Destination MAC address
Source MAC address
EtherType field or VLAN information
Payload
Frame Check Sequence
Preamble
The preamble is 8 bytes, or 64 bits, long.
It has two functional parts:
The first seven bytes contain alternating ones and zeros.
The final byte is the Start Frame Delimiter.
The alternating pattern helps:
Separate frames
Synchronize the clocks of the sending and receiving interfaces
Prepare the receiver to interpret the incoming bits
Start Frame Delimiter
The Start Frame Delimiter, or SFD, is the final byte of the preamble.
It signals that:
The synchronization preamble has ended.
The actual Ethernet frame contents are beginning.
Destination and Source MAC Addresses
Immediately after the SFD are two six-byte addresses:
Destination MAC address: Identifies the intended recipient.
Source MAC address: Identifies the interface that sent the frame.
These addresses allow Ethernet devices to determine where a frame originated and whether it should be processed locally.
EtherType
The EtherType field is 16 bits long.
It identifies the protocol carried inside the frame. This tells the receiving system how to interpret the frame’s payload.
For example, the payload may contain data associated with a higher-layer network protocol.
VLAN Headers
In some frames, a VLAN header appears in association with the EtherType information.
VLAN means Virtual LAN. VLAN technology allows multiple logical LANs to operate over the same physical network equipment.
A VLAN-tagged frame is delivered only through switch interfaces configured to handle that VLAN tag.
VLANs can logically separate traffic even when devices share the same physical switches and cabling. For example:
IP phones may use one VLAN.
Desktop computers may use another VLAN.
This improves traffic organization and can support security and administrative separation.
Payload
The payload is the actual data being transported. It consists of the information from higher layers, including data associated with:
IP
TCP or UDP
Application protocols
In a traditional Ethernet frame, the payload can range from approximately 46 to 5,000 bytes.
The payload excludes the frame’s headers and other control information.
Frame Check Sequence
The Frame Check Sequence, or FCS, is a 4-byte, or 32-bit, value at the end of the Ethernet frame.
It contains a checksum calculated from the frame’s contents. The checksum is used to detect whether the frame was corrupted during transmission.
Cyclical Redundancy Checks and Data Integrity
A cyclical redundancy check, or CRC, is a mathematical technique used to calculate a checksum representing a larger set of data.
CRC calculations use polynomial division. The important property is that the same data should produce the same checksum.
How Ethernet Uses CRC
When sending a frame:
The sender assembles the frame fields and payload.
The sender performs a CRC calculation on the relevant frame data.
The sender places the resulting checksum in the FCS field.
The frame travels across the network link.
When receiving the frame:
The receiver collects the frame’s contents.
The receiver performs the same CRC calculation.
The receiver compares its calculated checksum with the FCS value.
If the values match, the frame is assumed to have arrived without detected corruption.
If the values do not match, the frame is discarded.
A mismatch indicates that data was lost or altered during transmission.
Ethernet detects data corruption through CRC, but Ethernet does not recover the missing data or retransmit the frame.
A higher-layer protocol, such as TCP, may decide that retransmission is necessary. This separation of responsibilities reflects the layered design of networking:
Ethernet checks local frame integrity.
Higher-layer protocols may provide recovery and reliable delivery.
IP handles movement between networks.
Transport protocols deliver data to applications.
Key Relationships to Remember
Data Link Layer vs. Network Layer
Data link layer: Moves frames across a single local link using technologies such as Ethernet.
Network layer: Moves packets across multiple connected networks using IP and routers.
MAC Addresses vs. IP Addresses
MAC address: Identifies a network interface on the local Ethernet network.
IP address: Identifies a network-layer endpoint and supports delivery between different networks.
Switches vs. Routers
Switch: Operates primarily at Layer 2 and forwards Ethernet frames within a LAN.
Router: Operates at Layer 3 and forwards IP packets between separate networks.
TCP vs. UDP
TCP: Provides reliable delivery, retransmission, and ordered data handling.
UDP: Provides simpler, lower-overhead delivery without TCP’s reliability guarantees.
Hub vs. Switch
Hub: Repeats signals to every connected device and creates a shared collision domain.
Switch: Examines Ethernet information and forwards frames selectively, improving efficiency.
Copper vs. Fiber
Copper: Less expensive and common, but more susceptible to interference and distance limitations.
Fiber: Faster over longer distances and resistant to electromagnetic interference, but more expensive and fragile.
A strong understanding of these layers, devices, addressing methods, physical media, and frame-integrity mechanisms provides the foundation for diagnosing network connectivity and performance problems.

Ask anything
We've read this whole study set, so questions about it get the best answers.