Commonly asked Computer Networks Interview Questions | Set 1
Last Updated :
16 Jun, 2024
What are Unicasting, Anycasting, Multicasting and Broadcasting?
If the message is sent from a source to a single destination node, it is called Unicasting. This is typically done in networks.
If the message is sent from a source to any of the given destination nodes. This is used a lot in Content delivery Systems where we want to get content from any server. If the message is sent to some subset of other nodes, it is called Multicasting. Used in the situation when there are multiple receivers of the same data. Like video conferencing, updating something on CDN servers which have a replica of same data. If the message is sent to all the nodes in a network it is called Broadcasting. This is typically used in Local networks, for examples DHCP and ARP use broadcasting.
What are layers in OSI model?
There are a total of 7 layers 1. Physical Layer 2. Data Link Layer 3. Network Layer 4. Transport Layer 5. Session Layer 6. Presentation Layer 7. Application Layer
What is Stop-and-Wait Protocol?
In Stop and wait protocol, a sender after sending a frame waits for an acknowledgment of the frame and sends the next frame only when acknowledgment of the frame has received.
What is Piggybacking?
Piggybacking is used in bi-directional data transmission in the network layer (OSI model). The idea is to improve the efficiency. Piggyback acknowledgment (of the received data) is hooked on the data frame (to be sent) instead of sending a separate frame.
Differences between Hub, Switch and Router?
Hub |
Switch |
Router |
Physical Layer Device |
Data Link Layer Device |
Network Layer Device |
Simply repeats signal to all ports |
Doesn’t simply repeat, but filters content by MAC or LAN address |
Routes data based on IP address |
Connects devices within a single LAN |
Can connect multiple sub-LANs within a single LAN |
Connect multiple LANS and WANS together. |
Collision domain of all hosts connected through Hub remains one. i.e., if signal sent by any two devices can collide. |
Switch divides collision domain, but broadcast domain of connected devices remains same. |
It divides both collision and broadcast domains, |
|
|
|
See
network devices
for more details.
What happens when you type a URL in the web browser?
A URL may contain a request to HTML, image file or any other type.
- If the content of the typed URL is in the cache and fresh, then display the content.
- Else find the IP address for the domain so that a TCP connection can be set up. Browser does a DNS lookup.
- Browser needs to know the IP address for a URL so that it can set up a TCP connection. This is why browser needs DNS service. The browser first looks for URL-IP mapping browser cache, then in OS cache. If all caches are empty, then it makes a recursive query to the local DNS server. The local DNS server provides the IP address.
- Browser sets up a TCP connection using three-way handshake.
- Browser sends a HTTP request.
- Server has a web server like Apache, IIS running that handles incoming HTTP request and sends an HTTP response.
- Browser receives the HTTP response and renders the content.
What is DHCP, how does it work?
-
- The idea of DHCP (Dynamic Host Configuration Protocol) is to enable devices to get IP address without any manual configuration.
- The device sends a broadcast message saying “I am new here”
- The DHCP server sees the message and responds back to the device and typically allocates an IP address. All other devices on network ignore the message of the new device as they are not DHCP server.
In Wi-Fi networks, Access Points generally work as a DHCP server.
What is ARP, how does it work?
ARP stands for Address Resolution Protocol. ARP is used to find LAN address from the Network address. A node typically has destination IP to send a packet, the nodes need link layer address to send a frame over a local link. The ARP protocol helps here.
-
-
- The node sends a broadcast message to all nodes saying what is the MAC address of this IP address.
- Node with the provided IP address replies with the MAC address.
Like DHCP, ARP is a discovery protocol, but unlike DHCP there is not server here. Practice
Quizzes
for Networking You may also like
Similar Reads
Microsoftâs most frequently asked interview questions | Set 2
Microsoft's most asked interview questions | Set 1Level - Easy Celebrity problem - Practice herePrint numbers in given range of bst - Practice hereRoof to leaf path sum - Practice hereLevel order traversal - Practice hereTransform to sum tree - Practice hereDelete middle of linked list - Practice he
1 min read
Amazonâs most frequently asked interview questions | Set 2
Amazon's Most Frequently Asked Questions | Set 1 Level - Easy Get minimum element from the stack - Practice hereSerialize and deserialize a binary tree - Practice herePrint a binary tree in a vertical order - Practice hereCelebrity problem - Practice hereLevel order traversalSwap the kth element fro
2 min read
Top 50 Plus Networking Interview Questions and Answers for 2024
Networking is defined as connected devices that may exchange data or information and share resources. A computer network connects computers to exchange data via a communication media. Computer networking is the most often asked question at leading organizations such Cisco, Accenture, Uber, Airbnb, G
15+ min read
Microsoft's most asked interview questions
Like other product-based companies, Microsoft also asks data structures and algorithms as part of their technical interview. Below is a list of questions prepared from different Microsoft interview experiences. Most Asked QuestionsCheck if a Binary Tree is BST or not - Practice hereRemove duplicates
2 min read
Technical Interview Questions - A Complete 2024 List
Technical interviews are a crucial part of the hiring process for many tech companies like Amazon, Microsoft, Cisco, Google, Facebook, etc. as they test your technical skills, knowledge, and problem-solving abilities. The purpose of a technical interview is to test how you solve real-world problems,
5 min read
Most asked Computer Science Subjects Interview Questions in Amazon, Microsoft, Flipkart
When preparing for technical interviews at top product-based companies like Amazon, Microsoft, Flipkart, and Paytm, a strong understanding of key Computer Science subjects such as Operating Systems (OS), Database Management Systems (DBMS), and Computer Networks (CN) is essential. This article contai
4 min read
50+ OS, DBMS, CN Interview Questions [2025 Updated]
Preparing for technical interviews can be a daunting task, especially when it comes to core subjects like Operating Systems (OS), Database Management Systems (DBMS), and Computer Networks (CN). These topics are essential for any computer science or IT professional and often form the foundation of ma
15+ min read
Computer Networks - GATE CSE Previous Year Questions
The Computer Networks(CN) subject has high importance in GATE CSE exam because: large number of questions nearly 7-9% of the total papersignificant weightage (7-9 marks) across multiple years The table below shows marks distribution and number of questions of Computer Networks for the past four year
2 min read
Cisco Interview Questions and Answers for Technical Profiles
Cisco Systems is a worldwide leader in networking and telecommunications hardware, its products and services are used globally. Although Cisco interviews are fair and predictable, they can sometimes be difficult. You may get an important advantage and raise your chances of getting your ideal job at
14 min read
UBS Interview Question and Answers
To land your ideal job at UBS, the global financial powerhouse, you must first pass a tough interview process. Do not be worried aspiring analysts and coders! This in-depth article clears up the confusion by presenting the most frequently asked DSA, DBMS, OOP, OS, and CN questions in UBS interviews.
4 min read