Computer Networking Basics


Computer Networking Basics

Maria
Welcome to Course 2, where we're getting into the bits and bytes of computer networking. I'm Maria, and today Michael and I will build a foundation for understanding how computers communicate, how networks are organized, and how common network hardware works.

Michael
And our guide for this material is Victor Escobedo, a corporate operations engineer. His interest in IT began when he was nine, after his father brought home a computer for mechanical engineering work. Victor became curious about how the machine worked, opened the case, and learned through trial and error.

Maria
His story also highlights that people don't always have easy access to technical education or career advice. Victor grew up as a first-generation Mexican American, in a community where people focused more on graduating high school and finding jobs than on long-term technology careers. He eventually studied computer science, started in a small local IT job, and built a twelve-year IT career, including seven years at Google.

Michael
Today, Victor manages large internal IT deployments and evaluates how infrastructure changes affect users and support teams. Networking is essential in that role because applications don't operate in isolation; they interact with other systems inside and outside a company. That is the central theme of this lesson: understanding how systems communicate and how to troubleshoot when communication fails.

Maria
A useful starting point is human conversation. Two people need a shared language, a way to hear each other, and conventions for addressing someone, asking for clarification, repeating a message, greeting, and ending a conversation. Computers also need an agreed set of communication rules.

Michael
That defined set of standards is called a protocol. Computer networking is the broad field concerned with how computers communicate: making sure they can detect each other, use protocols they both understand, and repeat messages when something wasn't delivered properly.

Maria
To organize all of this, networking is commonly explained with layered models. This course focuses on the TCP/IP five-layer model and also introduces the OSI model, which has seven layers. Layers matter because networking involves several different jobs happening at once: one protocol might move data across a local cable, while another helps move that data across networks on the other side of the planet.

Michael
The five layers, from the bottom upward, are physical, data link, network, transport, and application. Protocols at each layer carry the protocols above them. By the end of the course, the goals include explaining those layers, understanding how computers decide where to send messages, learning how services such as DNS and DHCP work, and using tools to troubleshoot network problems.

Maria
Let's begin with the physical layer. It represents the physical devices and specifications involved in connecting computers: cables, connectors, and the methods used to send signals over those connections. At this level, the concern is how individual bits move from one end of a link to the other.

Michael
The data link layer sits above it. Sometimes it's called the network interface layer or network access layer. While the physical layer carries signals, the data link layer defines a shared way to interpret those signals so devices can communicate. Ethernet is the most common data link protocol, although wireless technologies are increasingly important.

Maria
The network layer, sometimes called the internet layer, allows separate networks to communicate through routers. A group of networks connected by routers is called an internetwork, and the most famous internetwork is the internet. The data link layer delivers across one link, while the network layer delivers across a collection of networks; IP, or Internet Protocol, is the most common protocol here.

Michael
The transport layer has a different responsibility. The network layer gets data from one node to another, but the transport layer determines which application on that node should receive it. For example, a computer can run an email program and a web browser at the same time, and the transport layer helps ensure email data reaches the email application while web data reaches the browser.

Maria
TCP is the most common transport protocol and stands for Transmission Control Protocol. UDP, or User Datagram Protocol, is another transport protocol. Both can use IP to move data between nodes, but TCP includes mechanisms for reliable delivery, while UDP does not. So although people often say TCP/IP together, TCP and IP are separate protocols with separate jobs.

Michael
At the top is the application layer. Its protocols are specific to applications, such as browsing the web or sending and receiving email. These are often the protocols users encounter most directly, even if they don't realize a protocol is involved.

Maria
One analogy ties the layers together: imagine delivering a package. The physical layer is the roads and delivery truck. The data link layer handles moving from one intersection to the next. The network layer chooses roads from address A to address B. The transport layer makes sure the package reaches the correct door, and the application layer is the package's actual contents.

Michael
Now let's connect the layers to physical networking equipment. Cables create point-to-point connections, where one device is connected directly to another. Because modern networks need many devices to communicate, hubs, switches, and routers expand those possibilities.

Maria
The two major categories of network cable are copper and fiber. Copper cables contain pairs of copper wires inside plastic insulation. Devices represent binary data by changing the voltage between two ranges, and the receiving device interprets those voltage changes as ones and zeros.

