scieee AI-readable full text Open interactive document viewer

Towards scalable Community Networks topologies

Maccari, Leonardo,Gemmi, Gabriele,Lo Cigno, Renato,Karaliopoulos, Merkourios,Navarro Moldes, Leandro

Abstract

Community Networks (CNs) are grassroots bottom-up initiatives that build local infrastructures, normally using Wi-Fi technology, to bring broadband networking in areas with inadequate offer of traditional infrastructures such as ADSL, FTTx or wide-band cellular (LTE, 5G). Albeit they normally operate as access networks to the Internet, CNs are ad-hoc networks that evolve based on local requirements and constraints, often including additional local services on top of Internet access. These networks grow in highly decentralized manner that radically deviates from the top-down network planning practiced in commercial mobile networks, depending, on the one hand, on the willingness of people to participate, and, on the other hand, on the feasibility of wireless links connecting the houses of potential participants with each other. In this paper, we present a novel methodology and its implementation into an automated tool, which enables the exercise of (light) centralized control to the dynamic and otherwise spontaneous CN growth process. The goal of the methodology is influencing the choices to connect a new node to the CN so that it can grow with more balance and to a larger size. Input to our methodology are open source resources about the physical terrain of the CN deployment area, such as Open Street Map and very detailed (less than 1 m resolution) LIDAR-based data about buildings layout and height, as well as technical descriptions and pricing data about off-the-shelf networking devices that are made available by manufacturers. Data related to demographics can be easily added to refine the environment description. With these data at hand, the tool can estimate the technical and economic feasibility of adding new nodes to the CN and actively assist new CN users in selecting proper equipment and CN node(s) to connect with to improve the CN scalability. We test our methodology in four different areas representing standard territorial characterization categories: urban, suburban, intermediate, and rural. In all four cases our tool shows that CNs scale to much larger size using the assisted, network-aware methodology when compared with de facto practices. Results also show that the CNs deployed with the assisted methodology are more balanced and have a lower per-node cost for the same per-node guaranteed bandwidth. Moreover, this is achieved with fewer devices per node, which means that the network is cheaper to build and easier to maintain.

Full text

