Exhaustive Guide to Computer Networks and Communications
Introduction to Computer Networks
Conceptual Foundation: We live in a connected world where information is produced, exchanged, and traced globally in real-time. This is made possible by the interconnection of almost everyone and everything in the digital world.
Definition of a Network: A group of two or more similar things or people interconnected with each other is called a network. Everyday examples include:
- Social networks.
- Mobile networks.
- Network of computers.
- Specialized networks such as airlines, railway, banks, and hospitals.
Quote by Stewart Kirkpatrick: "Hoaxes use weaknesses in human behavior to ensure they are replicated and distributed. In other words, hoaxes prey on the Human Operating System."
Computer Network Definition: An interconnection among two or more computers or computing devices. This allows for the sharing of data and resources. A basic network may connect a few computers in a single room, but the size can vary drastically based on the number of devices involved.
Network Nodes: Any device that is part of a communication network and can receive, create, store, or send data to different routes is called a node (or host). Examples include:
- Servers.
- Desktop computers.
- Laptops.
- Cellular phones.
- Printers.
- Networking hardware (modems, hubs, etc.).
Data Transmission Mechanism: In a communication network, data is divided into smaller chunks called packets which are carried over the network media. The media can be wired (cables) or wireless (air).
Evolution of Networking
Origins (1960s): Commissioned by the Advanced Research Projects Agency Network (ARPANET) in the U.S. Department of Defence to connect academic and research institutions for scientific collaboration.
Key Milestones and Timeline:
- 1961: The idea of ARPANET is conceptualized.
- 1969: ARPANET becomes functional by connecting the University of California, Los Angeles (UCLA) and the Stanford Research Institute (SRI). This was the first communication message.
- 1971: Roy Tomlinson develops network messaging or E-mail. The symbol @ is introduced to mean "at."
- 1974: The term "Internet" is coined. The first commercial use of ARPANET begins under the name Telenet.
- 1982: TCP/IP is introduced as the standard protocol on ARPANET.
- 1983: The Domain Name System (DNS) is introduced.
- 1986: The National Science Foundation brings connectivity to more people through the NSFNET program.
- 1990: Tim Berners-Lee at CERN develops HTML and URL, leading to the birth of the World Wide Web (www).
- 1997: The first version of the Wi-Fi () standard is introduced.
Types of Networks
Networks are categorized based on their geographical area and data transfer rate.
Personal Area Network (PAN):
- Formed by connecting personal devices like computers, phones, and printers.
- Range: Approximately .
- Types: Wired (e.g., laptop to phone via USB) or Wireless (WPAN) (e.g., two phones via Bluetooth).
Local Area Network (LAN):
- Connects devices within a limited distance such as a room, office, floor, or campus (school, college, or university).
- Connectivity Media: Wires, Ethernet cables, fiber optics, or Wi-Fi.
- Security: Relatively secure as only authentic users can access common resources.
- Extension Limit: Up to .
- Data Transfer Rates: High speeds, usually from (Ethernet) to (Gigabit Ethernet).
Metropolitan Area Network (MAN):
- An extended form of LAN covering a larger area like a city or town.
- Examples: Cable TV networks or cable-based broadband internet services.
- Extension Limit: Up to .
- Data Transfer Rate: Ranges in Mbps, but is considerably lower than LAN speeds.
Wide Area Network (WAN):
- Connects computers and other networks (LANs and MANs) spread across countries or continents.
- Usage: Large businesses, educational institutions, and government organizations.
- The Internet: The largest WAN, connecting billions of devices and millions of LANs globally.
Network Devices
Modem (MOdulator DEModulator):
- Converts between analog signals and digital bits.
- Computers process 0s and 1s; modems at the sender's end (modulator) convert these to analog for transmission, while the receiver's end (demodulator) converts them back to digital.
Ethernet Card (Network Interface Card / NIC):
- A network adapter used to set up wired networks, acting as an interface between the computer and the network.
- It is a circuit board mounted on the motherboard.
- Supports data transfer between and .
- Contains a MAC address for unique identification.
RJ45 (Registered Jack-45):
- An eight-pin connector used exclusively with Ethernet cables for networking.
- The standard plastic plug found at the end of network cables that fits into NIC jacks.
Repeater:
- An analog device used to regenerate signals. Signals lose strength beyond a specified distance (typically ).
Hub:
- A device used to connect multiple devices via wires. Any data arriving on one line is broadcast to all other lines. A major limitation is that simultaneous data transmissions will collide.
Switch:
- A central device in a LAN that connects multiple hosts. Unlike a hub, it extracts the destination address from data packets and sends signals only to the selected device.
- Can forward multiple packets simultaneously and discards noisy or corrupted signals.
Router:
- A device that receives, analyzes, and transmits data to other networks. It connects a LAN to the internet.
- Capability: It can repackage data (e.g., dividing large packets into smaller ones) if the destination network requires different packet sizes.
- Home Wi-Fi routers often perform the dual roles of router, modem, and switch.
Gateway:
- A key access point or "gate" between an organization's network and the outside world.
- All data entering or exiting must pass through the gateway. They maintain information about internal connection paths and remote network paths.
- In homes, the ISP usually acts as the gateway. Often implemented via software, hardware, or both, and frequently integrated with a firewall.
Networking Topologies
The topology is the arrangement of computers and peripherals in a network.
Mesh Topology:
- Structure: Every device is connected to every other device.
- Advantages: Handles large traffic (simultaneous transmission), highly reliable (one node down doesn't stop others), and high security.
- Formula for Wires: For nodes, it requires wires.
- Disadvantages: Complex wiring, high cabling cost, many redundant connections.
Ring Topology:
- Structure: Each node is connected to exactly two others, forming a ring.
- Transmission: Unidirectional (clockwise or counter-clockwise).
Bus Topology:
- Structure: All devices connect to a single backbone transmission medium called a bus.
- Transmission: Data is transmitted along the length of the bus in both directions.
- Advantages: Cheaper and easy to maintain.
- Disadvantages: Shared backbone makes it less secure and less reliable.
Star Topology:
- Structure: Each device is connected to a central node (hub or switch).
- Advantages: Effective, efficient, and fast. Disruption in one device doesn't affect others.
- Disadvantages: Failure of the central device causes failure of the entire network.
Tree (Hybrid) Topology:
- Structure: Hierarchical topology with multiple branches. Each branch can utilize star, ring, or bus topologies.
- Example: Four star topologies connected via a bus. Common in WANs.
Identifying Nodes in a Network
MAC Address (Media Access Control):
- Known as the physical or hardware address.
- Associated with the NIC and engraved at the time of manufacturing; it is permanent and cannot be changed.
- Format: -digit hexadecimal numbers ( total).
- Composition: First 6 digits () identify the manufacturer (Organisational Unique Identifier / OUI). The last 6 digits () are the serial number assigned by the manufacturer.
IP Address (Internet Protocol address):
- A unique address used to identify a node; it can change if a node moves to a different network.
- IPv4: -bit numeric address represented as four decimal numbers (ranging ) separated by periods. Sample: .
- IPv6: -bit address proposed because IPv4 only offers under addresses. Represented by eight groups of hexadecimal numbers separated by colons. Sample: .
Internet, Web, and Internet of Things (IoT)
The Internet: A global network of computing devices and smart appliances (TVs, ACs, drones, security cameras, etc.).
Architecture: Computers connect to a modem, which connects to a local ISP, then to regional and national networks, forming the Internet backbone.
The World Wide Web (WWW): An ocean of trillions of interlinked web pages and resources. The web is an information retrieval system that runs over the Internet.
Fundamental Technologies of the Web (Berners-Lee, 1990):
- HTML (HyperText Markup Language): Used to design standardized web pages readable by any computer.
- URI (Uniform Resource Identifier) / URL (Uniform Resource Locator): A unique address for every resource on the web. A URL includes the domain name and specific path information (e.g.,
http://www.ncert.nic.in/textbook/textbook.htm). - HTTP (HyperText Transfer Protocol): Rules for retrieving linked pages. The secure version is HTTPS.
Domain Name System (DNS)
- Domain Names: Human-readable hostnames assigned to unique IP addresses (e.g.,
ncert.nic.inmaps to164.100.60.233). This acts like a phonebook for the internet. - DNS Server: When a user enters a URL, the HTTP protocol queries a DNS server for the corresponding IP address (Domain Name Resolution). Once obtained, information is retrieved.
- DNS Hierarchy: DNS servers are placed in a hierarchy. At the top level, there are 13 root servers named with letters A through M.
- Location of Root Servers: 10 are in the U.S., 1 in London, 1 in Stockholm, and 1 in Japan.
- Authority: The Internet Assigned Numbers Authority (IANA) maintains the list of these root servers.
Questions & Discussion
- Q: What is the minimum internet speed for a video call?
- A: This varies by service provider and quality (HD vs. standard), but generally requires stable Mbps speeds.
- Q: Is your bank account access network LAN, MAN, or WAN?
- A: Accessing a bank account from anywhere in the world involves a Wide Area Network (WAN) and specifically the Internet.
- Q: Do mobile phones have a MAC address? Is it different from IMEI?
- A: Yes, mobile phones have MAC addresses for their network components (like Wi-Fi/Bluetooth cards). This is distinct from the IMEI (International Mobile Equipment Identity), which identifies the mobile hardware itself on cellular networks.
- Q: How do Bus and Ring topologies behave if a node goes down?
- A: In a bus topology, the rest of the network may stay up unless the backbone is severed. In a ring topology, the failure of a single node can disrupt the entire path because data must pass through every node in the cycle.