0% found this document useful (0 votes)
23 views37 pages

Networking Cables, Topologies, and Protocols Guide

Uploaded by

PRANAY Creations
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views37 pages

Networking Cables, Topologies, and Protocols Guide

Uploaded by

PRANAY Creations
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

ORAL QUESTIONS

1. What are different types of cables used in networking? Also list name of connectors for each
one.

• Twisted Pair Cable: Connectors - RJ45


• Coaxial Cable: Connectors - BNC, TNC, F connectors
• Fiber Optic Cable: Connectors - SC, ST, LC connectors

2. What is the maximum segment size for twisted pair, ber optic cable?

• Twisted Pair Cable (Cat 5e, Cat 6): Up to 100 meters (328 feet).
• Fiber Optic Cable: Up to 2 kilometers for multimode ber, and up to 40 kilometers for
single-mode ber.

3. How many wires and twists are there in UTP?

• Wires: 8 wires (4 pairs)


• Twists: Each pair is twisted to reduce crosstalk and electromagnetic interference (EMI).

4. Which cable is used in our LAN?

• Typically, Unshielded Twisted Pair (UTP) Cat 5e or Cat 6 cables are used in LANs.

5. What is the use of a rewall?

• A rewall protects a network by controlling and monitoring incoming and outgoing network
traf c based on prede ned security rules. It serves as a barrier between a trusted internal
network and untrusted external networks (like the internet).

6. What are different topologies also give adv and disadv of each? Which will you prefer to
design a LAN and why?

• Bus Topology:
◦ Advantages: Easy to set up, inexpensive.
◦ Disadvantages: Limited cable length, dif cult to troubleshoot.
• Ring Topology:
◦ Advantages: Data travels in one direction, reducing packet collisions.
fi
fi
fi
fi
fi
fi
fi
fi
◦ Disadvantages: A failure in any cable or device disrupts the entire network.
• Star Topology:
◦ Advantages: Easy to troubleshoot, devices can be added easily.
◦ Disadvantages: Expensive, relies on the central hub.
• Mesh Topology:
◦ Advantages: High redundancy, fault tolerance.
◦ Disadvantages: Expensive, complex setup.
• Preferred for LAN: Star topology due to ease of troubleshooting and adding devices.

7. What are different IEEE standards for Ethernet LAN?

• IEEE 802.3: Ethernet


• IEEE 802.3u: Fast Ethernet
• IEEE 802.3z: Gigabit Ethernet
• IEEE 802.3ab: Gigabit Ethernet over UTP
• IEEE 802.3ae: 10 Gigabit Ethernet

8. If you want to design a network for 10 PCs, what things do you have to consider at that
time?

• Network Topology: Determine which topology suits your needs (e.g., star topology for
small networks).
• Network Devices: Required devices like switches, routers, and possibly a rewall.
• Cabling: Choosing the correct type of cabling (typically Cat 5e or Cat 6 for Ethernet).
• IP Addressing: Decide on a range of IP addresses for the PCs.
• Bandwidth: Ensure suf cient bandwidth based on expected usage.
• Security: Implement basic security measures, like rewalls and possibly VLANs.
• Scalability: Plan for potential future expansion beyond 10 PCs.

9. What are the 7 layers of the OSI model?

1. Physical Layer
2. Data Link Layer
3. Network Layer
4. Transport Layer
5. Session Layer
fi
fi
fi
6. Presentation Layer
7. Application Layer

10. Explain the working of each layer.

• Physical Layer: Handles the physical connection between devices; deals with raw data
transmission.
• Data Link Layer: Ensures error-free transfer of data frames between nodes on the same
network.
• Network Layer: Manages data routing and addressing between different networks.
• Transport Layer: Ensures data transfer is reliable and error-checked.
• Session Layer: Establishes, manages, and terminates communication sessions.
• Presentation Layer: Transforms data into a format that the Application layer can use.
• Application Layer: Provides network services directly to end-user applications.

11. Draw a diagram of the OSI and TCP/IP reference model.

• Unfortunately, I can’t draw here, but the OSI model has 7 layers, while the TCP/IP model
has 4 layers: Application, Transport, Internet, and Network Interface (or Link layer).

12. Difference between OSI and TCP/IP models?

• OSI Model:
◦ Has 7 layers.
◦ Theoretical model for understanding and designing networks.
◦ Developed by ISO.
• TCP/IP Model:
◦ Has 4 layers.
◦ Practical model used in the actual internet.
◦ Developed by DARPA.

13. List names of protocols that work at each layer of the OSI model.

• Application Layer: HTTP, FTP, SMTP, DNS


• Presentation Layer: SSL, TLS
• Session Layer: NetBIOS, PPTP
• Transport Layer: TCP, UDP
• Network Layer: IP, ICMP
• Data Link Layer: Ethernet, PPP
• Physical Layer: Ethernet cabling, Fiber optics

14. List names of networking devices working at each layer of TCP/IP.

• Application Layer: Computers, web servers, DNS servers


• Transport Layer: Gateways, rewalls
• Internet Layer: Routers
• Network Interface Layer: Switches, hubs, NICs (Network Interface Cards)

15. What is ATM?

• Asynchronous Transfer Mode (ATM): A networking technology based on transferring data


in xed-size cells. It's used in high-speed networks and supports both voice and data traf c.

16. What is meant by tunneling?

• Tunneling: A method of transferring data securely over a public network by encapsulating it


within another protocol, often used in VPNs.

17. What is meant by fragmentation?

• Fragmentation: The process of breaking a large data packet into smaller packets so it can
be transmitted across a network with size limitations.

18. Draw IPv4 and IPv6 header format.

• As I can't draw here, you can nd these diagrams in networking textbooks. IPv4 headers
include elds like Source Address, Destination Address, and TTL, while IPv6 headers have
larger address elds and a simpli ed header structure.

19. Draw TCP, UDP header format.


fi
fi
fi
fi
fi
fi
fi
• TCP headers include elds like Source Port, Destination Port, Sequence Number, and
Acknowledgment Number. UDP headers are simpler, with only four elds: Source Port,
Destination Port, Length, and Checksum.

