Title: Monitor
1Monitor
(8180)
2Start the Active Client
Monitor
(8180)
Active Client
(20287)
3Make a connection to the Monitor
Monitor
(8180)
(8180)
Active Client
(20287)
(8180)
Active Client Code
Socket skt new Socket("helios.ececs.uc.edu",
8180) out new PrintWriter(skt.getOutputStream(
), true) isr new InputStreamReader(skt.getInput
Stream()) is new BufferedReader(isr) is.readLi
ne()
4Receive IDENT message group from Monitor
Monitor
(8180)
(8180)
Active Client
(20287)
(20287)
Login Protocol
COMMENT Monitor Version 2.2 REQUIRE
IDENT WAITING
5Send IDENT command to Monitor
Monitor
(8180)
(8180)
Active Client
(20287)
(8180)
Login Protocol
IDENT FRANCO
6Get PASSWORD directive from Monitor
Monitor
(8180)
(8180)
Active Client
(20287)
(20287)
Login Protocol
RESULT IDENT REQUIRE PASSWORD WAITING
7Send Password to Monitor
Monitor
(8180)
(8180)
Active Client
(20287)
(8180)
Login Protocol
PASSWORD EYES_ARE_BLUE
8Get HOST_PORT directive cookie from Monitor
Monitor
(8180)
(8180)
Active Client
(20287)
(20287)
Login Protocol
RESULT PASSWORD UYERWEEIOUYTUIU REQUIRE
HOST_PORT WAITING
9Start Server
Server
Monitor
(21567)
(8180)
(8180)
Active Client
(20287)
Login Protocol
10Send Server port (host port) to Monitor
Server
Monitor
(21567)
(8180)
(8180)
Active Client
(20287)
(8180)
Login Protocol
HOST_PORT gauss.ececs.uc.edu 21567
11Get checksum from Monitor
Server
Monitor
(21567)
(21567)
(8180)
(8180)
Active Client
(20287)
Are You Alive Transaction
COMMENT Monitor Version 2.2 PARTICIPANT_PASSWORD_
CHECKSUM 78a74b94cd3778ef36635 REQUIRE
IDENT WAITING
12Send IDENT command to Monitor
Server
Monitor
(21567)
(8180)
(8180)
(8180)
Active Client
(20287)
Are You Alive Transaction
IDENT FRANCO
13Get checksum from Monitor
Server
Monitor
(21567)
(21567)
(8180)
(8180)
Active Client
(20287)
Are You Alive Transaction
REQUIRE ALIVE WAITING
14Send ALIVE command to Monitor
Server
Monitor
(21567)
(8180)
(8180)
(8180)
Active Client
(20287)
Are You Alive Transaction
ALIVE UYERWEEIOUYTUIU
15Complete ALIVE transaction
Server
Monitor
(21567)
(21567)
(8180)
(8180)
Active Client
(20287)
Are You Alive Transaction
RESULT ALIVE Identity has been verified REQUIRE
QUIT WAITING
16Complete ALIVE transaction
Server
Monitor
(21567)
(8180)
(8180)
(8180)
Active Client
(20287)
Are You Alive Transaction
QUIT
17Complete ALIVE transaction
Server
Monitor
(21567)
(21567)
(8180)
(8180)
Active Client
(20287)
Are You Alive Transaction
RESULT QUIT
18Complete Login transaction
Server
Monitor
(21567)
(8180)
(8180)
Active Client
(20287)
(20287)
Login Protocol
RESULT HOST_PORT GAUSS.ECECS.UC.EDU 21567
19Server
Monitor
(21567)
(8180)
(8180)
Active Client
(20287)
Active Client may issue commands for 3 minutes
Server waits for ALIVE requests from Monitor