Network Fundamentals: A Comprehensive Guide to Network Concepts and Protocols, Cheat Sheet of Computer Networks

A comprehensive overview of fundamental networking concepts, protocols, and technologies. It covers key topics such as network topologies, the tcp/ip and osi models, ip addressing, dns, and firewalls. Well-structured and provides clear explanations of complex concepts, making it an excellent resource for students and professionals seeking to understand the basics of networking.

Typology: Cheat Sheet

2023/2024

Available from 03/03/2025

madhumitha-r-1
madhumitha-r-1 🇮🇳

14 documents

1 / 17

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Computer Networks Detailed Answers
1. Define Network
oA Network is a collection of interconnected devices (computers, servers, printers,
and other peripherals) that share data, resources, and applications over a
communication medium. Networks facilitate communication, data transfer, and
resource sharing among devices.
2. What do you mean by Network Topology, and explain types of them
oNetwork Topology is the arrangement or layout of various devices (nodes) in a
network. It describes how nodes connect, communicate, and transfer data.
Bus Topology: A single central cable (backbone) connects all devices. It’s
easy to set up but has high failure risk if the main cable fails.
Star Topology: All nodes connect to a central hub. It’s easy to manage and
troubleshoot but depends on the central hub.
Ring Topology: Each node connects to two others, forming a circular path.
It’s more secure but failure of one node can disrupt the network.
Mesh Topology: Nodes are interconnected, providing redundancy and fault
tolerance. It’s robust but expensive and complex.
Tree Topology: Combines star and bus topologies in a hierarchical
structure. Commonly used in larger networks.
Hybrid Topology: A mix of two or more topologies, allowing more
flexibility in network design.
3. Define Bandwidth, Node, and Link
oBandwidth: The maximum rate of data transfer across a network path, measured
in bits per second (bps).
oNode: Any device on a network (computer, printer, router) that can send, receive,
or store data.
oLink: The physical or logical connection between two nodes that allows data
transfer.
4. Explain TCP Model
oThe TCP/IP Model is a framework that standardizes networking and enables
devices to communicate across diverse networks. It has four layers:
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Network Fundamentals: A Comprehensive Guide to Network Concepts and Protocols and more Cheat Sheet Computer Networks in PDF only on Docsity!

Computer Networks Detailed Answers

  1. Define Network o A Network is a collection of interconnected devices (computers, servers, printers, and other peripherals) that share data, resources, and applications over a communication medium. Networks facilitate communication, data transfer, and resource sharing among devices.
  2. What do you mean by Network Topology, and explain types of them o Network Topology is the arrangement or layout of various devices (nodes) in a network. It describes how nodes connect, communicate, and transfer data.  Bus Topology : A single central cable (backbone) connects all devices. It’s easy to set up but has high failure risk if the main cable fails.  Star Topology : All nodes connect to a central hub. It’s easy to manage and troubleshoot but depends on the central hub.  Ring Topology : Each node connects to two others, forming a circular path. It’s more secure but failure of one node can disrupt the network.  Mesh Topology : Nodes are interconnected, providing redundancy and fault tolerance. It’s robust but expensive and complex.  Tree Topology : Combines star and bus topologies in a hierarchical structure. Commonly used in larger networks.  Hybrid Topology : A mix of two or more topologies, allowing more flexibility in network design.
  3. Define Bandwidth, Node, and Link o Bandwidth : The maximum rate of data transfer across a network path, measured in bits per second (bps). o Node : Any device on a network (computer, printer, router) that can send, receive, or store data. o Link : The physical or logical connection between two nodes that allows data transfer.
  4. Explain TCP Model o The TCP/IP Model is a framework that standardizes networking and enables devices to communicate across diverse networks. It has four layers:

