1. Introduction
In recent years, network traffic has been increasing with the increase in applications using the Internet. This can be attributed to the growth of social games and video distribution services, which are becoming higher quality. Traffic volume per subscription is expected to increase approximately 14 times by 2030 compared to current traffic volumes [
1]. In addition to PCs and smartphones, the development of the Internet of Things (IoT) [
2] has led to an era in which automobiles and home appliances are connected to the Internet, and various terminals are sending packets. By 2030, the number of IoT devices is expected to exceed about 29 billion [
3]. Routing must be performed to ensure that these services are available even under conditions of packet growth.
Currently, most routing protocols select a single optimal path, such as open shortest path first (OSPF) [
4]. OSPF is a link-state routing protocol that belongs to the interior gateway protocol (IGP) and uses a cost set for each link. Dijkstra’s algorithm [
5] is used for route calculation, and the path that minimizes the total cost to the destination node is taken as the optimal path. If there are multiple equal-cost paths, OSPF can distinguish between them, but it arbitrarily uses one path by default. OSPF is effective when the optimal path has a large bandwidth. However, when the optimal path has a narrow bandwidth and a large amount of traffic flows over it, the risk of congestion is high and the desired performance is not achieved. In such cases, the current OSPF is problematic.
In addition to the optimal path, redundant paths lead to the network’s destination node. Therefore, load balancing using multiple paths is effective in reducing congestion [
6]. Load balancing using multiple equal-cost paths is referred to as equal-cost multipath (ECMP) [
7]. A round-robin divides traffic equally among all equal-cost paths. However, its performance depends on the number of equal-cost paths. The paths are limited, and other redundant paths can be used in the network as a whole.
In this study, we propose a routing method that uses multiple paths with the multi-commodity flow problem [
8] based on the maximum flow problem [
9]. The commodity in the multi-commodity flow problem is the combination of source and destination. No simplified augmenting path algorithm is currently known. Linear programming [
5] and a full polynomial time approximation scheme [
10] are used as solution methods. This improves the throughput of the entire network and suppresses congestion. For this purpose, we implement the necessary functions on OpenFlow [
11] and evaluate its performance.
2. Previous Research
Many modified algorithms based on Dijkstra’s algorithm have been proposed in studies considering shortest paths. Kadry et al. reduced the computational complexity by reducing the number of iterations [
12]. Wei et al. improved the algorithm so that the maximum load path can be found [
13]. However, these proposals do not achieve load balancing.
Previous studies have attempted to achieve load balancing. HiQoS [
14] computes multiple paths for all pairs using Dijkstra’s algorithm for early recovery from link loss. However, this is not designed for large traffic flows. The distributed flow-by-flow fair routing (DFFR) algorithm [
15] routes so that each switch has an equal load on all equal-cost paths. DFFR does this without rerouting or splitting flows, thus preserving TCP performance. However, DFFR assumes that all links are homogeneous and is not optimal in network topologies where this is not the case. Sorted-GFF [
16] uses a fixed threshold set for the bandwidth of the link and recalculates the path if that threshold is exceeded. However, a fixed threshold cannot handle variability, such as differences in device performance. Moreover, when large traffic flows exceed the threshold value, the path is recalculated frequently, which places a heavy burden on the controller. When the threshold is increased, recalculation can be suppressed, but the load on the link cannot be detected. Therefore, a large amount of traffic cannot be assumed to flow. The proposed method uses a multi-product flow problem to compute paths using the entire network, which improves performance and allows the system to handle large amounts of traffic.
3. Preliminary Experiment
Table 1 shows the multi-commodity flow problem formulated as a linear programming problem when there are 1 and
k commodities. The point set is
V, the edge set is
E, the directed graph consisting of
V and
E is
, the non-negative capacity function defined on the edges is
, any edge is
, the starting point is
and the end point is
, the flow on each edge is
.
The above equation maximizes the total flow of all commodities. Here, it is expected that some cases will occur where the flow of one commodity is large and that of another commodity is small. We confirm this hypothesis by conducting experiments using the GNU Linear Programming Kit (GLPK) [
17].
The version of GLPK is 5.0, and the solution method used for the linear programming problem is the simplex method [
5].
Figure 1 shows the topology used in the experiment. There are two commodities in total, with commodity 1 flowing from node 1 to node 4, and commodity 2 flowing from node 2 to node 4. The maximum flow of this graph is 28 when the maximum flow problem is calculated only for commodity 1.
Figure 2 shows the output of GLPK and its graphing as a result of a preliminary experiment.
The first argument of
x in
Figure 2a represents the starting point, the second argument represents the end point, and the third argument represents the commodity. The Activity column is the amount of each flow. The
in the last line is the total flow of each commodity, and the result of 28 was obtained as the maximum flow for the entire graph. However, commodity 1 inhibited the flow of commodity 2, resulting in a significant bias. As a commodity with a small flow is considered a single path, load balancing by multiple paths cannot be achieved. In addition, if the result of zero flow for one commodity is obtained, routing for that commodity cannot be performed because there is no path.
4. Proposed Method
4.1. Objective Function Using the Maximin Principle
Assuming total
k commodities exist, the constraint equation and objective function applying the maximin principle [
18] are shown below.
Equation (
2) is intended to maximize the minimum flow among all commodities, not the maximum flow of each commodity. To increase the flow in a state where the flow of each commodity is fair, the objective function in
Table 1 and the new weights
and
are combined into Equation (
3). The
and
values are manually changed by the administrator according to the actual network conditions.
4.2. Routing Using Multi-Commodity Flow Problem
We propose a routing method that performs load balancing with multiple paths using the multi-commodity flow problem. This improves the throughput of the entire network. The protocol used is OpenFlow.
The multi-commodity flow problem requires capacity on each edge. In OSPF, the cost that the router
m uses for the link
with neighboring router
n can be manually set, but often follows Equation (
4).
Equation (
4) is inversely proportional to the per unit time performance of the link. By making the capacity inversely proportional to the value of the OSPF cost, it can reflect the performance of the link.
In addition, because it is necessary to know all the commodities to calculate the multi-commodity flow problem, the commodities are fixed from the beginning and the flow table is created by proactive control. For linear programming, we apply the method described in
Section 4.1.
The source and destination pairs and paths are registered for each commodity in the flow table of the OpenFlow switch. If there are multiple paths, a select-type group table is used. Select-type selects one of the ports defined as a group in a round-robin fashion. The allocation ratio parameter sets the amount of flow obtained from the multi-commodity flow problem.
Table 2 shows an example of the flow table and group table when 10 flows flow into an OpenFlow switch, 3 flows flow out from port 1, and 7 flows flow out from port 2.
5. Experiment
5.1. Objective Function Using the Maximin Principle
The experimental environment and topology are the same as in the preliminary experiment (
Figure 1), and the output of GLPK and its graphical representation are shown in
Figure 3. The value of weights
and
is 0.5.
v, in the last line of
Figure 3a, is the minimum flow among all commodities.
The total flow of the two commodities was 28. The proportion of commodity 2 flows was larger than in the preliminary experiment (
Figure 3).
Next,
Figure 4 shows the result of the usual calculation and the result of the proposed method in a topology with three nodes in series. There are three commodities in total, with commodity 1 flowing from node 1 to node 3, commodity 2 flowing from node 1 to node 2, and commodity 3 flowing from node 2 to node 3.
The maximum flow was 6, but the flow of commodity 1 was 0 (
Figure 4b). As the proposed method in
Section 4.2 uses the result of the multi-commodity flow problem in the flow table and group table; the packets of commodity 1 do not flow. However, owing to the proposed method, each commodity had 1 or more flows, but the total flow of the three commodities was 5 (
Figure 4c). This does not necessarily mean that the result of the calculation using the proposed method will be the maximum flow for the entire graph.
5.2. Routing Using Multi-Commodity Flow Problem
To confirm the superiority of the proposed method, we compared its performance against OSPF and OSPF-ECMP by generating multiple CBR (constant bit rate) UDP traffic to verify the packet arrival rate to the destination node and the average end-to-end delay. Experiment 1 compared the proposed method with OSPF, and Experiment 2 compared it with OSPF-ECMP.
Experiments were performed on version 3.29 of ns-3 [
19]. The operating system run was Linux and the distribution was Ubuntu 18.04.6. OFSWITCH13 [
20], provided as open source, was used to implement OpenFlow. This library provides switches and controllers that support OpenFlow 1.3. OSPF is not implemented in ns-3. Therefore, we created a new class that inherits from
, which manages the routing protocol in ns-3, and created a routing table using Dijkstra’s algorithm. In addition, We extended the OSPF class so that OSPF-ECMP selects one of the equal-cost paths in a round-robin fashion. The proposed method first solves a linear programming problem with the commodities set in the simulation. When the handshake is successful between the OpenFlow controller and the switch, the results are registered in each flow table by flow-mod or group-mod messages. We used the same topology for all experiments and added OpenFlow switch functionality to each node only in the implementation of the proposed method.
The experiment involved use of the Cost239 topology (
Figure 5), which is modeled after European cities.
Table 3 shows the parameters used in the experiment.
5.2.1. Results of Experiment 1
The destination for all three commodities is node 9, with node 1 as the source for commodity 1, node 2 as the source for commodity 2, and node 8 as the source for commodity 3. Before comparing with OSPF, the results of experiments with GLPK using the original objective function in
Table 1 are shown in
Figure 6. The results of verifying packet arrival rate with ns-3 are shown in
Figure 7.
The maximum flow in the graph was 82 (
Figure 6), but flow bias occurred in each commodity. The packet arrival rate for commodity 1, which had the larger flow, was higher. However, that of commodity 3, which had a smaller flow, was a single path through node 11. Therefore, the arrival rate of commodity 3 was considerably reduced (
Figure 7).
Next,
Figure 8 shows the output of GLPK when using the method in
Section 4.1.
Figure 9 compares the results of the proposed method and OSPF in ns-3. All the objective functions of the subsequent experiments used the method of
Section 4.1.
The maximum flow of the graph was approximately 82 (
Figure 8). As the transmit bit rate increased, the packet arrival rate of the proposed method was higher than that of OSPF (
Figure 9). In addition, the flow bias of each commodity was improved such that there was no longer a significant difference in the packet arrival rate of each commodity. The packet arrival rate of commodity 3 was higher than when the original objective function was used. The packet arrival rate of OSPF dropped sharply from 100%, while the proposed method showed a slower decline in arrival rate.
Table 4 compares the average end-to-end delay between OSPF and the proposed method at 200 kbps where the OSPF packet arrival rate for all commodities was 100%.
The average end-to-end delay was shorter for OSPF than for the proposed method for all commodities (
Table 4).
Figure 10 shows the result when there are three commodities in total, with commodity 1 flowing from node 1 to node 11, commodity 2 flowing from node 2 to node 10, and commodity 3 flowing from node 8 to node 7.
The proposed method maintained a higher packet arrival rate than OSPF at higher transmit bit rates, and the degree of decline in arrival rate from 100% was slower (
Figure 10).
Table 5 compares the average end-to-end delay between OSPF and the proposed method at 300 kbps where the OSPF’s packet arrival rate for all commodities was 100%. Only commodity 3 was experimented with at an additional 400 kbps and 500 kbps.
Basically, the average end-to-end delay was shorter for OSPF than for the proposed method (
Table 5). However, at 400 kbps and 500 kbps for commodity 3, the OSPF packet arrival rate was 100%, but the value increased. Therefore, the delay in OSPF was longer than that of the proposed method.
5.2.2. Results of Experiment 2
Figure 11 shows the result when there are three commodities in total, with commodity 1 flowing from node 1 to node 11, commodity 2 flowing from node 2 to node 10, and commodity 3 flowing from node 8 to node 7. Because the bandwidth of all links is 1 Mbps, the metric for OSPF-ECMP is the number of hops.
In OSPF-ECMP, the performance of each commodity differed depending on the number of equal-cost paths. In particular, the number of paths for commodity 3 was 2, so the packet arrival rate dropped considerably. However, the proposed method achieved a higher arrival rate than any of the OSPF-ECMP commodities (
Figure 11).
Table 6 compares the average end-to-end delay of OSPF-ECMP and the proposed method at 800 kbps.
As in Experiment 1, the average end-to-end delay was shorter for OSPF-ECMP based on the optimal path than for the proposed method (
Table 6).
6. Discussion
6.1. Objective Function Using the Maximin Principle
The proposed method can prevent one commodity from having zero flow and no routing. This makes it easy to apply to real networks. Adding
v to the objective function does not necessarily give the maximum flow of the entire network. The total flow in
Figure 8 is almost equal to the maximum flow in
Figure 6. Therefore, in this example, there is almost no change in network utilization even if the objective function is changed. In
Figure 4, where there are only two links, the total flow is now 1 less than the maximum flow, so we can say that the network utilization has decreased. However, we think that the more links there are on the network, the more alternative paths exist that get closer to the maximum flow, so the actual network does not open up a large difference in its utilization. The maximum flow can be obtained by setting the value of the weight
of
v to 0.
If flow bias occurs between commodities, the commodity with the small flow may be a single path. If the single path differs from the optimal path selected by OSPF, the packet arrival rate and average end-to-end delay for that commodity will be worse than OSPF. The proposed method satisfies the concept of Max-Min fairness and emphasizes uniform allocation. This makes it easier to prepare multiple paths for each commodity, improving the throughput of the entire network. In particular, commodities that benefit from the proposed method are those whose flows are smaller with the original calculation method. In
Figure 7, the packet arrival rate decreased considerably because the flow of commodity 3 was small and had a single path. In
Figure 9, using the proposed method, the arrival rate was higher due to the increased number of paths. Conversely, commodities that can monopolize the flow with the original calculation method have smaller flows with the proposed method, which may degrade the performance of load balancing. Comparing commodity 1 in the same figure,
Figure 9 has a lower reachability rate than
Figure 7 because the flow is smaller due to the emphasis on fairness.
In the proposed method, by adding
v to the objective function, there was vertex where the objective function can be maximized rather than simply calculating the maximum flow. In this case, the values of
and
were set to 0.5. In examples where there is a significant difference in the bandwidth of each link, the objective function may be maximized even for small values of
v. In that case, the value of
v can be increased by increasing the value of
. In general, as the value of
is increased, the fairness among commodities increases, but the network utilization tends to decrease, as shown in
Figure 4. However, there are examples where it remains almost the same, as in
Figure 8.
6.2. Routing Using Multi-Commodity Flow Problem
The packet arrival rate of the proposed method is higher because the load is less likely to be concentrated on a particular link by providing multiple paths. The proposed method does not completely replace OSPF. Coexistence is possible because of the use of OSPF costs in capacity in the multi-commodity flow problem. OSPF is sufficient in cases where packet arrival speed is important or where the bandwidth of the shortest path is large and there is no problem if packets are concentrated on that path. In this experiment, the problem that occurs with OSPF was solved by the proposed method. Load balancing using the proposed method can be effective in networks where the path with the largest bandwidth is not too large or where there are multiple paths. Moreover, as the degree of drop in the arrival rate is slow, it is possible to prevent packets from suddenly not arriving even if the load on the network gradually increases.
OSPF-ECMP also performs load balancing, but the paths are limited to equal cost. Therefore, there is a noticeable difference in performance depending on the number of paths. When the bandwidth of a link that is the optimal path is narrow and a large amount of traffic flows there, local load balancing, such as OSPF-ECMP, may not have a significant effect, as in commodity 3 of
Figure 11. The proposed method is not limited to equal cost, but considers paths in the entire network, so the number of paths is larger than in OSPF-ECMP and DFFR. The proposed method also has an advantage in that it uses the entire network without waste.
When the network is not heavily loaded, OSPF based on the optimal path has a shorter average end-to-end delay. The worst scenario of delay in the proposed method is assumed to be a situation where multiple paths are mostly composed of narrow-bandwidth links and the speed is not high. However, linear programming causes paths to include higher bandwidth links to increase the objective function. In addition, the proposed method selects paths according to a select-type group table. Therefore, links with high bandwidth are often selected, even if they contain some links with low bandwidth. In this experiment, the difference in average end-to-end delay was not significantly larger than that of OSPF. Therefore, such a scenario is not likely to occur. The proposed method using multiple paths will not have worse latency than OSPF using a single path, although latency may increase due to the flow of more traffic than expected, as in commodity 3 in OSPF in
Table 5. However, from the perspective of Layer 4 of the OSI reference model, there is a worst-case scenario for delay. When the proposed method is operated with TCP, one packet may flow to another detouring path, but the performance of TCP, like DFFR, is not maintained. It is possible that the window size is exceeded and the next packet is not sent because the acknowledgement (ACK) is not returned. Therefore, we believe that it is effective to operate the proposed method with UDP, which does not perform ordering control or retransmission control. Moreover, such problems can be alleviated by using Quick UDP Internet Connections (QUIC) [
21] standardized in HTTP/3 [
22]. QUIC communicates in units of streams, in which TCP-like reliability is guaranteed. This means that any delay caused by one packet using a different path will only affect the stream on which the packet resides.
Today, traffic often spikes at the start of large-scale sporting events or popular social game events. The service is not viable if packet loss occurs at a high frequency on an optimal single path. It is important from the viewpoint of service continuity to increase the packet arrival rate even if some delay occurs.
This time the path selection was on a static basis with a round-robin. We think that more flexible path control can be achieved by applying optimized multipath (OSPF-OMP) [
23] to dynamically allocate paths.
7. Future Work
The simplex method used in this study runs in polynomial time when smoothed [
24]. Many commodities flow in a real network, and it takes time to calculate a multi-commodity problem. Therefore, the use of faster algorithms and the calculation of multiple commodities in one area as one commodity are required.
In this study, the commodities were fixed and the flow table was created with proactive control. In a real network, the commodities are not fixed and the flow table needs to be updated periodically. Although it is necessary to understand all commodities in order to calculate the multi-commodity problem, it is also effective to apply the multi-commodity problem only to specific commodities, such as video distribution services.
In OpenFlow, flow entries and switch port information can be referenced by multipart requests, and the flow table can be updated by periodically sending this from the controller to the switch.
8. Conclusions
Network traffic has continued to increase in recent years, and existing routing protocols risk congestion due to single paths. In this study, to achieve load balancing by multiple paths, we implemented routing using the multi-commodity flow problem on OpenFlow. Compared to OSPF, it is possible to maintain a high packet arrival rate even at high transmission bit rates, demonstrating the superiority of the proposed method. Compared to OSPF-ECMP, the proposed method, which considers paths in the entire network, was more load-balancing. Although the average end-to-end delay was inferior to that of OSPF, which chooses the optimal path, the packet arrival rate is more important from the viewpoint of service continuity. Problems include the computational complexity of the simplex method used for linear programming and reactive path control, so we aim to develop a mechanism that is more suitable for the actual environment in the future.
Author Contributions
Conceptualization, T.F. and T.M.; methodology, T.F.; software, T.F.; validation, T.F.; formal analysis, T.F.; investigation, T.F.; data curation, T.F.; writing—original draft preparation, T.F.; writing—review and editing, T.F.; visualization, T.F.; supervision, T.M. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
Not applicable.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Saad, S.A.; Yadav, K. 6G-next gen mobile wireless communication with deep learning technology, approach: Opportunities and challenges. Sci. Int. 2020, 32, 163–169. [Google Scholar]
- Muthanna, M.S.A.; Alkanhel, R.; Muthanna, A.; Rafiq, A.; Abdullah, W.A.M. Towards SDN-Enabled, Intelligent Intrusion Detection System for Internet of Things (IoT). IEEE Access 2022, 10, 22756–22768. [Google Scholar] [CrossRef]
- Number of Internet of Things (IoT) Connected Devices Worldwide from 2019 to 2021, with Forecasts from 2022 to 2030. Available online: https://www.statista.com/statistics/1183457/iot-connected-devices-worldwide/ (accessed on 2 March 2023).
- RFC2740; OSPF for IPv6. IETF: Fremont, CA, USA, 1999. Available online: https://datatracker.ietf.org/doc/rfc2740/ (accessed on 28 March 2023).
- Cormen, T.H.; Leiserson, C.E.; Rivest, R.L.; Stein, C. Introduction to Algorithms, 3rd ed.; MIT Press: Cambridge, MA, USA, 2009; p. 1312. [Google Scholar]
- He, J.; Rexford, J. Toward internet-wide multipath routing. IEEE Netw. 2008, 22, 16–21. [Google Scholar]
- Chiesa, M.; Kindler, G.; Schapira, M. Traffic Engineering With Equal-Cost-MultiPath: An Algorithmic Perspective. Ieee/Acm Trans. Netw. 2017, 25, 779–792. [Google Scholar] [CrossRef]
- Wang, I.-L. Multicommodity Network Flows: A Survey, Part I: Applications and Formulations. Int. J. Oper. Res. 2018, 15, 145–153. [Google Scholar]
- Orlin, J.B. Max Flows in O(nm) Time, or Better. In Proceedings of the STOC’13 fortyfifth Annual ACM Symposium on Theory of Computing, Palo Alto, CA, USA, 2–4 June 2013; pp. 765–774. [Google Scholar]
- Karakostas, G. Faster approximation schemes for fractional multicommodity flow problems. In Proceedings of the Thirteenth Annual ACM-SIAM Symposium on Discrete Algorithms, San Francisco, CA, USA, 6–8 January 2002; pp. 166–173. [Google Scholar]
- McKeown, N.; Anderson, T.; Balakrishnan, H.; Parulkar, G.; Peterson, L.; Rexford, J.; Shenker, S.; Turner, J. OpenFlow: Enabling innovation in campus networks. ACM Sigcomm Comput. Commun. Rev. 2008, 38, 69–74. [Google Scholar] [CrossRef]
- Kadry, S.; Abdallah, A.; Joumaa, C. On The Optimization of Dijkstra’s Algorithm. Inform. Control Autom. Robot. 2012, 2, 393–397. [Google Scholar]
- Wei, K.; Gao, Y.; Zhang, W.; Lin, S. A Modified Dijkstra’s Algorithm for Solving the Problem of Finding the Maximum Load Path. In Proceedings of the 2019 IEEE 2nd International Conference on Information and Computer Technologies (ICICT), Kahului, HI, USA, 14–17 March 2019; pp. 10–13. [Google Scholar]
- Yan, J.; Zhang, H.; Shuai, Q.; Liu, B.; Guo, X. HiQoS: An SDN-based multipath QoS solution. China Commun. 2015, 12, 123–133. [Google Scholar] [CrossRef]
- Cheung, C.-H.; Leung, K.-C. A flow-based approach for distributed load balancing in Data Center Networks. Comput. Commun. 2018, 116, 1–8. [Google Scholar] [CrossRef]
- Rashid, J.A. Sorted-GFF: An efficient large flows placing mechanism in software defined network datacenter. Karbala Int. J. Mod. Sci. 2018, 4, 313–331. [Google Scholar] [CrossRef]
- GLPK (GNU Linear Programming Kit). Available online: https://www.gnu.org/software/glpk/ (accessed on 2 March 2023).
- Blackburn, S. The Oxford Dictionary of Philosophy; Oxford University Press: Oxford, UK, 2008; p. 416. [Google Scholar]
- ns3 Network Simulator. Available online: https://www.nsnam.org/ (accessed on 2 March 2023).
- OFSWITCH13. Available online: http://www.lrc.ic.unicamp.br/ofswitch13/ (accessed on 2 March 2023).
- RFC9000; QUIC: A UDP-Based Multiplexed and SecureTransport. IETF: Fremont, CA, USA, 2021. Available online: https://datatracker.ietf.org/doc/rfc9000/ (accessed on 28 March 2023).
- RFC 9114; HTTP/3. IETF: Fremont, CA, USA, 2022. Available online: https://datatracker.ietf.org/doc/rfc9114/ (accessed on 28 March 2023).
- Schneider, G.M.; Nemeth, T. A simulation study of the OSPF-OMP routing algorithm. Comput. Netw. 2002, 39, 457–468. [Google Scholar] [CrossRef]
- Spielman, D.A.; Teng, S.-H. Smoothed Analysis of Algorithms: Why the Simplex Algorithm Usually Takes Polynomial Time. J. ACM 2004, 51, 385–463. [Google Scholar] [CrossRef]
| Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).