-
Notifications
You must be signed in to change notification settings - Fork 770
Networking, Part 8: Protocols (TCP Handshaking, HTTP latency, Heart Bleed)
The first outgoing packet is sent by the client when the client calls connect
socket(...) <- A socket is created but no actual connection has been performed yet.
connect(fd,...) <- Initiate connection
Syn flood Distributed Denial of Service Internet of Things Denial of Service
Save the astronaut! The moon is 1.3 light seconds distant. The TCP client is on the Earth and a lunar console runs a TCP server. Assume a new TCP connection is required each time. How many seconds elapse between wanting to send a CLOSE-AIRLOCK message and the server receiving the data?
fd=socket(...)
connect(fd,...,...)
write(fd,"CLOSE-AIRLOCK!",14);
Answer: 3.9 seconds. TODO: Explain why. Create diagram
How many seconds elapse between requesting data from the server and receiving the result?
fd= socket(...)
connect(fd,...,...)
write(fd,"READ-TEMP!",10);
bytes= read(fd,buffer,256);
Answer: 5.2 seconds. Todo Explain why.
If the client-server round trip time is 10 milliseconds, what is the minimum time required to display a web page with an image? Assume HTTP/1.0 and the image requires a separate HTTP request.
Legal and Licensing information: Unless otherwise specified, submitted content to the wiki must be original work (including text, java code, and media) and you provide this material under a Creative Commons License. If you are not the copyright holder, please give proper attribution and credit to existing content and ensure that you have license to include the materials.