1 Introduction

Optical networks offer very high capacity, low loss, and reliable communication lightpaths that are used to establish high-speed data communication links over very long distances. Disasters, either natural or fabricated, can be very devastating as they can disrupt the topological connectivity of these networks. Recent disaster scenarios like the earthquake in Taiwan damaged many optical fibers leading to the failure of multiple lightpaths at sixteen different places in North America and Asia. This resulted in severe reduction in the internet capacity of China and Hong Kong by 74 and 100%, respectively [1]. In 2008, the ship anchors in the Mediterranean Sea caused fiber cuts leading to 70% loss of Egyptian network connectivity from the outside world as well as 50–60% loss of outbound connectivity on the westbound route in India [2]. Similarly, another earthquake in Nepal in the year 2015 caused a lot of damage in the form of schools, houses, transmissions towers, and ICT access center collapsing as well as the failure of microwave and fiber backhaul links. This resulted in severe damage to both wired and the wireless communication links [3, 4]. Another similar earthquake of 7.1 magnitudes recorded in central Mexico on September 19, 2017. In addition to 355 fatalities, 6100 injuries, and nearly 44,000 building destruction, this also devastated the communication infrastructure by damaging the underground optical fibers as well as the wireless infrastructure [5]. It has been estimated that such communication failures due to natural disasters lead to fiscal losses ranging from USD25000 to USD150000 per hour [6].

Fig. 1
figure 1

Types of spatially close fibers

Although both the primary and the secondary paths between two network nodes are always disjoint, even then they may concurrently fail in the event of a large-scale disaster due to spatially close fibers [7]. This may happen due to many reasons that result in spatially close lightpaths. One reason for their closeness may be placing of multiple fibers in the same duct by the network operators to minimize the digging costs and thus reduce the capital expenditure (CAPEX) [8, 9]. An example of spatially close overlapping fibers due to duct sharing is shown in Fig. 1. It is also possible that the fibers which are not in the same duct are also spatially close due to the close vicinity of their ducts. Another scenario of spatially close fibers may be the closeness of the fiber endpoints due to their termination at the same destination node. This may happen due to the infrastructural or geographical constraints. Disjoint lightpaths are physically separated but may fail simultaneously as their constituting fiber segments belonging to different fiber sets can be affected simultaneously in the event of a disaster due to spatial closeness. To overcome this problem and enhance the network survivability, the minimum spatial distance (MSD) of the disjoint lightpaths should be maximized. This will increase the network robustness against disaster-based failures as well as enable the network operators to ensure provisioning of services in the event of a large-scale disaster and thus minimize their fiscal losses.

Geographically, optical fibers are laid down in a non-straight manner between cities or across oceans because of the governing rules or the infrastructural and terrain constraints. These fiber lightpaths can be approximated as a concatenation of multiple fiber segments of varying lengths and can be mapped on geodetic coordinates (latitudes and longitudes) or be transformed into the corresponding two-dimensional Cartesian coordinate system. In this paper, we propose routing algorithms for (1) maximizing the minimum spatial distance between a disjointed pair of lightpaths, and (2) minimizing the path weight of the primary lightpath, while the minimum spatial distance between the lightpath pair is constrained. The rest of the paper is as follows: Section 2 discusses the related work. The problem formulation and our proposed routing algorithms are presented in Sect. 3. Simulation results are discussed in Sect. 4. Finally, the paper is concluded in Sect. 5.

2 Related Work

