AITeky Learn

Computer networks

OSI and TCP/IP layers, TCP and UDP, IP addresses, DNS, HTTP and HTTPS. 19 questions with model answers.

1. Explain the OSI model. Basic

The OSI model splits network communication into seven layers, each using the one below. Physical: bits over wire or radio. Data link: frames between neighbouring devices, MAC addresses, error checks. Network: routing packets across networks with IP addresses. Transport: end-to-end delivery between programs, with ports, TCP or UDP. Session: managing connections. Presentation: data format, encryption, compression. Application: what the user's program uses, such as HTTP or DNS.

What the interviewer listens for

  • Seven layers in order
  • What each does
  • Examples such as IP, TCP, HTTP

Common mistake: Only reciting the names without saying what any layer does.

They may ask next: How does the TCP/IP model map to the OSI model?

2. What is the TCP/IP model? Basic

It is the four-layer model the internet actually uses. Link or network access: physical sending on the local network, such as Ethernet or Wi-Fi. Internet: IP addressing and routing. Transport: TCP or UDP between programs. Application: HTTP, DNS, SMTP and so on, which covers OSI's session, presentation and application layers.

What the interviewer listens for

  • Four layers
  • Mapping to the OSI layers
  • Protocol examples per layer

They may ask next: At which layer does a router work? A switch?

3. What is the difference between TCP and UDP? Basic

TCP is connection-oriented: it sets up a connection with a handshake, delivers data reliably and in order, resends lost packets and controls the sending speed. UDP is connectionless: it just sends packets, with no guarantee of delivery or order, so it is faster and lighter. TCP suits web pages, email and file transfer; UDP suits live video, voice calls, online games and DNS lookups, where speed matters more than a lost packet.

What the interviewer listens for

  • Connection-oriented versus connectionless
  • Reliable and ordered versus best effort
  • Overhead and speed
  • Use cases for each

They may ask next: Why does DNS mostly use UDP?

These are 3 of the 19 questions. The rest, and practice rounds with Ari, come with Campus Ready.

Sign up free to take the placement tests and see your readiness

It takes a minute with your email. AiTeky Pass (₹999/month or ₹9,999/year) is free for your first 30 days.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in