20. What are the two types of transmission technology available?

1. Broadcast: One-to-all transmission (e.g., radio).


2. Point-to-point: Direct connection between two devices (e.g., telephone call).

21. What is subnetting? When to use it?

• Subnetting: Dividing a network into smaller sub-networks (subnets) to improve


management and ef ciency.
• When to Use: When a network needs to be segmented for security, better traf c
management, or when IP addresses need to be conserved.
22. Difference between communication and transmission.

• Communication: The exchange of information between devices, which may involve


encoding, processing, and decoding of data.
• Transmission: The physical process of sending data from one point to another, often over a
medium like cable or wireless signal.

23. What is a router?

• A router is a network device that directs data packets between networks, enabling internet
connectivity and communication between multiple devices by selecting the best path for
data to travel.

24. What is Point-to-Point Protocol (PPP)?

• PPP: A protocol used for direct communication between two network nodes, often used for
internet connections over dial-up or broadband networks.

25. What is a MAC address? How many bits is it, and in which format?

• MAC Address: A unique identi er for network interface cards, used for communication
within a local network.
fi
fi
fi
fi
fi
• Bits: 48 bits.
• Format: Six pairs of hexadecimal numbers, e.g., 00:1A:2B:3C:4D:5E.

26. IP address works at which layer? How many bits is it? Give one example.

• Layer: Network Layer (Layer 3).


• Bits: IPv4 is 32 bits, IPv6 is 128 bits.
• Example: IPv4 address - [Link].

27. How many classes are there in IPv4? Also give the range of each.

• Class A: [Link] - [Link]


• Class B: [Link] - [Link]
• Class C: [Link] - [Link]
• Class D: [Link] - [Link] (Multicast)
• Class E: [Link] - [Link] (Experimental)

28. For each class, show the number of networks and hosts.

• Class A: 128 networks, 16 million hosts per network.


• Class B: 16,384 networks, 65,536 hosts per network.
• Class C: 2 million networks, 256 hosts per network.
• Class D: Not used for traditional host addressing (reserved for multicast).
• Class E: Experimental; not used for host addressing.

29. What is the default subnet mask for Class A, B, and C?

• Class A: [Link]
• Class B: [Link]
• Class C: [Link]

30. What is a physical and logical address?

• Physical Address: A unique identi er assigned to each network device (MAC address).
• Logical Address: IP address used to identify a device’s network location.
fi
31. What are the types of transmission media?

• Guided Media: Includes twisted pair cables, coaxial cables, and ber optic cables.
• Unguided Media: Includes radio waves, microwaves, and infrared waves.

32. What is a repeater?

• A device that ampli es or regenerates signals in a network to extend the transmission


distance without signal degradation.

33. What is a bridge?

• A network device that connects and lters traf c between two or more network segments at
the Data Link layer, improving network ef ciency.

34. What is a router?

• A device that routes data packets between different networks, using IP addresses to
determine the best path for data.

35. What is a gateway?

• A network device that connects and translates communication between networks that use
different protocols.

36. What is a switch?

• A network device that connects devices within a LAN, forwarding data only to the speci c
device for which the data is intended, using MAC addresses.

37. Difference between hub and switch.

• Hub: Broadcasts data to all devices on the network; less ef cient.


• Switch: Sends data only to the intended device, conserving bandwidth.

38. Difference between switch and router.

• Switch: Operates within a single LAN, handling data at the Data Link layer.
fi
fi
fi
fi
fi
fi
fi
• Router: Connects multiple networks and routes data based on IP addresses at the Network
layer.

39. What is a cutoff switch and store-and-forward switch?

• Cutoff Switch: Forwards data as soon as the destination MAC address is read.
• Store-and-Forward Switch: Checks the entire packet for errors before forwarding.

40. What is a manageable and unmanageable switch?

• Manageable Switch: Allows for con guration and control of network traf c.
• Unmanageable Switch: Simple, plug-and-play device with no con guration options.
41. What is the need of a web server?

• Web Server: Hosts websites and serves content to users over the internet or intranet by
processing HTTP/HTTPS requests, enabling clients to access web pages.

42. What is meant by Broadcast, Multicast, and Unicast?

• Broadcast: Sends data to all devices on the network.


• Multicast: Sends data to a group of devices.
• Unicast: Sends data to a single device.

43. What is FDDI?

• FDDI (Fiber Distributed Data Interface): A standard for data transmission in LANs using
ber optic cables, supporting high-speed data transfer up to 100 Mbps.

44. What is Token Ring and Token Bus?

• Token Ring: A network where devices pass a token to communicate, preventing data
collisions.
• Token Bus: A network protocol where a token circulates in a virtual bus for controlling
network access.

45. Give all IEEE standards from 802.2 to 802.16.

• 802.2: Logical Link Control


fi
fi
fi
fi
• 802.3: Ethernet
• 802.4: Token Bus
• 802.5: Token Ring
• 802.6: Metropolitan Area Network (MAN)
• 802.11: Wireless LAN (Wi-Fi)
• 802.15: Wireless Personal Area Network (WPAN)
• 802.16: Broadband Wireless Access (WiMAX)

46. What is the IP address of our server?

• Generally, the IP of a server would be assigned by the organization. For a local server, it
could be something like 192.168.x.x.

47. What are the two lines used in our organization for internet connection?

• This can vary by organization, but typically these would be a primary and backup ISP line.

48. What is the difference between a leased line and dial-up connection?

• Leased Line: Permanent, high-speed connection providing dedicated bandwidth.


• Dial-Up: Temporary, slower connection established over the phone line as needed.

49. What is meant by ISP?

• ISP (Internet Service Provider): A company providing internet access to users and
businesses.

50. What is ICMP?

• ICMP (Internet Control Message Protocol): Used for error handling and diagnostics,
commonly associated with the ping command.

51. What are the data units at different layers of the TCP/IP protocol suite?

• Application Layer: Data


• Transport Layer: Segment (TCP) / Datagram (UDP)
• Internet Layer: Packet
• Network Interface Layer: Frame

52. What is the difference between ARP and RARP?