In fact, the disaster events are inevitable; however, their impact on the network services and their downtime can be significantly reduced by enhancing the network survivability [9, 10]. This area has drawn the attention of the research community, and many studies have been conducted during the recent years. These studies have investigated the issue of disaster vulnerabilities in different perspectives like natural disasters, weapons of mass destruction attacks, electromagnetic pulse, region-aware and network augmentation to address the influence of regional failures [7, 11,12,13,14,15,16,17,18,19,20,21,22,23]. Network geography can forecast the impact of a failure on network’s services and capacity by assessing their cascading failures. Dikbiyik et al. [12] have proposed solutions to prevent connection failures from disasters through proactive approaches. Using proactive approach, the damages and cascading failures are estimated as specific events like hurricanes, floods, and earthquakes occurring in specific geographical locations. An interesting study by the Neumayer et al. [24] investigates the network robustness against geographical line segment and circular segment cuts. In [17], Neumayer et al. have presented the geographical-based failures as a generalized max-flow and min-cut problems. In this approach, a rival tries to reduce the network connectivity through multiple network attacks. To address the geographical min-cut problem, they proposed a polynomial-time algorithm and have presented several approaches to address the geographical max-flow problems. The physical infrastructure of the optical network is vulnerable to the weapon of mass destruction (WMD), physical attacks like an electromagnetic pulse (EMP), military bombing, or some kind of natural disaster. In [15, 25, 26], analysis of the network vulnerability under geographically correlated failures due to a physical attack has been addressed with different perspectives and probabilistic framework. In the disaster scenario, the probability of getting affected is very high for spatially correlated nodes (nodes which are confined to a region). This simultaneous failure of multiple nodes turns in disconnecting from a large spanning area of the network. Banerjee et al. in [27] proposed an approximation algorithm for a file distribution scheme to address this problem so that every node in the network can reconstruct the original file by retrieving \({\mathcal {K}}\) file fragments from other nodes surrounded by r hop neighborhoods with minimized storage. This file distribution scheme for a data storage network depends upon region-based fault in the network in contrast to [28,29,30].

Disaster-based failures may affect a part of the network confined to a certain geographical region in different ways. Their impact can be modeled by different shapes like circular, triangular, elliptical, or rectangular. Trajanovski et al. [31] studied the problem of finding the critical region of predetermined size and proposed a polynomial-time algorithm to identify the most vulnerable regions in a given network. They have also proposed a polynomial-time algorithm by considering the region-aware network to reduce the impact of regional failures in [18]. They proved that how region-disjoint path problem is NP-hard and proposed a heuristic algorithm for this problem. Since network nodes and fiber links in an optical network are deployed geographically, they must have geographical information (i.e., latitudes and longitudes as geodetic points). In [19], Iqbal et al. considered the geographical information of network nodes and links and included the idea of time-based disaster impact. They incorporated this information for finding the risk profile of different network areas for a series of time instants. The rationale behind this is that some disasters, like hurricanes, may traverse different network areas at different times. Then, they proposed polynomial-time algorithms to evaluate the vulnerability of network connections, which enables to find the most vulnerable network connections. Iqbal et al. [7] also proposed fast running algorithms to identify spatially close fibers and grouping them using the minimum number of distinct risk groups. In [20], Agrawal et al. proposed a Seismic Zone Aware Node Relocation (SZANR) scheme based on the information on seismic zones by meteorological departments and other similar agencies. Results showed that significant enhancement in the network survivability can be attained in events of earthquakes by minutely changing the node location in the network topology. Awaji et al. introduced a new strategy in [21] for enhancing the network robustness against natural disasters (e.g., mega-quakes and tsunamis). They outlined the solutions for two imperative facets: survivability against damages in broad-area networks and quick network recovery in devastated areas. They proposed optical packet switching combined with circuit switching for more survivable broad-area networks, while emergency optical networks and hierarchical addressing are presented for quick network recovery in devastated areas.

Fig. 2
figure 2

Problem formulation

Virtual network mapping can efficiently utilize computing and networking resources on the same physical network infrastructure. Virtual network services must be as resilient as possible to function even in the event of catastrophic disasters, intentional attacks, and fiber cuts. Galdamez et al. [22] studied the problem of resilient virtual network mapping and proposed a region-disjoint mapping algorithm for mapping the primary and backup virtual networks onto non-overlapping geographical area network, thus providing survivability against large-scale regional failures.

Sousa et al. [23] addressed a similar problem termed as the path geo-diversification problem, where a demand between two network nodes is supported by a pair of geographically separated paths of a minimum distance. They proposed an ILP to solve this problem. In the same context, Wang et al. [32] presented a geographical-aware route selection algorithm for finding alternative paths with appropriate geographical separation, referred to as the proximity factor. Contrary to the work of [23, 32], our proposed algorithms are based on the Yen’s algorithm [33], such that the running time and accuracy of our algorithm can be tuned through the selected value of K. ILP is often too time-consuming. Our proposed algorithms provide the means for reducing the running time for finding a viable solution to the problem, albeit with lower optimality. However, when K is unbounded, our proposed algorithms always find the most optimal solution.

3 Problem formulation and proposed algorithms

