CSCD 330
Self-Lecture on Java Network Programming

Due: Friday April 28th, 2017

This purpose of this self-lecture is for you to acquaint yourself with Java Network programming. There will be no class on Wednesday, April 26th. This self-lecture is in place of in-class lecture.

Follow the instructions and answer the questions. Add your answers to Assignment 3 due on Friday, April 28th.
Turn in these questions as Part2 of Assignment 3.

1. Read the part of Chapter 2 that covers network programming, client-server.
2. Look on the class web page under Relevant Links and read one or more of the tutorials on Java programming.
3. Answer the questions below and add them to Assignment 3 which you are already turning in via email.

  1. What is a port?
  2. What is the difference between the ports in the range 1 - 1023 and the higher level ports?
  3. What is an ephemeral port? Give an example of one.
  4. Is there a difference between Java's implementation of UDP and TCP protocols. Explain the differences.
  5. Why does http rely on TCP and not UDP?
  6. Investigate an application program. A game, P2P program such at Bit Torrent or other Internet non-web based program and state which transport protocol it uses and which registered port it uses.