Homework5_1(due 8_15)

Homework5_1(due 8_15) - 1 The UDP server described in...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
1) The UDP server described in Section 2.8 only needed one socket, whereas the TCP server described in Section 2.7 needed two sockets. Why? If the TCP server were to support n simultaneous connections, each from a different client host, how many sockets would the TCP server need? Answer: With the UDP server, there is no welcoming socket, and all data from different clients enters the server through this one socket. With the TCP server, there is a welcoming socket, and each time a client initiates a connection to the server, a new socket is created. Thus, to support n simultaneous connections, the server would need n+1 sockets. 2) For the client-server application over TCP described in Section 2.7, why must the server program be executed before the client program? For the client-server application over UDP described in Section 2.8, why may the client program be executed before the server program? Answer:
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/19/2011 for the course CS CS470 taught by Professor Dr.gao during the Summer '10 term at Chatt Tech.

Ask a homework question - tutors are online