Michael
Common copper twisted-pair categories include Cat5, Cat5e, and Cat6. Their internal arrangements, including the number of twists, affect transfer rates, usable distances, and resistance to interference. Cat5 is older and has mostly been replaced by Cat5e and Cat6.

Maria
Cat5e reduces crosstalk, which happens when an electrical pulse on one wire is accidentally detected on another. That can make the receiving device misunderstand the data and cause an error. Higher-level protocols may request the data again, but retransmission takes time, so reducing crosstalk improves average throughput.

Michael
Cat6 follows even stricter specifications and can transfer data faster and more reliably than Cat5e, but it costs more. At higher speeds, Cat6 also has a shorter maximum distance because of its internal arrangement. Fiber optic cable works differently: tiny glass fibers carry pulses of light rather than electrical voltages.

Maria
Fiber is useful where electromagnetic interference could affect copper. It can generally carry data faster and over longer distances without potential data loss, but it is more expensive and fragile. You're especially likely to find fiber in data centers rather than ordinary homes or offices.

Michael
A hub is a physical-layer device that connects many computers, but it sends incoming data to every connected device. Each system has to decide whether the data is meant for it. That creates noise and a collision domain, meaning a network segment where only one device can communicate at a time.

Maria
If multiple systems transmit simultaneously through a hub, their electrical pulses interfere. The devices must wait for a quiet period and try again, slowing communication. That is why hubs are now mostly historical artifacts.

Michael
A switch performs a similar connecting function but operates at layer 2, the data link layer. It can inspect Ethernet data, determine the intended destination, and send the data only to that system. This reduces or can even eliminate the size of collision domains, leading to fewer unnecessary transmissions and better throughput.

Maria
Hubs and switches primarily connect devices on one local area network, or LAN. Routers connect independent networks. A router operates at layer 3 and examines IP data to determine where traffic should go. A home router usually forwards traffic from the home LAN toward an internet service provider, while more sophisticated core routers form the backbone of the internet.

Michael
Core routers have many connections and handle much more complex routing decisions. Routers share information using BGP, or Border Gateway Protocol, which helps them learn optimal paths. When a browser loads a web page, the traffic may cross dozens of routers before reaching the web server.

Maria
It's also important to distinguish servers and clients. A server provides data to something requesting it, and the receiver is the client. These roles can belong to individual programs, not just entire computers. For example, an email program and a web browser can both be clients on one computer, while email and web server programs can run on another.

Michael
Most devices are not permanently only servers or only clients. A node can be both at different times. An email server is called a server because its primary purpose is serving email, even though it may act as a client when it requests information from a DNS server. Likewise, a desktop may occasionally serve data but primarily acts as a client for the user.

Maria
At the physical layer, a bit is the smallest representation of data a computer understands: a one or a zero. Whether you're streaming music, sending email, or using an ATM, the underlying activity involves sending ones and zeros across the physical layers of the networks between your device and the service.

Michael
In a copper cable, a constant electrical charge is varied to represent those bits. This process is called modulation, and for computer networks it is more specifically called line coding. Modern networks can move ten billion ones and zeros per second across a single cable.

Maria
Twisted-pair cable contains pairs of copper wires twisted together. The twisting helps protect against electromagnetic interference and crosstalk. A standard Cat6 cable has eight wires, arranged as four twisted pairs, although the number of pairs actually used depends on the transmission technology.

Michael
These cables support duplex communication, meaning information can flow in both directions. In full duplex, devices can communicate in both directions at the same time, using separate pairs for the different directions. Simplex communication is one-way, like a baby monitor. Half duplex allows communication in both directions, but only one device can communicate at a time.

Maria
Twisted-pair cables commonly end in an RJ45 plug, which connects to an RJ45 network port. Switches have many ports because they connect many devices, while servers and desktops often have one or two. Ports commonly have a link light that indicates a proper connection between powered devices and an activity light that flashes when data is being transmitted.

Michael
Those lights can provide troubleshooting information, although their exact behavior depends on the hardware. On some switches, one LED indicates both link and activity, and it may also show link speed. Network ports may be mounted in walls or under desks and connected through cables in the building to a patch panel.

Maria
A patch panel is simply a collection of network ports containing the endpoints of many cable runs. It doesn't perform other network functions. Additional cables connect the patch panel to switches or routers, giving devices at the other ends network access.