• ARP (Address Resolution Protocol): Maps IP addresses to MAC addresses.


• RARP (Reverse Address Resolution Protocol): Maps MAC addresses to IP addresses.

53. What is the minimum and maximum length of the header in the TCP segment and IP
datagram?

• TCP Header: Minimum 20 bytes, maximum 60 bytes.


• IP Datagram: Minimum 20 bytes, maximum 60 bytes.

54. What is the difference between TFTP and FTP application layer protocols?

• TFTP (Trivial File Transfer Protocol): Simple, no authentication, often used for small le
transfers.
• FTP (File Transfer Protocol): More robust, with authentication and larger le transfer
capabilities.

55. What are major types of networks and explain?

• LAN (Local Area Network): Covers a small area, like an of ce.


• MAN (Metropolitan Area Network): Covers a city or campus.
• WAN (Wide Area Network): Covers large geographic areas, like countries or continents.

56. What are the important topologies for networks?

• Bus, Star, Ring, Mesh, Tree, and Hybrid: Each has unique advantages in terms of cost,
redundancy, and ease of setup.

57. What is a mesh network?

• Mesh Network: A network where each node connects to multiple nodes, offering high
reliability and redundancy.

58. Why should you care about the OSI Reference Model?
fi
fi
fi
• Helps understand how different protocols and devices interact within a network,
standardizing network design and troubleshooting.

59. What is VPN?

• VPN (Virtual Private Network): A secure network created over the internet, allowing
remote access and protecting data by encrypting traf c.

60. What is Virtual LAN?

• VLAN (Virtual LAN): A logical subgroup within a physical network, allowing


segmentation without additional cabling or physical restructuring.

61. What is packet ltering?

• A security technique where packets are allowed or blocked based on criteria like IP
addresses, ports, or protocols.

62. What is traf c shaping?

• A method of controlling network traf c to prioritize bandwidth usage and improve


performance.

63. What is meant by ow control?

• A technique to manage data transmission rates, preventing buffer over ow by coordinating


data ow between sender and receiver.

64. What is meant by congestion control?

• Techniques used to prevent network congestion, ensuring ef cient data transfer without
overwhelming the network.

65. What is IGP (Interior Gateway Protocol)?

• Protocols used for exchanging routing information within a single organization or


autonomous system, like OSPF and RIP.
fl
fi
fi
fl
fi
fi
fi
fl
66. What is EGP (Exterior Gateway Protocol)?

• Protocols used for routing between different organizations or autonomous systems, like
BGP.

67. What is an autonomous system?

• A collection of IP networks and routers under the control of a single organization that
presents a common routing policy to the internet.

68. What is BGP (Border Gateway Protocol)?

• A protocol for exchanging routing information between autonomous systems on the internet,
essential for global internet routing.

69. What is OSPF?

• OSPF (Open Shortest Path First): A link-state IGP used to nd the best path within an
autonomous system using the shortest-path algorithm.

70. What is RIP (Routing Information Protocol)?

• An IGP that uses distance vector routing, measuring distances in hops to determine the best
route, limited by a maximum of 15 hops.
71. What is PPP?

• PPP (Point-to-Point Protocol): A data link layer protocol used to establish a direct
connection between two network nodes, commonly used for internet dial-up and broadband
connections.

72. What is DHCP (Dynamic Host Con guration Protocol)?

• DHCP: A protocol that dynamically assigns IP addresses and network con gurations to
devices on a network, enabling devices to communicate without manual IP setup.

73. What is SNMP (Simple Network Management Protocol)?


fi
fi
fi
• SNMP: A protocol used for network management, allowing administrators to monitor and
manage network devices like routers, switches, and servers.

74. How are current IPv4 addresses allocated?

• IPv4 addresses are managed by IANA (Internet Assigned Numbers Authority) and allocated
regionally by RIRs (Regional Internet Registries), who then assign them to ISPs and
organizations.

75. How do IPv6 addresses differ from addresses used in the current IP version?

