Next Article in Journal
Application of Generalized Logistic Function to Travelling Wave Solutions for a Class of Nonlinear Evolution Equations
Next Article in Special Issue
Application of Graph Structures in Computer Vision Tasks
Previous Article in Journal
Dynamical Analysis of Discrete-Time Two-Predators One-Prey Lotka–Volterra Model
Previous Article in Special Issue
Algorithm for Optimization of Inverse Problem Modeling in Fuzzy Cognitive Maps
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Construction of Dual Optimal Bidirectional Double-Loop Networks for Optimal Routing †

1
School of Artificial Intelligence, Beijing Normal University, Beijing 100875, China
2
School of Computer Science and Technology, An Hui University of Technology, Maanshan 243002, China
*
Author to whom correspondence should be addressed.
This paper is an extended version of our paper published in 2019 International Conference on Wireless Algorithms, Systems, and Applications (WASA 2019), Honolulu, HI, USA, 24–26 June 2019; pp. 587–595.
Mathematics 2022, 10(21), 4016; https://doi.org/10.3390/math10214016
Submission received: 4 September 2022 / Revised: 10 October 2022 / Accepted: 18 October 2022 / Published: 29 October 2022
(This article belongs to the Special Issue Advanced Graph Theory and Combinatorics)

Abstract

:
Bidirectional double-loop networks (BDLNs) are widely used in computer networks for their simplicity, symmetry and scalability. One common way to improve their performance is to decrease the diameter and average distance. Attempts have been made to find BDLNs with minimal diameters; however, such BDLNs will not necessarily have the minimum average distance. In this paper, we construct dual optimal BDLNs with minimum diameters and average distances using an efficient method based on coordinate embedding and transforming. First, we get the lower bounds of both the diameter and average distance by embedding a BDLN into Cartesian coordinates. Then, we construct tight optimal BDLNs that provide the aforementioned lower bounds based on an embedding graph. On the basis of node distribution regularity in tight optimal BDLNs, we construct dual optimal BDLNs with minimum diameters and average distances for any number of nodes. Finally, we present on-demand optimal message routing algorithms for the dual optimal BDLNs that we have constructed. The presented algorithms do not require routing tables and are efficient, requiring little computation.

1. Introduction

In recent years, data centers [1,2], cloud computing [3,4], edge computing [5,6], and the Internet of Things [7] have become research hotspots. The enhancement of computing power no longer simply relies on improving the processing capacity of a single computer, but rather, on increasing the number of computing devices to form a large-scale processing system. For systems employing a large number of computing devices, the question of what kind of interconnection structure is used to obtain the best performance is a research field of mathematics and computer science.
With the further expansion of network scale, to improve network performance, we not only need to consider the communication between nodes, but also the cost of the construction of the network. For networks with fixed nodes, the construction of connections among nodes is an important research topic; the goal is to achieve efficient communication and adequate fault tolerance.
When analyzing the network topology, components in the system are abstracted as vertexes, and the communication channels between two components as edges. In this way, the topology of a network is abstracted into a graph, which can be used as a mathematical model to study the topology of the network. Thus, the topology properties of networks can be studied using graph theory. For example, network information transmission delay is related to the diameter and average distance of the graph, while the network fault tolerance is attributed to the connectivity of the graph [8,9,10].
The study of topology is closely related to the development of computer networks. Early network topologies only included some simple topological structures [11], such as line arrays, single-loop networks (circles), star graphs, trees and complete graphs. Later, the topology transitioned to double-loop networks, Petersen graphs and hypercubes [12].
A double-loop network (DLN) is a widely used, interconnection topology in local area networks, as well as in parallel and distributed computing [13]. Because of its simplicity, symmetry and scalability, it is also applied in neural networks [14,15], the Internet of Things [16] and data center networks [17].
There are two types of DLNs: unidirectional double-loop networks (UDLNs) and bidirectional double-loop networks (BDLNs) [13]. As shown in Figure 1, A UDLN has N vertices 0, 1, …, N − 1, for each vertex i (0 ≤ i < N), and there are two unidirectional edges: ii + r(modN), ii + s(modN), 1 ≤ r < s < N. It is strongly connected if and only if N, r and s are relatively prime.
Definition 1. 
Unidirectional Double loop networks (UDLN) G = G(N;r,s), with 1 ≤ r < s < N and gcd(N,r,s) = 1 have vertex set V = {0, 1, …, N − 1}, and the adjacencies are defined by i→i + r(modN), i→i + s(modN) for i ∈ V.
Definition 2. 
Bidirectional Double loop networks (BDLN) G = G(N;±r,±s), with 1 ≤ r < s < N and gcd(N,r,s) = 1 have vertex set V = {0, 1, …, N − 1}, and the adjacencies are defined by i→i + r(modN), i→i − r(modN), i→i + s(modN), i→i − s(modN) for i ∈ V.
Unlike a UDLN, for each vertex i in a BDLN, there are four unidirectional edges: i→i + r(modN), ii + s(modN), iir(modN), iis(modN), represented as [+r], [+s], [−r], [−s] edge, respectively. Compared with a unidirectional double-loop network (UDLN), a BDLN can use both forward and backward edges to send messages. Hence, with a higher bandwidth and a smaller diameter, a BDLN is more resilient to node or link failures.
In network communication, information is transmitted from the source node to the destination node through storage and forwarding via several intermediate devices. If the distance between two nodes is too great, the information transmission will take more time; additionally, the longer the transmission path, the weaker the anti-interference ability. Thus, the distance among nodes is an important factor for the communication efficiency of the whole network. When analyzing the performance and efficiency of computer networks, two factors related to distance are important: maximum network transmission delay and average transmission delay. In graph theory, these factors are usually abstracted into two parameters: diameter and average distance [18].
Diameter, the maximum distance between any two nodes in the graph, has been the object of considerable attention in the context of BDLNs, as a small-diameter network can ensure the efficiency of communications. The lower bound of the diameter of a DLN is given in [19]; those authors also found many optimal DLNs whose diameters reach the lower bound. Great importance has been placed on other DLN network properties, such as fault tolerance [20] and message routing [21,22]; however, little work has focused on the average distance of BDLNs.
The diameter reflects the worst-case delay of communication between two nodes, while the average distance represents the average delay of communications. The average distance refers to the average of the distances between all pairs of points on the graph, which is used to indicate the centrality of the graph [18]. This concept was first used to evaluate building floor designs [23] and to study chemical molecular structures [24]; later, it was used extensively in mathematics and the analysis and design of computer systems and communication networks [25,26,27].
These parameters are important for BDLNs to measure message transmission delay. Taking an optimal BDLN as an example, the average distance is not necessarily the minimum. Some optimal BDLNs may have bigger average distances than non-optimal ones; when this happens, the overall efficiency of transmission is reduced.
Concerning the method to research double-loop networks, the L-shaped title (the Minimum Distance Diagram of UDLN is like an L-shaped title) is widely used in UDLN; it requires just four parameters [28]. This method, however, is not wholly applicable to BDLNs. Other structures, such as spiral rings [29] or trees [30], have been proposed to calculate the diameter of DLNs. Compared with the simplicity and intuition of the L-shape title method, spiral rings and trees are difficult to construct.
Naturally, we associate the graph with a coordinate system which represents a bridge between algebra and geometry, so that geometric issues can be tackled by algebraic methods [31]. In this paper, we propose an efficient method based on coordinate embedding and transforming to construct dual BDLNs for optimal routing.
Our main contributions are as follows:
  • To the best of our knowledge, this is the first work proposing the construction of dual optimal BDLNs for any number of nodes in which both the diameter and average distance are at their minima. We expand tight optimal BDLNs [22] to more general situations.
  • Embedding a BDLN into a coordinate system is useful for research of BDLNs, especially with regard to network properties such as the diameter and average distance. By means of coordinate transforming, we find node distribution regularity on the embedding graph of tight optimal BDLNs that achieves the lower bounds of both the diameter and average distance.
  • We present an on-demand optimal message routing algorithm for the dual optimal BDLN that we have constructed. The presented algorithms are efficient, requiring little computational overhead.
