IMPORTANT QUESTIONS FOR COMPUTER NETWORK*
Q1. What is network topology? Explain the different network topologies
Q2. Explain the different types of addressing used in computer network.
Q3. What are the different types of networks? Explain in detail.
Q4. Explain the OSI reference model with neat diagram.
Q5. Explain the TCP/IP reference model with neat diagram
Q6. Explain different types of switching techniques.
Q7. Explain the various transmission media in detail.
Q8. Compare the HDLC and PPP.
Q9. Explain in brief about different framing methods
Q10. Explain the various protocols for noisy channel.
Q11. Explain the following networking devices in detail
a) Switch
b) Router
c) Bridge
d) Gateway
e) Repeater
f) Hub
Q12. What are the types of class full addressing? And Function of each class
address
Q13. Compare the TCP AND UDP
Q14. Write Short Note on
a) IPV4 Addressing
b) IPV6 Addressing
c) Routing Table
Q15. Define the following terms -
a) Hub
b) Switch
c) Router
d) Bridge
e) Gateway
f) Repeater
g) Ethernet
h) Bluetooth
i) Virtual LAN
Q16. Write Short Note on following:
a. Domain Name Space (DNS)
b. DDNS
c. TELNET
d. EMAIL
e. File Transfer Protocol (FTP),
f. WWW
g. HTTP
h. Firewalls
Sure, here are the detailed explanations for the important questions about computer
networks:
### Q1. What is Network Topology? Explain the different network topologies
**Network Topology** refers to the arrangement of different elements (links, nodes,
etc.) in a computer network. It is essentially the structure or the layout of a network
and defines how different nodes are connected and how they communicate.
**Types of Network Topologies:**
1. **Bus Topology:**
- All devices are connected to a single central cable, called the bus or backbone.
- Data sent by a device travels along the bus in both directions until it reaches its
destination.
- Easy to install but difficult to troubleshoot and has performance issues with heavy
traffic.
2. **Star Topology:**
- All devices are connected to a central hub or switch.
- Data sent by a device is forwarded by the hub to the destination device.
- Easy to install and manage, and a failure in one cable does not affect others, but
if the central hub fails, the entire network is down.
3. **Ring Topology:**
- Devices are connected in a circular sequence.
- Data travels in one direction (or both directions in a dual ring topology).
- Each device has exactly two neighbors for communication.
- A failure in any cable or device can disrupt the entire network.
4. **Mesh Topology:**
- Devices are interconnected, allowing for multiple paths for data to travel.
- Offers high redundancy and reliability, but is complex and expensive to install and
maintain.
5. **Tree Topology:**
- A hybrid topology that combines characteristics of star and bus topologies.
- Hierarchical, with a central root node and multiple levels of hierarchy.
- Scalable and easy to manage, but a failure in the main backbone can affect the
entire network.
6. **Hybrid Topology:**
- A combination of two or more different types of topologies.
- Can leverage the strengths of multiple topologies, but the complexity can make it
difficult to design and maintain.
### Q2. Explain the different types of addressing used in computer network.
**Types of Addressing:**
1. **MAC Address (Media Access Control Address):**
- A unique identifier assigned to network interfaces for communications at the data
link layer.
- Typically a 48-bit address (6 bytes) represented in hexadecimal format.
- Used within local networks.
2. **IP Address (Internet Protocol Address):**
- An address assigned to each device connected to a network that uses the
Internet Protocol for communication.
- **IPv4:** 32-bit address divided into four octets (e.g., [Link]).
- **IPv6:** 128-bit address (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334).
- Used for routing and identification on larger networks, including the internet.
3. **Port Address:**
- Used to identify specific processes or services running on a device.
- Combined with an IP address to form a socket address (e.g., [Link]:80).
- Ensures data reaches the correct application.
4. **Logical Address:**
- An address used by software applications to identify network nodes logically.
- Independent of the physical hardware, often used in networking protocols.
5. **URL (Uniform Resource Locator):**
- A reference (an address) to a resource on the internet.
- Combines the protocol, domain name, and path
(e.g., [Link]
### Q3. What are the different types of networks? Explain in detail.
**Types of Networks:**
1. **LAN (Local Area Network):**
- Covers a small geographic area like a home, office, or building.
- High data transfer rates, low latency.
- Examples: Ethernet, Wi-Fi.
2. **MAN (Metropolitan Area Network):**
- Covers a larger geographic area such as a city or a large campus.
- Often used by cities or large institutions to connect multiple LANs.
- Example: City-wide Wi-Fi networks.
3. **WAN (Wide Area Network):**
- Covers a broad area (e.g., multiple cities, countries, or continents).
- Lower data transfer rates compared to LANs.
- Examples: The internet, enterprise networks connecting multiple locations.
4. **PAN (Personal Area Network):**
- Very small network typically within a range of a few meters.
- Used for connecting personal devices like smartphones, tablets, and laptops.
- Examples: Bluetooth, USB connections.
5. **SAN (Storage Area Network):**
- Specialized high-speed network that provides access to consolidated block-level
data storage.
- Used in data centers and enterprise storage environments.
- Examples: Fibre Channel, iSCSI.
6. **VPN (Virtual Private Network):**
- Extends a private network across a public network.
- Enables secure, encrypted connections over the internet.
- Used for secure remote access to a network.
7. **CAN (Campus Area Network):**
- Interconnects multiple LANs within a limited geographical area, like a university
campus.
- Allows for resource sharing and centralized management.
### Q4. Explain the OSI reference model with a neat diagram.
The OSI (Open Systems Interconnection) model is a conceptual framework used to
understand and implement networking protocols. It divides the network
communication process into seven distinct layers.
**OSI Model Layers:**
1. **Physical Layer:**
- Deals with the physical connection between devices and the transmission of
binary data over physical mediums (e.g., cables, switches).
2. **Data Link Layer:**
- Responsible for node-to-node data transfer and error detection/correction.
- Includes MAC (Media Access Control) and LLC (Logical Link Control) sublayers.
3. **Network Layer:**
- Manages data routing, forwarding, and addressing between devices across
multiple networks.
- Examples: IP, ICMP.
4. **Transport Layer:**
- Ensures end-to-end communication, error recovery, and flow control.
- Examples: TCP, UDP.
5. **Session Layer:**
- Manages sessions or connections between applications.
- Establishes, maintains, and terminates connections.
6. **Presentation Layer:**
- Ensures data is in a usable format and is properly encoded/decoded.
- Handles data encryption and compression.
7. **Application Layer:**
- Provides network services to end-user applications.
- Examples: HTTP, FTP, SMTP.
**Diagram:**
```
+-----------------------+
| Application Layer |
+-----------------------+
| Presentation Layer |
+-----------------------+
| Session Layer |
+-----------------------+
| Transport Layer |
+-----------------------+
| Network Layer |
+-----------------------+
| Data Link Layer |
+-----------------------+
| Physical Layer |
+-----------------------+
```
### Q5. Explain the TCP/IP reference model with a neat diagram.
The TCP/IP model is a concise version of the OSI model and is the basis for the
Internet. It consists of four layers.
**TCP/IP Model Layers:**
1. **Application Layer:**
- Corresponds to the OSI Application, Presentation, and Session layers.
- Includes protocols like HTTP, FTP, SMTP, DNS.
2. **Transport Layer:**
- Provides end-to-end communication, error checking, and flow control.
- Protocols: TCP (Transmission Control Protocol) and UDP (User Datagram
Protocol).
3. **Internet Layer:**
- Handles logical addressing, routing, and packet forwarding.
- Protocols: IP (Internet Protocol), ICMP (Internet Control Message Protocol).
4. **Network Interface Layer:**
- Corresponds to the OSI Physical and Data Link layers.
- Manages physical transmission of data over network hardware.
**Diagram:**
```
+-----------------------+
| Application Layer |
+-----------------------+
| Transport Layer |
+-----------------------+
| Internet Layer |
+-----------------------+
| Network Interface Layer|
+-----------------------+
```
### Q6. Explain different types of switching techniques.
**Switching Techniques:**
1. **Circuit Switching:**
- Establishes a dedicated communication path between nodes before data
transmission.
- Suitable for real-time communication, like telephony.
- Once established, the path remains active until the communication session ends.
2. **Packet Switching:**
- Data is broken into packets, each of which can take different routes to the
destination.
- More efficient and robust compared to circuit switching.
- Examples: IP networks, the internet.
3. **Message Switching:**
- Entire messages are transmitted from the source to the destination, stored
temporarily at intermediate nodes.
- No need for a dedicated path, but can lead to delays due to storing at
intermediate nodes.
### Q7. Explain the various transmission media in detail.
**Transmission Media:**
1. **Guided Media:**
- **Twisted Pair Cable:**
- Pairs of insulated wires twisted together.
- Used in telephony and Ethernet LANs.
- Types: Unshielded Twisted Pair (UTP), Shielded Twisted Pair (STP).
- **Coaxial Cable:**
- Central conductor, insulating layer, metallic shield, and outer cover.
- Used in cable TV and broadband internet.
- **Fiber Optic Cable:**
- Thin glass fibers that transmit data as light pulses.
- High bandwidth, long distances, and immune to electromagnetic interference.
2. **Unguided Media:**
- **Radio Waves:**
- Used
for wireless communication, broadcasting, and satellite links.
- Long range but susceptible to interference.
- **Microwaves:**
- High-frequency radio waves used for point-to-point communication.
- Requires line-of-sight transmission, commonly used in cellular networks and
satellite communication.
- **Infrared:**
- Used for short-range communication, like remote controls and some wireless
peripherals.
- Requires line-of-sight and is limited to a few meters.
### Q8. Compare the HDLC and PPP.
**HDLC (High-Level Data Link Control):**
- A bit-oriented synchronous data link layer protocol.
- Provides both connection-oriented and connectionless services.
- Supports error correction and flow control.
- Used in point-to-point and multipoint configurations.
**PPP (Point-to-Point Protocol):**
- A byte-oriented data link layer protocol.
- Primarily used for direct connections between two networking nodes.
- Supports multiple network layer protocols (e.g., IP, IPX).
- Provides error detection, authentication, and compression.
### Q9. Explain in brief about different framing methods.
**Framing Methods:**
1. **Character Count:**
- Uses a field in the frame header to specify the number of characters in the frame.
- Simple but prone to errors if the character count field is corrupted.
2. **Byte Stuffing:**
- Uses special characters to denote frame boundaries.
- If a special character appears in the data, an escape character is added before it.
3. **Bit Stuffing:**
- Inserts non-information bits into data to break up patterns that might be
misinterpreted as frame delimiters.
- Commonly used in protocols like HDLC.
4. **Physical Layer Coding Violations:**
- Uses a violation of the encoding scheme to indicate the frame boundaries.
- Useful in environments where extra coding schemes are feasible.
### Q10. Explain the various protocols for noisy channels.
**Protocols for Noisy Channels:**
1. **Stop-and-Wait ARQ:**
- Sender transmits one frame and waits for an acknowledgment before sending the
next frame.
- Simple but inefficient for long delays or high-error rates.
2. **Go-Back-N ARQ:**
- Sender can send multiple frames before needing an acknowledgment.
- Receiver keeps track of the sequence number of the next frame expected and
discards out-of-order frames.
3. **Selective Repeat ARQ:**
- Sender retransmits only the frames that were not acknowledged.
- More efficient than Go-Back-N, especially in high-error-rate environments.
### Q11. Explain the following networking devices in detail
**a) Switch:**
- A device that connects multiple devices within a LAN and uses MAC addresses
to forward data to the correct destination.
- Operates at the Data Link Layer (Layer 2) of the OSI model.
- Can segment a network into different collision domains.
**b) Router:**
- A device that connects multiple networks and forwards data between them using
IP addresses.
- Operates at the Network Layer (Layer 3) of the OSI model.
- Determines the best path for data to travel between networks.
**c) Bridge:**
- Connects and filters traffic between two network segments.
- Operates at the Data Link Layer (Layer 2) of the OSI model.
- Reduces traffic by dividing a large network into smaller segments.
**d) Gateway:**
- A device that connects different networks using different protocols.
- Operates at multiple layers of the OSI model, often up to the Application Layer
(Layer 7).
- Acts as a translator between networks.
**e) Repeater:**
- A device that amplifies or regenerates signals to extend the range of a network.
- Operates at the Physical Layer (Layer 1) of the OSI model.
- Used to overcome distance limitations in network cabling.
**f) Hub:**
- A basic networking device that connects multiple devices in a LAN.
- Operates at the Physical Layer (Layer 1) of the OSI model.
- Broadcasts data to all connected devices, leading to potential collisions.
### Q12. What are the types of class full addressing? And Function of each class
address
**Classful Addressing:**
1. **Class A:**
- Range: [Link] to [Link]
- Large networks, supports millions of hosts.
- Default Subnet Mask: [Link]
2. **Class B:**
- Range: [Link] to [Link]
- Medium-sized networks, supports thousands of hosts.
- Default Subnet Mask: [Link]
3. **Class C:**
- Range: [Link] to [Link]
- Small networks, supports hundreds of hosts.
- Default Subnet Mask: [Link]
4. **Class D:**
- Range: [Link] to [Link]
- Reserved for multicast groups.
- No subnet mask.
5. **Class E:**
- Range: [Link] to [Link]
- Reserved for experimental purposes.
- No subnet mask.
### Q13. Compare the TCP AND UDP
**TCP (Transmission Control Protocol):**
- Connection-oriented.
- Reliable delivery with error checking and correction.
- Sequencing and flow control.
- Suitable for applications where data integrity is critical (e.g., web browsing,
email).
**UDP (User Datagram Protocol):**
- Connectionless.
- No guarantees of delivery, ordering, or error correction.
- Faster but less reliable than TCP.
- Suitable for applications where speed is critical and some data loss is acceptable
(e.g., video streaming, gaming).
### Q14. Write Short Note on
**a) IPV4 Addressing:**
- A 32-bit address format divided into four octets.
- Represented in dotted decimal notation (e.g., [Link]).
- Includes classes A, B, C, D, and E for different purposes.
- Uses subnetting to create smaller networks within a larger network.
**b) IPV6 Addressing:**
- A 128-bit address format divided into eight groups of four hexadecimal digits.
- Represented in colon-separated hexadecimal notation (e.g.,
2001:0db8:85a3:0000:0000:8a2e:0370:7334).
- Designed to replace IPv4 due to address exhaustion.
- Includes features for simplified address autoconfiguration, enhanced security,
and better performance.
**c) Routing Table:**
- A data table stored in a router or networked computer.
- Contains the routes to different network destinations.
- Used to determine the best path for packet forwarding.
- Includes information like destination IP, subnet mask, gateway, and interface.
### Q15. Define the following terms
**a) Hub:**
- A basic networking device that connects multiple devices in a LAN and
broadcasts data to all connected devices.
**b) Switch:**
- A device that connects multiple devices in a LAN and forwards data based on
MAC addresses to specific devices, reducing collisions.
**c) Router:**
- A device that connects multiple networks and forwards data between them using
IP addresses, determining the best path for data travel.
**d) Bridge:**
- Connects and filters traffic between two network segments at the Data Link
Layer, reducing network traffic by dividing it into smaller segments.
**e) Gateway:**
- Connects different networks using different protocols, acting as a translator
between them.
**f) Repeater:**
- Amplifies or regenerates signals to extend the range of a network, operating at
the Physical Layer.
**g) Ethernet:**
- A family of networking technologies for local area networks (LANs), using
protocols to control data transmission over a network.
**h) Bluetooth:**
- A wireless technology standard for exchanging data over short distances using
UHF radio waves, typically within personal area networks (PANs).
**i) Virtual LAN (VLAN):**
- A logical grouping of devices on different physical LANs that can communicate as
if they were on the same physical LAN, improving network management and
security.
### Q16. Write Short Note on following
**a. Domain Name Space (DNS):**
- A hierarchical system that translates human-readable domain names
(e.g., [Link]) into IP addresses.
- Consists of different levels of domains, including top-level domains (TLDs),
second-level domains, and subdomains.
- Facilitates easier navigation and management of internet resources.
**b. DDNS (Dynamic DNS):**
- A service that automatically updates the IP address associated with a domain
name in real-time.
- Useful for devices with frequently changing IP addresses, such as home
networks using DHCP.
- Ensures that the domain name always points to the correct IP address.
**c. TELNET:**
- A network protocol used to provide bidirectional interactive text-based
communication.
- Allows remote login and command execution on a host over a TCP/IP network.
- Insecure as it transmits data, including passwords, in plain text.
**d. EMAIL:**
- A method of exchanging digital messages over a network, typically the internet.
- Uses protocols like SMTP (Simple Mail Transfer Protocol) for sending and POP
3/IMAP (Post Office Protocol/Internet Message Access Protocol) for receiving
emails.
- Supports attachments, rich text formatting, and other features.
**e. File Transfer Protocol (FTP):**
- A standard network protocol used to transfer files between a client and server
over a TCP-based network.
- Supports authentication, file upload/download, and directory navigation.
- Insecure in its basic form as it transmits data in plain text, though secure versions
like FTPS and SFTP exist.
**f. WWW (World Wide Web):**
- An information system where documents and other web resources are accessed
via URLs over the internet.
- Uses the HTTP protocol for data transmission.
- Consists of websites hosted on web servers, accessible through web browsers.
**g. HTTP (Hypertext Transfer Protocol):**
- The protocol used for transmitting web pages over the internet.
- Defines how messages are formatted and transmitted, and how web servers and
browsers should respond to various commands.
- An extension, HTTPS, adds security through encryption.
**h. Firewalls:**
- Network security devices or software that monitor and control incoming and
outgoing network traffic based on predetermined security rules.
- Used to protect networks from unauthorized access, attacks, and other threats.
- Can be hardware-based, software-based, or a combination of both, and can filter
traffic based on IP addresses, ports, protocols, and more