Let an undirected graph G(NL) represent a physical network, where \(N=\{ {n_1 ,n_2 ,n_3 ,\ldots ,n_N } \}\) is the set of |N| nodes and \(L=\{ {l_1 ,l_2 ,l_3 ,\ldots ,l_M } \}\) is the set of |M| undirected links representing bidirectional optical fibers. The \(P=\{ {P_1 ,P_2 ,P_3 ,\ldots ,P_k } \}\) is the set of shortest lightpath candidate from source node s to destination node t and \(w=\{ {w_1 ,w_2 ,w_3 ,\ldots ,w_k } \}\) is the set of corresponding path weights, and \((P_u ,P_v )\in \{ {P\times P} \}\) represents the link-disjoint pair of lightpaths with corresponding path weight pair \(( {w_u ,w_v } )\).

There are some assumptions we made to formulate the problem:

  1. (i)

    Source and destination nodes are assumed safe from the impact of the disaster. Figure 2 shows the exclusion distance \(\delta \) (in km) which is defined as the circular region for which the source node, destination node, and enclosed fiber parts are assumed to be safe. The value of \(\delta \) can be less than the length of enclosed fiber segments.

  2. (ii)

    Link-disjoint pair of lightpaths \((P_u ,P_v )\) means \(P_u \) does not share any \(l\in L\) with \(P_v .\)

  3. (iii)

    Spatial distance (\(d_{s}\)) is the separation distance (measured in km) and calculated from any two geodetic coordinates distinctively taken from two lightpaths between two network nodes. These geodetic coordinate might be the starting, ending, or intermediary point of fiber segments. Spatial distance is assumed as zero when fiber segments of two disjoint lightpaths overlap/intersect or primary and backup lightpaths share same nodes.

  4. (iv)

    Minimum spatial distance (MSD) can be defined as the minimum \(d_{s }\) of two disjoint lightpaths.

3.1 Disjoint lightpath pair with maximized minimum spatial distance

Provisioning of Disjoint Pair with Maximized Minimum Spatial Distance (DPMMSD) Problem: Find a pair of link-disjoint lightpaths (\(P_u ,P_v \)) between two specific network nodes such that the minimum spatial distance (MSD) between the lightpaths is maximized.

$$\begin{aligned} \mathop {\hbox {Maximized}}\limits _{d_s } \left\{ {\mathop {\hbox {Minimized}}\limits _{(P_u ,P_v )} \left\{ {d_{s1} ,d_{s2} ,d_{s3} ,\ldots ,d_{{sk\left( {k-1} \right) }/2} } \right\} } \right\} \nonumber \\ \end{aligned}$$
(1)

Here, \(d_{si} \) is spatial distances for \((P_u ,P_v )\in \left\{ {P\times P} \right\} \). We proposed the DPMMSD algorithm in the context of the mentioned problem. The algorithm is divided into two parts. The first part of the algorithm finds K number of shortest paths between nodes s and t in the given network (using Yen’s algorithm [33] as described in line 2). Other k-shortest path routing algorithm [34,35,36,37,38,39,40,41] may also be used instead. The second part of the algorithm proceeds from line 3 to line 11. Line 5 confirms whether a pair \((P_u ,P_v )\) of shortest lightpaths is link-disjointed using Algorithm B. If pair \((P_u ,P_v )\) is link-disjointed, then the corresponding minimum spatial distance “msd or MSD” and the average minimum spatial distance “msdAvg” of the pair are computed in line 7 using Algorithm C (a modified form of the algorithm proposed in [7] to detect spatially close fibers, based on kD tree and k nearest neighbor or kNN search [42,43,44]). The processing theme of Algorithm C is as follows:

  1. (i)

    All geodetic coordinates of nodes and starting, ending and intermediary points of fiber segments of \(P_v \) are inserted in kD tree excluding the fiber segments and nodes which are in safe region.

  2. (ii)

    A set X of geodetic coordinates of nodes and starting, ending and intermediary points of fiber segments of \(P_u \) are constructed.

  3. (iii)

    Now iterate point by point in X (suppose ƥ) to find the nearest-neighbor point (suppose ƙ) in kD tree using kNN search, and compute the spatial distance between ƥ and ƙ and store in the set D.

  4. (iv)

    Return the minimum value from set D that will be the required MSD of pair \((P_u ,P_v )\).

In some cases, multiple link-disjoint pairs can have the same MSD value. Hence, we introduce another supporting decision variable, the “msdAvg” that represents the quantitative disjointness between the lightpaths, as a tiebreaker. Lines 8–11 select the link-disjoint pair of lightpaths based on msd and msdAvg values with maximized MSD. For geo-calculations over a great circle (i.e., finding distance, midpoint, intermediate point, etc.) between latitudes and longitudes of two geodetic coordinates, we used the formulae given in [45]. We also exclude certain fiber parts according to exclusion distance. The MSD will start measuring after exclusion distance.