The rest of this paper is organized as follows: In Section 2, we provide a brief description of the embedding of BDLNs in Cartesian coordinates. In Section 3, we get the lower bounds of the diameter and average distance based on the embedding graph. In Section 4, we construct a kind of tight optimal BDLN that achieves the lower bounds of the diameter and average distance; we also find node distribution regularity on the embedding graph. In Section 5, we construct dual optimal BDLNs with minimum diameters and average distances for any number of nodes on the basis of node distribution regularity. We present on-demand optimal message routing algorithms for dual optimal BDLNs. Finally, we summarize our results and make some concluding remarks.

2. Embedding the BDLN into Cartesian Coordinates

2.1. Coordinate Embedding of BDLN

Once a message has been routed, it traverses a series of r and s edges to reach its destination. Supposing a message traverses from the source to the destination in a BDLN G N ; ± r , ± s , the routing may be represented as x 1 + r + x 2 r + y 1 + s + y 2 s , where x1, x2, y1, y2, are the number of [+r] edges, [−r] edges, [+s] edges, [−s] edges, respectively.
Lemma 1. 
If  x 1 + r + x 2 r + y 1 + s + y 2 s  is the optimal routing from node i to node j, then x1x2 = 0, y1y2 = 0.
Proof. 
Since [+r] is in the opposite direction to [−r], intuitively, if both edges exist simultaneously, the source node does not go any forward while the routing length adds two more. Then, either x1 or x2 is 0, as is y1 and y2. □
From this lemma, the optimal routing between x1 and x2 includes four cases: [+r], [+s]; [−r], [+s]; [+r], [−s]; and [−r], [−s]. Thus, a BDLN has a tabular representation where the X axis is represented by “r links” and the Y axis is represented by “s links”.
Without loss of generality, source node 0 is considered to be the origin because of the high degree of symmetry of the BDLN.
Definition 3. 
Visiting nodes of G N ; ± r , ± s  in Cartesian coordinates in the order of coordinates: (0,0), (0,−1), (−1,0), (0,1), (1,0), (0,−2), (−1,−1), (−2,0), (−1,1), (0,2), (1,−1), (2,0), (1,1). Location (x,y) on the plane is occupied by a node of k, where k 0 , 1 , , N 1  Location (x,y) also represents a coordinate number k′,  k = x r + y s m o d N . If k′ > 0, then k = k′. If k′ ≤ 0, then k = N + k′. Each k, represented by a corresponding grid in Cartesian coordinates, fills the tabular cell by turns if the number has not been visited previously. Such an embedding graph of G N ; ± r , ± s is called C G N ; ± r , ± s  in this paper.
Figure 1 shows BDLN G(8;±2,±3). Figure 2 shows the coordinate embedding graph of G(25;±1,±7) in Cartesian coordinates, i.e., CG(25;±1,±7).
Example 1. 
For the second layer, the nodes are visited in the order: (0,−2), (−1,−1), (−2,0), (−1,1), (0,2), (1,−1), (2,0), (1,1).
From C G N ; ± r , ± s , it is clear that the distance between node 0 and k is x + y if node k is at x , y .
Definition 4. 
Node-Set in layer i is defined as U i 1 i c  and the number of nodes in U i  is u i 1 i c  when the maximum layer is C. From the above definition, u 1 = 4 ,   U 1 = 0 , 1 , 1 , 0 , 0 , 1 , 1 , 0 ; here, the node is represented with its coordinates. In particular,  u 0 = 1 , U 0 = 0 , 0 . Location (x,y) on the plane is occupied by node V ( x , y ) c x c , c y c , V x , y = x r + y s m o d N ( x r + y s m o d N > 0 ) or V x , y = N + x r + y s m o d N ( x r + y s m o d N < 0 ) .
Example 2. 
In Figure 2, for CG(25;±1,±7), U 1 = 0 , 1 , 1 , 0 , 0 , 1 , 1 , 0 , V ( 0 , 1 ) = 18 , V ( 1 , 0 ) = 24 , V ( 0 , 1 ) = 7 , V ( 1 , 0 ) = 1 .

2.2. Properties of the Embedding Graph