Application Layer : Provides protocols for user-level interactions (e.g., HTTP, SMTP, FTP).  Transport Layer : Manages end-to-end communication, providing either reliable (TCP) or unreliable (UDP) data transfer.  Internet Layer : Routes packets across networks based on IP addresses (IP, ICMP protocols).  Network Access Layer : Controls data transmission over physical hardware, managing MAC addresses and media access.

  1. Layers of OSI Model o The OSI Model is a seven-layer framework for network functionality:  Layer 1 (Physical) : Deals with hardware connections (cables, signals).  Layer 2 (Data Link) : Manages data frames, MAC addressing, error detection.  Layer 3 (Network) : Routes packets using IP addresses.  Layer 4 (Transport) : Manages data transfer and reliability (TCP/UDP).  Layer 5 (Session) : Establishes, manages, and terminates sessions between applications.  Layer 6 (Presentation) : Translates, encrypts, and formats data for application layer.  Layer 7 (Application) : Interfaces for software applications (HTTP, FTP).
  2. Significance of Data Link Layer o The Data Link Layer ensures reliable data transfer across the physical network by detecting errors, managing MAC addresses, and handling access control to the network medium.
  3. Define Gateway, and Difference between Gateway and Router o Gateway : A network device that connects networks using different protocols, allowing communication across various systems. o Router vs. Gateway :  Router : Connects similar networks and directs data packets based on IP addresses.
  1. Firewalls o Firewall : A security device (hardware/software) that monitors and controls incoming and outgoing network traffic based on security rules, protecting networks from unauthorized access.
  2. Different Types of Delays o Propagation Delay : Time taken for a signal to travel from sender to receiver. o Transmission Delay : Time taken to push all packet bits into the link. o Processing Delay : Time taken by routers to process the packet header. o Queuing Delay : Time a packet waits in a queue until it can be transmitted.
  3. 3-Way Handshake o A 3-Way Handshake is a TCP mechanism to establish a connection:  SYN : Client sends a synchronize (SYN) request to the server.  SYN-ACK : Server responds with a SYN-ACK message.  ACK : Client sends an acknowledgment (ACK) to complete the connection.
  4. Server-Side Load Balancer o A Server-Side Load Balancer distributes network or application traffic across multiple servers, ensuring no single server is overwhelmed, improving performance and availability.
  5. RSA Algorithm o RSA Algorithm : A public-key cryptography algorithm that uses asymmetric encryption (two keys) for secure data transmission, widely used in secure communications and digital signatures.
  6. What is HTTP and HTTPS Protocol? o HTTP (Hypertext Transfer Protocol) : A protocol for transferring web data between client and server, unsecured. o HTTPS : Secured HTTP, encrypting data with SSL/TLS for secure communication.
  7. What is SMTP Protocol? o SMTP (Simple Mail Transfer Protocol) : A protocol used for sending emails across networks. It handles outgoing email from clients to servers.
  8. TCP and UDP Protocol, Prepare Differences

o TCP (Transmission Control Protocol) :  Connection-oriented, reliable.  Guarantees delivery, ordered packets.  Suitable for applications needing accuracy (HTTP, FTP). o UDP (User Datagram Protocol) :  Connectionless, faster.  Doesn’t guarantee delivery, packet order.  Ideal for time-sensitive applications (video streaming, VoIP).

  1. What Happens When You Enter “google.com”? o Steps :
    1. DNS Resolution : The browser uses DNS to resolve google.com to an IP address.
    2. TCP Connection : Browser establishes a TCP connection with Google’s server via a 3-way handshake.
    3. HTTP/HTTPS Request : Browser sends an HTTP/HTTPS GET request to the server.
    4. Server Response : Google’s server processes the request and sends back a response (web page data).
    5. Rendering : Browser renders the received HTML, CSS, and JavaScript to display Google’s homepage.
  2. Hub vs. Switch o Hub : Broadcasts data to all connected devices, less efficient, mainly for small networks. o Switch : Sends data directly to the intended device using MAC addresses, more efficient and secure.
  3. VPN, Advantages and Disadvantages of it o VPN (Virtual Private Network) : Creates a secure, encrypted connection over a public network.  Advantages : Privacy, secure data transfer, access to restricted content.

Tree Topology : Combines multiple star topologies connected to a central backbone, suitable for larger networks.  Hybrid Topology : A mix of two or more topologies to meet specific needs, like star-bus or star-ring configurations.

3. Define Bandwidth, Node, and LinkBandwidth : Refers to the maximum data transfer rate of a network or internet connection, indicating how much data can be transmitted over a connection in a specific period. It is typically measured in bits per second (bps).  Node : Any device connected to a network, such as a computer, printer, or router, which can send, receive, or forward data.  Link : A physical or logical connection between two nodes that allows data to travel from one device to another. Links can be wired (Ethernet cables) or wireless (Wi-Fi). 4. Explain the TCP/IP Model The TCP/IP (Transmission Control Protocol/Internet Protocol) model is a four-layered framework used to guide data communication across networks. It consists of:  Application Layer : This layer includes protocols like HTTP, FTP, and SMTP, which provide end-user services and data exchange functionalities.  Transport Layer : Manages end-to-end data transfer using protocols like TCP (reliable, connection-oriented) and UDP (unreliable, connectionless).  Internet Layer : Handles packet forwarding and routing through protocols like IP (Internet Protocol), ensuring data reaches its destination.  Network Access Layer : Deals with hardware addressing and the physical transmission of data across local networks. The TCP/IP model is the basis of the modern internet, allowing devices from different networks to communicate seamlessly.

