RemNote Community
Community

Introduction to Computer Networks

Learn the fundamentals of computer networks, key protocols such as TCP/IP and UDP, and how the OSI model structures network communication.
Summary
Read Summary
Flashcards
Save Flashcards
Quiz
Take Quiz

Quick Practice

What are two primary purposes of a computer network?
1 of 27

Summary

Introduction to Computer Networks What is a Computer Network? A computer network is a collection of independent devices linked together to share resources and exchange information. Without networks, devices would be isolated—unable to communicate or share data. Networks solve this problem by enabling computers to work together, which is essential for modern computing. The fundamental components of any network are straightforward: Nodes are the devices that send or receive data. These might be computers, smartphones, servers, or other connected devices. Links are the physical or wireless connections that carry data between nodes. Think of a network like a postal system: nodes are buildings, and links are the roads that connect them. Just as mail travels from one building to another via roads, data travels from one node to another via links. Network Components: How Data Travels Networks use two main types of connections to transmit data: Physical links use tangible media to transmit data: Copper Ethernet cables transmit data as electrical pulses Fiber-optic cables transmit data as light pulses Both can carry data over significant distances at high speeds Wireless links use radio waves to transmit data: WiFi (Wireless Fidelity) connects devices in homes and offices Bluetooth enables short-range communication between devices Cellular networks provide mobile connectivity across regions Regardless of the type, all links transmit the same thing: bits (1s and 0s). The physical form changes—electricity, light, or radio waves—but the information remains the same. On each end, nodes have network interface hardware that connects them to links, allowing them to send and receive data. When you send an email, it travels from your computer's network interface, across one or more links, through intermediate nodes, and finally arrives at the destination node's network interface. Network Benefits and Applications Networks enable capabilities that isolated devices cannot provide. The most important benefits include: Communication: Email and instant messaging allow people to exchange information instantly across any distance Information access: Web services let users retrieve data from remote servers Collaboration: Multiple users can work together in real time—think of shared document editing or video conferencing Resource sharing: Networks allow devices to share expensive resources like printers or centralized file storage These benefits have transformed how we work, learn, and communicate. Network Scales: From Local to Global Networks come in different sizes, and each size has distinct characteristics. Understanding these distinctions is crucial for network design and management. Local Area Networks (LANs) cover small geographic areas such as a home, office floor, or building. They operate at high speeds—hundreds of megabits per second to several gigabits per second—and have low latency (minimal delay). LANs are typically managed by a single organization or household. Common devices in LANs include switches, which forward data efficiently within the network. Metropolitan Area Networks (MANs) span a larger area, typically a city or large campus. They're often built using fiber-optic lines to achieve higher speeds across longer distances than LANs. Wide Area Networks (WANs) extend across regions, countries, or continents. They link together geographically distant LANs and MANs using a combination of fiber-optic cables, satellite links, and cellular connections. WANs provide lower data rates than LANs—because covering greater distances introduces more complexity—but enable communication across vast distances. The Internet is the largest WAN, interconnecting millions of smaller networks worldwide. The Internet creates a single global system where any device can potentially communicate with any other device. Network Protocols: The Rules of Communication For networks to function reliably, all devices must follow standardized rules. These rules are called protocols—precisely defined standards that specify how devices format, send, receive, and interpret data. Protocols are essential because devices come from different manufacturers. A laptop from one company must be able to communicate with a server from another company. Protocols make this possible by establishing common expectations about data format, addressing, error detection, and flow control. Internet Protocol (IP) Internet Protocol is the addressing system of the Internet. IP assigns every device a unique numerical address, similar to a postal address. These addresses allow data packets to be routed to the correct destination across many networks. Think of an IP address as your home's street address—it's how the network knows where to deliver your data. Transmission Control Protocol (TCP) Transmission Control Protocol handles reliable delivery of data. TCP divides data into packets and takes responsibility for ensuring every packet arrives correctly and in the correct order. If TCP detects that a packet was corrupted or lost during transmission, it automatically requests a retransmission. This makes TCP ideal for applications like email and web browsing, where accuracy is critical. User Datagram Protocol (UDP) User Datagram Protocol takes a different approach. UDP sends packets without guaranteeing delivery or order. It's faster than TCP because it doesn't wait to confirm that packets arrived. UDP is useful for applications that can tolerate losing some data, such as streaming audio or video—if you miss one frame, the user rarely notices, but waiting for retransmission would create noticeable delays. The OSI Model: Understanding Network Layers Understanding how networks work requires understanding the OSI Model (Open Systems Interconnection Model). The OSI Model divides network communication into seven layers, with each layer having specific responsibilities. This layering approach is powerful because it allows each layer to focus on its job without needing to know exactly how other layers work. Think of the OSI Model like a postal system: the application layer is the sender writing the letter, intermediate layers package and route it, and the physical layer is the trucks and roads that carry it. Each layer handles one specific aspect of the journey. Layer 1: Physical Layer The Physical Layer consists of the hardware that transmits raw bits: cables, fiber-optic lines, and radio transmitters. This layer defines voltage levels, timing, and physical connector types. It's where electrons, photons, and radio waves actually carry your data. Layer 2: Data Link Layer The Data Link Layer packages bits into organized chunks called frames and adds error-checking information so the receiving device can detect corruption. It uses Media Access Control (MAC) addresses to identify specific devices on the same local network (think of this as a device's local "name" within its network). The Data Link Layer also controls access to the shared physical medium—if multiple devices are connected to the same cable, the Data Link Layer ensures they don't all transmit simultaneously and create a collision. Layer 3: Network Layer The Network Layer handles routing—determining the optimal path for data to travel from source to destination. It uses IP addresses (from Internet Protocol) to identify devices across different networks and route packets accordingly. If your data needs to travel through multiple networks to reach its destination, the Network Layer handles that coordination. Layer 4: Transport Layer The Transport Layer provides end-to-end communication between applications on different devices. It decides whether to use TCP for reliable delivery or UDP for faster transmission. This is the layer that ensures your email arrives completely and in order, or that your video stream plays smoothly. Layer 5: Session Layer The Session Layer establishes, maintains, and terminates connections between applications. It synchronizes data exchange and manages dialogue control—ensuring that both sides of a conversation are ready before data is sent. Layer 6: Presentation Layer The Presentation Layer translates data formats between applications. It handles character encoding (ensuring that text displays correctly), data compression (reducing the size of data for faster transmission), and encryption (protecting data confidentiality so only intended recipients can read it). Layer 7: Application Layer The Application Layer includes the software programs you interact with directly: web browsers, email clients, video players, and messaging apps. This layer implements high-level protocols like HTTP (Hypertext Transfer Protocol) for web traffic and supports applications like email, streaming services, and web browsing. How Data Flows Through the Layers: A Complete Example Understanding the OSI Model becomes concrete when you trace actual data through all layers. Let's follow what happens when you browse the web. Request: From Your Browser to the Server When you click a link in your web browser, the journey begins at the top of the OSI Model: Your Application Layer web browser creates an HTTP request with the webpage you want The Transport Layer (TCP) takes this request, divides it into packets if necessary, and adds information to ensure reliable delivery The Network Layer (IP) wraps each packet with addressing information so it knows where to go The Data Link Layer packages these into frames, adds MAC addresses for local delivery, and includes error-checking information The Physical Layer converts these frames into electrical, light, or radio signals and transmits them across your local network Your request then travels through your local network, potentially through a campus network, and across the global Internet using a hierarchy of routers that forward packets toward the destination server. Response: From the Server Back to You The server reverses this process: The server's Application Layer generates an HTTP response containing the webpage This travels down through the Transport, Network, Data Link, and Physical layers in reverse order The response traverses the Internet back to your local network Your computer's Transport Layer reassembles the packets and confirms reliable delivery Your Application Layer processes the HTTP response and displays the webpage in your browser The entire process—from clicking a link to seeing a webpage—involves all seven layers working together seamlessly. Key Takeaways for Network Understanding The fundamentals of computer networks rest on a few essential ideas: Networks enable communication and resource sharing by connecting independent devices Two types of links—physical and wireless—carry data as bits Different network scales (LAN, MAN, WAN, Internet) serve different purposes Protocols provide standardized rules so different devices can communicate The OSI Model's seven layers organize network functions, with each layer responsible for specific tasks Data travels through all seven layers on both the sending and receiving ends These concepts form the foundation for understanding how the modern internet works and how data moves from one device to another.
Flashcards
What are two primary purposes of a computer network?
Sharing resources (e.g., file storage) Exchanging information (e.g., email, web services)
In a network context, what are nodes?
Devices that send or receive data.
What hardware do nodes use to connect to network links?
Network interface hardware.
What are the three physical forms in which links transmit data bits?
Electrical pulses Light pulses Radio waves
What is the typical geographic scale of a Local Area Network?
A small area such as a home, office floor, or campus building.
Which networking device is commonly used to forward data within a Local Area Network?
Switches.
What geographic area does a Metropolitan Area Network typically span?
A city or a large campus.
What is the geographic reach of a Wide Area Network?
Regions, countries, or continents.
How do Wide Area Network data rates typically compare to Local Area Networks?
WANs provide lower data rates than LANs.
What equipment is required to direct traffic between the distant networks of a Wide Area Network?
Routing equipment.
Which protocol suite does the Internet use to move data worldwide?
Transmission Control Protocol/Internet Protocol (TCP/IP).
What are network protocols?
Standardized rules defining how devices format, send, receive, and interpret data.
How does the Internet Protocol identify individual devices?
By assigning every device a unique numerical address.
What is the primary purpose of an Internet Protocol address?
To allow packets of data to be routed to the correct destination.
What are the primary functions of the Transmission Control Protocol regarding data packets?
Dividing data into packets Ensuring reliable delivery Reassembling packets in the correct order Detecting errors and requesting retransmission
Does the User Datagram Protocol guarantee the delivery or order of packets?
No.
Why would an application, such as audio streaming, use User Datagram Protocol instead of TCP?
It provides faster transmission for applications that can tolerate some data loss.
What is the unit of data used by the Data Link layer?
Frames.
What type of addresses does the Data Link layer use to identify devices on the same link?
Media Access Control (MAC) addresses.
What are the two primary responsibilities of the Network layer?
Routing frames across multiple links using IP addresses Determining the optimal path for data
What is the primary role of the Transport layer?
Providing end-to-end communication between applications on different devices.
What are the functions of the Session layer?
Establishing, maintaining, and terminating application connections Synchronizing data exchange Managing dialogue control
What three tasks are handled by the Presentation layer?
Translating data formats (e.g., character encoding) Data compression Encryption
Which protocol is implemented at the Application layer for web traffic?
Hypertext Transfer Protocol (HTTP).
What is the function of a firewall in network security?
Filtering traffic according to security policies.
Based on what information do routers forward packets between different networks?
Internet Protocol (IP) addresses.
Based on what information do switches forward frames within a LAN?
Media Access Control (MAC) addresses.

Quiz

What does the Network layer primarily do in the OSI model?
1 of 12
Key Concepts
Network Types
Computer network
Local area network (LAN)
Wide area network (WAN)
Internet
Network Protocols
Transmission Control Protocol (TCP)
User Datagram Protocol (UDP)
OSI model
Networking Devices
Ethernet
Wi‑Fi (Wireless Fidelity)
Router
Switch
Firewall