From Definitions 3, 4, we can get some interesting properties of C G N ; ± r , ± s .
Property 1. 
If x , y U i , then i = x + y .
Property 2. 
If x , y U i , then V x , y + V x , y = N .
Property 3. 
In C G N ; ± r , ± s , 1 u i 4 i   1 i c ,  where u i  is the number of nodes.
Lemma 2. 
In C G N ; ± r , ± s , 2 c N 2 c 2 + 2 c + 1 , where c is the maximum layer.
Proof. 
We know that N = 1 + i = 1 c u i . From Property 3, it is clear that N 1 + 4 i = 1 c i . Therefore, we can conclude that N 2 c 2 + 2 c + 1 . □
The worst condition is that all the nodes are on the X or Y axis. In thas case, if N is even, then N = 2 c ; whereas if N odd, then N = 2 c + 1 under the condition g c d ( N , r , s ) = 1 and 1 r < s < N .
Notably, when N = 2 c or N = 2 c + 1 , G N ; ± r , ± s degenerates to a ring network. While N = 2 c 2 + 2 c + 1 , the vertices are fully located on the embedding graph. As shown in Figure 2, we call such a graph F C G N ; ± r , ± s (Full Coordinate Embedding Graph). F C G N ; ± r , ± s has more special properties than other C G N ; ± r , ± s due to its high degree of symmetry, as we will demonstrate in the following sections.
Lemma 3. 
Step i is the shortest distance from node 0 to all other nodes in U i .
Proof. 
Assuming k U i , then k x + y s ( mod N )   ( x + y s ( mod N ) > 0 )  or k N + x + y s ( mod N )   ( x + y s ( mod N ) < 0 ) , x + y = i 1 , i x i , i y i
  • Assuming x 1 , y 1 , where k x 1 + y 1 s ( mod N )   ( x 1 + y 1 s ( mod N ) > 0 )  or k N + x 1 + y 1 s ( mod N )   ( x 1 + y 1 s ( mod N ) < 0 ) , x 1 + y 1 = l < i , l < x 1 < l , l < y 1 < l . According to Definition 3, k  should be put in node set U h  in front of U i , which contradicts k U i .
  • Supposing that another x 2 , y 2  exists, where k x 2 + y 2 s ( mod N )   ( x 2 + y 2 s ( mod N ) > 0 )  or k N + x 2 + y 2 s ( mod N )   ( x 2 + y 2 s ( mod N ) < 0 ) , x 2 + y 2 = l > i , l < x 2 < l , l < y 2 < l ; According to Definition 3, k  should be put in node set U j  followed by node set U i , which contradicts k U i .
Therefore, step i is the shortest distance from node 0 to all other nodes in U i . □
Combining Lemma 3 with Property 1, we have:
Theorem 1. 
In C G N ; ± r , ± s , the shortest distance from node 0 to any other node x , y  in  U i  is x + y , where x , y U i .

3. Diameter and Average Distance of BDLN in Cartesian Coordinates

Embedding a BDLN into a coordinates system is useful for research of BDLNs. In this section, we get the lower bounds of the diameter and average distance of a BDLN based on the embedding graph.

3.1. Diameter

In this paper, d denotes the diameter of G N ; ± r , ± s .
Lemma 4. 
Maximum layer c is the diameter of double-loop network G N ; ± r , ± s .
Proof. 
Diameter d of the double-loop network G N ; ± r , ± s is defined as d = max{d(i,j)}, where d(i,j) is the shortest distance from node i to node j. Since BDLN is highly symmetric, its diameter can also be calculated from d = max{d(0,j)}. From Lemma 3, nodes with the shortest distance from 0 to other nodes fall into node-set {1, 2, … c}. It is clear that max{1, 2, … c} = u. Therefore, d = c. □
Combining Lemma 2 with Lemma 4, we derive the following lemma:
Lemma 5. 
2 d N 2 d 2 + 2 d + 1 .
From Lemma 5, we know the lower bound diameter of G N ; ± r , ± s is l b d N = 2 N 1 1 / 2 ; here, X is the minimum integer, which is greater than X.

3.2. Average Distance

Definition 5. 
The average distance of BDLN G N ; ± r , ± s is:
a v G N ; ± r , ± s = 1 N i = 0 N 1 1 N 1 j = 0 N 1 d i j
d i j = 0 i = j , where d i j is the shortest distance from node i to node j. Equally, a v g d N ; ± r , ± s = 1 N 1 i = 1 N 1 d i , and d i is the shortest distance from node 0 to node i.
From Definition 5 and Theorem 1, we derive the following lemma:
Lemma 6. 
To all nodes x i , y i in the embedding graph, x i , y i U i , 1 ≤ i ≤ d, the average distance of BDLN is:
a v G N ; ± r , ± s = 1 N 1 ( x i + y i )
Lemma 7.
a v G N ; ± r , ± s 2 d d + 1 2 d + 1 / 3 N 1
Proof. 
From Lemma 6 and Property 1, 3, we have
a v G N ; ± r , ± s 4 N 1 i = 1 d i 2 = 2 d d + 1 2 d + 1 / 3 N 1
We can now summarize and state the lower bound of the average distance in the form of the following lemma:
Lemma 8. 
In C G N ; ± r , ± s , the average distance a v g d N ; ± r , ± s 2 N 1 / 3 , if and only if N = 2d2 + 2d + 1, then a v G N ; ± r , ± s = 2 N 1 / 3 .
The lower bound of the average distance of G N ; ± r ,   ± s can be determined by
lba N = 2 N 1 / 3

4. Tight optimal BDLN

From the embedding graph of BDLN in the Cartesian coordinates, we know that in F C G N ; ± r , ± s , both the diameter and average distance have reached their lower bounds.

4.1. Construction of Tight Optimal BDLN