5. Layers of the OSI Model The OSI (Open Systems Interconnection) model consists of seven layers, each with specific functions to standardize network communication: 1. Physical Layer : Handles the physical connection between devices, including cables and switches. 2. Data Link Layer : Manages data transfer between neighboring devices, providing error detection and correction. 3. Network Layer : Determines the best path for data to reach its destination and includes IP for addressing. 4. Transport Layer : Manages end-to-end communication, ensuring data delivery through protocols like TCP and UDP. 5. Session Layer : Manages sessions or connections between applications. 6. Presentation Layer : Transforms data into a readable format, handling encryption, compression, and data formatting. 7. Application Layer : Provides network services directly to applications, including HTTP, FTP, and SMTP. 6. Significance of Data Link Layer The Data Link Layer is crucial for reliable data transfer between directly connected devices. Its functions include:  Framing : Divides data into manageable frames for transmission.  Error Detection and Correction : Uses techniques like CRC (Cyclic Redundancy Check) to detect errors and request retransmission if needed.  Flow Control : Prevents data overflow by managing the rate at which data is sent.

DNS Forwarder : A DNS forwarder is a server that passes DNS queries from internal networks to external DNS servers, improving efficiency by caching frequently accessed domain name resolutions.  NIC (Network Interface Card) : A NIC is a hardware component that allows a computer to connect to a network, either wired or wireless, by providing a unique MAC address.

10. What is a MAC Address? A MAC (Media Access Control) Address is a unique identifier assigned to each network interface for communication on the physical network. MAC addresses are 48-bit hexadecimal addresses, like 00:1A:2B:3C:4D:5E, and are used to identify devices within a local network. They operate at the Data Link Layer of the OSI model and enable communication between devices on the same local network. 1. What is an IP Address, Private IP Address, Public IP Address, and APIPA?IP Address (Internet Protocol Address) : A unique identifier assigned to each device on a network, allowing devices to locate and communicate with each other. IP addresses are available in two versions: IPv4 (32-bit) and IPv6 (128-bit).  Private IP Address : Assigned to devices within a private network, such as a home or business LAN. These addresses are not routable on the internet and are defined in ranges like 192.168.x.x, 10.x.x.x, and 172.16.x.x–172.31.x.x.  Public IP Address : A globally unique IP address assigned to a device connected to the internet. Public IPs are assigned by ISPs (Internet Service Providers) and are required for devices to communicate over the internet.  APIPA (Automatic Private IP Addressing) : Automatically assigned IP address range (169.254.x.x) used by a device when it fails to obtain an IP from a DHCP server. APIPA allows devices to communicate on the same network but does not support internet access. 2. Difference between IPv4 and IPv

IPv4 (Internet Protocol version 4) : Uses a 32-bit address space, allowing for about 4. billion unique addresses. It is written in decimal format, divided into four octets (e.g., 192.168.0.1). Due to limited addresses, IPv4 is being gradually replaced by IPv6.  IPv6 (Internet Protocol version 6) : Uses a 128-bit address space, providing an enormous number of unique IP addresses (approximately 340 undecillion). IPv addresses are written in hexadecimal and divided into eight groups separated by colons (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334). IPv6 also includes features like built- in security and efficient routing.

3. Explain TCP and UDP Protocols, and Describe Their DifferencesTCP (Transmission Control Protocol) : A connection-oriented protocol that ensures reliable data transmission between devices. It establishes a connection, verifies data integrity, and resends lost packets, making it suitable for applications that require accuracy, like web browsing and email.  UDP (User Datagram Protocol) : A connectionless protocol that transmits data without establishing a connection. It does not guarantee delivery or check for errors, making it faster but less reliable. UDP is ideal for real-time applications like streaming and online gaming. Differences : Feature TCP UDP Connection Type Connection-oriented Connectionless Reliability Reliable (ensures delivery) Unreliable (no guarantee) Overhead High (due to checks & controls) Low Use Case Web browsing, email Video streaming, gaming 4. What is DNS and How Does it Work?

