Lecture 13B
Networking
Internet Basics
IP - Datagrams
TCP - UDP
Application Layer
Ports
Java Networking
URL
InetAddress
Sockets
Client-Server

RMI
Exercises

Lectures

1A: Introduction
1B: Java Intro
2A: BuildingBlocks
2B: Objects
3A: More Objects
3B: Exceptions
       & Threads
4A: Waves
4B: Nuclear &
       Particle
5A: AWT
5B: More AWT
      & Graphics
6A:Detectors &
      Simulation
6B: LHC/Atlas &
     RandomSims    
7A: Swing
7B: Java2D
8A: Java Apps
8B: Dialogs &
    MoreClasses
9A: Java I/O
9B: Utilities,
        Unicode
10A: More
    Threading
10B: File
    Handling
11A: Array,Print,
    Images
11B: SimplePhysics
    Simulation
12A: Tips &
    Techniques
12B: More Tips &
    Techniques
13A: Satellite
    
Simulations
13B: Intro to Java
    Networking
14A: Java Servers
14B: HTTP Server
15A: ServerClient
15B: ServerClient
   Expt.Simulation
16A: Course
          Review
16B: ExerciseTest
        Discussion

    Contacts
    Description
    Exercises
    Index
    Outline
    Q&A
    Resources
    StudentInfoForm
    Student Pages
    What's New

 

Ports

While the IP address will get the packet to the right computer, how does the packet get to the right program?

A computer may have:

   Several programs running at the same time
   All trying to communicate via Internet
   All going out the same physical ethernet cable


The packets are guided to the correct program according to its port number.

The port is a 16 bit number.

It is occasionally seen on URLs

    http://www.someplace.com:80/

80 is the default so is usually left off.

The various applications for particular protocols use standard port values:

Unix machines reserve ports 1-1023 for standard services.

Windows machines do not restrict their use but to make your Java programs portable, it is wise to use port values above 1023.

 

 

Home Lectures Resources Index Contacts Students


Physics Simulations with JavaTM
KTH, Kurskod: 5A1418
Curator: Clark S. Lindsey