Definition 6. 
A G N ; ± r , ± s is a tight optimal BDLN when both the diameter and average distance reach their lower bounds, i.e., B e s t G N ; ± r , ± s .
Lemma 9. 
For a tight optimal BDLN, G N ; ± r , ± s . When its diameter is d, then N = 2 d 2 + 2 d + 1 and the average distance is 2 d + 1 / 3 .
Proof. 
For a tight optimal BDLN   G N ; ± r , ± s ,   N = 1 + 4 i = 1 d i = 2 d 2 + 2 d + 1 . Putting this into Lemma 7, we get an average distance of a tight optimal BDLN of (2d+1)/3. □
Property 4. 
Based on Definition 3, 4, the four top nodes in F u l l C G N ; ± r , ± s are U d = d , 0 , 0 , d , d , 0 , 0 , d , V ( d , 0 ) = r d , V ( 0 , d ) S d m o d N , V ( d , 0 ) = N r d , and V ( 0 , d ) = r d + r .
Theorem 2. 
In B e s t G N ; ± r , ± s , for a given r, the corresponding s is:
s 2 d + 1 r m o d N
Proof. 
From Property 4 and Property 2, we have s d m o d N + r d + 1 = N = 2 d 2 + 2 d + 1 .
So, s 2 d + 1 r m o d N . □
From Theorem 2, we can construct B e s t G N ; ± r , ± s as G 2 d 2 + 2 d + 1 ; ± r , ± 2 d + 1 r m o d N .
Notably, when r = 1, s = 2 d + 1 , the corresponding dual optimal BDLN is G 2 d 2 + 2 d + 1 ; ± 1 , ± 2 d + 1 ; while when r = d, s = d + 1, the correlative dual optimal BDLN is G 2 d 2 + 2 d + 1 ; ± d , ± d + 1 .
Since network structures of this kind are relatively more stable and well-regulated, we will focus on them in the following sections. Without loss of generality, a tight optimal BDLN mainly refers to this kind of BDLN and is represented by Gd with diameter d, i.e., Gd = G 2 d 2 + 2 d + 1 ; ± d , ± d + 1 .
Table 1 shows the value of r and the related s of the tight optimal diameter for d = 1~2. Note that r < s, and for each s, there is another s: N -s.

4.2. Coordinates Transforming of BDLN

Since a BDLN is vertex transitive, any node can be relocated in the coordinates. Taking node 0 for an example, it can be relocated in the first (d,d + 1) and fourth quadrants (d + 1,−d). As shown in Figure 3, ρ and σ are defined as vectors from the origin to the copies of node 0 at (d,d + 1) and (d + 1,−d), respectively. That is, ρ = d x + ( d + 1 ) y and σ = ( d + 1 ) x d y , respectively.
By means of coordinate transformations, any node can be relocated with ρ or σ or a combination thereof. Letting u′ and u″ be two copies of vertex u(x0,y0), u′ and u″ can be reached from u by placing vector ρ and σ at u, respectively. Thus, the coordinates of u′ and u″ are (x0 + d + 1, y0d) and (x0 + d + 1, y0d), respectively.
In particular, vertices are located according to the order of the number sequence on line y = −x + a on the embedding graph (see Figure 4). Without loss of generality, Theorem 3 is compliant with the embedding graph of Gd.
Theorem 3 
[22]. The nodes are distributed successively on the line y = −x + a ( d     a d ) in the embedding graph of Gd according to their number order.

5. Dual Optimal BDLN

5.1. Construction of Dual Optimal BDLN