Towards Scalable Community Networks TopologiesI Leonardo Maccaria, Gabriele Gemmia, Renato Lo Cignoa, Merkourios Karaliopoulosb, Leandro Navarroc aDepartment of Information Engineering and Computer Science, University of Trento, Italy bAthens University of Economics and Business, Athens, Greece cDepartment of Computer Architecture, Universitat Polit´ ecnica de Catalunya, Barcelona, Spain Abstract Community Networks (CNs) are grassroots bottom-up initiatives that build local infrastructures, normally using Wi-Fi technology, to bring broadband networking in areas with inadequate offer of traditional infrastructures such as ADSL, FTTx or wide-band cellular (LTE, 5G). Albeit they normally operate as access networks to the Internet, CNs are ad-hoc networks that evolve based on local requirements and constraints, often including additional local services on top of Internet access. These networks grow in highly decentralized manner that radically deviates from the top-down network planning practiced in commercial mobile networks, depending, on the one hand, on the willingness of people to participate, and, on the other hand, on the feasibility of wireless links connecting the houses of potential participants with each other. In this paper, we present a novel methodology and its implementation into an automated tool, which enables the exercise of (light) centralized control to the dynamic and otherwise spontaneous CN growth process. The goal of the methodology is influencing the choices to connect a new node to the CN so that it can grow with more balance and to a larger size. Input to our methodology are open source resources about the physical terrain of the CN deployment area, such as Open Street Map and very detailed (less than 1m resolution) LIDAR-based data about buildings layout and height, as well as technical descriptions and pricing data about off-the-shelf networking devices that are made available by manufacturers. Data related to demographics can be easily added to refine the environment description. With these data at hand, the tool can estimate the technical and economic feasibility of adding new nodes to the CN and actively assist new CN users in selecting proper equipment and CN node(s) to connect with to improve the CN scalability. We test our methodology in four different areas representing standard territorial characterization categories: urban, suburban, intermediate, and rural. In all four cases our tool shows that CNs scale to much larger size using the assisted, network-aware methodology when compared with de facto practices. Results also show that the CNs deployed with the assisted methodology are more balanced and have a lower per-node cost for the same per-node guaranteed bandwidth. Moreover, this is achieved with fewer devices per node, which means that the network is cheaper to build and easier to maintain. Keywords: Community Networks, Stochastic Network Evolution, Economic Incentives, Bottom-Up Broadband, Alternative Architectures 1. Introduction Community Networks (CNs) are grassroots bottom up networks often built as 802.11-based Wireless Mesh Networks (WMNs). CNs are flourishing in Europe and grow in many different environments worldwide, their “preferred” ecosystem being areas where, whatever the reason, standard telecommunication infrastructures do not work properly. Often, these are areas of “market failure,” i.e., areas where commercial operators deem it non-profitable to invest 1 . CNs also flourish in places with fervent cultural life, where people share strong community links and/or social/political ideals, and invest into a local infrastructure that can bestow on the community much more than the standard Internet in terms of digital divide reduction, I This work was financed partially by the European Commission, H2020-ICT- 2015 Programme, Grant Number 688768 “netCommons” (Network Infrastructure as Commons). Email addresses: [email protected] (Leonardo Maccari), [email protected] (Gabriele Gemmi), [email protected] (Renato Lo Cigno), [email protected] (Merkourios Karaliopoulos), [email protected] (Leandro Navarro) 1 A condition that, according to ITU [ 1 ], applies to roughly 50% of the world population, and there is not indication that this figure is actually decreasing. rich and non-commercial services, and local economy support. It is now acknowledged that CNs, even if they sometimes fail, form an integral part of the global Internet. As such, they should be nurtured by the regulatory system and policy makers, because when they have success, they serve as a catalyst for the socio-economic development and well being of their region2. A CN is typically launched thanks to the initiative of a small group of people, whose motives may range all the way from enthusiasm about technology and do-it-yourself practices to social activism and political causes [ 2 ]. The group members invest personal resources (effort, time, money) to set up a first small set of network nodes that ensure connectivity to the rest of the Internet or can support the provision of local services. This initial burst of activity normally gives rise to a network of a few nodes and a topology that is mainly determined by the location of the group members’ homes. Over a second longer phase, the network grows thanks to the addition of nodes by people who join the network 2 For additional information on CNs, their diffusion in the world, their size and characteristics see the web page of the netCommons project; in particular, refer to Deliverable 1.2 “Report on the Existing CNs and their Organization,” and Deliverable 1.4 “Report on the Governance Instruments and their Application to CNs.” Preprint submitted to Ad Hoc Networks August 1, 2019 © 2019 Elsevier. This manuscript version is made available under the CC-BY-NC-ND 4.0 license http://creativecommons.org/licenses/by-nc-nd/4.0/ and become members of the community. The network growth during this second phase is a distributed process with a strong crowdsourcing flavor that clearly distinguishes it from the top-down planning practised in conventional communication networks. The existing network nodes that become points of network attachment for new nodes that join the CN are typically determined locally and heuristically, depending on the node geo-location, the CN coverage in the area, as well as the availability and cost of proper hardware devices. Since the cost of the added node is normally sustained by the new CN member, the decision tends to be myopic and “greedy,” in that it only seeks to reduce the cost the new member incurs. These local decisions, however, do shape the process of network evolution. They determine the main global properties of the resulting network topology, such as the average length of the shortest paths to the Internet gateway(s), the robustness of the network to topology failures, as well as the distribution of its overall capacity and traffic load across its nodes and links. Hence, they strongly influence the network performance and dictate the overall cost of the developed infrastructure. The empirical analysis of CN topologies that evolve guided by fully decentralized decisions, without any central coordination or intervention, has provided evidence of pathologies and emergent risks. These include high dependence (in terms of connectivity and routing functionality) on a single or a few nodes, which may turn to single points of failure for the CN (if, for some reason, their owners lose interest in the CN or move to another place), and large differences in routes and speeds connecting end users to the Internet [3, 4, 5]. A key question arising in this context is whether it is possible to intervene in the CN growth process in order to steer its topology towards patterns that better serve its robustness and sustainability. Note that this question is distinctly different than the one faced by commercial network operators who plan their network as a top-down process. The CN infrastructure develops sequentially, in response to the time series of “join” events by end users, and there is no control over these events, i.e., where new nodes are to be installed. The remaining issue, then, is to what extent one can influence how these nodes are added, i.e., how they connect to the CN. This can only be obtained by influencing or constraining the local choices of the new users when they set up their own nodes. The first contribution of our work consists in showing that simple algorithms can drive these local decisions and lead to drastic network performance improvements. We formulate the problem mapping it to the max-min fair routing problem (e.g., [ 6 ][ 7 ]) and propose a greedy heuristic to solve it. We show that this greedy heuristic, bringing a network-wide view into the CN evolution process, helps the CN scale up to several hundreds of nodes and 2–3 times the size it would grow when the addition of the nodes is driven only by the new member’s cost minimization. The second contribution of this work, which serves as an enabler for the first contribution, is a tool that can simulate and assess growth strategies of a CN exploiting (very) detailed topological descriptions of the CN deployment area and economic and technological constraints to set up the CN nodes. The topological description leverages open source data from OpenStreetMap 3 and LIDAR-based estimates 3See https://wiki.openstreetmap.org/wiki/API_v0.6 of building heights with an horizontal and vertical precision better than 1m, and feed appropriate propagation models to infer the availability and quality of wireless links between pairs of CN nodes. Results with this tool are obtained for four areas with different population density and topological features, which are representative of four classes of the regions’ territorial characterization of the OECD (Organization for Economic Co-operation and Development)4. The source code of this tool is published as an open source project and it is available on-line 5 . We highlight that the tool can be used in two main different ways. The first one, hinted above, is like a planning tool to help the management of a CN taking informed and rational decisions on the network expansion. The second one, maybe even more interesting, and how we use it in this paper, is to use it as a feasibility analyzer: Given an area or region, what is the potential to build a CN? And what is the probability that the CN can grow up to a sustainable dimension? 2. Background and System Model The deployment of CNs is a participatory and evolutionary process. The network grows over time as new users join the community network and new nodes are added to existing ones. 2.1. CN node and installation cost budget In a CN, as well as in our simulator, a “node” is an installation of a wireless mesh node and includes an indoor part and an outdoor part. The former is a wireless router, which is configured to redistribute Internet access in the user’s house and perform IP routing. The latter is a composition of various elements, some of which generate a fixed cost and some a variable cost. The fixed cost counts a metallic pole needed to elevate the wireless devices a few meters above the roof level. We consider a maximum height of 4 m for such a pole when mounted on a standard CN node, whereas this height may go up to 10m for gateway nodes, which attach to the Internet. Another cost item is the cable (generally one Ethernet cable, or one Ethernet plus power cable), which feeds the outdoor devices with power and connects them to the indoor devices. On the roof, one can place a PoE (Power over Ethernet) switch, which splits power and data to a number of outdoor wireless devices. These are full-fledged wireless routers with CPU, memory, radio module and embedded antenna, and we refer to them as “devices” for brevity. These devices make up the variable part of the cost. The maximum number of devices per node (gateway) is set to four (ten), which is a reasonable number given the power consumption and the physical space available on the pole. We set the fixed cost to 200 e , a somewhat arbitrary number that changes from one country/location to another, but which is reasonable from the experience we have in Italy, Spain and other EU countries. Being constant its impact on the results is marginal. The variable cost depends on the number and the type of devices according to the prices we collected from websites of wireless device re-sellers (see Table 1). Different CNs may use different node designs; the one we propose, and its implications on the cost, draws on the hands-on experience the authors had with existing CNs. 4See the OECD OECD web site for further details. 5 See https://github.com/AdvancedNetworkingSystems/ 2 Outdoor Indoor PoE Switch Figure 1: The components of a wireless mesh node. 2.2. Actors and roles There are typically two main actors in community networks. The first one is the small group of people who lead the initiative and set up the first wireless nodes. More often than not, they remain involved in the CN, undertaking a major role in its maintenance and management. The need to interact with external entities (e.g., municipalities, policy makers, regulating authorities) motivates the organization into various types of legal entities, varying from associations and cooperatives to non-profit (or, rarely, small for-profit) ISPs. We refer to the legal entity managing the CN as the CN Operator (CNO), regardless of its legal status. The second main actor in CNs are the end users who join the network by contributing their own equipment, money and effort. At the same time, through the nodes they add, they expand the geographic coverage of the CN, making it accessible to more people. This participatory network deployment process challenges sustainability in several ways, whether this is approached from techno-economical only or a broader socio-political point of view [ 2 ]. In this paper, we are concerned with the first aspect. In particular, we focus on the challenge of maintaining a sustainable network topology as the CN scales up with the addition of new users. Since CNs grow bottom-up in response to community interest in them, end users have a direct impact on the CN topology and coverage, as these evolve over months and years. The new node installation process is often in the hands of, or at least assisted by, the CNO team. Therefore, the CNO could give recommendations or even constraints to the users on which node to connect to, or which device to use. It may also request a user to add a new device to his/her node. However, it can not realistically trigger a set of coordinated changes on many nodes to strongly modify the network topology. TerrainAnalysis. 2.3. CN deployment: an evolutionary participatory process The deployment of a CN starts with a small number of nodes, then grows based on end-user requests. 2.3.1. Set-up of the first CN nodes by the CNO Generally, the CNO deploys an initial set of wireless nodes N0 . The location of these nodes coincides with the houses/residences of the CNO team members or friends of theirs. Their selection may be optimized to maximize the aggregate geographic coverage. Among these nodes there is one or more CN gateway(s) attached to the Internet with a broadband connection. The set-up of these nodes yields an original CN topology graph G0 =( V0,E0 ), with |V0| = N0 . In this work, without loss of generality, we assume that N0 =1. We also assume that the gateway has sufficient uplink capacity for the whole network; hence, in general, this is not a standard ADSL connection but an appropriate gateway set up by the CNO with traditional operators or even directly in an Internet Exchange. 2.3.2. Evolutionary growth of the CN and CNO interventions The second and main phase in the CN growth process is driven by potential community members who submit requests to join the CN. In doing so, the users incur a cost Cn to set up a node at their home. On the other hand, the deployment of a new node n also implies a cost Cn,l for setting up the peer point for the link l at the point of attachment to the CN. This cost is closely related to the hardware chosen for the node, which in turns depends on the distance and the quality of link l . For example, a cheaper device with smaller wireless range might suffice for attaching to the closest node, whereas a more expensive device with higher range would be needed to reach a more distant one, which may lie closer to the Internet gateway. Several criteria may apply when choosing the point of attachment to the CN. If this choice is not subject to some form of control/regulation on the CNO side, a new user might end up connecting to the CN node that can be received most powerfully and/or lies closer to the user. This is a selfish choice that myopically tries to maximize the quality of the local radio connection and minimize the cost incurred by the user (cost of purchased device). In our approach, we let the CNO intervene in this choice by choosing the point of attachment to the CN among the available alternatives. Any time a new node is added to the CN, the CNO tries to ensure that, after the new addition, all CN nodes can obtain a minimum acceptable share of the network capacity. The CNO may terminate the CN growth process if it figures out that the addition of new nodes results in unacceptable network performance degradation. Once they enter the network, users may pay a recurring fee to contribute to the Internet interconnection and network maintenance costs, i.e., the CN Operating Expenditure (OPEX). In this paper we are interested in how much such a network can grow, and how much it can cost, so we limit our analysis to the Capital Expenditure, i.e., the initial cost to deploy the CN infrastructure, assuming that OPEX remains balanced and it is generally small being CNs participatory enterprises. 3. Controlling the CN Growth Process Consider the onset a CN beginning at time t0 , when the first CN nodes are set up by the CNO. Among the present nodes there is 3 a gateway g . We would like to track the evolution of the CN up to the time T , when the CNO terminates the CN growth process because the minimum per-node bandwidth Rmin toward the Internet falls below a given threshold, say Rthr, for a fraction of nodes p. 3.1. Problem Formulation Requests for the addition of new nodes to the CN come at random times {tj},tj∈ [0 ,T ] ,j∈ N , with N the set of users who eventually submit a request to join the CN. This set is bounded by the number of potential users (typically buildings in the area), but can be larger than the actual number of nodes when the CN terminate its growth, as not all join requests might be fulfilled. Every time a new end user pose a request to add node n at time tn, the following actions are completed. • The CNO checks that node n can be connected to one of the CN nodes that lie within its range. Call Ln the set of links that identify nodes reachable by n , each with different worst-case rates depending on the link quality (distance and propagation environment), the used devices installed, and the current CN topology. • If n cannot be connected to the network, it is added to a list Vc of candidate nodes. When another new node m is added to the network the CNO will check if any of the candidate nodes can be added through m. • If the node n is connected, normally with a single device to begin with, it becomes a point of attachment for more nodes that could join the network (in this case probably adding to n more devices, up to the limit of four we have defined in Section 2.3.2), either those in the candidate list, or additional, currently unknown, nodes. • For every new node added, the CNO incurs a cost Cn,l that depends on the kind and number of devices necessary to setup the link l∈Ln selected. The node feeds the network with its traffic demand, which has to be served by the network, possibly reducing the available bandwidth for the demands of other users. • The CNO checks whether the preset performance target Rthr is not preserved for a fraction p of nodes after the addition of the new node. If not, the network evolution stops. In practice, upon such events, the CNO would need to revisit the CN topology and consider upgrades that could allow more users to join the CN. However, to set a concrete context for comparing our approach to alternatives, we consider the evolution of the CN topology up to the time T that the performance criterion is violated for first time, halting the further addition of nodes. The evaluation of the minimum bandwidth Rmin available for any node is a non trivial task, and it depends on the actual routing protocol adopted by the CNO, as we describe in the next section. 3.2. Estimation of network growth Ideally, the CNO would like to coordinate the choice of new links so that its growth stopping time T is as high as possible; namely, the CN can scale up to the maximum possible size while providing all nodes with a minimum worst-case throughput. With reference to the sequence of join request times {tj} , this is essentially a dynamic optimization problem. However, without prior knowledge, even probabilistic, about the sequence of new user join requests, finding the optimal link addition policy that maximizes T is practically impossible. In the absence of any knowledge about the sequence of join events, a plausible approach to the optimization problem is a procedure that any time a new user joins the CN, the CNO chooses the link that maximizes the worst-case per node throughput given the topology of the CN at time t. More specifically, let Gt =( Vt,Et )be the directed graph describing the CN topology at time t = tn , when the request to add node n arrives, and Ln the links that are feasible between n and CN nodes n0∈Vn within its useful range, i.e., its potential neighbors. For each link l∈ Ln , the CNO hypothetically constructs the topology Gt ( l )=( Vt∪n,Et∪l )and computes the best minimum worst-case rate Rmin ( l )that can be made available across all nodes i∈Vt∪n . To find this, it could solve an instance of the max-min fair routing problem with unsplittable demands [ 6 , 7 ] over the Gt ( l )graph, which features one source (gateway node) and many sinks (all other CN nodes). The problem solution would yield an approximately-optimal routing configuration, i.e., single-path routes from the gateway to all CN nodes, that maximizes the minimum worst-case throughput across all feasible routing configurations. The CNO would then pick up the link ln that results in the highest value of Rmin(l)across all links l∈Ln: ln=argmax l∈Ln (Rmin(l))(1) as the one to set up between nand the CN. In practice, several factors undermine the practical relevance of such a systematic approach. First, the radio interference considerations in the wireless multihop setting of a CN add significant extra complexity (see for instance [ 8 ]) to the already NP-hard max-min fair routing problem. The use of directional links may weaken but not fully cancel the impact of radio interference. Second, the (approximately) optimal solution would be practically achieved only if the combination of the link scheduling function at the wireless routers with the flow control function at the end points produced max-min fair rate allocations for any routing, which is definitely not the case with state of the art IP-based routing and congestion control protocols. 3.3. Link selection algorithm The capabilities of real protocols, with specific reference to the Optimized Link State Protocol (OLSRv2) [ 9 ] can be summarized by the following points. • Each node is able to estimate the available link bandwidth. Modern routing protocols communicate with the wireless devices to obtain the negotiated bit-rate of the last sent packet, and use this data as a link metric [10]. • Each node is able to estimate the number of links that are directly interfering with the device on the receiving side. In the simplest case, this is the number of ingoing links to the destination device, which can be communicated by the 4 neighbor node. There are protocols that use a similar approach to penalize the use of links that share the same channel with more than one neighbor6. • It is not possible to perform a centralized optimization based on the instantaneous knowledge of the link occupation. Every node estimates the available bandwidth per link at steady state conditions and shares this knowledge with the other nodes. Routing is performed based on this knowledge, which can be partially outdated. • No multipath routing is supported, so that a flow cannot be split among equivalent shortest paths. In light of the general constraints above, we can now formulate two link selection strategies that can be implemented in our tool when a new node n join request is considered. The first one is a network aware strategy that, with acceptable computational complexity, grants that the CN growth is not hampered by local myopic strategies. The second one is instead a local, myopic strategy that we use as a baseline for comparison. 3.3.1. Network aware strategy This strategy goal is selecting the link lt∈ Ln , and hence the neighbor n0∈Vn , that guarantees the maximum minimum bandwidth from any node in the network to the gateway g after the node n is added to the CN. Compared to Eq. (1) this strategy still finds a time-dependent local optimum conditioned on the sequence of request arrivals {tj} , but instead of computing the optimal global routing and rate allocation, is selects the solution that yields the best minimum bandwidth given the routing protocol adopted by the CN. As a first step, if Ln is not empty, for each link lt∈ Ln a new topology Gt ( lt )=( Vt∪n,Et∪lt )is considered, and every directed link l=(h,k),h,k∈Vt∪nof the network is assigned a cost: l.metric= l.sharing f actor l.max bitrate (2) where l.max bitrate is the maximum bit rate achievable by the device in k where link l terminates, l.sharing f actor is the number of links terminated in k that share the same device with l . The topology Gt ( lt )annotated with l.metric is a weighted graph where Dijkstra algorithm can be used to compute minimum cost paths path(h,g)from each node htoward the gateway g. Second, knowing all the minimum-cost paths, we can compute the number of paths directed to g that are active on every link l : l.paths sharing factor . The bandwidth that is available for a path in each link l is equal to the ratio of the nominal link capacity, 1 l.metric (Eq. (2)), divided by the number of active paths toward g on the link l.paths sharing factor , assuming equal sharing of the link capacity between all path ( h,g )insisting on l . Hence, the minimum available bandwidth for each node h corresponds to the minimum bandwidth available over all links in path(h,g): minBW(h)=min l∈path(h,g)"1 l.metric·l.paths sharing factor#(3) 6 See for instance the Batman-adv multi-link optimization https: //www.open-mesh.org/projects/batman-adv/wiki/Networkwide-multi-link-optimization Third, we need to select the link lt∈ Ln that maximized minBW(h)over all nodes and all possible Gt(lt)=(Vt∪n,Et∪lt): ln=argmax lt∈Ln"min h∈Vt∪n(minBW(h))#(4) The complexity of this search is polynomial as it requires to enumerate all the minimum weight paths computed using Dijkstra on every edge in the networks, which is acceptable both for “what if” analysis before starting a CN, and for run time (of the CN development) addition of single requests. 3.3.2. Local strategy This strategy simply selects the link lt∈ Ln , and hence the neighbor n0∈Vn , that maximizes the local bandwidth between n and n0. Formally: ln=argmax lt∈Ln 1.0 l.metric!(5) and, in case of tie the solution that requires a lower cost Cn,l. 3.4. Terminating the CN growth process The implementation of the stop criterion is straightforward. After a new node is added, we check whether the fraction of nodes with minBW ( n )below the threshold Rthr is higher than a target percentile. If this is the case, the CN growth process is terminated. Equation (3) is a worst-case, peak allocation criterion with multiplexing factor equal to 1, and not a contractual SLA (Service Level Agreement); thus building a network where it is satisfied for, say 80-90% of the nodes is actually very safe and ensures that the performance of the network is satisfactory for any user in any operation conditions with high probability. 4. A CN Planning Tool So fare we have described what a tool to help in the development and deployment of CNs may work, but we need to describe the tool and understand how link selection strategies can be integrated in this tool. As we mentioned, the tool can be used to assist in the deployment of CNs, simply using it with the real flow of join requests, or can be used as an emulator trying to understand if a CN is feasible given an area of potential interest. Clearly, CNs may take months or years to grow, so that its first use is difficult. In this work, we describe and use it as an CN growth emulator, or simply a generator. The output of an emulation run is a topology GT =( VT,ET ), where the pedix T indicates that the possible growth of the CN hast “Terminated.” The topologies produced are annotated with estimates of the available bandwidth in each link and the total amount of money invested in the CN deployment. Different metrics can then be used to assess critical features of those topologies, such as the expected throughput they provide to end users and their resilience to failures, or simply the dimension the CN has reached before the stopping condition in Section 3.4 was met. The generator implements a greedy approach (meaning that each join request is considered in order and isolation from the others). Its execution and temporal evolution is described by Algorithm 1 (commented later) and consists of four main components. 5 1. A stochastic engine that implements the sequence of requests {tj} based on some criteria that depends on the area selected for the installment of the CN; 2. A database of open data. This database includes building shapes and altitude, and it is used to implement the getLoS function in Algorithm 1. 3. Different link selection strategies (the getBestNeighbor routine in Algorithm 1) and CN growth stopping criteria (the checkStopCondition routine in Algorithm 1). The two link selection strategies defined in Section 3.3 and the growth stopping criterion defined in Section 3.4 are currently implemented in our tool. 4. Simple metrics that are used to assess a-posteriori the CN topological properties. Each component is easily extensible to support other strategies, and contains several parameters that can be tuned to reproduce a wide range of real world conditions. 4.1. The stochastic engine The driver of our tool when used as a feasibility analyzer is fundamentally an event generator that select the sequence {n,tn} and drives the temporal evolution described in Algorithm 1, similarly to any event-driven simulator. If the tool is instead used as a planning tool, the driver is a real trace of requests {n,tn} leading to a trace-driven simulation. As in any event driven execution Algorithm 1 is fundamentally an infinite loop until an ending condition is met (line 3). The stochastic part of it is getNewRequest() at line 4, that selects a new potential node to join the CN. What we have implemented so far is a simple random selection among all the buildings not yet connected, complemented with the browsing of all the nodes that have requested to join, but were not in LoS with any node already present in the CN and have been memorized in the Vwait set. These simple driver can be extended to include demographics of the area, starting from the number of families in a building, down to census data (education, income, . . .) that may affect the inclination toward joining a CN. 4.2. The open data database The CN topology generator collects data from three sources and organize them into a database for efficient use during the execution. We remark that all data we collect are Open Data, thus the tool can be freely used by anyone. 1. Street maps including building shapes, extracted from Open- StreetMap (OSM) and other public open data repositories. Whereas OSM is generally very precise in urban areas, open data sets from public administrations tend to be more precise, though less up-to-date, in rural areas. In some cases (e.g., in France) the public open data sets have already been imported in OSM. 2. Building altitude profiles obtained from LIDAR (Light Detection and Ranging) traces. Several public bodies have published open data from LIDAR survey campaigns, with Algorithm 1 Greedy approach to CN topology control Input: The gateway node g , bandwidth threshold Rthr , tolerable fraction of nodes below threshold p, Output: A feasible network topology GT =( VT,ET )and the total cost Cfor its deployment 1: C=0,Vt={g},Et={},Vc={} 2: cont=0 3: while cont≤p×|Vt|do 4: n= getNewRequest(Vc) 5: if n== NULL then 6: break 7: end if 8: Vn= getLoS(Vt,n) 9: if Vnis empty then 10: Vc.append(n) // populate the candidate list 11: else 12: n0= getBestNeighbor(n,Vn,Vt,Et) 13: l= newLink(n,n0,Gt) 14: C=C+ cost(l,Vt,Et) 15: Vt=Vt∪n 16: Et=Et∪l 17: cont,= checkStopCondition(Vt,Et) 18: end if 19: end while 20: return GT(Vt,Et),C 21: 22: Function getNewRequest() // return a new node that requests to join the CN or NULL if there are no more nodes. Can re-use nodes in Vc if the network has grown since last addition to Vc . 23: Function getLoS (Vt,n) // returns the set of nodes in Vt that are in LoS with n 24: Function cost(l,Vt,Et)// cost for the addition of link l 25: Function checkStopCondition (G)//See Algorithm 4 26: Function getBestNeighbor (G)//See Algorithms 2 and 3 various level of precision 7 . Public administrations in several countries publish much more precise data sets; the one we use reaches a precision of one point per squared meter. 3. Technical specifications of real 5G-ready (802.11ac) devices from the Ubiquiti equipment manufacturer. For each device, the database stores the maximum transmission power, the antenna gain and aperture, the sensitivity for each supported Modulation and Coding Scheme (MCS), and an average price, extracted from official stores (dated Sept. 2018). Table 1 reports the features of the devices we have used in the simulations in Section 5. All sources of data can be extended. The technical specifications in particular can be extended to any vendor and any device depending on the commercial choices of the CN. For the purpose of this work we obviously don’t have a commercial strategy are interested 7 The Shuttle Radar Topography Mission: https://www2.jpl.nasa. gov/srtm/ is a public repository of terrain elevation profiles, but its precision does not allow to estimate building heights (roughly one point every 900m2). 6 Name Avg. Price Beamwidth Angle Sensitivity Max TX Power Antenna Gain Max distance (EUR) (H,V degrees o) (dBm) (dBm) (dB) (km) ISO90 200 90,30 -65 21 14 1.34 ISO45 112 45,45 -65 21 14 1.34 LB 73 20,10 -65 21 23 3.79 NB 100 30,30 -65 20 19 2.39 NS 134 60,20 -65 21 16 1.69 NSL 49 50,40 -65 21 13 1.20 PB3 110 20,10 -65 21 22 3.38 PB4 129 20,10 -65 21 25 4.77 PB5 185 20,10 -65 18 27 6.00 Table 1: The technical specifications of the Ubiquiti 5G-ready devices included in the simulator, limited to the highest Modulation and Coding Scheme (MCS9). Figure 2: The altitude profile between two random buildings in the city of Florence, and the computed line of sight and Fresnel zone. to explore the final cost of deployment in relative terms and not absolute ones, so devices from a single vendor are a good enough choice. With these data we can verify if, placing devices on the roofs of any two buildings (each network node corresponds to a building), we can expect to achieve line of sight (LoS) between them. If this is the case, we compute the theoretical path loss with an attenuation exponent set to two, and then we refine it through a single knife edge approximation model, which takes into account the occupation of the Fresnel zone [ 11 ]. Figure 2 shows the result of the process of computation of the line of sight between two buildings in the city of Florence. The two antennas are placed 4 meters above the building roof, the red line is the LoS (which is available, in the case of these two buildings), the orange line is the computed Fresenel zone, and the green line contains 60% of the area of the Fresnel zone. Using the mentioned single knife edge approximation we are able to estimate a realistic value for the path loss on this potential link. We assume each device is configured in ad-hoc mode (or equivalent) and we apply the European regulatory limits that set an upper bound of 30dBm to the emitted power in the unlicensed band around 5 GHz. Using the antenna gain and the sensitivity values reported in the device data sheet, we estimate the MCS and thus the negotiated bandwidth of the link. A typical problem in mesh networks is how to assign channels to links in order to avoid interference with neighbouring nodes. The problem can be described as a variant of a graph colouring problem and it is NP-hard in the generic case [ 12 ], however, with the use of directional antenna this problem remains marginal. 4.3. Link selection and growth stop Each node in the CN topology is mounted on a building; the first node of the network is the gateway node as evident in line 1 of Algorithm 1. This node is chosen with care in order to avoid pathological conditions, as it happens in real cases. We typically choose a building that has reasonable connectivity such as the City/Town Hall, a hospital, or a university and we assume the availability of a 10m trellis structure that can be used to mount up to eight wireless devices. The two link selection strategies defined in Sections 3.3.1 and 3.3.2 are implemented as described in the next two subsections. Note that, with either strategy, if every time we add a node we connect it to one single neighbor, the CN would become a tree. Instead, when we add a device to a node we always check if the new device can generate a connection with any node other than the intended one (on the same channel). After identifying the best neighbor n0 , we estimate the cone periphery from the devices’ datasheets extracting the angle at which the device exhibits 3dB loss and considering that as the real antenna aperture, next we check how many links can be generated with other existing nodes through the same device, and we allow a maximum of three outgoing links per device in order to limit the number of links that share a given device. Yet this limit is only lousily enforced, if n needs to connect to an existing device of n0 that saturated the number of outgoing links, we allow to increase this number to let the new node enter the network. 4.3.1. Local strategy The strategy is described formally in Algorithm 2. For each node n0 in the set of nodes Vp within LoS of n , the algorithm first computes the expected path loss and finds the two devices that need to be added to n and n0 to obtain the maximum possible negotiated bit rate. It then picks the node n0∈Vp that guarantees the highest bit rate. In case n0 already has a device pointing towards n , a new device is added only to n and is tuned on the same channel. Otherwise, a new device is also added to n0operating on a channel 7 Algorithm 2 getBestNeighbor: local strategy Input: new node n , set of feasible neighbors Vn for n , set of present nodes Vt, set of edges Et(ignore other parameters) Output: Neighbor that maximizes the bandwidth of the new link 1: bestNeigh=NULL,linkBw = 0, linkCost = inf 2: for n0in Vpdo 3: l=newLink(n,n0) 4: c = cost(l,Vt,Et) 5: if l.bandwidth >linkBw OR (l.bandwidth == linkBw AND linkCost<c)then 6: linkBw=l.bandwidth 7: linkCost=c 8: bestNeigh =n0 9: end if 10: end for 11: return(bestNeigh) Algorithm 3 getBestNeighbor: network aware Input: new node n , set of feasible neighbors Vn for n , set of present nodes Vt, set of edges Et,Rthr,p,g Output: Neighbor that minimizes the network-wide performance drop due to the new node bandwidth requirements 1: R = [] 2: for n0in Vpdo 3: l=newLink(n,n0) 4: V0 t=Vt∪n 5: E0 t=Et∪l 6: ,Rmin = checkStopCondition(V0 t,E0 t,Rthr,p,g) 7: R[n0] = Rmin 8: end for 9: bestNeigh=NULL 10: bestR=0 11: for n0in R do 12: if bestR<R[n0]then 13: bestNeigh=n0,bestR=R[n0] 14: end if 15: end for 16: return(bestNeigh) 17: 18: Function newLink(n,n0) 19: return a structure that contains the information of a new link (loss and bandwidth) between nand n0. that is not already used by any device on n0 . The local strategy, as its name suggests, tries to maximize the bandwidth available to the new node on the last hop. This is a selfish strategy that does not take into account the impact of the new node addition on the rest of the CN, but it is often used since uses only local information and does not require any computation. It tends to be the de facto approach to CN expansion, thus we use it as baseline. 4.3.2. Network aware strategy The strategy is described formally in Algorithm 3. The network-aware strategy does not necessarily add the fastest new Algorithm 4 checkStopCondition Input: V,E,Rthr,p,g Output: Nodes below threshold, lowest guaranteed bandwidth 1: path dict = [] 2: link bandwidth = [] 3: for lin Edo 4: l.metric = l.sharing factor/l.max bandwidth 5: l.paths sharing factor = 1 6: end for 7: for nin Vdo 8: path = computeDijkstra(n,g) 9: path dict[n] = path 10: for lin path do 11: l.paths sharing factor += 1 12: end for 13: end for 14: bottleneck = list() 15: nodes below threshold = 0 16: for lin Edo 17: link bandwidth[l] = 1.0/(l.metric*l.paths sharing factor) 18: end for 19: for nin Vdo 20: Rmin = min([link bandwidth[l] for lin path dict[n]]) 21: bottleneck.append(Rmin) 22: if Rmin <Rthr then 23: nodes below threshold += 1 24: end if 25: end for 26: return(nodes below threshold, min(bottleneck)) link. It rather evaluates all the candidate neighbor nodes as to how a link to them impacts the performance of the whole network (through the checkStopCondition at line 6 in Algorithm 3 that returns Rmin ) and then selecting n0 maximizing this value (lines 11-15). The fastest link is used as a fallback node selection criterion only if there is a tie. 4.3.3. Topology growth stop criterion Irrespective of how the neighbors of a new CN node are chosen, at some point the total demand will exceed the aggregate network capacity, and the network should stop accepting new nodes. The stopping criterion in our CN topology generator is described in Section 3.4, i.e., when the minimum available bandwidth estimated with Eq. (3) falls below Rthr for a certain percentage of nodes; Algorithm 4 formally describes its implementation. The absolute number of such nodes is computed in lines 22-14 and returned to the main loop in Algorithm 1. We assume that the bandwidth toward the Internet can be upgraded indefinitely, so that it never represent a bottleneck. This is clearly unrealistic, but let us estimate the intrinsic properties of the CN and not limitations due to commercial factors or policy decisions. The network stops growing also in four more cases: i) there are no more node requests to join the CN; ii) none of the non-connected nodes have line of sight with any CN node; iii) non-connected nodes have line of sight with some CN node that already uses the 8 Figure 3: An example network realized on the area of Florence, for each link, the tool lets navigate its properties as shown in the pop-up. maximum allowed number of devices, without any of these devices pointing to the right direction that would let a new node establish a link to it; iv) a mix of ii) and iii). Figure 3 shows one example network realized using the data from the city of Florence (Italy), one of the areas we use to run our simulations, setting Rthr large so as to stop the growth with few nodes and obtain a readable picture. 4.4. Graph metrics Once a CN topology is generated, we compute two metrics over it: The network size: The final number nodes with a path to the gateway by the time the stopping criterion is violated and no new nodes can be added; The average cost of a node: Every time we add a link l from a new node n to an existing CN node n0 , the total cost C of the network is increased by a fixed cost, plus the cost of the new devices that have to be purchased and installed (one, or two devices as explained in Section 4.3). The average value is key because it gives an estimation of the economical efficiency of the strategy, and it is more important than cost fluctuations from one node to another, considering costs are normally shared among various participants. One might argue that as the CN grows, the overhead of the routing protocol may be a potential third metric. However, scalability studies for typical mesh routing protocols [ 13 ], such as OLSR, Babel, and BMX, show the negligible CPU (less than 10% load in a 10 e router [ 14 ]) and memory costs even for large mesh networks with 50-100 or more nodes. Network overhead is small for distance vector protocols Scenario Buildings km2Buildings/km2 Urban (PU) 43853 102 429 Suburban (RIA) 6663 45 148 Intermediate (RI) 2052 34 60 Rural (RDP) 4414 182 24 Table 2: Number of building, dimension and building density in the four selected scenarios. and it grows roughly linearly with the nubmer of nodes (less than 200 bit/s for a 25 node network, and still less than 0.5-1 kbit/s for a 100 node network for a typical topology) while Link State protocols (like OLSRv2) generate a higher overhead. Yet its impact, albeit non negligible, can be controlled with proper tuning [ 15 ]. Therefore, we do not consider such metrics in this work. The two metrics are, hence, sufficient to compare the impact of strategies and configuration parameters on the scalability of the CN and the required investment to set-up the network, i.e., its capital expenses (CAPEX). More elaborate metrics can be used to assess the operating expenses of the network (OPEX). Some of them are discussed in Section 8. 5. Design Choices, Empirical Validation and Qualitative Analysis To test and validate our tool we use Open Data from four areas in the Tuscany region, in Italy. There are three good reasons for this choice: first, topological data are available for these areas; second, some of the authors are natives of this region easing the access and interpretation of data that are often available in the local language; and third, the familiarity with the area helps to correctly interpret the results. To facilitate the extension of this analysis to areas outside Italy with a consistent methodology, we use the already mentioned territorial characterization that is standardized by the OECD and divides territory in “Predominantly Urban” (PU), “Intermediate”, and “Predominantly Rural” [ 16 ]. The classification is based on the percentage of population living in urban / non urban areas, population density, percentage of countryside population, and the presence of large cities, and is intended to facilitate numeric comparisons between similar areas across different countries. In Italy, the OECD categories are further refined to make the classification more precise. A subset of urban areas, featuring prevalence of flat land, proximity to a city and advanced economy, is defined as “Rural with Intensive Agriculture” (RIA) and is basically a suburban area. Rural areas, on the other hand, are separated into “Rural Intermediate” (RI), which include hilly and some mountainous areas far from cities, and “Rural with Development Problems” (RDP), which include mostly mountainous areas that are generally far from cities and face development problems. Table 2 summarizes the main features of the four scenarios we consider, re-labeled urban, suburban, intermediate, and rural for the sake of easy reference. If not otherwise stated, we apply the stopping criterion formulated in Section 3.4 with Rthr =1Mbit/s and percentile=10, i.e., the network stops growing when more than 10% of the nodes can be granted less than 1 Mb/s guaranteed bandwidth. We stress that this is an estimate of the worst-case guaranteed bandwidth a user 9