Computer Network Interview Questions
OSI and TCP/IP Model
- What is the OSI seven-layer model? What is the function of each layer?
- What is the TCP/IP four-layer model?
- What are the differences between the OSI seven-layer model and the TCP/IP four-layer model?
- How is data transmitted between layers?
- What are encapsulation and decapsulation?
Physical Layer and Data Link Layer
- What is the physical layer? What is its function?
- What is the data link layer? What is its function?
- What is a MAC address? What are the differences between MAC address and IP address?
- What is the ARP protocol? How does ARP work?
- What is the RARP protocol?
- What is Ethernet?
- What is a switch? How does a switch work?
- What is VLAN? What is its purpose?
Network Layer
- What is the network layer? What is its function?
- What is the IP protocol? What are its characteristics?
- What are the differences between IPv4 and IPv6?
- What is an IP address? What are the classifications of IP addresses?
- What is a subnet mask? How to calculate subnets?
- What are public IP and private IP?
- What is NAT (Network Address Translation)?
- What is the ICMP protocol?
- How does the ping command work?
- How does the traceroute command work?
- What is routing? What is a routing table?
- What are static routing and dynamic routing?
- What are common routing protocols?
Transport Layer
- What is the transport layer? What is its function?
- What is a port? What is the range of port numbers?
- What are common port numbers?
- What are the differences between TCP and UDP?
- Why is TCP reliable transmission?
- How does TCP ensure reliable transmission?
- What is TCP three-way handshake? Why three times?
- What is TCP four-way handshake? Why four times?
- What is the TIME_WAIT state? Why is TIME_WAIT needed?
- What is TCP sliding window?
- What is TCP flow control?
- What is TCP congestion control?
- What are TCP congestion control algorithms?
- What are slow start, congestion avoidance, fast retransmit, and fast recovery?
- What are TCP sticky packet and packet splitting? How to solve them?
- What are TCP long connection and short connection?
- What is TCP Keep-Alive?
- What are the characteristics of UDP?
- What are the application scenarios of UDP?
- How to implement reliable UDP transmission?
Application Layer
- What is the application layer? What is its function?
- What are common application layer protocols?
HTTP/HTTPS
- What is the HTTP protocol? What are its characteristics?
- What are HTTP request methods? What are the differences between GET and POST?
- What are HTTP status codes? What do common status codes mean?
- What are HTTP request message and response message?
- What are HTTP request headers and response headers?
- What are Cookie and Session? What are their differences?
- What is Token? What are the differences between Token and Session?
- What are the differences between HTTP 1.0, 1.1, and 2.0?
- What is HTTP persistent connection? How to implement it?
- What is HTTP pipelining?
- What is HTTPS? How does HTTPS work?
- What are the differences between HTTP and HTTPS?
- What is the SSL/TLS protocol?
- What is the encryption process of HTTPS?
- What are symmetric encryption and asymmetric encryption?
- What is a digital certificate? What is its purpose?
- What is CA (Certificate Authority)?
- How does HTTPS prevent man-in-the-middle attacks?
DNS
- What is DNS? What is its purpose?
- What is the DNS query process?
- What are recursive query and iterative query?
- What is DNS cache?
- What is DNS hijacking? How to prevent it?
- What are common DNS record types?
Other Application Layer Protocols
- What is the FTP protocol? What are FTP working modes?
- What is the SMTP protocol?
- What are POP3 and IMAP protocols?
- What is WebSocket? What are the differences between WebSocket and HTTP?
- What is the MQTT protocol?
Network Security
- What is XSS attack? How to prevent it?
- What is CSRF attack? How to prevent it?
- What is SQL injection? How to prevent it?
- What is DDoS attack? How to prevent it?
- What is SYN Flood attack?
- What is man-in-the-middle attack?
- What is replay attack?
- What is a firewall?
Performance Optimization
- How to optimize network performance?
- What is CDN? How does CDN work?
- What is load balancing? What are common load balancing algorithms?
- What are reverse proxy and forward proxy?
- What is HTTP caching? What are caching strategies?
- What are strong cache and negotiation cache?
- What are the functions of Cache-Control, Expires, ETag, and Last-Modified?
- How to reduce HTTP requests?
- What is domain sharding?
- What are resource merging and compression?
Other Questions
- What happens after entering a URL in the browser?
- What is cross-origin? How to solve cross-origin problems?
- What is the principle of CORS?
- What is RESTful API? What are RESTful design principles?
- What is RPC? What are the differences between RPC and HTTP?
Last updated on