• IPv6: Uses 128-bit addresses (compared to IPv4's 32-bit), allowing a vastly larger address
space, better suited for modern internet demands.

76. How does IPv6 address allocation differ from address allocation used with IPv4?

• IPv6 addresses are assigned in larger blocks to ease hierarchical routing, while IPv4
addresses were typically allocated in smaller, more fragmented blocks.

77. IPv6 is supposed to solve address allocation problems with IPv4. How is it supposed to do
that?

• IPv6 provides a nearly unlimited address space, allowing for unique addresses globally and
simplifying routing, reducing address exhaustion.

78. How are addresses belonging to different types differentiated from each other?

• IPv6 addresses are categorized by pre xes: Unicast (for single devices), Multicast (for
groups), and Anycast(closest member of a group).

79. What is supernetting and subnetting?

• Supernetting: Combines multiple networks into a larger network (often used for ef cient IP
management).
• Subnetting: Divides a network into smaller, manageable sub-networks to improve
organization and ef ciency.
fi
fi
fi
80. Write in decimal form the IP-address C22F1582. To which address class does it belong,
and write the address also in binary form.

• Decimal Form: [Link]


• Class: C
• Binary Form: 11000010.00101111.00010101.10000010

81. What is the network part in the address [Link]/27? What is the host part?

• Network Part: [Link]


• Host Part: .18

82. How many subnets are available in the network mentioned above? How many hosts can be
in one subnet?

• Subnets: 8 subnets
• Hosts per Subnet: 30 hosts per subnet

83. What does the notation [Link],3 mean? What addresses belong to this
de nition?

• Meaning: Refers to 4 IP addresses, starting from [Link] up to [Link].

84. What are networking commands? Explain each one.

• Ping: Tests connectivity to a network device.


• Traceroute: Shows the path packets take to reach a destination.
• Ipcon g: Displays IP address con guration on Windows.
• Ifcon g: Displays IP address con guration on Linux/Mac.
• Netstat: Shows network connections, routing tables, and port usage.

85. When you give the ping command, what is the output, and also tell the meaning of each
term?

• Output: Response from IP address, including latency times and packet loss.
◦ Time: Round-trip time for packets.
fi
fi
fi
fi
fi
◦ TTL (Time to Live): Maximum hops the packet can take.

86. What is TFTP, and how does it differ from FTP?

• TFTP (Trivial File Transfer Protocol): Simple, uses UDP, no authentication.


• FTP (File Transfer Protocol): More robust, uses TCP, supports authentication.

87. What are the common transmission rates for Ethernet?

• Ethernet Speeds: 10 Mbps, 100 Mbps (Fast Ethernet), 1 Gbps (Gigabit Ethernet), 10 Gbps
(10 Gigabit Ethernet).

88. What is the difference between half and full-duplex mode in Ethernet?

• Half-Duplex: Data can travel in one direction at a time.


• Full-Duplex: Data can travel in both directions simultaneously.

89. What are the transmission speeds for Cat 5, Cat 5e, and Cat 6 network cables?

• Cat 5: Up to 100 Mbps.


• Cat 5e: Up to 1 Gbps.
• Cat 6: Up to 10 Gbps (over short distances).

90. What is the maximum connection length for Cat 5, Cat 5e, and Cat 6 network cables?

• Cat 5/5e: 100 meters.


• Cat 6: 100 meters (for lower speeds), 55 meters for 10 Gbps.

91. What do you mean by 10base2, 10base5, 10baseT, and 10baseF?

• 10Base2: 10 Mbps, coaxial cable, max distance 185m.


• 10Base5: 10 Mbps, coaxial cable, max distance 500m.
• 10BaseT: 10 Mbps, twisted pair cable.
• 10BaseF: 10 Mbps, ber optic cable.

92. What is [Link] IP address?


fi
• [Link]: A private IP address commonly used as the default gateway for many home
routers.

93. What is [Link] IP address?

• [Link]: Another common private IP address, often used as a router gateway address.

94. What is [Link] IP address?

• [Link]: Another private IP address frequently used as a default gateway for routers.

95. How to see the IP address of your PC?

• Windows: ipconfig in Command Prompt.


• Mac/Linux: ifconfig or ip addr in Terminal.

96. What is meant by default gateway?

• Default Gateway: The device that routes traf c from a local network to other networks,
such as the internet.

97. Why is the IP address important in networking?

• It uniquely identi es devices on a network, enabling routing and communication between


different devices.

98. What is the usage of the ipcon g command?

• Ipcon g: Shows IP con guration details for a device on a network and can be used to
release or renew DHCP leases.

99. How to solve the limited or no connectivity problem?

• Solutions:
◦ Restart the router or modem.
◦ Reconnect to the network.
◦ Run network diagnostics.
fi
fi
fi
fi
fi
◦ Reset TCP/IP stack using netsh command.

100. What is the difference between IPv4 and IPv6?

• IPv4: 32-bit address, limited addresses, no built-in security.


• IPv6: 128-bit address, virtually unlimited addresses, improved security.

101. What is IP routing?

• IP Routing: The process of determining the path for IP packets to travel from source to
destination.

102. What is a routing table?

• Routing Table: A data table stored in routers or computers to determine the next hop for IP
packets.

103. What is the basis behind Distance Vector Routing?

• Routers determine the best path based on distance (number of hops), and each router shares
its routing table with its neighbors.

104. How does Link State Routing work?

• Routers maintain a map of the network and calculate the shortest path to each destination,
broadcasting updates only when changes occur.

105. How to connect two computers directly without a router or switch?

• Use a crossover Ethernet cable or Wi-Fi Direct for a direct connection.

106. How does a proxy server work?

• Proxy Server: Acts as an intermediary between a client and the internet, forwarding
requests and providing ltering, privacy, and caching.

107. What is client/server networking?


fi
• Client/Server Network: A network structure where clients request resources/services, and
the server provides them.

108. What is QoS (Quality of Service)?

• QoS: A set of technologies to manage network resources, ensuring prioritized traf c for
critical applications.

109. What is a protocol?

• Protocol: A set of rules governing data communication over networks, like HTTP, TCP, and
FTP.

110. What is a port?

• A Port: A virtual endpoint for network communications, helping direct packets to speci c
applications or processes.

111. What is the usage of TCP (Transmission Control Protocol)?

• TCP: Ensures reliable data transmission, establishing a connection and verifying data
integrity for applications that require accuracy, such as web browsing and email.

112. What is the usage of UDP (User Datagram Protocol)?

• UDP: Used for fast, connectionless data transmission where speed is more critical than
reliability, like video streaming, online gaming, and voice-over IP.

113. What does FTP stand for?

• FTP (File Transfer Protocol): A protocol for transferring les between a client and server
over a network.

114. Why do we need DNS (Domain Name Server)?

• DNS: Translates human-friendly domain names (like [Link]) into IP addresses,


allowing users to access websites without memorizing numeric addresses.
fi
fi
fi
115. What is Voice over IP (VoIP)?

• VoIP: Technology that enables voice communication over IP networks, like the internet,
instead of traditional phone lines (e.g., Skype, Zoom).

116. What is encryption?

• Encryption: The process of converting data into a secure format to prevent unauthorized
access during transmission or storage.

118. What is the wireless speed for 802.11a, 802.11b, 802.11g, and 802.11n wireless standards?

• 802.11a: Up to 54 Mbps
• 802.11b: Up to 11 Mbps
• 802.11g: Up to 54 Mbps
• 802.11n: Up to 600 Mbps

119. What is WiMAX?

• WiMAX: A wireless communication standard for high-speed internet access over long
distances, often used in rural areas.

120. Can we connect two computers directly and wirelessly?

• Yes, by creating an ad-hoc network or using Wi-Fi Direct.

121. What is a null modem?

• Null Modem: A type of serial cable that allows direct communication between two devices,
often used to connect two computers without a modem.

122. Can we con gure a wireless router as an access point only?

• Yes, by disabling its DHCP function and connecting it to the main network, it acts as an
access point for wireless devices.

123. Which wireless standard should I use?


fi
• 802.11ac or 802.11ax (Wi-Fi 6) are recommended for high-speed, reliable wireless
connections, supporting faster speeds and more connected devices.

124. What is the difference between a wireless router and an access point?

• Wireless Router: Combines routing and wireless access point functionalities, creating a
LAN and connecting it to the internet.
• Access Point: Extends the wireless coverage of an existing network.

125. What is the difference between Wi-Fi and Bluetooth?

• Wi-Fi: Used for high-speed data connections over a longer range.


• Bluetooth: Primarily for short-range, low-power device-to-device communication.

126. What is a socket?

• Socket: An endpoint for sending and receiving data between two devices on a network,
de ned by an IP address and port number.

127. What is a port? Explain types of port numbers.

• Port: A logical endpoint in a network connection.


◦ Well-Known Ports: 0–1023, assigned to widely used services (e.g., HTTP - 80, FTP
- 21).
◦ Registered Ports: 1024–49151, assigned to speci c applications.
◦ Dynamic/Private Ports: 49152–65535, used temporarily by applications.

128. What is meant by subnet mask? What are subnet masks for class A, B, and C?

• Subnet Mask: Divides an IP address into network and host parts, enabling subnetting.
◦ Class A: [Link]
◦ Class B: [Link]
◦ Class C: [Link]

129. Explain different classes of IPv4 and give their ranges.

• Class A: [Link] - [Link]


fi
fi
• Class B: [Link] - [Link]
• Class C: [Link] - [Link]
• Class D: [Link] - [Link] (Multicast)
• Class E: [Link] - [Link] (Experimental)

130. What is NAT?

• NAT (Network Address Translation): Modi es IP addresses of devices in a private


network to communicate with external networks, typically by using the router’s IP address.

131. For what purposes are Class D and E used?

• Class D: Used for multicast applications.


• Class E: Reserved for experimental purposes.

132. What is meant by broadcast, multicast, and unicast?

• Broadcast: Sends data to all devices in a network.


• Multicast: Sends data to a speci c group of devices.
• Unicast: Sends data to a single, speci c device.

Unit 1

1) What is a network? What are the different types of Networks?

