Networking interview questions
Practice 6 questions on networking. Each runs in a real in-browser editor with Jest tests and a worked, diagram-backed solution.
6 questions
- MEDIUM
IPv4 / IPv6 Validate
Validate IPv4 dotted-quad and IPv6 addresses, handling octet ranges, leading zeros, and :: zero-group compression.
25 minJavaScript - MEDIUM
Long-Polling Client
Build a long-polling loop that re-issues a held request as each returns, advances a cursor, backs off on error, and stops cleanly.
35 minJavaScript - MEDIUM
Online/Offline Flush Manager
Queue writes while offline and flush them in FIFO order when the network returns, retrying failures without dropping or reordering.
35 minJavaScript - MEDIUM
Reconnecting WebSocket
PREMIUMWrap a WebSocket so it auto-reconnects with exponential backoff, queues sends while down, and re-emits its events.
35 minJavaScript - MEDIUM
Socket Channel Multiplexing
Run many logical channels over one WebSocket — route each incoming frame to the right channel and clean up on leave.
35 minJavaScript - MEDIUM
WebSocket Session Resume
PREMIUMResume a dropped connection without gaps — track sequence numbers, request a replay from the last seen, and de-duplicate redelivered messages.
40 minJavaScript