Michael
Ethernet is the protocol most widely used to send data across individual links. It provides the data link layer's way for higher layers to send and receive data without needing to know the physical details. A web browser can work whether the device uses twisted-pair cable or a wireless connection because the lower layers hide those hardware differences.

Maria
Ethernet originated in 1980 and was first fully standardized in 1983. Early networks often had one shared collision domain because switches had not yet been invented. Ethernet addressed simultaneous transmissions with CSMA/CD: carrier sense multiple access with collision detection.

Michael
With CSMA/CD, a device first checks whether the channel is clear. If two devices transmit together, they detect the collision, stop, and wait for random intervals before trying again. The random waits reduce the chance that the same devices will collide again immediately.

Maria
Because devices in a collision domain receive the traffic on that segment, Ethernet needs a way to identify the intended recipient. That identifier is the MAC address, or media access control address. A MAC address is a globally unique 48-bit identifier attached to a network interface, usually written as six groups of two hexadecimal digits.

Michael
Hexadecimal uses sixteen symbols: zero through nine and A through F, where A represents ten and F represents fifteen. Each two-digit group in a MAC address is also called an octet because it represents eight bits. There are 2 to the power of 48 possible MAC addresses, or 281,474,976,710,656 possibilities.

Maria
The first three octets form the Organizationally Unique Identifier, or OUI, assigned to hardware manufacturers by the IEEE. The last three octets are assigned by the manufacturer, which must assign each possible address only once. That means a manufacturer can be identified from the MAC address.

Michael
Ethernet transmissions can be unicast, multicast, or broadcast. Unicast is meant for one receiving address. If the least significant bit in the first destination octet is zero, the frame is treated as unicast. The frame may be seen across a shared segment, but only the intended device processes it.

Maria
A multicast frame is addressed to a group. If that same bit is one, the frame is multicast, and network interfaces accept or discard it according to configured multicast addresses rather than simply checking whether the address is their own MAC address.

Michael
A broadcast reaches every device on a LAN. Ethernet represents this with a special destination address made entirely of Fs. Broadcasts allow devices to learn about one another, and address resolution protocol will explain more about that later.

Maria
Finally, let's examine an Ethernet frame. A data packet is a general term for one set of binary data sent across a network link. At the Ethernet level, that packet is called an Ethernet frame, which is a structured collection of fields arranged in a defined order.

Michael
The frame begins with an eight-byte, or 64-bit, preamble. The first seven bytes alternate ones and zeros, helping separate frames and synchronize the internal clocks of network interfaces. The final byte is the Start Frame Delimiter, or SFD, which signals that the actual frame is about to begin.

Maria
Next come the destination MAC address and the source MAC address, each six bytes long. After those is the 16-bit EtherType field, which identifies the protocol contained in the frame. A VLAN header may appear before EtherType. VLAN stands for Virtual LAN and allows multiple logical LANs to operate on the same physical equipment.

Michael
A tagged VLAN frame is delivered only through a switch interface configured to relay that tag. This lets organizations segregate traffic, such as placing IP phones on one logical LAN and desktop computers on another, even when they share physical network equipment.

Maria
After the headers comes the data payload, which is the actual transported data and can include information from the IP, transport, and application layers. A traditional Ethernet payload ranges from 46 to 5,000 bytes. The frame ends with a four-byte, or 32-bit, frame check sequence.

Michael
The frame check sequence contains a checksum created with a cyclical redundancy check, or CRC. CRC is a mathematical transformation using polynomial division that produces a number representing a larger set of data. If the same data is checked again, the same checksum should result.

Maria
The sender calculates the CRC and attaches the result to the frame. The receiver calculates a CRC on the received data and compares it with the frame check sequence. If the values don't match, the frame is discarded because some data was corrupted or lost during transmission.

Michael
Ethernet detects and reports that integrity problem, but it doesn't recover the data itself. A higher-layer protocol decides whether the missing or corrupted data should be retransmitted. So the big picture is this: the physical layer moves bits, Ethernet organizes local-link communication, IP moves data between networks, transport protocols deliver it to the correct application, and application protocols provide useful services.

Maria
That gives us the foundation for everything that follows: the five-layer model, cables and signals, hubs, switches and routers, clients and servers, Ethernet and MAC addresses, transmission types, frames, VLANs, and CRC-based error detection. With those pieces in place, we're ready to move deeper into how networks route data and how IT specialists troubleshoot communication problems.

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