figure e

3.2 Disjoint lightpath pair with minimum primary lightpath weight and constrained minimum spatial distance

Provisioning of Disjoint Pair with Minimum Primary Lightpath and Constrained Minimum Spatial Distance (DPMPLW) Problem: Find a pair of link-disjoint lightpaths \((P_u ,P_v )\) such that the path weight \(w_u\) of the primary lightpath \(P_u\) is minimized while the minimum spatial distance (MSD) is constrained by a value \(\alpha \).

$$\begin{aligned} \mathop {\hbox {Maximized}}\limits _{d_s } \left\{ {\mathop {\hbox {Minimized}}\limits _{(P_u ,P_v ),ds\le \alpha } \left\{ {w_1 ,w_2 ,w_3 ,\ldots ,w_k } \right\} } \right\} \end{aligned}$$
(2)

We proposed the DPMPLW algorithm in the context of the mentioned problem. The algorithm is divided into two parts, with the first part similar to our earlier DPMMSD algorithm. Lines 3–11 find the desired disjointed lightpaths pair with minimum path weight, and the MSD will be constrained by \(\alpha \). Very large \(\alpha \) can represent natural disasters, and small \(\alpha \) can represent construction-level failures.

figure f

3.3 Complexity analysis

Finding the disjoint pair of paths in undirected graphs is an NP-hard [46, 47]. The upper bound time complexity of Yen Algorithm is \(O(KN^{3})\) [33] where K is the number of shortest paths and N is the number of nodes. For small values of K, several related problems are shown to be NP-complete [46, 48, 49]. If we take very large values of K, the computing time will increase linearly including impact of number of links and their segments. For unbounded value of K,  all shortest paths will be discovered by Yen’s algorithm and so do disjoint pairs of lightpaths. Subsequently, the proposed algorithms will act as exact otherwise heuristics. Algorithms can modestly discard the processing of lightpath pairs having zero MSD, and solution may converge to polynomial time. The worst-case time complexity of both of our proposed algorithms is \(O(K^{2}L^{2}S_\mathrm{max}^2 )\), where L is the number of total fiber links and \(S_\mathrm{max} \) is the maximum number of fiber segments per fiber.

4 Simulation results

We simulated the performance of our algorithms using the European network, US network, and the random Erdős–Rényi and Watts–Strogatz networks. The Erdős–Rényi [50] networks have a fixed number of nodes with a random but equally likely number of edges. However, the Erdős–Rényi networks lack two essential characteristics witnessed in many real-world networks: do not have high clustering coefficients and do not account for the formation of hubs, whereas real-world networks are scale-free and obey power law for degree distribution [51]. The Watts–Strogatz networks address these two limitations, by exploiting small world properties. It has high clustering coefficient while retaining the short average path lengths of the Erdős–Rényi networks, by interpolating between the Erdős–Rényi network and a regular ring lattice [52]. The purpose of using random graph generators is to analyze the performance and efficiency of algorithms for probabilistic construction of networks with large girth and chromatic number while varying different parameters such as shortest paths (K), exclusion distance from the source and destination nodes \((\updelta )\), number of nodes and links and separation distance \((\alpha )\). In a real-life network, the performance of the proposed algorithms with increasing number of nodes and links was not possible to evaluate. Both algorithms are coded in MATLAB R2016a, and simulations are performed on \(3{\mathrm{th}}\) Generation Intel® Core i5-3210M 2.5 GHz machine of 6 GB RAM. All simulation results averaged over 1000 runs.

Fig. 3
figure 3

Geographically mapped European network

Fig. 4
figure 4

Geographically mapped US network

Figures 3 and 4 show a geodetic representation of the European network [53] and US Network [54], respectively, where nodes are mapped as per corresponding geodetic coordinates (latitudes and longitudes) in degrees. Figures 5 and 6 depict the examples of the MSD between two lightpaths on the European and US networks, respectively. Red and blue colored paths indicate the primary path and backup path of the disjoint pair, respectively.

Fig. 5
figure 5

Provisioning of disjoint pair of lightpaths in European network. a Graph of pair (DPMMSD) with \(\hbox {MSD} = 223.42\) km. b Graph of pair (DPMPLW) with \(\hbox {MSD} = 223.42\) km