If N ≠ 2d2 + 2d + 1, although the diameter or average distance of BDLN G N ; ± r , ± s cannot reach their lower bounds, they can achieve the minimum value. For example, when N = 10, according to Lemma 8 (4), the lower bound average distance of G 10 ; ± r , ± s is 1.308 and the corresponding lower bound of diameter is 2. In this case, 10 ≠ 2d2 + 2d + 1 = 13 (d = 2), which means that the average distance of G 10 ; ± r , ± s cannot reach 1.308; however, as shown in Table 2, we still find that the average distance of G 10 ; ± 2 , ± 3 and G 10 ; ± 2 , ± 7 are the minimum among G 10 ; ± r , ± s . Note that G 10 ; ± 2 , ± 3 and G 10 ; ± 2 , ± 7 are isomorphic BDLNs. We also find that the coordinate embedding graphs of G 10 ; ± 2 , ± 3 and G 10 ; ± 2 , ± 7 are more compact than the others in Figure 5.
Definition 7. 
Given the number of nodes N,  G N ; ± r , ± s  is called a dual optimal BDLN when both the diameter and average distance are the minimum among those BDLNs with the same number of nodes N.
Comparing Definition 7 with Definition 6, we see that a tight optimal BDLN is a special kind of dual optimal BDLN. Given the number of nodes N, we need to determine how to construct a dual optimal BDLN whose diameter and average distance are the minimum.
From Theorem 3, we know that the nodes are distributed on line y = −x + a by their number order. Further, they can be divided into two groups according to their coordinate numbers.
Case 1: The coordinate numbers of the positive integers are 1, 2, 3, …, d(d + 1) and the associated vertices are the same number, i.e., 1, 2, 3, …, d(d + 1).
Case 2: The coordinate numbers of the other group are 0, −1, −2, −3, …, −d(d + 1) and the associated vertices are N, N − 1, N − 2, N – 3, …, Nd(d + 1).
In Case 2, for vertices whose coordinate number is not greater than 0, their corresponding number will change with N. Let us consider two cases, i.e., adding or deleting x vertices to G d , to construct a dual optimal BDLN. To simplify the problem, we first consider 1 x d + 1 .
(1)
Adding vertices to G d
If N is 1, the number series in Case 2 is N + 1, N, N − 1, N − 2, …, N − d(d + 1) + 1. Then, Nd(d + 1) should be removed from the series. It is easy to find that if N adds x1 vertices, the number series Nd(d + 1), Nd(d + 1)+1, …, Nd(d + 1) + x1 should be removed, appearing at (0,−d), (−1,−d + 1) … on line y = −xd.
Since the nodes can be relocated someplace in the embedding graph of Gd, as shown in Figure 6, the nodes on line y = −xd can be relocated through coordinate transforming.
0 , d ρ d , 1
1 , d + 1 ρ 1 + d , 2
d , 0 ρ 0 , d + 1
By placing vector ρ at (0,−d), (−1,−d + 1), …, (−d,0), we get copies at (d,1), (−1 + d,2), …, (0,d + 1).
In this case, the tile is obtained by adding 1~d + 1 squares along the direction at (d,1) to (0,d + 1), as illustrated in Figure 7, until, at most, d + 1 vertices are added to the embedding graph.
Lemma 10. 
When adding x ( 1 x d + 1 ) vertices to  G d , if all the x vertices have a distance from the origin of d + 1, then  G N + x ; ± d , ± d + 1  is a dual optimal BDLN.
Proof. 
Suppose the diameter of G N + x ; ± d , ± d + 1 is not the minimum. In this case, there should be a vertex u whose distance from the origin is less than d + 1. Since the vertices are all located on Gd, vertex u meeting such conditions is an impossibility. Therefore, the diameter of G N + x ; ± d , ± d + 1 is the minimum, as is the average distance.
As such, G N + x ; ± d , ± d + 1 is a dual optimal BDLN with a minimum diameter and average distance. □
(2)
Deleting vertices from Gd
Similar to the case of adding vertices, if we subtract 1 from N, the vertex at (0,−d) should be removed in the embedding graph, while if we subtract x from N, the vertices at (0,−d),(−1,−d + 1) … on line y = −xd in the direction of the upper right until, at most, d + 1 should be removed from the embedding graph (see Figure 8).
For given node number N, the algorithm to construct the relevant dual optimal BDLN is presented schematically in Figure 9.
Step 1: Calculating a feasible diameter for the BDLN
d = 2 N 1 1 ) / 2
From Lemma 5 and Lemma 8, we can determine that N ≤ 2d2 + 2d + 1.
Step 2: If 2d2 + 2d + 1 = N, then the tight optimal BDLN G 2 d 2 + 2 d + 1 ; ± d , ± d + 1 is the relevant dual optimal BDLN. Note that:
N d = 2 d 2 + 2 d + 1 ,   G d = G 2 d 2 + 2 d + 1 ; ± d , ± d + 1
Step 3: If 0 < N d N 2 d + 1 , we construct the relevant dual optimal BDLN G N ; ± d , ± d + 1 by adding vertices to Gd in two cases:
0 < N d N d + 1
In this case, dual optimal BDLN G N ; ± d , ± d + 1 is constructed by deleting N d N squares at (0,−d),(−1,−d + 1) … to Gd, as shown in Figure 8.
d + 1 < N d N 2 d + 1
Except for the d + 1 vertices deleted along the direction (0,−d), (−1,−d + 1) … (−d,0) in case ①, we construct a dual optimal BDLN G N ; ± d , ± d + 1 by deleting N d N d + 1 squares at (0,d), (1,d − 1) … to Gd, as illustrated in Figure 10.
Step 4: If N d N > 2 d + 1 , we construct the relevant dual optimal BDLN  G N ; ± d 1 , ± d by adding vertices to G 2 d 2 2 d + 1 ; ± d 1 , ± d in two cases.
Note that:
N d 1 = 2 ( d 1 ) 2 + 2 d 1 + 1 = 2 d 2 2 d + 1
G d 1 = G 2 d 2 2 d + 1 ; ± d 1 , ± d
0 < N N d 1 d
We construct a dual optimal BDLN G N ; ± d 1 , ± d by adding N N d 1 squares at (−1 + d,1), (−2 + d,2) … to Gd−1, as shown in Figure 7.
d < N N d 1 2 d
Except for the incremental d vertices added along direction (−1 + d,1), (−2 + d,2) … (0,d) in case ③, we construct dual optimal BDLN G N ; ± d 1 , ± d by adding surplus N N d 1 d squares at (1 − d, −1),(2 − d, −2) … to Gd−1, as shown in Figure 11.
(3)
For some special cases, adding vertices to Gd−1 or deleting vertices to Gd can yield the same diameter and average distance in the dual optimal BDLN.
Suppose the number of nodes of BDLN is N.
① adding x1 vertices to Gd−1
N = Nd−1 + x1 = 2(d − 1)2 + 2(d − 1) + 1 + x1
② deleting x2 vertices to Gd
N = Ndx2 = 2d2 + 2d + 1 + x2
So, we get: x1 + x2 = 4d
If x1 + x2 = 4d, it is not difficult to certify that adding x1 vertices to Gd−1 or deleting x2 vertices to Gd can afford the same diameter and average distance.
By combining x1 + x2 = 4d with restrictive conditions 1 x 1 2 d , 1 x 2 2 d + 1 , we have:
x 1 = 2 d 1 ,   x 2 = 2 d + 1
x 1 = 2 d 1 ,   x 2 = 2 d + 1
x 1 = 2 d ,   x 2 = 2 d
Therefore, there are three pairs of dual optimal BDLNs with the same diameter and average distance:
G 2 d 2 1 ; ± d 1 , ± d and G 2 d 2 1 ; ± d , ± d + 1
G 2 d 2 ; ± d 1 , ± d and G 2 d 2 ; ± d , ± d + 1
G 2 d 2 + 1 ; ± d 1 , ± d and G 2 d 2 + 1 ; ± d , ± d + 1

5.2. Optimal Routing of Dual Optimal BDLN

