08.06.2013 Views

Bernese GPS Software Version 5.0 - Bernese GNSS Software

Bernese GPS Software Version 5.0 - Bernese GNSS Software

Bernese GPS Software Version 5.0 - Bernese GNSS Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

19. <strong>Bernese</strong> Processing Engine (BPE)<br />

After the BPE server has been started, it performs the following tasks (see Figure 19.1):<br />

(1) The BPE server reads its input options. The input options contain the name of the<br />

Process Control File (PCF) and the CPU Control File. The first file defines the sequence<br />

of tasks that will be executed and the second defines which hosts can be used.<br />

These files are described in detail in Sections 19.4 and 19.5, respectively.<br />

(2) According to the PCF and CPU file, the server starts the first client (it may happen<br />

that several clients are started simultaneously). The CPU file defines how a client is<br />

started. If the client is processed on a remote machine, the remote shell rsh or the<br />

secure shell ssh command may be used.<br />

(3) The first task of the newly started client is to open the TCP/IP connection to the<br />

server. From the moment when the connection is accepted by the server, the client<br />

is permanently connected until it terminates. Figure 19.2 displays the sequence of<br />

communications between server and client.<br />

(4) After successfully establishing the connection between server and client, the server<br />

starts to send commands to the client and the client sends back its responses. The<br />

first message from the server usually commands the client to run a specific user script<br />

(see Section 19.6). The last response from the client informs the server about finishing<br />

the user script. The last command from the server tells the client to disconnect and<br />

terminate.<br />

(5) In the way described above the BPE server keeps the information about all running<br />

clients. After finishing one client the BPE server decides (according to the PCF)<br />

whether new client(s) may be started. This means that steps (2) – (5) are repeated<br />

until the entire BPE job finishes.<br />

(6) Server and clients report the information about their execution into several output<br />

files. See Section 19.10 for details.<br />

19.3.2 BPE Client<br />

The client of the BPE process is the single Perl module ${BPE}/RUNBPE.pm written in Perl<br />

object-oriented style. As stated above the client is started by the BPE server. Figure 19.2<br />

displays the sequence of communications between BPE server and BPE client. After being<br />

started the client performs the following tasks:<br />

(1) The client establishes the TCP/IP connection to the server. The needed information<br />

(address and port number of the server) is received by the client as command<br />

arguments when it is started.<br />

(2) On server command the client prepares the environment and starts the user script<br />

that resides in the directory ${U}/SCRIPT. The environment prepared by the client is<br />

described in detail in Section 19.3.3.<br />

(3) After the user script is finished (either successfully or with an error message), the<br />

client reports back to the server.<br />

(4) On server command the client closes the connection and exits.<br />

Page 384 AIUB

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!