{'fraction_non_alphanumeric': 0.027657309060690263, 'fraction_numerical': 0.004830290596514919, 'mean_word_length': 5.205962933118453, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
An ICT Prototyping Framework for the “Port of the Future”

Seaports are genuine, intermodal hubs connecting seaways to inland transport links, such as roads and railways. Seaports are located at the focal point of institutional, industrial, and control activities in a jungle of interconnected information systems. System integration is setting considerable challenges when a group of independent providers are asked to implement complementary software functionalities. For this reason, seaports are the ideal playground where software is highly composite and tailored to a large variety of final users (from the so-called port communities). Although the target would be that of shaping the Port Authorities to be providers of (digital) innovation services, the state-of-the-art is still that of considering them as final users, or proxies of them. For this reason, we show how a canonical cloud, virtualizing a distributed architecture, can be structured to host different, possibly overlapped, tenants, slicing the information system at the infrastructure, platform, and software layers. Resources at the infrastructure and platform layers are shared so that a variety of independent applications can make use of the local calculus and access the data stored in a Data Lake. Such a cloud is adopted by the Port of Livorno as a rapid prototyping framework for the development and deployment of ICT innovation services. In order to demonstrate the versatility of this framework, three case studies relating to as many prototype ICT services (Navigation Safety, e-Freight, and Logistics) released within three industrial tenants are here presented and discussed.


Introduction
The vast majority of seaports are currently offering digital services to their user communities (the collective name for ocean carriers, hauliers, inter-modal carriers, shippers, freight forwarders, insurance companies, as well as institutional and control bodies). Each port is supposed to set up an information system, known as Port Community System (PCS [1]) connected to the National Single Window, established at the government level for customs and maritime business normative procedures [2]. PCSs are used by private and public institutions to enable intelligent and secure exchange of information, to improve the efficiency and competitive role of seaports, to automate and smooth out port logistics processes through a single submission of data, and by connecting transport and logistics chains. Therefore, PCSs are a commodity appliance whose scope and technical specifications depend on the port nature and is supposed to evolve hand in hand with new requirements coming from the physical and digital development of naval and terrestrial shipping. In the absence of a comprehensive standardization of seaport digital services [3], the best seaports have implemented fully customized solutions to provide their user communities with digital services, often delivered through a (private) cloud. Frontier technologies such as 5G, Distributed Ledger Technologies, IoT, and Artificial Intelligence permit to include these digital services into an extended scope of their PCSs, supporting long-term strategic planning as well as observation and real-time response to critical events, including disasters. The Port Authorities are therefore increasingly shaped as (digital) service providers. As providers, they are then requested to allocate resources (computing power, peripheral equipment such as networks and sensors), to authenticate users, and authorize access to specific data sets. In such a perspective, Port Authorities would benefit from fulfilling the role of cloud service providers, rather than the one of resource proxy. The goal is to rely on a digital framework capable of being scaled, replicated, and adapted to specific configurations. The target framework is therefore a private cloud, structured in tenants, accessible to the user communities; the tenants are standardized as much as possible in terms of the data model, interfaces, and communication protocols. Even more, if the tenant is configured to permit continuous development and agile prototyping, such architectural choice can be defended and encouraged as a future-proof investment. In this paper, we present the development of an ICT framework in Livorno targeting the aforementioned functionalities; the authors consider the actual setup as a promising example in the EU panorama and present the results contained in this paper as a convincing proof of concept. The remainder of this paper is organized as follows. In Section 2, we present the most relevant experiences in the port sector; we will in turn present in Section 3 the Port Monitoring System experimentally implemented in Livorno (embedding the local PCS). We will describe each layer of the Livorno cloud resources and the multi-tenant infrastructure that we have designed. Toward the end of the section, we will go through some applications prototyped to validate the tenant infrastructure. We will finally present some preliminary results in Section 4 and discuss them in Section 5 prior to our conclusions.

Related Work
In the last few years, integration between inland terminals and hinterland logistics services shifted from the classical regional port paradigm to a more global and interconnected one [4]. Wilmsmeier and Notteboom [5] identified four phases of ports' role evolution in the shipping service, ranging from predominantly regional and not interconnected, to an overseas shipping service. In this last stage, the larger ports represent a central hub and also considerable support for other nearby smaller ports [6,7]. In addition, the major seaports are improving their PCSs by taking advantage of innovative ICT services to face safety, security, operational, and energy efficiency challenges [8]. The presence of a solid ICT infrastructure at the base of a PCS is the first step in the transition from a classic pre-1990s port [9,10], where the absence of ICT services does not allow the automation of some of the most common port processes (e.g., security-related or logistic), to a new category of seaport, commonly referred as smart port. In this new type of seaports, several operations are automated and monitored according to the principles of self-configuration, protection, healing, and optimization, typical of any informative system that can be defined as "smart". The next phase envisages the adoption of a global standard approach for ICT stack structuring, which is the foundation for every PCS. Such architecture should be opened in order to facilitate microservices development through all the related layers: data, business, and application. This final step is fundamental to achieve a common ICT reference model for PCSs, and complete the transition from the smart port to the so-called "Port of the Future" [3]. The major worldwide and national organizations, such as the International Maritime Organization (IMO), the United Nations Conference on Trade and Development (UNCTAD), and the European Union (EU), have made great efforts to provide standards to assess port smartness [11]. On the other hand, current literature includes different examples of frameworks relating to the seaport area. Some of them are described below, highlighting pros and cons, and divided accordingly to some critical aspects of ports they deal with. Specifically, the framework categories taken into account, possibly combined, are investments, sustainability, and situational awareness. Each of these frameworks exploits different approaches in order to guide the port governance strategy, for instance, the work in [12] proposes a system to optimize port investments based on a three-stage process: evaluation of the ship's response to external impacts (e.g., weather conditions variation) in order to establish operational safety policies, model building and simulation to see the impact of different investments on port performance, and generation of the optimal investment planning. In [13], Ignaccolo et al. recommend a framework for actions and measures to foster sustainability in ports using three fundamental sustainability pillars and the Avoid-Shift-Improve (A-S-I) approach [14]. The sustainability paradigm is here based on the following strictly related aspects: environmental, economic, and social. These aspects must be taken into account altogether in order to select the best port strategies, together with improving the decision process. Moreover, Acciaro et al. [15] proposed a framework to efficiently select the initiatives capable to improve the environmental sustainability of the seaports, by prior defining a list of objectives to be validated. The results show an inevitable connection between successful initiatives and policy action taken by the proper authorities. In a later work [16], Stein and Acciaro analyzed a crucial aspect that should drive the port's strategic decisions, called Corporate Sustainability (CS). Specifically, their paper shows which factors can affect the CS, and how it can improve the port's competitiveness. Other works, such as those in [17,18], proposed a framework for noise monitoring in response to the rapid increase of operations within the port area. The results highlighted a deficiency of specific regional laws designed to mitigate complaints from people who live near ports. Finally, these works showed an actual difficulty in fulfilling their objectives due to a lack of data on noise impact from the ports and the absence of a shared approach to port noise monitoring. Several works apply the Internet of Things (IoT) paradigm, using connected sensors to monitor environmental parameters from apparently unrelated port processes, with the aim of connecting them to descry new cause-effect relationships. In this regard, the work in [19] suggests a method to obtain situational awareness information about critical port infrastructures. The proposed approach combines information from the cyber and physical domains (e.g., camera and sensors) to prevent cascading effects of incidents. The results proved the presence of a bottleneck in the system capacity to manage heterogeneous data sources from different port assets. In addition, Lacalle et al. [20] devise an IoT-based framework with a methodology for defining, calculating, and predicting composite environmental indicators (e.g., weather or traffic) that represent real-world phenomena in smart port cities. The tests based on real data coming from the port of Thessaloniki (Greece) showed a high level of management and usability of information arising from heterogeneous sources, paving the way for a standardized methodology for port-related data handling. Table 1 summarizes the evaluated frameworks and classifies them according to the seaport aspects addressed. Table 1. Classification of available framework based on addressed topic.

Framework Addressed Topic
Minh et al. [12] Investments & Situational Awareness Ignaccolo et al. [13] Sustainability Bongdart et al. [14] Sustainability Acciaro et al. [15] Sustainability Stein et al. [16] Sustainability Bolognese et al. [17] Sustainability & Situational Awareness D'Amico et al. [18] Sustainability & Situational Awareness Schauer et al. [19] Situational Awareness Lacalle et al. [20] Situational Awareness The above-cited approaches only address a limited set of port issues categories, often without describing the main features of the adopted ICT stack. The informative stack at the base of a PCS should be open, in order to support and facilitate services development. Furthermore, none of the discussed methodologies is standardized or shared at a regional or global level. In a previous work [3], we proposed an ICT service structure for the PCSs able to manage different categories of typical port services (e.g., Vessel and Marine Navigation, e-Freight and Intermodal Logistics, Passenger Transport, and Environmental sustainability) and ready to be used and standardized. In this paper, three examples of real port services are presented to demonstrate the capability of the proposed ICT architecture to be effectively implemented in any size-category port, becoming a best practice for the seaport's sector.

The Reference Architecture
In recent years, the Livorno Port Authority has invested in the standardization of an ICT reference stack, named MONICA Standard Platform. The MONICA architecture, represented in Figure 1, is structured as a private cloud with full decoupling of the three canonical layers [21], and it is appointed by the Authority in current and future tenders and procurements. All innovation processes in the work plan of the collaborative projects are integrated into the (experimental) offer of digital services targeted to citizens and industrial communities. The described infrastructure allows the development of PaaS and SaaS functions in the shape of microservices, developed following an agile methodology (see the end of the section), then exposed through software interfaces (APIs). Networks and computing resources in the cloud are organized in tenants serving (group of) users. The cloud has been replicated in a local laboratory to permit Test and Validation of the most recent functionalities, prior to the release time. The local cloud is configured as a staging environment for demo applications. According to the concept shown in Figure 2, the demo applications (Development Lane) are turned into funding opportunities for industries (Innovation Lane) allowing them to fill the gap from the prototype to the final product or service.

Cloud Resources
The three canonical layers have been incrementally deployed at the Port of Livorno, encompassing cutting-edge technologies and state-of-the-art commercial solutions.

Infrastructure as a Service Layer
The Port of Livorno is fully covered by a fiber optic backbone that capillary serves all terminals and gates in the port area. On one hand, the fiber optic star-shaped network allows connecting all digital resources (i.e., sensors and actuators, network adapters, and ordinary and industrial PCs) to a local LAN. On the other hand, the network mitigates the digital divide suffered by certain areas, permitting to provide Internet Access to government institutions (notably the Coast Guard and the State and Fiscal Police corps), through the ISP selected by the Authority. A complementary wireless backbone is covering the maritime station with 100 Mbps Wi-Fi technology. The network is composed of five nodes and is attached to the lab network through a gateway. The layout of both cabled and wireless networks is shown in Figure 3. In addition, the network serves the headquarters of the active pilot corporation located at the edge of the port sector dedicated to cruise and ferry naval traffic. In 2016, Livorno was the first port in Italy featuring NB-IoT commercial services. Later on, a prototype 5G network [22] covered part of the container terminal and is now accessible from the laboratory via a dedicated link in the fiber optic backbone. Part of the computer farm in the laboratory is also configured as the edge node running the 5G core network functionalities with the capability of serving prompt communication in real-time applications. This capillary network permits to connect a set of heterogeneous sensing resources to the upper layers of the MONICA information stack presented at the beginning of the section.
Without any sake of completeness, some resources integrated so far include the following: • a set of Road Side Units (RSUs) and On-Board Units (OBUs) following the EU directives about "Smart Roads" and complying with ETSI TC ITS standards [23]; • a set of smart IoT devices measuring sea current strength and wave height, weather conditions, noise level, presence of water standings on the landside (at the port and in highways/motorways), air contamination (pollutants and GHG, most notably methane and CO X levels), etc.; • a Real-Time Kinematics anchor permitting to correct the GNSS signal in a noisy environment (as when in the proximity of container stacks and docked vessels); • a bathymetric probe (multibeam sonar emitter) to measure the water depth around the vessel trajectories.

Platform as a Service Layer
This layer supervises the data storage, processing, aggregation, and sharing. The main research topic is that of establishing a set of components for Data Lake management capable of • providing a unique set of APIs for data access, regardless of the specific technology used (either relational, document-based/non-relational, geographical, IoT-oriented, object-oriented, time series, etc.), • providing mirror databases of external sources of information managed by independent organizations (e.g., road, city, and regional traffic and mobility centers), and • interoperating with a set of commercial and sector-specific Distributed Ledger Technologies (i.e., blockchains), securing trusted information in a privacy-aware manner.
In Figure 4, a graphical representation of the Platform-as-a-Service layer in the Port of Livorno is shown. In order to provide a proper set of technologies to be used for Data Lake management, we relied on the following solutions.
• JBOSS Teiid-Data Virtualization Layer [24]: a cloud-native and open-source data virtualization platform enabling distributed databases, as well as multiple heterogeneous data sources, to be accessed by means of a common and standard set of APIs (e.g., JDBC, ODBC, REST, OData, SOAP, etc.). On one side, it allows aggregating data coming from disparate data sources, and on the other side, it permits to define a proper set of roles (according to create-read-updated-delete operations) allowing data consumers to consume specific data sets. The current instance of the data virtualization layer is based on the WildFly application server [25], providing robust operations for transaction management, connection pooling, security configuration, resource management, and clustered deployment. The above-mentioned instance is deployed in the form of a docker container, running on a virtual machine using Ubuntu 20.04 Server as the main operating system (64-bit architecture). The following basic configuration of the considered virtual machine has been used: 8 GB of RAM, 100 GB of storage space, and 4 CPU cores (AMD EPYC 7281). In order to feed the developed service prototypes with real data, three different virtual databases and procedures have been implemented at this level. • Mobius OneM2M IoT Server Platform [26]: an open-source IoT platform based on the oneM2M standard [27]. The considered implementation of the standard supports a resource-oriented architecture with a common set of service functionalities such as registration, discovery, security, groups management, data management, subscription, notification, device management, network service exposure, location, etc. Moreover, the solution supports multiple protocols binding over standard interfaces (e.g., HTTP, CoAP, MQTT, or Web Sockets

Software as a Service Layer
The layer consists of two stacked blocks of services devoted to software orchestration and front-end applications. A microservice-based approach for software development has been adopted: it allows agile API development, life cycle management, and access according to the specific end user. A centralized and resilient software stack for data lake access has been implemented by the Livorno Port Authority, adapting it for the MONICA architecture. The framework is shown in Figure 5. This solution allows for seamless software composability, regulated access to orthogonal data sets, a clear distinction between technical background processes, and front-end interfaces intended for final users. In the figure, such microservices have been pictorially labeled as related to port assets, wares, digital resources, and business logic aimed at data aggregation and knowledge extraction. It is possible to aggregate any self-consistent logic into containers and virtual machines, as it will be presented later in the section.
The Software-as-a-Service layer implements typical Enterprise Service Bus (ESB) functionalities, and it consists of the following open-source software-based solutions that we relied on: • WSO2 API Gateway [29]: an open-source, standardized, and componentized middleware platform that implements typical enterprise service bus functionalities by supporting microservices' logic development (by means of SDK based on ASP.NET Core Framework) and APIs' life cycle management. It secures, protects, manages, and scales API calls by intercepting API requests and applying security policies. The WSO2 API Gateway instance is deployed in a docker container, running in a virtual machine and using Ubuntu 20.04 Server as the main operating system (64-bit architecture), 4 GB of RAM, 80 GB of storage space, and 2 CPU cores (AMD EPYC 7281). • RabbitMQ [30]: an open-source and multiprotocol message broker supporting the communication and interoperability among different microservices. Based on asynchronous communication, it allows microservices to perform distributed tasks by communicating with each other throughout high-performance queues. RabbitMQ instance has been deployed in a dedicated virtual machine with Ubuntu 20.04 Server as operating system, 4 GB of RAM, 40 GB of storage space, and 1 CPU core (AMD EPYC 7281).
• Authorization Server: authentication and authorization component of the ICT stack, based on industry-standard protocol OAuth2 [31]. According to this, we relied on OpenID Connect 1.0 Hybrid Flow [32] as the identity layer on top of the OAuth 2.0 protocol. This allows clients to verify the identity of the end users based on the authentication performed by the Authorization Server, as well as to obtain basic profile information about such end users in an interoperable and REST-like manner. The Authorization Server implements a single-sign-on (SSO) authentication scheme, and it is built upon the authorization token (JSON Web Token-JWT [33]) which is released to a specific user in order to invoke selected microservices. The JWT is emitted and validated by a token issuer authority, according to a given, as well as predefined, set of grants and access rules. In our configuration, the Authorization Server is deployed in a virtual machine whose specifications are based on Ubuntu 20.04 Server as an operating system, 4 GB of RAM, 80 GB of storage space, and 2 CPU cores (AMD EPYC 7281).
We provide a system architecture capable of offering heterogeneous services, usable by multiple tenants that access the system adopting different network technologies directly, or in a private way through a VPN. In order to deploy a tenant profiled to a set of independent users, we offer a Software-Defined Network and a centralized Authentication, Authorization, and Accounting (AAA) service to manage permissions to access or use a specific part of the software stack and data lake. Each tenant accesses services through different paradigms (possibly in combination): API endpoints to access services and data; machine virtualization, enabling tenants to deploy their servers on dedicated network segments; containers orchestration environments, to allow tenants to deploy containers. The multi-tenant infrastructure is shown in Figure 6. In order to allow agile management and orchestration of the hosting resources, we relied on the following tools:

Design and Development of Service Prototypes
In this subsection, we finally describe the design and development of three prototypes to prove the versatility of the stack widely described previously. The MONICA platform unlocks the ability to freely interact with the three layers that define a typical application: data, business, and application. The limits of classical port systems, where closed, proprietary solutions are omnipresent, are overcome with an accessible and standardized stack.
The prototypes have been selected based on the priority imposed by the Port Authority, and presented in the Port Master Plan in force [37]. This official document explicitly envisages developing new digital solution addressing (i) "Rail-road and rail-sea integration (inter-modality) for people and goods", (ii) "Navigation aid system for assistance to pilots and maritime authorities", as well as (iii) "Integrated environmental monitoring and control of the port-logistics processes". The proposed Service A is addressing topic (ii), while Service B and Service C are addressing topics (i) and (iii).

Service A: Enhanced Awareness for Vessel Manoeuvres
This prototype microservice has been built in the context of the European H2020 project PortForward [38]. The project aims to address important challenges that modern ports are facing, such as lack of efficiency in operations with heterogeneous freights, need for real-time monitoring of freight flows and remote management of important port operations, need for an interface with the surrounding urban environment, and environmental impact reduction through the use of green technologies and energy-saving solutions. PortForward addresses these problems through several tools, such as sensor deployment and interconnection into a versatile and secure IoT network, remote management and smart logistic platform with Decision Support System (DSS), Augmented Reality (AR), environmental and energy monitoring/optimization system using Green Scheduling (GS). More specifically, this prototype microservice allows retrieving heterogeneous information about a ship and the surrounding environment to assist pilots during the vessel manoeuvres in the port of Livorno. Pilots are mandatory in all seaports in Italy, and they are in charge of safe and secure maneuvering of all vessels within the harbor. Typically, they are part of on-board personnel assisting captains of the vessels and providing maneuvering instructions. They do not have access to real-time information beyond the visual horizon, but they have to rely on their expertise or get crucial information from port authorities by radio. This prototype provides in a single place all the required information. The microservice needs to collect data from a variety of heterogeneous sources, but this operation has been particularly easy thanks to the microservice oriented stack. The data virtualization layer allows easy and standard retrieval of the information adopting the OData protocol (through RESTful APIs implementation), while data are physically stored in databases implemented with different technologies and IoT-oriented platforms (e.g., Mobius OneM2M platform [27,39]). The user can retrieve real-time data including the position of the vessel, as well as its speed and direction, "static" information concerning the vessel (e.g., IMO, dimensions, type), information about the surrounding infrastructure (e.g., channel width and depth) and other nearby ships, bathymetries, and weather information. The Graphical User Interface (GUI) consists of a pair of Hololens smart glasses able to interact with the prototype microservice. The glasses react to vocal commands and show the information previously described. In this way, the pilot can combine the visual information with data from the stack and make better-informed decisions.

Service B: Ship Stay Time
The Ship Stay Time (SST) prototype provides end users with information regarding the mooring time of a ship, meaning the time spent inside the port. The port information system registers the events of the ship entering and leaving the Port of Livorno, and the current infrastructure allows to seamlessly obtain and integrate data in the end user application. With the available data, it is possible to group the events by ship and present to the end users such data in a way that they can easily exploit to examine the overall efficiency and possibly plan for further improvement of the process. Access to this kind of data allows to quickly identify inefficiencies in the current scenario and act accordingly. Being able to spot crucial points in time when something goes wrong is a precious resource for domain experts that can take control of the situation and possibly take actions to mitigate the problem. Reducing the SST can positively affect the environmental impact of the Port (a ship that docks for less time will likely pollute less) but also the costs (reducing the SST means being able to handle more ships). In practice, the user will use the IMO identification number to search for data relative to a specific ship. If the IMO number is valid (in the context of the application, the IMO number is valid if the information system contains data relative to the specified ship), the application will return information about both the latest available ship stay time and historical data visualized in a graph. The user also has the possibility to restrict the search to a specified period of time. Following the microservice architecture described at the beginning of the section, the application references the database through a dedicated DVL node. The virtualization of the underlying data allows independent access to storage, without any concern on the actual database type and the relative data format. The core part of the prototype is the microservice that provides a clean and welldefined interface to the end user web application (API), that accesses the Teiid virtual database using the OData protocol, serving data to the upper layers of the architecture. The microservice provides two main features: retrieval of the latest data available for a ship and retrieval of the historical data, respectively, the GetShipStayTimeLatest and GetShipStayTime endpoints. The Graphical User Interface has been designed to allow end-users to access the data, simply providing the IMO number of the ship they are interested in. The system will seamlessly access and collect the data, and show it to the user on the screen. The clean and well-documented design of the SST microservice allows access to the underlying data in a simple and straightforward way.

Service C: Truck Turnaround Time
The Truck Turnaround Time prototype provides end users with information regarding the time spent by a given truck within the seaport area. Typically, when a truck arrives at the port entrance, the plate and container number (if present) is read and if the vehicle is authorized to enter the port facilities, the date and time of access are registered (gate-in event), and the barrier is lifted. After the loading/unloading operation, trucks leave the terminal and the port facilities: again, the plate and container number (if present) is read and if the vehicle is authorized to leave the port facilities, the date and time of exit are registered (gate-out event), and the barrier is lifted. The difference between the moment the truck enters the port facilities and the moment it exits the port facilities is called Truck Turnaround Time (TTT). The knowledge of TTT can pave the way to different methods oriented to optimize the access to the port facilities and/or reduce the waiting time for vehicles at the port gate, leading to corresponding savings on direct costs for carriers. For example, specific applications can make use of TTT to develop a vehicular booking system to minimize waiting times, ensure more efficient operations, and reduce emissions caused by truck congestion. Even more, a web application can help to deliver visual information using machine/deep learning algorithms for future TTT predictions and analysis (e.g., predictive models for the identification of factors that may affect the TTT). To handle all of this information, we adopted the microservice oriented architecture described at the beginning of the section. The microservice retrieves the data from the DVL adopting the OData protocol [40] and elaborates the information, making it available for the application layer. A user previously authorized by the stack authentication system can have access to the turnaround time of a specific truck. The truck is identified by its anterior plate, that is, the plate of its tractor. The Graphical User Interface is populated through the invocation of the methods exposed by the APIs of the aforementioned microservice. In particular, the user can read the most recent TTT related to the truck (obtained by the GetLatestTTT endpoint of the microservice). They can also obtain historical TTT data in a graphical form (obtained from the GetTTTHistory endpoint of the microservice). Future developments of the GUI can include the possibility to limit the TTT "history" to a specified time interval, exploiting the GetTTTHistoryInInterval endpoint of the microservice.

Results
One of the primary goals in the transition from the traditional port to the so-called Port of the Future is to provide easy access to the information submerged in a myriad of data already available to the Port Community System. This access can only be possible using a well-defined and standardized architecture. In Section 3, we thoroughly explored the proposed architecture, thus demonstrating its ability to be immediately adopted by any seaport, taking advantage of the prototype services described at the end of the section. The MONICA stack gives a jump start to the development, thanks to the following components: a DVL that unifies the way to access heterogeneous data coming from different sources; a standardized and common microservice development environment for repeatable, rapid prototyping; the authentication server which allows a centralized Single Sign-On (SSO) authentication schema. All these features allow the suggested architecture to be adopted as a reference architecture that can be integrated into any other port system, in order to obtain the same benefits described in the previous sections. Figures 7 and 8 show the interface of the Service A: Enhanced awareness for vessel manoeuvres. Both real-time and static data are visible on the smart glasses. Figures 9 and 10 show the results of Services B and C: the Ship Turnaround Time and Truck Turnaround Time. The interfaces allow users to visualize historical data in a bar chart. The stages of development to obtain the three prototypes are extremely similar, due to the adoption of the MONICA framework. As a result, little or no effort is spent making design choices, as the framework already does that for the developer. Furthermore, no matter how many developers work on creating applications on the stack, they will all be guided by the reference architecture, to achieve rapid prototyping and high maintainability of the developed artifacts.

Discussion
Currently, the port communities lack a common shared framework and architecture, designed with the inherent concept of multi-tenant infrastructure, enabling the development of innovative applications. Multiple service providers need to develop on the same stack, and often on the same cloud infrastructure. The test results of the performed experiments show that the architecture and framework presented totally cover the current needs of the port communities. These needs emerge when asking a group of independent providers to implement new functionalities. The solution that we propose, becomes the reference for anyone approaching, or that is already involved in, the Port of the Future: a unique, easy to adopt, scalable, and repeatable way of working that is fit for purpose. It is unique because the proposed solution encompasses the several scenarios present in every Port Community environment, from the physical IoT infrastructure to the end-user application layer. As the proposed MONICA architecture is well-tested, well-documented, and widely adopted in the Port of Livorno, it is guaranteed to be easily adopted by others. The core layers are intrinsically virtualized to be able to scale horizontally with ease. Finally, the three prototypes developed that we showed in Section 3 are the very example of the repeatability typical of such a kind of framework.
The ICT reference model adopted by the Port of Livorno fills most of the gaps presented in Section 1. Reorganizing to adopt a framework for the development and innovation of tools and applications fundamental for the Port of the Future, is the missing piece in a complex network of users interacting with the port ecosystem. Useless and harmful repetition and re-engineering go against many principles and practices of modern software development, hence, port communities should avoid the same antipatterns of the software industry. The benefits deriving from the adoption of the devised framework, are related to the port infrastructure as well as a heterogeneous group of roaming users (i.e., Vessels, Trucks, Trains, and their personnel) that daily interacts with it.
As a further step to expand the research, we aim at finding a different Port Community to test the framework on. The collected data and experience could significantly improve and stabilize the proposed work by enlarging the test set. In the scenario of a port adopting our framework, both parties could profit: on the one hand, the adopting parties can experience the same benefits that the Livorno port gained from using the MONICA stack. On the other hand, their feedback on the experience could help us improve and refine our research, so that many more institutions will be interested in adopting this innovative solution.

Conclusions
Port Community Systems are a fundamental means to connect private and public institutions to the port ecosystem. The potential offered by this platform is often limited by the lack of a standardized way to build on it. The proposed reference architecture, aims at providing a straightforward, easy-to-adopt solution to all the actors interested in the rapid development of service prototypes. In order to validate the proposed framework, we described three example services that have been implemented to demonstrate how the considered approach can support an agile development as well as integration of new and already existing services at the Port of Livorno. Rather than to forcibly adapt different scenarios, now the roaming users can use a unique reference to develop ICT services. As more and more port communities choose to adopt a standardized architecture, less time will be spent in the analysis and adaptation to several, port-specific technological stacks, and more will be dedicated to true innovation.