Skip to Content
InterviewComputer Network

Computer Network Interview Questions

OSI and TCP/IP Model

  1. What is the OSI seven-layer model? What is the function of each layer?
  2. What is the TCP/IP four-layer model?
  3. What are the differences between the OSI seven-layer model and the TCP/IP four-layer model?
  4. How is data transmitted between layers?
  5. What are encapsulation and decapsulation?
  1. What is the physical layer? What is its function?
  2. What is the data link layer? What is its function?
  3. What is a MAC address? What are the differences between MAC address and IP address?
  4. What is the ARP protocol? How does ARP work?
  5. What is the RARP protocol?
  6. What is Ethernet?
  7. What is a switch? How does a switch work?
  8. What is VLAN? What is its purpose?

Network Layer

  1. What is the network layer? What is its function?
  2. What is the IP protocol? What are its characteristics?
  3. What are the differences between IPv4 and IPv6?
  4. What is an IP address? What are the classifications of IP addresses?
  5. What is a subnet mask? How to calculate subnets?
  6. What are public IP and private IP?
  7. What is NAT (Network Address Translation)?
  8. What is the ICMP protocol?
  9. How does the ping command work?
  10. How does the traceroute command work?
  11. What is routing? What is a routing table?
  12. What are static routing and dynamic routing?
  13. What are common routing protocols?

Transport Layer

  1. What is the transport layer? What is its function?
  2. What is a port? What is the range of port numbers?
  3. What are common port numbers?
  4. What are the differences between TCP and UDP?
  5. Why is TCP reliable transmission?
  6. How does TCP ensure reliable transmission?
  7. What is TCP three-way handshake? Why three times?
  8. What is TCP four-way handshake? Why four times?
  9. What is the TIME_WAIT state? Why is TIME_WAIT needed?
  10. What is TCP sliding window?
  11. What is TCP flow control?
  12. What is TCP congestion control?
  13. What are TCP congestion control algorithms?
  14. What are slow start, congestion avoidance, fast retransmit, and fast recovery?
  15. What are TCP sticky packet and packet splitting? How to solve them?
  16. What are TCP long connection and short connection?
  17. What is TCP Keep-Alive?
  18. What are the characteristics of UDP?
  19. What are the application scenarios of UDP?
  20. How to implement reliable UDP transmission?

Application Layer

  1. What is the application layer? What is its function?
  2. What are common application layer protocols?

HTTP/HTTPS

  1. What is the HTTP protocol? What are its characteristics?
  2. What are HTTP request methods? What are the differences between GET and POST?
  3. What are HTTP status codes? What do common status codes mean?
  4. What are HTTP request message and response message?
  5. What are HTTP request headers and response headers?
  6. What are Cookie and Session? What are their differences?
  7. What is Token? What are the differences between Token and Session?
  8. What are the differences between HTTP 1.0, 1.1, and 2.0?
  9. What is HTTP persistent connection? How to implement it?
  10. What is HTTP pipelining?
  11. What is HTTPS? How does HTTPS work?
  12. What are the differences between HTTP and HTTPS?
  13. What is the SSL/TLS protocol?
  14. What is the encryption process of HTTPS?
  15. What are symmetric encryption and asymmetric encryption?
  16. What is a digital certificate? What is its purpose?
  17. What is CA (Certificate Authority)?
  18. How does HTTPS prevent man-in-the-middle attacks?

DNS

  1. What is DNS? What is its purpose?
  2. What is the DNS query process?
  3. What are recursive query and iterative query?
  4. What is DNS cache?
  5. What is DNS hijacking? How to prevent it?
  6. What are common DNS record types?

Other Application Layer Protocols

  1. What is the FTP protocol? What are FTP working modes?
  2. What is the SMTP protocol?
  3. What are POP3 and IMAP protocols?
  4. What is WebSocket? What are the differences between WebSocket and HTTP?
  5. What is the MQTT protocol?

Network Security

  1. What is XSS attack? How to prevent it?
  2. What is CSRF attack? How to prevent it?
  3. What is SQL injection? How to prevent it?
  4. What is DDoS attack? How to prevent it?
  5. What is SYN Flood attack?
  6. What is man-in-the-middle attack?
  7. What is replay attack?
  8. What is a firewall?

Performance Optimization

  1. How to optimize network performance?
  2. What is CDN? How does CDN work?
  3. What is load balancing? What are common load balancing algorithms?
  4. What are reverse proxy and forward proxy?
  5. What is HTTP caching? What are caching strategies?
  6. What are strong cache and negotiation cache?
  7. What are the functions of Cache-Control, Expires, ETag, and Last-Modified?
  8. How to reduce HTTP requests?
  9. What is domain sharding?
  10. What are resource merging and compression?

Other Questions

  1. What happens after entering a URL in the browser?
  2. What is cross-origin? How to solve cross-origin problems?
  3. What is the principle of CORS?
  4. What is RESTful API? What are RESTful design principles?
  5. What is RPC? What are the differences between RPC and HTTP?
Last updated on