Once a message has been routed in a BDLN, it traverses a series of r and s edges to reach its destination. Suppose x and y are the number of r and s edges in the route, respectively, then the length of the route is x + y. When the length of the route is minimum, it is defined as the optimal route. As illustrated in Theorem 1, the shortest distance from source vertex 0 to destination vertex u is x + y , where x   and   y   are coordinate numbers of vertex u in the embedding graph of BDLN. As shown in Figure 11, the coordinates of destination vertex 14 in the embedding graph of G 27 ; ± 3 , ± 4 are (2,2), which means that a message can be transferred from source vertex 0 to destination vertex 14 by taking 2[+r] edges and 2[+s] edges. Therefore, the optimal route between the vertexes in the embedding graph can be represented with coordinates of vertexes.
The optimal routing of a dual optimal BDLN is presented schematically in Algorithm 1. Since the optimal route can be expressed with coordinates of a vertex, now, we introduce the algorithm to calculate the coordinates (x,y) of vertex u for a given dual optimal BDLN G N ; ± d , ± d + 1 :
(1)
N = N d = 2 d 2 + 2 d + 1
In this case, the dual optimal BDLN G N ; ± d , ± d + 1 is tight optimal BDLN G 2 d 2 + 2 d + 1 ; ± d , ± d + 1 , represented as Gd. The optimal routing of the tight optimal BDLN is given in [22].
(2)
N > N d
In this case, the given dual optimal BDLN is constructed by adding vertices to Gd. Note that ∆n = NNd
0 < ud(d + 1)
a = 2 u + d / 2 d + 1 , x = a(d + 1) − u, y = −x + a
d(d + 1) < ud(d + 1) + ∆n
Here, if 1 ≤ ∆nd + 1, then ∆n′ = ∆n, whereas if ∆n > d + 1, then ∆n′ = d + 1, x = (d + 1)2u, y = ud(d + 1)
Other cases
When u′ = Nu, we first calculate the coordinate (x′,y′) of u′; then, the coordinates of u are x = −x′, y = −y′.
(3)
N < N d
In this case, the given dual optimal BDLN is constructed by deleting vertices to Gd. Note that ∆n = NdN.
0 < ud(d + 1) − ∆n
Here, if 1 ≤ ∆nd + 1, then ∆n′ = 0, whereas if ∆n > d + 1, then ∆n′ = ∆n − (d + 1).
a = 2 u + d / 2 d + 1 , x = a(d + 1) − u, y = −x + a
Other cases
When u′ = Nu, we first calculate the coordinate (x′,y′) of u′; then, the coordinates of u are x = −x′, y = −y′.
Algorithm 1: Optimal routing of dual optimal BDLN G N ; ± d , ± d + 1
input:  G N ; ± d , ± d + 1 , source vertex 0, destination vertex u
output: coordinates (x,y) of vertex u
Calculate N d = 2 d 2 + 2 d + 1 , ∆n = NdN
If  N = N d  then
 Tight optimal routing of Gd
Else if  N > N d
  If 0 < ud(d + 1) then
    Calculate a = 2 u + d / 2 d + 1
    x = a(d + 1) − u, y = −x + a
  Else
    if ∆n > d + 1 thenn = d + 1
     if d(d + 1) < ud(d + 1) + ∆n then
      x = (d + 1)2u, y = ud(d + 1)
     Else
       u′ = Nu
      Calculate coordinate (x′,y′) of u
      x = −x′, y = −y
    Endif
  Endif
Else
  ∆n = NdN
  ifn > d + 1 then
      ∆n = ∆n − (d + 1)
  Else
      ∆n = 0
  Endif
  if 0 < ud(d + 1) − ∆n then
      Calculate a = 2 u + d / 2 d + 1
      x = a(d + 1) − u, y = −x + a
  Else
      u′ = Nu, calculate coordinate (x′,y′) of u
      x = −x′, y = −y
  Endif
Endif
return x, y
We have implemented an optimal routing demo system in the .NET C# language. The system was created on a PC with 18 cores (3 GHz Intel Xeon Platinum, 8124 M). As shown in Figure 12, the system could show the embedding graph and optimal routing of the BDLN, which is useful for research of dual optimal BDLN.
To test the running speed of the optimal routing, we noted the running time results of the optimal routing between any two nodes in the dual optimal BDLN with different numbers of nodes. In order to test the efficiency of the routing in the system, we compared the computation time to determine the optimal routing with those of two other algorithms. The first algorithm was Breadth-first search (BFS); this algorithm is used to search graph data to quickly visit each node in a graph. The second algorithm is called HP [13]; it is based on four DLN parameters. As shown in Figure 13, with a growing number of nodes, the computation time required to determine the optimal routing increases significantly when using the BFS and HP algorithms; in contrast, using our proposed algorithm, the computation time increased only minimally. Therefore, our algorithm can reduce the running time costs when dealing with large numbers of nodes.
By comparing the running speed of the optimal routing between dual optimal BDLN and other BDLNs (non-dual optimal BDLNs), as shown in Figure 14, with an increasing number of nodes, the computational time of the latter increased more than that of the former. Thus, our dual optimal BDLN can effectively improve the running speed of the optimal routing.

5.3. Average Distance of the Dual Optimal BDLN

(1)
When adding x1 vertices to Gd, the average distance of the newly constructed BDLN G N + x 1 ; ± d , ± d + 1 is:
a v G N + x 1 ; ± d , ± d + 1 = a v G d N 1 + x 1 d + 1 / N + x 1 1
Here, N = 2 d 2 + 2 d + 1 , a v G d = 2 d 2 d + 1 d + 1 / 3 N 1 , 1 x 1 2 d + 1 .
From the above equations, it is not difficult to see that average distance of BDLN G N + x 1 ; ± d , ± d + 1 increases as x1 increases.
(2)
When deleting x2 vertices from Gd, the average distance of the newly constructed BDLN G N x 2 ; ± d , ± d + 1 is:
a v G N x 2 ; ± d , ± d + 1 = a v G d N 1 x 2 d + 1 / N x 2 1
Here, N = 2 d 2 + 2 d + 1 , a v G d = 2 d 2 d + 1 d + 1 / 3 N 1 , 1 x 2 2 d + 1 .
Similar to the above, the average distance of BDLN G N + x 1 ; ± d , ± d + 1 decreases as x2 decreases.
Combining these two cases, we can state that average distance increases with the number of nodes in the dual optimal BDLN, as shown in Figure 15. The X axis represents the number of nodes and the Y axis the diameter or average distance.

6. Conclusions

We made a thorough inquiry of the diameter and average distance of a BDLN using an efficient method based on coordinate embedding and transforming. Our method can also be used for large-scaled graphs. Once the large-scaled graph data has been successfully embedded in the coordinate system, the query speed of the graph was greatly improved, as each node could be located according to its coordinates.
For a tight optimal BDLN [22], the number of nodes should follow the equation N = 2d2 +2d + 1, where d is the diameter of BDLN. If N ≠ 2d2 + 2d + 1, although diameter or average distance cannot reach their lower bounds, they can achieve the minimum values. To address this issue, we propose a dual optimal BDLN for any given number of nodes. We expanded a tight optimal BDLN to suit more general situations.
Because of the minimum of both diameter and average distance, it is evident that the dual optimal BDLN constructed in this paper yielded better performance compared with non-dual optimal ones, as verified by experiments. By means of coordinate embedding and transforming in the coordinate system, each node of the BDLN could be located, thereby simplifying the message routing. The on-demand optimal routing algorithms presented in this paper do not require routing tables and are efficient, requiring little computational overhead.