The OSI (Open Systems Interconnection) model divides network communication into seven layers, standardizing the functions of each layer:

  1. Physical Layer : Manages hardware transmission of data, including cabling, switches, and signaling.
  2. Data Link Layer : Handles error detection and correction, providing a reliable link between devices.
  3. Network Layer : Determines the best path for data across networks and handles routing with IP addresses.
  4. Transport Layer : Manages end-to-end data transmission and error handling through TCP/UDP.
  5. Session Layer : Establishes, manages, and terminates sessions between applications.
  6. Presentation Layer : Ensures data is in the proper format for the application layer, handling encryption and compression.
  7. Application Layer : Provides network services to applications, such as HTTP, FTP, and SMTP. 7. What is Subnetting and Why is it Used? Subnetting : The practice of dividing a larger IP network into smaller, manageable sub- networks (subnets). Purpose :  Network Efficiency : Reduces broadcast traffic, improving network performance.  Security : Isolates parts of the network for security purposes, making it harder for attacks to spread.  Organizational Structure : Groups devices logically within an organization. Subnetting is widely used to optimize network traffic and manage IP address allocation efficiently.

8. Explain the RSA Algorithm The RSA Algorithm is an asymmetric cryptographic algorithm used for secure data transmission. It relies on two keys: a public key (for encryption) and a private key (for decryption). Steps : 1. Key Generation : Two large prime numbers are selected, and a public key and private key are generated. 2. Encryption : Data is encrypted with the recipient’s public key, ensuring only the recipient’s private key can decrypt it. 3. Decryption : The recipient uses their private key to decrypt the message. RSA provides security by relying on the mathematical difficulty of factoring large numbers. 9. What is a Firewall? A Firewall is a network security device or software that monitors and controls incoming and outgoing traffic based on predefined security rules. Firewalls establish a barrier between trusted internal networks and untrusted external networks, such as the internet. Types :  Packet-Filtering Firewall : Inspects packets based on IP addresses, ports, and protocols.  Stateful Inspection Firewall : Tracks the state of active connections and decides which network packets to allow.  Application Firewall : Inspects traffic at the application layer, providing more specific filtering based on the application. Firewalls prevent unauthorized access and protect against attacks. 10. What is VPN, and What Are Its Advantages and Disadvantages?

TCP (Transmission Control Protocol) ensures that data packets are sent and received reliably, in the correct order.

3. The Process of Accessing a Website (Step-by-Step) Let’s look at what happens when you type a URL, like www.google.com, into your browser:  DNS Lookup : The URL is converted into an IP address. This happens because devices can’t understand domain names (like google.com) directly—they need the numeric IP address that corresponds to the domain. The DNS (Domain Name System) translates domain names to IP addresses.  Establishing a Connection : Using TCP/IP , your device sends a request to the IP address found from the DNS lookup. The request is broken into packets, each containing parts of the data and header information like the destination IP.  Routing the Data : Each packet is sent from your device through a series of routers— intermediary devices that determine the best path for the packet to reach its destination. Packets may take different paths, but they all reach the same destination.  Server Response : Once the server hosting the website receives the packets, it processes the request and sends back data in packets that travel back through routers to your device.  Displaying Content : Your browser reassembles these packets and renders the content (text, images, etc.) on your screen. 4. Protocols That Enable Internet Communication The internet relies on multiple protocols , each handling different aspects of data transmission:  HTTP/HTTPS : Hypertext Transfer Protocol (Secure) is used for transmitting web pages. HTTPS adds a layer of encryption for security.  FTP (File Transfer Protocol) : Used to transfer files between a client and server.  SMTP (Simple Mail Transfer Protocol) : Handles email transmission. 5. Infrastructure Components

The internet functions through a complex infrastructure, including:  Routers and Switches : Direct data packets to their destinations.  ISPs (Internet Service Providers) : Provide connectivity to the internet for homes and businesses.  Data Centers : Store and serve data, often hosting websites, applications, and other services.

6. Security Layers The internet uses several security protocols to protect data:  TLS/SSL for encryption in HTTPS.  Firewalls and intrusion detection systems to prevent unauthorized access. Summary The internet works through a combination of protocols (TCP/IP, HTTP, DNS) that break down requests into packets, route them through interconnected networks, and reassemble them for the end user. This entire process happens in milliseconds, enabling instant access to resources from around the world.