• Network: A collection of interconnected devices that communicate with each other to share
resources and information.
• Types of Networks:
◦ LAN (Local Area Network): Covers a small geographical area, like a home or
of ce.
◦ WAN (Wide Area Network): Covers a large geographical area, connecting multiple
LANs (e.g., the internet).
◦ MAN (Metropolitan Area Network): Covers a city or a large campus.
◦ PAN (Personal Area Network): A small network, typically used for personal
devices (e.g., Bluetooth).

2) How do you create your own LAN?


fi
fi
fi
fi
• Set up network devices (e.g., switches and routers).
• Connect devices using Ethernet cables.
• Con gure the network settings (IP address assignment, subnet mask).
• Ensure devices are set to the same network range for communication.

3) Why do we need to test LAN cables? How many colors are there in LAN cable?

• Testing LAN cables ensures they are functioning correctly and that data can be transmitted
without loss.
• Colors in LAN cables: Typically, there are four pairs of wires, each with a different color
(e.g., blue, orange, green, brown) and their respective striped counterparts.

4) How do you manually assign an IP address to a PC?

• Go to network settings (Control Panel on Windows or System Settings on Ubuntu).


• Select the network connection (e.g., Ethernet).
• Choose to manually set the IP address, then enter the desired IP, subnet mask, and default
gateway.

5) Which command is used for checking IP address (Windows and Ubuntu)?

• Windows: ipconfig
• Ubuntu: ifconfig or ip addr

6) Why do we use Wireshark?

• Wireshark is a network protocol analyzer that allows users to capture and inspect packets
traveling through a network for troubleshooting and analysis.

7) What is the procedure to trace packets in Wireshark?

• Start Wireshark and select the network interface to capture packets.


• Use capture lters if needed to limit the captured data.
• Start the capture and monitor the packet ow in real-time.
• Stop the capture when nished and analyze the captured packets.
fi
fi
fi
fl
8) What are the different types of transmission mediums? Explain.

• Wired Transmission Media:


◦ Twisted Pair Cable: Uses pairs of wires twisted together; common in LANs.
◦ Coaxial Cable: Used for cable TV and internet; offers better shielding.
◦ Fiber Optic Cable: Transmits data as light; offers high bandwidth over long
distances.
• Wireless Transmission Media:
◦ Radio Waves: Used in Wi-Fi, Bluetooth, etc.
◦ Microwaves: Used for long-distance communication.
◦ Infrared: Used in remote controls and short-range communication.

9) Draw and explain OSI Model and TCP/IP Model.

• OSI Model:

1. Application Layer: User interface and application services.


2. Presentation Layer: Data formatting and encryption.
3. Session Layer: Manages sessions and connections.
4. Transport Layer: Reliable transmission (TCP/UDP).
5. Network Layer: Routing and addressing (IP).
6. Data Link Layer: Frame synchronization and error detection.
7. Physical Layer: Transmission of raw bits over a physical medium.
• TCP/IP Model:

1. Application Layer: Combines OSI's application, presentation, and session layers.


2. Transport Layer: Corresponds to the transport layer of OSI.
3. Internet Layer: Corresponds to the network layer of OSI.
4. Network Interface Layer: Combines OSI's data link and physical layers.

10) What are the different line coding schemes?

• Unipolar: All signal levels are on one side of the axis (0 or 1).
• Polar: Signal levels are on both sides of the axis (positive and negative).
• Bipolar: Alternating positive and negative signals.
• Manchester: Encodes each bit as a transition, providing clock synchronization.
11) Which cables are used to design topologies?

• Twisted Pair Cables: Commonly used in star and bus topologies.


• Coaxial Cables: Often used in bus topologies.
• Fiber Optic Cables: Used in star and mesh topologies for high-speed connections.

12) Which topology is used in our lab?

• Star Topology: Typically used in labs for its ease of management and troubleshooting.

13) What are the different types of topology? Draw and explain.

• Star Topology: All devices connect to a central hub/switch; easy to manage.


• Bus Topology: All devices share a single communication line; simpler but can be inef cient.
• Ring Topology: Devices connected in a circular manner; data travels in one direction.
• Mesh Topology: Every device connects to every other device; highly reliable but costly.