Author Contributions

S.W. contributed to supervision and project administration. H.L. contributed to methodology, validation and editing, X.L. contributed to review and embellishment. All authors have read and agreed to the published version of the manuscript.

Funding

This work has been supported by National Key R&D Program of China (No. 2019YFB2102600), National Natural Science Foundation of China (No. 61772044).

Data Availability Statement

The data used to support the findings of this study are available from the authors upon request.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

DLNDouble-loop networks
BDLNBidirectional Double-loop networks
UDLNUnidirectional Double-loop network
BFSBreadth First Search

References

  1. Alashaikh, A.; Alanazi, E.; Al-Fuqaha, A. A Survey on the Use of Preferences for Virtual Machine Placement in Cloud Data Centers. ACM Comput. Surv. 2021, 54, 1–39. [Google Scholar] [CrossRef]
  2. Das, S.; Sahni, S. Two-Aggregator Topology Optimization Using Single Paths in Data Center Networks. IEEE Trans. Cloud Comput. 2021, 9, 807–820. [Google Scholar] [CrossRef]
  3. Zou, J.; He, D.; Zeadally, S.; Kumar, N.; Wang, H.; Choo, K.K.R. Integrated Blockchain and Cloud Computing Systems: A Systematic Survey, Solutions, and Challenges. ACM Comput. Surv. 2022, 54, 1–36. [Google Scholar] [CrossRef]
  4. Zhang, W.; Wen, Y. Energy-Efficient Task Execution for Application as a General Topology in Mobile Cloud Computing. IEEE Trans. Cloud Comput. 2018, 6, 708–719. [Google Scholar] [CrossRef]
  5. Liu, B.; Luo, Z.Q.; Chen, H.B.; Li, C.J. A Survey of State-of-the-art on Edge Computing: Theoretical Models, Technologies, Directions, and Development Paths. IEEE Access 2022, 10, 54038–54063. [Google Scholar] [CrossRef]
  6. Liu, B.X.; Cao, Y.; Zhang, Y.; Jiang, T. A Distributed Framework for Task Offloading in Edge Computing Networks of Arbitrary Topology. IEEE Trans. Wirel. Commun. 2020, 19, 2855–2867. [Google Scholar] [CrossRef]
  7. Chen, N.; Qiu, T.; Daneshmand, M.; Wu, D.O. Robust Networking: Dynamic Topology Evolution Learning for Internet of Things. ACM Trans. Sens. Netw. 2021, 17, 1–23. [Google Scholar] [CrossRef]
  8. Meng, Y.; Liu, X.Y.; Dai, L.; Huang, H. Graph Similarity-Based Maximum Stable Subgraph Extraction of Information Topology from a Vehicular Network. IEEE Trans. Intell. Transp. Syst. 2022, 23, 355–367. [Google Scholar] [CrossRef]
  9. Zhang, Y.; Wang, H.; Jia, M.; Wang, J.; Li, D.; Xue, G.; Tan, K.-L. TopoX: Topology Refactorization for Minimizing Network Communication in Graph Computations. IEEE/ACM Trans. Netw. 2020, 28, 2768–2782. [Google Scholar] [CrossRef]
  10. Jayasumana, A.P.; Paffenroth, R.; Mahindre, G.; Ramasamy, S.; Gajamannage, K. Network Topology Mapping from Partial Virtual Coordinates and Graph Geodesics. IEEE/ACM Trans. Netw. 2019, 27, 2405–2417. [Google Scholar] [CrossRef] [Green Version]
  11. Feng, T.Y. A Survey of Interconnection Networks. Computer 1981, 14, 12–27. [Google Scholar] [CrossRef]
  12. Liu, D.; Li, P.S.; Zhang, B.C. Component edge connectivity of hypercube-like networks. Theor. Comput. Sci. 2022, 911, 19–25. [Google Scholar] [CrossRef]
  13. Hettiehe, P.; Yan, H. An optimal Fault-Tolerant Routing Algorithm for Weighted Bidirectional double-loop networks. IEEE Trans. Parallel Ditributed Syst. 2005, 16, 841–952. [Google Scholar]
  14. Fei, J.; Lu, C. Adaptive Sliding Mode Control of Dynamic Systems Using Double Loop Recurrent Neural Network Structure. IEEE Trans. Neural Netw. Learn. Syst. 2018, 29, 1275–1286. [Google Scholar] [CrossRef] [PubMed]
  15. Fei, J.; Feng, Z. Fractional-Order Finite-Time Super-Twisting Sliding Mode Control of Micro Gyroscope Based on Double-Loop Fuzzy Neural Network. IEEE Trans. Syst. Man Cybern. Syst. 2021, 51, 7692–7706. [Google Scholar] [CrossRef]
  16. Mukherjee, A.; Deb, P.; Misra, S. Timed Loops for Distributed Storage in Wireless Networks. IEEE Trans. Parallel Ditributed Syst. 2022, 33, 698–709. [Google Scholar] [CrossRef]
  17. Chen, Y.B.; Li, Y.; Zheng, X. Research on Undirected Double-Loop Data Center Networks. In Proceedings of the International Conference on Advanced Cloud and Big Data, Huangshan, China, 20–22 November 2014. [Google Scholar]
  18. Garijo, D.; Márquez, A.; Silveira, R.I. Continuous mean distance of a weighted graph. arXiv 2021, arXiv:2103.11676. [Google Scholar]
  19. Zhou, J.Q. An algorithm to find k-tight optimal double-loop networks. Ars Comb. 2011, 98, 423–432. [Google Scholar]
  20. Chen, Y.B.; Li, Y.; Chen, T. Optimal fault-tolerant routing algorithm and fault-tolerant diameter in directed double-loop networks. Theor. Comput. Sci. 2013, 468, 50–58. [Google Scholar] [CrossRef]
  21. Chen, Z.; Shen, H. Embedding Meshes and Tori on Double-Loop Networks of the Same Size. IEEE Trans. Comput. 2011, 60, 1157–1168. [Google Scholar] [CrossRef]
  22. Liu, H.; Wang, S.L. Optimal Routing of tight optimal Bidirectional Double-loop Networks. In Proceedings of the International Conference on Wireless Algorithms, Systems and Application, Honolulu, HI, USA, 24–26 June 2019. [Google Scholar]
  23. March, L.; Steadman, P. The Geometry of Environment; Royal Institute of British Architects: London, UK, 1971. [Google Scholar]
  24. Randić, M. Characterization of atoms, molecules and classes of molecules based on paths enumerations. Match 1979, 7, 5–64. [Google Scholar]
  25. Bedi, A.K.; Sunkaria, R.K. Mean distance local binary pattern: A novel technique for color and texture image retrieval for liver ultrasound images. Multim. Tools Appl. 2021, 80, 20773–20802. [Google Scholar] [CrossRef]
  26. Gou, J.P.; Ma, H.X.; Ou, W.H.; Zeng, S.N.; Rao, Y.B.; Yang, H.B. A generalized mean distance-based k-nearest neighbor classifier. Expert Syst. Appl. 2019, 115, 356–372. [Google Scholar] [CrossRef]
  27. Klavzar, S.; Manuel, P.; Nadjafi-Arani, M.J.; Rajan, R.S.; Grigorious, C.; Stephen, S. Average Distance in Interconnection Networks via Reduction Theorems for Vertex-Weighted Graphs. Comput. J. 2016, 59, 1900–1910. [Google Scholar] [CrossRef] [Green Version]
  28. Wong, C.K.; Coppersmith, D.A. combinatorial problem related to multi-module memory organizations. J. ACM 1974, 21, 392–402. [Google Scholar] [CrossRef]
  29. Fang, M.Y.; Zhao, B.H. Method to calculate the diameter of undirected double-loop networks G(N;±1,±s). J. Commun. 2007, 28, 124–129. [Google Scholar]
  30. Li, Y.; Chen, Y.B. The algorithm to calculate the diameter of undirected double-loop networks G(N;±r,±s) based on tree. J. Huazhong Univ. Sci. Technol. (Natl. Sci. Ed.) 2009, 37, 8–11. [Google Scholar]
  31. Liu, H.; Lin, Z.; Ahmad, W. Network(graph) data research in the coordinate system. Math. Found. Comput. 2018, 1, 1–10. [Google Scholar]
