What is the purpose of the Java Networking Framework?
To enable java programs on different systems to interact with each other, and even call each others methods
through RMI.
Which internet layer are Java Programs on? Which layer are the transport protocols on?
Application Layer. Transport Layer.
Explain how TCP transmits data to another machine…
Explain how UDP transmits datagrams to another machine…
What is the purpose of ports? How do they work?
Ports on a machine are assinged to applications. This means incoming data will has an IP and port number in order
to reach the relevant application on the destination machine.
Explain how servers use sockets for TCP communication?
The server sets up a socket on a port. This socket listens for incomming connection requests. When a connection
request is recieved, the machine accepts, and redirects the connection to the appropriate port. A new socket is
then place on the original port for listening, and the server continues listening for new requests.