this desing, every connection is carried out
independently and concurrently, using a dedicated
thread in each case.
Both the Train and Application Connections
Handlers are also separate threads that are
responsible for receiving connections from external
agents. When a connection XML message is
received, a separate and dedicated thread is created
to handle all the messages interchanged between the
Broadband Communicaciones Manager and any
terrestrial application or train.
As it was explained above, all the
communications are done through a TCP sockets
architecture and XML messages exchange. A
message will be defined for each requests/responses
exchanged between the three elements that form the
architecture: terrestrial applications, trains and
Broadband Communications Manager.
The choice of the TCP Socket schema and XML
messages was taken due to the simplicity of the
solution, the flexibility, and the ease of
implementation.
To finish the description of the Connections
Handler, we would like to make a brief introduction
on the management of the applications installed on
the trains, which are the target of communication
from terrestrial applications. These on-board
applications are implemented on a system that will
have a private IP address (within the Ethernet
network loaded) and is not accessible from outside
the on-board local area network. Therefore, it has
been defined an addressing scheme to allow access
from a terrestrial application to the IP address of the
on-board applications. This is achieved through PAT
filtering. Thus, whenever a train acquires an IP
address from a WiFi network, a port number
becomes the way to access the private IP addresses
of the on-board applications.
There is a Communications Module on each train
which is the responsible for performing this filtering
of port numbers to IP addresses. This module is also
responsible for communicating directly with
Broadband Communications Manager, and manages
the opening and closing of the ports that are
associated with IP address of the boarded
applications.
3.2.2 Requests Manager
Ther other important aspects that the Broadband
Communications Manager should handle is to select
the time at which these applications must carry out
the communication with the trains.
For this purpose it has been developed an
independent module called Requests Manager that
in charge of managing communication requests
between terrestrial applications and trains, and
checking when and under what circumstances they
need to be attended. Thus, it has designed an
algorithm for discerning the next request to serve.
The Broadband Communications Manager splits
communication shifts to terrestrial applications
based on requests that they have performed. These
requests are grouped by train, so the manager
handles requests addressed to each train
independently. Furthermore, requests are sorted so
that stipulates the order in which applications
communicate with the trains. The management of
requests associated with each train is based on the
following criteria: (1) priority; (2) retries; and (3)
parallelism.
The priorities associated with the requests, are
managed centrally and Broadband Communications
Manager assigns these priorities to terrestrial
applications. In addition, the manager also controls
the train applications that can communicate with
each single terrestrial application, identifying the
train communication module ports that can be
accesses by each of those terrestrial application.
To complete the communication shifts service
and management algorithm, it has prepared a final
criteria, variable in this case (Noh-sam P., Gil-
Haeng, L., 2005). This approach takes into account
two factors related with the communications that
have been carried out previously. (1) the average
duration that takes the communications of a
particular application. (2) the average duration of
trains stopping in a particular station. Thus, the
manager calculates a numeric value that represents
the fitness of serving a request, knowing that the
lower average duration of both factors will be most
appropriate.
4 TESTING AND RESULTS
The Broadband Communications Manager is
currently being tested within the infrastructure of a
railway opeator in the north of Spain.
Broadband Communications Manager is located
in a local area network designed to communicate it
with four terrestrial applications (CCTV, a remote
monitoring and document updating tool and two
fictitious applications).
In the case of the train, it has been installed a
WiFi network in a garage station. Thus, it can be
tested one of the basic scenarios of the Broadband
MANAGING 'TRAIN-TO-EARTH' HEAVY COMMUNICATIONS - A Middleware Software to Manage Broadband
Wireless Communications in the Railway Scope
135