Fig. 6
figure 6

Provisioning of disjoint pair of lightpaths in US network. a Graph of pair (DPMMSD) with \(\hbox {MSD} = 9.52\) km. b Graph of pair (DPMPLW) with \(\hbox {MSD} = 6.59\) km

Figure 7a shows the declining impact of \(\updelta \) on the computing times for our proposed algorithms in European network. As we increased \(\updelta \), more fiber segments are ignored from the measurement of MSD and reducing the computation time. Similarly, \(\updelta \) also affects the MSD as shown in Fig. 7b. When \(\updelta \) is increased to a certain value, then the MSD becomes constant.

Fig. 7
figure 7

Effect of excluding distance on computing time and MSD. a Excluding distance versus computing time. b Excluding distance versus MSD

The effect of the number shortest paths (K) on the computation of disjoint pairs and path lengths for both algorithms is shown in Fig. 8. The total number of disjoint path pairs depends on the total nodes and fiber links within the network. Figure 8b shows the variation of primary and backup path lengths by changing K of both algorithms. DPMMSD provisioned a disjoint lightpath pair without considering path lengths, while DPMPLW provisioned a disjoint lightpath pair with minimum primary path length.

Fig. 8
figure 8

Effect of K on computation of disjoint pairs and path lengths when \(\updelta = 5\) km, \(\upalpha = 250\) km. a Shortest paths versus disjoint pairs. b Shortest paths versus path lengths

During simulation, it was observed that most of the running time is consumed at finding and computing disjoint path pairs and their spatial distance. Figure 9 shows the K-Time graph for European network using our proposed algorithms. The processing time rises almost linearly when K is increased. For the European network, the maximum value of obtained K is 2037 (119 link-disjoint path pairs). The computation time will be constant when all possible K and disjoint pairs have been obtained and no further pair can be found by increasing K. The K-Time graph shows that both of our proposed algorithms have almost the same computation time.

Fig. 9
figure 9

Effect of K on computing time when \(\updelta = 5\) km, \(\upalpha = 250\) km

Fig. 10
figure 10

Performance evaluation of DPMMSD and DPMLPW on Erdős–Rényi networks

Fig. 11
figure 11

Performance evaluation of DPMMSD and DPMLPW on Watts–Strogatz networks

Input parameters like rewiring probability and node degrees have been fixed to 1 and 2, respectively, for both network generators. If node positions are assumed to follow a Poisson process in the geographical plane with the scaled Lebesgue mean measure, we can get node positions as geodetic points using bounds of a 4-dimensional vector in the form [\(\hbox {x}_{\mathrm{min}}\) \(\hbox {x}_{\mathrm{max}}\) \(\hbox {y}_{\mathrm{min}}\) \(\hbox {y}_{\mathrm{max}}\)] for a confined region. Through these positions, fiber links and their segments were generated with rewiring probability as 1 and node degree as 2 for both network generators. For random networks, links cannot be generated as curved or zigzag form; however, we assumed if fibers are laid down on earth for a long distance, then it can be curved, and we can divide it as two segments. Further, geo-intermediary points and the distance between these points were calculated over a great circle. Figures 10 and  11 graphically describe the performance of DPMMSD and DPMLPW on Erdős–Rényi and Watts–Strogatz networks, respectively. Networks are generated for nodes \(N=\left\{ {10,15,20,\ldots ,50} \right\} \) with links generated randomly using Poisson distribution. The value of K is taken as 1000, and the source and destination nodes are arbitrarily selected. It was observed that the number of disjoint pairs generated and computing times against nodes of Watts–Strogatz are more than that of Erdős–Rényi networks.

5 Conclusions and future work

In this paper, we have proposed two routing algorithms for provisioning a pair of link-disjoint lightpaths between two network nodes. Our first algorithm finds a pair of lightpaths with a maximum value of minimum spatial distance, while our second algorithm finds a pair of lightpaths with the path weight of primary lightpath minimized and constrained minimum spatial distance. Through simulation, we have shown that our first algorithm can increase network survivability against spatial-based concurrent fiber failures, albeit with higher path weights. Alternatively, our second algorithm put a constraint on the minimum spatial distance between the pair of lightpaths, while achieving the minimum path weight possible for the primary lightpath. We have also tested our algorithms using real-life optical network topologies, and two types of random network topologies.

In our future work, we will provide an exact solution using integer linear programming (ILP) and do a comparison with our proposed approach.