Gate Information Lab

ORF 401 · Lab 5 · Beyond HTTP

This tab is … Network: starting
What is this?

This is the Java Lab 5 rebuilt to run entirely in your browser. Two ride-sharing companies, CarmonCar and VandeRides, run shared rides from numbered pickup gates to towns across New Jersey. Each company's server keeps a table of listeners. A rider's GateKeeper client joins over TCP port 8189 by sending ADD <ip> <port>; the server answers HELLO. Every few seconds the server sends each listener a UDP datagram such as CarmonCar,Newark,SEAT,3,GATE,17: the ride to Newark has 3 seats available and leaves from gate 17.

Browsers cannot open real sockets, so the network is simulated. The rules are the same: TCP retransmits lost segments and either succeeds or times out; UDP datagrams are sent once and simply vanish when lost. Open this page in a second tab to add a second machine to the network.

Live network diagram

Every packet in the log, animated from sender to receiver. Squares are TCP, circles are UDP. Solid lines join a server to the clients it has registered. Red packets were lost on the wire and never arrive; amber ones are TCP retransmissions. Animation timing is slowed down for visibility.

Client: GateKeeper

Ride-sharing company servers: registered listeners

Network conditions (shared by every tab on this network)

TCP console

Send one raw control line, as GateInformationBoard.Register() does. Try a bad port or an unknown command.


      

Packet log

Time Proto From → To Payload Result