Figure 1. BDLN G(8;±2,±3) & UDLN G(8;2,3).
Figure 1. BDLN G(8;±2,±3) & UDLN G(8;2,3).
Mathematics 10 04016 g001
Figure 2. CG(25;±1,±7).
Figure 2. CG(25;±1,±7).
Mathematics 10 04016 g002
Figure 3. Vectors of copies of node 0.
Figure 3. Vectors of copies of node 0.
Mathematics 10 04016 g003
Figure 4. Number sequence on line y = −x + a.
Figure 4. Number sequence on line y = −x + a.
Mathematics 10 04016 g004
Figure 5. C G 10 ; ± 2 , ± s .
Figure 5. C G 10 ; ± 2 , ± s .
Mathematics 10 04016 g005
Figure 6. Coordinate transforming of BDLN G2.
Figure 6. Coordinate transforming of BDLN G2.
Mathematics 10 04016 g006
Figure 7. Adding vertices to Gd.
Figure 7. Adding vertices to Gd.
Mathematics 10 04016 g007
Figure 8. Deleting vertices from Gd.
Figure 8. Deleting vertices from Gd.
Mathematics 10 04016 g008
Figure 9. Algorithm for constructing a dual optimal BDLN.
Figure 9. Algorithm for constructing a dual optimal BDLN.
Mathematics 10 04016 g009
Figure 10. Deleting the other d + 1 layer vertices from Gd.
Figure 10. Deleting the other d + 1 layer vertices from Gd.
Mathematics 10 04016 g010
Figure 11. Adding the other d + 1 layer vertices to Gd−1.
Figure 11. Adding the other d + 1 layer vertices to Gd−1.
Mathematics 10 04016 g011
Figure 12. Optimal routing of dual optimal BDLN.
Figure 12. Optimal routing of dual optimal BDLN.
Mathematics 10 04016 g012
Figure 13. Computational time to determine the optimal routing of dual optimal BDLNs.
Figure 13. Computational time to determine the optimal routing of dual optimal BDLNs.
Mathematics 10 04016 g013
Figure 14. Cost time of optimal routing of dual optimal BDLN and other BDLNs.
Figure 14. Cost time of optimal routing of dual optimal BDLN and other BDLNs.
Mathematics 10 04016 g014
Figure 15. Diameter and average distance of the dual BDLN.
Figure 15. Diameter and average distance of the dual BDLN.
Mathematics 10 04016 g015
Table 1. B e s t G N ; ± r , ± s for diameter = 1, 2.
Table 1. B e s t G N ; ± r , ± s for diameter = 1, 2.
DiameterAverage DistanceNrS
10.800512
24
34
21.5381315
23
311
47
512
69
Table 2. Diameter and Average Distance of G 10 ; ± 2 , ± s .
Table 2. Diameter and Average Distance of G 10 ; ± 2 , ± s .
NrSDiameterAverage Distance
102321.4
531.7
721.4
931.5
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Liu, H.; Li, X.; Wang, S. Construction of Dual Optimal Bidirectional Double-Loop Networks for Optimal Routing. Mathematics 2022, 10, 4016. https://doi.org/10.3390/math10214016

AMA Style

Liu H, Li X, Wang S. Construction of Dual Optimal Bidirectional Double-Loop Networks for Optimal Routing. Mathematics. 2022; 10(21):4016. https://doi.org/10.3390/math10214016

Chicago/Turabian Style

Liu, Hui, Xiaowan Li, and Shenling Wang. 2022. "Construction of Dual Optimal Bidirectional Double-Loop Networks for Optimal Routing" Mathematics 10, no. 21: 4016. https://doi.org/10.3390/math10214016

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop