“zero copy networking” vs “kernel bypass”?

What is the difference between “zero-copy networking” and “kernel bypass”? Are they two phrases meaning the same thing, or different? Is kernel bypass a technique used within “zero copy networking” and this is the relationship? TL;DR – They are different concepts, but it is quite likely that zero copy is supported within kernel bypass API/framework. … Read more

What would cause UDP packets to be dropped when being sent to localhost?

Overview What is causing the inability to send/receive data locally? Mostly buffer space. Imagine sending a constant 10MB/second while only able to consume 5MB/second. The operating system and network stack can’t keep up, so packets are dropped. (This differs from TCP, which provides flow control and re-transmission to handle such a situation.) Even when data … Read more

Does the port change when a server accepts a TCP connection?

The new socket is an application-level concept introduced because each established connection needs a unique file descriptor (also distinct from the listening file descriptor), which maps to, but isn’t the same as, a TCP session. The session itself is identified by the combination of source and destination address and port. The source (client) port is … Read more