Connecting to the Active Client Monitor Protocol for Real-Time Data Management
This document outlines the process for establishing a connection to Monitor (8180) using the Active Client protocol. It details login procedures, including sending IDENT and PASSWORD commands, and retrieving host port for communication. Steps for maintaining the connection, including "Are You Alive" transactions, are specified to ensure the server remains responsive to client commands. The protocol is critical for real-time data management and monitoring, designed for efficient client-server interactions and maintaining connection integrity.
Connecting to the Active Client Monitor Protocol for Real-Time Data Management
E N D
Presentation Transcript
Monitor (8180)
Start the Active Client Monitor (8180) Active Client (20287)
Make 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.getInputStream()); is = new BufferedReader(isr); is.readLine();
Receive IDENT message group from Monitor Monitor (8180) (8180) Active Client (20287) (20287) Login Protocol: COMMENT: Monitor Version 2.2 REQUIRE: IDENT WAITING:
Send IDENT command to Monitor Monitor (8180) (8180) Active Client (20287) (8180) Login Protocol: IDENT FRANCO
Get PASSWORD directive from Monitor Monitor (8180) (8180) Active Client (20287) (20287) Login Protocol: RESULT: IDENT REQUIRE: PASSWORD WAITING:
Send Password to Monitor Monitor (8180) (8180) Active Client (20287) (8180) Login Protocol: PASSWORD EYES_ARE_BLUE
Get HOST_PORT directive & cookie from Monitor Monitor (8180) (8180) Active Client (20287) (20287) Login Protocol: RESULT: PASSWORD UYERWEEIOUYTUIU REQUIRE: HOST_PORT WAITING:
Start Server Server Monitor (21567) (8180) (8180) Active Client (20287) Login Protocol:
Send Server port (host port) to Monitor Server Monitor (21567) (8180) (8180) Active Client (20287) (8180) Login Protocol: HOST_PORT gauss.ececs.uc.edu 21567
Get 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:
Send IDENT command to Monitor Server Monitor (21567) (8180) (8180) (8180) Active Client (20287) Are You Alive Transaction: IDENT FRANCO
Get checksum from Monitor Server Monitor (21567) (21567) (8180) (8180) Active Client (20287) Are You Alive Transaction: REQUIRE: ALIVE WAITING:
Send ALIVE command to Monitor Server Monitor (21567) (8180) (8180) (8180) Active Client (20287) Are You Alive Transaction: ALIVE UYERWEEIOUYTUIU
Complete ALIVE transaction Server Monitor (21567) (21567) (8180) (8180) Active Client (20287) Are You Alive Transaction: RESULT: ALIVE Identity has been verified REQUIRE: QUIT WAITING:
Complete ALIVE transaction Server Monitor (21567) (8180) (8180) (8180) Active Client (20287) Are You Alive Transaction: QUIT
Complete ALIVE transaction Server Monitor (21567) (21567) (8180) (8180) Active Client (20287) Are You Alive Transaction: RESULT: QUIT
Complete Login transaction Server Monitor (21567) (8180) (8180) Active Client (20287) (20287) Login Protocol: RESULT: HOST_PORT GAUSS.ECECS.UC.EDU 21567
Server Monitor (21567) (8180) (8180) Active Client (20287) Active Client may issue commands for 3 minutes Server waits for ALIVE requests from Monitor