14) What are the different network devices? Explain.

• Router: Forwards data between networks and manages traf c.


• Switch: Connects devices within a LAN and forwards data based on MAC addresses.
• Hub: A basic device that connects multiple devices in a network.
• Access Point: Extends wireless coverage in a network.
• Modem: Converts digital signals to analog for internet access.

15) Why do we use NIC?

• NIC (Network Interface Card): Connects a computer to a network, allowing it to


communicate with other devices and access the internet.

16) Why do we need to test LAN cables? How many colors are there in LAN cable?

• (See answers for questions 3 and 16 above; they are the same.)

17) In Packet Tracer, which cable is used for connecting same type of devices?

• Straight-through Cable: Used to connect similar devices (e.g., switch to switch).


fi
fi
18) In Packet Tracer, which cable is used for connecting different types of devices?

• Cross-over Cable: Used to connect different devices (e.g., switch to router).

19) Why do we use Packet Tracer?

• Packet Tracer: A simulation tool for networking that allows users to design, con gure, and
troubleshoot networks without needing physical hardware.

Unit 2

20) What are the different ow control protocols? Explain.

• Stop-and-Wait Protocol: Sender sends one frame and waits for an acknowledgment before
sending the next.
• Sliding Window Protocol: Allows multiple frames to be in transit before needing an
acknowledgment, improving throughput.

21) Explain sliding window protocol.

• Sliding Window Protocol: A method that allows a sender to transmit multiple frames before
needing an acknowledgment. The window size determines how many frames can be sent
before receiving an acknowledgment.

22) In CRC, how do we decide that code has an error?

• If the calculated CRC value (remainder) does not match the value appended to the data, an
error is detected.

23) In Hamming code, how do we calculate the parity bit?

• Parity bits are placed at positions that are powers of two (1, 2, 4, 8...). The value of each
parity bit is determined by ensuring the number of 1s in the data bits it covers is even (for
even parity).

24) What are the network architectures?

• Client-Server Architecture: Centralized server providing resources to clients.


fl
fi
• Peer-to-Peer Architecture: Each device can act as a client or server, sharing resources
directly.

25) What are noise channels and noiseless channels?

• Noise Channels: Channels that experience interference, leading to data corruption.


• Noiseless Channels: Ideal channels that transmit data without any interference or errors.

26) Differentiate pure ALOHA and slotted ALOHA.

• Pure ALOHA: Allows devices to transmit anytime; high collision probability.


• Slotted ALOHA: Divides time into slots; devices can only transmit at the beginning of a
time slot, reducing collisions.

27) How does the binary exponential backoff algorithm work?

• After a collision, a device waits a random amount of time before retransmitting, increasing
the wait time exponentially with each successive collision.

28) What are the design issues in the data link layer?

• Addressing, framing, ow control, error detection and correction, and medium access
control.

29) What is IP? What are the classes of IP? Ranges of IP classes?

• IP (Internet Protocol): Protocol for addressing and routing data packets across networks.
• Classes:
◦ Class A: [Link] - [Link]
◦ Class B: [Link] - [Link]
◦ Class C: [Link] - 223
◦ Class D: [Link] - [Link] (used for multicast).
◦ Class E: [Link] - [Link] (reserved for future use).
30) What is subnetting?
fl
• Subnetting is the process of dividing a larger network into smaller, manageable sub-
networks (subnets). It helps in ef cient IP address management, improves network
performance, and enhances security.

31) What is a subnet mask? What is the default subnet mask for Class A, B, C, and D?

• Subnet Mask: A 32-bit number that separates the network portion of an IP address from the
host portion.
◦ Class A: [Link]
◦ Class B: [Link]
◦ Class C: [Link]
◦ Class D: Not applicable (used for multicast).

32) How do we calculate the subnet mask of a given pre x?

• The subnet mask is determined by the pre x length. For example, a pre x of /24
corresponds to a subnet mask of [Link]. This can be calculated by converting the
pre x length to binary and replacing the rst 'n' bits with '1's and the rest with '0's.

33) What is meant by NAT?

• NAT (Network Address Translation): A method used to translate private IP addresses to a


public IP address for accessing the internet, allowing multiple devices on a local network to
share a single public IP.

34) Tell the algorithm which is implemented in distance vector and link state routing.

• Distance Vector Routing: Uses the Bellman-Ford algorithm to calculate the best path based
on the distance to each destination.
• Link State Routing: Uses Dijkstra's algorithm to compute the shortest path by creating a
complete topology of the network.

35) List out routing protocols.

• RIP (Routing Information Protocol)


• OSPF (Open Shortest Path First)
• EIGRP (Enhanced Interior Gateway Routing Protocol)
fi
fi
fi
fi
fi
fi
• BGP (Border Gateway Protocol)

36) Explain RIP, OSPF, EIGRP, BGP.

• RIP: A distance-vector routing protocol that uses hop count as its metric and has a
maximum limit of 15 hops.
• OSPF: A link-state routing protocol that uses a link-state database and supports hierarchical
routing.
• EIGRP: An advanced distance-vector protocol that combines the bene ts of link-state and
distance-vector protocols, using a composite metric.
• BGP: The protocol used to exchange routing information between different autonomous
systems on the internet, using path vectors.

37) What is CSMA, CSMA/CD, CSMA/CA?

• CSMA (Carrier Sense Multiple Access): A protocol for managing access to a shared
communication medium.
• CSMA/CD (Collision Detection): A variation of CSMA where devices detect collisions and
wait before retransmitting.
• CSMA/CA (Collision Avoidance): Used in wireless networks to avoid collisions by waiting
for a clear channel before transmitting.

38) What is meant by CIDR?

• CIDR (Classless Inter-Domain Routing): An IP addressing scheme that replaces the


traditional class-based system, allowing for more exible allocation of IP addresses through
pre x notation (e.g., /24).

39) How does path vector work?

• Path Vector Protocol: Keeps track of the entire path (sequence of ASes) that routing
information takes. Each router adds its AS number to the path, helping prevent routing
loops.

40) What is meant by routing in MANET? Explain how ad-hoc networks work.
fi
fl
fi
• Routing in MANET (Mobile Ad-hoc Networks): Refers to the dynamic routing of data
between mobile devices in a network without a xed infrastructure.
• Ad-hoc Networks: Formed spontaneously as devices communicate directly with each other,
often using protocols like AODV (Ad hoc On-Demand Distance Vector) and DSR (Dynamic
Source Routing).

41) Explain ARP, RARP, ICMP, IGMP, MPLS.

• ARP (Address Resolution Protocol): Maps IP addresses to MAC addresses.


• RARP (Reverse Address Resolution Protocol): Maps MAC addresses to IP addresses,
used by diskless nodes to obtain their IP.
• ICMP (Internet Control Message Protocol): Used for error messages and operational
queries (e.g., ping).
• IGMP (Internet Group Management Protocol): Manages multicast group memberships.
• MPLS (Multi-Protocol Label Switching): Directs data from one node to another based on
short path labels instead of long network addresses, improving speed and ef ciency.

Unit 4

42) Explain TCP/IP architecture.

• TCP/IP Architecture consists of four layers:


5. Application Layer: End-user applications (HTTP, FTP, etc.).
6. Transport Layer: Manages data transfer (TCP for reliability, UDP for speed).
7. Internet Layer: Handles packet routing and addressing (IP).
8. Network Interface Layer: De nes how data is transmitted over the physical
medium.

43) Difference between TCP and UDP.

• TCP (Transmission Control Protocol): Connection-oriented, reliable, ensures data


delivery, provides error checking.
• UDP (User Datagram Protocol): Connectionless, faster, no guarantee of delivery, no error
recovery.

44) Draw header format of IPv4 and IPv6.


fi
fi
fi
• IPv4 Header Format:

◦ Version, IHL, Type of Service, Total Length, Identi cation, Flags, Fragment Offset,
Time to Live, Protocol, Header Checksum, Source Address, Destination Address.
• IPv6 Header Format:

◦ Version, Traf c Class, Flow Label, Payload Length, Next Header, Hop Limit, Source
Address, Destination Address.

45) How can we trace RIP through Cisco Packet Tracer?

• In Packet Tracer, con gure RIP on routers, use the command router rip to enable it,

and show ip route to view RIP routes. You can simulate and observe routing updates
between routers.

46) What is socket programming? How do we differ the socket program for TCP and UDP?

• Socket Programming: A way to enable communication between devices over a network


using sockets.
• TCP Socket: Establishes a connection using socket(AF_INET, SOCK_STREAM,
0) and requires a connect() call.
• UDP Socket: Uses socket(AF_INET, SOCK_DGRAM, 0) and sends data without
establishing a connection.

47) Which function is used in socket programming to establish a connection?

• TCP: connect()
• UDP: Does not require a connection; data is sent using sendto().

48) How do TCP and UDP work for wireless communication?

• TCP: Manages packet loss and ensures data integrity; slower due to overhead.
• UDP: Faster and more ef cient for real-time applications (e.g., VoIP) but does not guarantee
delivery.

49) Explain quality of service and congestion control.


fi
fi
fi
fi
• Quality of Service (QoS): Techniques to manage network resources to ensure performance
(e.g., bandwidth, latency) for different applications.
• Congestion Control: Mechanisms to prevent network congestion by controlling the rate of
data transmission (e.g., TCP's ow control algorithms).

Unit 5

50) What is DNS? Explain how we convert an IP address to a URL with the help of DNS.

• DNS (Domain Name System): Translates human-readable domain names (URLs) into IP
addresses.
• Conversion Process: A DNS query is sent to a DNS server, which looks up the
corresponding IP address and returns it to the requester.

51) How does FTP work?

• FTP (File Transfer Protocol): A standard network protocol for transferring les between a
client and server. It uses separate channels for commands (control connection) and data (data
connection).

52) Explain the implementation of MIME in Outlook.

• MIME (Multipurpose Internet Mail Extensions): Extends email to support multimedia


formats. In Outlook, MIME allows users to send emails with attachments, rich text, and
various media types.

53) Explain IPSec. Why do we need ESP and AH protocols for security?

• IPSec (Internet Protocol Security): A suite of protocols for securing Internet Protocol
communications through encryption and authentication.
• ESP (Encapsulating Security Payload): Provides con dentiality, integrity, and
authentication.
• AH (Authentication Header): Provides data integrity and authentication but not
con dentiality.

54) Explain rewall.


fi
fi
fl
fi
fi
• Firewall: A security device that monitors and controls incoming and outgoing network
traf c based on predetermined security rules, helping to prevent unauthorized access to or
from a network.

55) What is meant by routing in MANET?

• (Refer to the answer for question 40 in Unit 2 regarding routing in MANET.)

56) Tell the protocol numbers for HTTP, HTTPS, FTP, SMTP, MIME, POP3, IMAP.

• HTTP: 80
• HTTPS: 443
• FTP: 21
• SMTP: 25
• POP3: 110
• IMAP: 143
57) Explain HTTP, HTTPS, FTP, SMTP, MIME, POP3, Telnet, SSH, SCTP, RTP.

• HTTP (HyperText Transfer Protocol): The protocol used for transferring web pages on the
internet. It is stateless and operates over TCP.

• HTTPS (HTTP Secure): An extension of HTTP that uses SSL/TLS to provide a secure
communication channel over a computer network.

• FTP (File Transfer Protocol): A standard network protocol for transferring les between a
client and server. It can operate in active or passive mode.

• SMTP (Simple Mail Transfer Protocol): A protocol used for sending emails. It works by
transferring messages from the client to the server or between servers.

• MIME (Multipurpose Internet Mail Extensions): A standard that extends email formats
to support text in character sets other than ASCII, as well as attachments of audio, video,
images, and application programs.
fi
fi
• POP3 (Post Of ce Protocol version 3): A protocol used by email clients to retrieve emails
from a server, allowing users to download and delete messages.

• IMAP (Internet Message Access Protocol): A protocol for retrieving emails, allowing
users to view and manage their messages directly on the server without downloading them.

• Telnet: A protocol used to provide a command-line interface for communication with a


remote device or server, typically over TCP port 23. It is not secure.

• SSH (Secure Shell): A protocol for secure remote login and other secure network services
over an unsecured network, providing strong authentication and encryption.

• SCTP (Stream Control Transmission Protocol): A transport layer protocol that provides
reliable, message-oriented communication. It is used in applications like telephony
signaling.

• RTP (Real-time Transport Protocol): A protocol used for delivering audio and video over
IP networks, enabling real-time transmission and synchronization of multimedia content.

58) Explain DHCP in detail.

• DHCP (Dynamic Host Con guration Protocol): A network management protocol used to
dynamically assign IP addresses and other network con guration parameters to devices on a
network, allowing them to communicate on an IP network. The main components of DHCP
are:
◦ DHCP Server: Assigns IP addresses and con guration settings to clients.
◦ DHCP Client: A device that requests an IP address from the DHCP server.
◦ DHCP Lease: The temporary assignment of an IP address to a client for a speci ed
period.
• Process of DHCP:
fi
fi
fi
fi
fi
◦ DHCP Discover: Client broadcasts a request for an IP address.
◦ DHCP Offer: Server responds with an available IP address and con guration details.
◦ DHCP Request: Client sends a request to the server for the offered IP address.
◦ DHCP Acknowledgment: Server con rms the assignment of the IP address to the
client.
59) What is web caching?

• Web Caching: The process of storing copies of web documents (like HTML pages, images)
temporarily to reduce bandwidth usage, server load, and latency. When a user requests a
cached document, the cached version is served, improving access speed and reducing the
need to fetch the document from the origin server.
60) How does SNMP work?

• SNMP (Simple Network Management Protocol): A protocol used for managing and
monitoring network devices. It operates on a client-server model, where the SNMP manager
(client) communicates with SNMP agents (servers) on devices. The key components
include:
◦ Manager: The software that monitors and controls network devices.
◦ Agent: Software running on network devices that collects and stores management
data.
◦ MIB (Management Information Base): A database of objects that can be managed
using SNMP.
• How SNMP Works:
◦ The manager sends requests to agents for information (e.g., performance metrics).
◦ Agents respond with the requested data or send traps (alerts) when certain events
occur.

Unit 6

61) What are the different types of attacks?

• Types of Attacks:
◦ Malware: Malicious software like viruses, worms, and trojans.
◦ Phishing: Fraudulent attempts to obtain sensitive information by disguising as a
trustworthy entity.
fi
fi
◦ DDoS (Distributed Denial of Service): Overloading a service or network with
traf c to make it unavailable.
◦ Man-in-the-Middle (MitM): Intercepting and manipulating communication
between two parties.
◦ SQL Injection: Inserting malicious SQL statements into a query to manipulate
databases.
◦ Cross-Site Scripting (XSS): Injecting malicious scripts into web pages viewed by
others.

62) What is SSL?

• SSL (Secure Sockets Layer): A standard security protocol for establishing encrypted links
between a web server and a browser. It ensures that all data transmitted remains private and
secure. SSL has been succeeded by TLS (Transport Layer Security).

63) Explain types of security services.

• Types of Security Services:


◦ Con dentiality: Ensures that data is only accessible to authorized users.
◦ Integrity: Ensures that data remains unchanged and accurate during transmission.
◦ Authentication: Veri es the identity of users and devices.
◦ Non-repudiation: Prevents parties from denying their actions, typically through
digital signatures.
◦ Access Control: Restricts access to resources to authorized users.

64) What are threats and vulnerabilities?

• Threats: Potential dangers that could exploit a vulnerability to cause harm or loss (e.g.,
malware, hackers).
• Vulnerabilities: Weaknesses or aws in a system that can be exploited by threats to gain
unauthorized access or cause damage.

65) Describe security mechanism.

• Security Mechanisms: Methods or technologies used to enforce security policies and


protect information systems. Examples include:
fi
fi
fi
fl
◦ Encryption: Converting data into a secure format to prevent unauthorized access.
◦ Firewalls: Filtering incoming and outgoing network traf c based on security rules.
◦ Intrusion Detection Systems (IDS): Monitoring networks for suspicious activities
and policy violations.
◦ Access Control Lists (ACLs): De ning permissions for users and devices accessing
network resources.

66) Explain key mechanisms in cryptography.

• Key Mechanisms in Cryptography:


◦ Symmetric Key Cryptography: Uses the same key for both encryption and
decryption (e.g., AES).
◦ Asymmetric Key Cryptography: Uses a pair of keys (public and private) for
encryption and decryption (e.g., RSA).
◦ Hash Functions: Converts data into a xed-size string of characters, which is unique
for each unique input, providing data integrity (e.g., SHA-256).

67) What is HTTPS and S/MIME?

• HTTPS (HyperText Transfer Protocol Secure): An extension of HTTP that uses SSL/TLS
to encrypt data exchanged between a web server and a client, providing a secure browsing
experience.

• S/MIME (Secure/Multipurpose Internet Mail Extensions): A protocol for sending secure


emails using encryption and digital signatures, ensuring con dentiality and authenticity.

68) How does IDS work? Explain rewalls.

• IDS (Intrusion Detection System): Monitors network traf c for suspicious activity and
policy violations. It can be:

◦ Network-based IDS (NIDS): Monitors network traf c across multiple devices.


◦ Host-based IDS (HIDS): Monitors individual devices for malicious activities.
• Firewalls: Act as a barrier between a trusted network and untrusted networks, controlling
the incoming and outgoing traf c based on prede ned security rules. They can be:
fi
fi
fi
fi
fi
fi
fi
fi
fi
◦ Packet- ltering rewalls: Examine packets and allow or block them based on
de ned rules.
◦ Stateful rewalls: Track the state of active connections and make decisions based on
the context of the traf c.
◦ Application-layer rewalls: Inspect speci c applications or services, providing
more granular control.
fi
fi
fi
fi
fi
fi
fi

You might also like