Impact of Computer Network Routing On Imprecise Tables and Static Vs Dynamic Routing
Impact of Computer Network Routing On Imprecise Tables and Static Vs Dynamic Routing
Impact of Computer Network Routing On Imprecise Tables and Static Vs Dynamic Routing
: 2319 1805
Impact of Computer Network Routing On Imprecise Tables and Static Vs Dynamic Routing
1,
1,
Assistant Professor Dept. Of Computer Science H.N.B Garhwal Central University Srinagar Garhwal Uttarakhand 2, Assistant Professor Dept.Of Computer Science H.N.B.G.U Central University Srinagar Garhwal Uttarakhand 3, Professor (Head Of Department) Dept.Of Computer Applications Graphic Era University Dehradoon Uttarakhand
-----------------------------------------------------ABSTRACT----------------------------------------------------This research paper Compares mathematically Dynamic Routing and Static Routing.This Research paper Focuses and Examines problems that arise from the fact that dynamic routing never relies on the precise, current information about the network state. It is a normal expectation that dynamic routing has to give better results than a static one. However, it takes some time to collect information about the network current state, and optimization is always done with that imprecise information. This situation is examined by a complete mathematical analysis of a simple network. We show that dynamic routing gives better results than static, as expected, but that the margin is much smaller then intuitively expected. Further analysis shows that that minor advantage can easily be lost if there is even a small error in the dynamic routing tables, and actually dynamic routing can easily become worse than static. Quantitative analysis shows that delays in building routing tables can affect dynamic routing performance unexpectedly strongly. The conclusion is that dynamic routing should not try to adapt to traffic changes very fast.
KEY-WORDS: Routing; Dynamic Routing; Static optimization; Dynamic optimization; OSPF; Modeling;
BGP; ---------------------------------------------------------------------------------------------------------------------------------------Date of Submission: 1July. 2013 Date of Publication: 22.July 2013 ---------------------------------------------------------------------------------------------------------------------------------------
I.
INTRODUCTION
Optimization is one of the most widely applicable mathematical techniques. Almost any practical problem can be represented as a system where certain function should be minimized (or maximized) under certain conditions. The systems usually change over time and one of the possible classifications of corre- sponding optimizations is to static and dynamic cases. Alternative terminology is fixed and adaptive. It should be noticed that pure static and pure dy- namic optimizations are practically never used. Pure static (fixed) optimization would imply that one so- lution is used forever. That is very rarely the case, we usually adjust optimization solutions to system changes but relatively rarely, for example once every week or once every hour. On the other side, pure dy- namic (adaptive) optimization would adjust to system changes infinitely fast (in time zero) which is impos- sible. In such optimizations we try automatically to adjust to the system changes as fast as possible. That is the main problem with adaptive optimization. For many problems we can consider that attempt to adjust "as fast as possible" is also "good enough". In this pa- per we show that in some (many?) cases such assumption can be dangerous and that our intuitive feeling of what is "good enough" can be very misleading. This relation between fixed and adaptive opti- mization is investigated on the computer network routing problem.
II.
The network design problem is defined as: For given locations of nodes (set of computer :sites), traffic matrix (offered traffic for each pair of nodes) and cost matrix (cost to transfer a mes- sage for each pair of nodes) With performance constraints: delay, through- put, reliability, Find values for variables:Topology (which nodes will be connected directly with a link and which will have to communicate indirectly, using other nodes as intermediate stations) Capacity assignment (how much traffic will : each link be able to carry) - Routing (flow assignment) (which paths messages between any pair of nodes will follow) that
www.theijes.com
The IJES
Page 1
the whole network) for given delay (time that a message spend in the network) Other formulations of the problem are: minimize delay for the given cost or maximize throughput for given cost and delay. It has been shown that all these problems are similar and that the same techniques can be applied. It has to be emphasized in the beginning that this problem is intractable if full and exact solution is re- quired. Networks can have many hundreds of nodes (computers) and many thousands of terminals. Fortu- nately, experience has shown that network design can be done hierarchically and still be near optimal. An example is a network for a country. First, we can de- cide where to put trunks between major cities, then connect small cities to nearest major cities, then make local networks inside the cities. This approach allows us to work with networks of at most 50 nodes at a time. This is a great help, but the problem is still in- tractable. If we have only 10 nodes, there are 45 potential lines that connect different pairs of nodes. Each link can be present or absent. This gives 245 or 310 13 different topologies. If we can examine 1000 topolo- gies per second (too fast even for super-computers), it would still require 1000 years to examine all of them. Full-duplex is assumed here, i.e. there is only one link between two nodes. Without that assumption there would be 90 possible links and the problem would be even worse. 2.1 Optimization Methods Mathematical programming, network flow and queue- ing theory are used to solve the distributed, packet- switching network design problem. Many algorithms from graph theory are also used. They include Dijkstra's algorithm for the single source shortest paths problem, Floyd's algorithm for the all-pairs shortest paths problem, Prim's algorithm and Kruskal's algo- rithm for minimum cost spanning tree. Depending on assumptions on some of the three subproblems, different methods were used: Solving for capacity assignment when topology and routing policy are given. If the costs are lin- ear, LaGrange multipliers are good enough. For nonlinear costs, dynamic programming is used. Solving for routing when topology and channel capacities are given. The Minimum Link and The Flow Deviation Algorithm are used; both are heuristic. Solving for capacity and flow assignment when topology is given is a more general problem. This problem has many local minima and only suboptimal solutions exist. There are algorithms for linear, concave and discrete costs. For topological design, two algorithms, both heuristic, are used. One is The Branch X-Change Method; the other is Concave Branch Elimination. Another approach is to use graph theory to find the suboptimal topology.A cut between two nodes is
a set of arcs whose removal disconnects two nodes. A minimal cut is one in which replacement of any of its members reconnects the graph. There is a theorem that states that the maximum flow between any two arbitrary nodes in any graph cannot exceed the capacity of the minimum cut separating those two nodes. There is the stronger result that maximum flow is equal to the capacity of the minimal cut. This Max-Flow Min- Cut Theorem helps to optimize networks but some systematic way of searching for the minimum cut is needed. Network design and analysis almost always in- volve under-determined systems, especially when routing policy has to be determined. The number of possible routings grows with the factorial of the num- ber of the nodes in the networks and the number of possible topologies is exponential in the number of links. The number of constraints (such as "everything that goes in must go out" for each node that is neither source nor sink) is typically polynomial in the number of nodes in the network. The network design problem with all three subproblems: topology, capacity assignment and routing is intractable. When some of the three problems are fixed or some assumptions are made, the remaining problems may have optimal solution that can be ob- tained within a reasonable time. Exactly, what as- sumptions can be made about some of the three sub- problems depends on the current state of the technol- ogy.
III.
The routing problem in packet-switched networks is one of the three related problems during the design phase. Routing has also to be calculated later, for dy- namic adjustments to the traffic conditions on the network. The goal of routing is to direct offered load (user traffic) from sources to destinations, along selected routes, in such a way that some parameters are op- timized while respecting some restrictions. Objec- tives include maximizing network performance (mi- nimizing delay and/or maximizing throughput) while minimizing the cost of the network itself (equipment, facilities and maintenance). Besides topology, addi- tional constraints are imposed by the technology that is used, network services that are provided and user requests. Routing as a multiobjective, multiconstraint optimization problem has been a reach area for re- search for many years. The
www.theijes.com
The IJES
Page 2
3.2 Centralized and Distributed Routing Each of the three mentioned routing functions may be implemented in different degrees of centralized or distributed form. By changing the degree of central- ization dynamism, robustness and manageability are affected. Both, centralized and distributed implemen- tations have advantages and disadvantages. With a centralized implementation, a single node completely determines routing. Such system is easier for management because everything about routing is in the same place and special hardware can be easily added. However, if that node fails, routing is com- pletely halted. Also, dynamic routing is less respon- sive since it takes more time to collect all the neces- sary information about the network in a single central node. With a distributed (decentralized) implementation of the routing, it is possible to have multiple nodes independently replicate routing function, without ex- changing information, or to distribute functionality so that each node provide portions of the functionality. In both cases, it is more difficult to manage the rout- ing system, but advantages are more important. The fault tolerance is greatly increased. Response delay is reduced since needed information is closer to places where it needed. The amount of routing resources at any node is decreased and system can can easily incrementally grow. Most routing systems today are distributed.
IV.
Internet routing algorithms changed over time. They were shifting in the direction of more dynamic rout- ing, but not without problems. In practice they were refined, and theoretical explanations were searched, some of which are in this monograph. 4.1 Routing Algorithms Routing algorithm should generally have some desir- able properties: correctness, simplicity, robustness, stability, fairness, optimality etc. However, global op- timality and fairness to individual users are contradic- tory goals. The optimal routing will be some trade-off between optimality and fairness, and it is necessary to define exact goal of optimization. Minimizing mean packet delay and maximizing total network through- put are in conflict and, as a compromise, the number of hops is often minimized. Reducing the number of hops tends to reduce both, the delay and amount of bandwidth consumed. As a consequence of the Optimality Principle (which states that if router B is on the optimal path from A to C, then the optimal path from B to C also falls along the same route), the set of optimal routes from all sources to a given destination forms a tree rooted at the destination. Such a tree is called sink tree and it is a benchmark against which other routing algorithms can be measured. 4.2 Shortest Path Routing Representative of static routing algorithms is the Shortest Path Routing, implemented by Dijkstra's algorithm. The algorithm is well known and the only thing that remains to be done is to determine distance metric. It is usually the number of hops, but it can be geographic distance, mean queuing or transmission delay. In the most general case distance can be com- puted as a function of the distance, bandwidth, aver- age traffic, communication cost, mean queue length, measured delay etc. with appropriate weights. Another static routing algorithm is Flooding, in which every incoming packet is sent out on every out- going line, except the one it arrived on. It is not prac- tical in most applications. More advanced static routing algorithm that, be- sides
www.theijes.com
The IJES
Page 3
www.theijes.com
The IJES
Page 4
V.
Highly dynamic optimal routing has been used in the Internet [1], [2], [3]. Expectations that it will give much better results were not completely fulfilled, be- cause unexpected delays occurred often. Here and in [4], [5], [6], [7], [8], [9] is presented an attempt to give some theoretical explanation for such behavior. To- day, this problem is again interesting but in the context of wireless ad hoc mobile networks [10], [11], some- times using evolutionary computing [12]. Here, for the routing problem we also have ac- cepted terminology to classify routing as static versus dynamic or fixed versus adaptive. In practice, how- ever there is not a clear-cut between the two: fixed or static routing is not fixed forever and dynamic or adaptive is not infinitely fast in its adjustment to the situation on the network. As mentioned before, fixed routing has to accommodate for occasional link failures at least, and adaptive routing needs some time to collect and analyze the current traffic on the network. In reality, routing adjustments are made, the question is how often. In can be done on a daily basis, or ev- ery hour, every minute or every few seconds. If it is done every few minutes, it can be called fixed if com- pared to adjustments every few seconds, or it can be called adaptive if compared to adjustments every few days. Often terms like "semi-adaptive", "semi-fixed", "highly-dynamic" etc. are used. There are problems with distributed optimal rout- ing algorithms. Kleinrock was the first [13] to point out that "... uncontrolled alternate routing in a con- gested network can lead to chaos. Indeed, the tele- phone company tends to limit (and even prohibit completely) alternate routing on unusually busy days (Mother's Day, for example)." It takes significant time to calculate new routing tables, both to accumulate data in any node, and to ex- change data among nodes. By the time the calculation is finished load may be sufficiently different to make the tables obsolete, and the routing far from optimal. By working on the knees of sharply rising delay curves, highly dynamic optimal routing can expend massive amounts of network resources for no bene- fit. It will be shown that congestion can be avoided in a useful range of cases by quasi-static bifurcated routing with conservative load estimates, and that the delay penalties for use of this, less then optimal, rout- ing are small. There are cases where dynamic routing can offer significant performance improvements, but without full load
www.theijes.com
The IJES
Page 5
VI.
MATHEMATICAL MODEL
A simple three node network and even simpler offered load will be examined. Nodes are A, B and C, and all traffic is from A to B. There are two possible differ- ent routes: a direct path from A to B, and an indirect path, of the length two, that goes through C. Let us assume that all three lines are of the same capacity bits per second. Our routing problem is then reduced to making a decision about what fraction of the to- tal offered traffic will be sent along the indirect path of the length two. The remaining fraction 1 of the total load will be send along the direct path. Let us call a branching coefficient. Let offered load be bits per second and will, as usually, denote utiliza- tion /. We will also assume a Poison input stream of messages, and an exponential service time on lines. There are some limitations for the parameters that we introduced [4], [9]. Parameter is a fraction (probability) so we certainly have 0 1. For this particular case, there is an even stronger condition. We may have to send some traffic along the longer route, which is more expensive, has longer wait time etc., only if the direct path is overloaded (whatever the definition of the "overload" is). It is obvious, how- ever, that it never pays off to send more traffic along the indirect route than along the direct route. If the lines were of different capacities, costs, reliabilities etc., this would not have to be the case, but according to our assumptions, we get the limitation that reason-able interval for is 0 0.5 (this will formally follow from the requirement that utilization for each line must be less than 1). There may be some additional limitations for . If the total offered load is less than the line capacity , then there are no problems. The network, however, may withstand the total offered load of < 2 or < 2 . The reason for this is that we have two alternative paths, each of the capacity . It is obvious that when the total load approaches 2, there is no more freedom in selecting . It has to be equal to 0.5, or one path will become overloaded, introducing infinite delays. The new set of limitations for can be calculated as follows. With the total load , line capacity , uti- lization , and the branching coefficient , the utiliza- tions of the direct path 1, and the utilization of the indirect path 2 will be:
In order to keep the network in a stable state (to avoid infinite queues and delays), we have to avoid overloading any of the two paths. By solving 1 < 1 and 2 < 1, we get an additional constraints > 1 1/ and < 1/. If we check the second constraint, we see that it is completely included in the previous constraint < 0.5.
The left constraint in the last expression is differ- ent from zero for > 1. 6.1 Optimal Waiting Time The waiting time (including service time) for an M/M/1 queuing system is:
www.theijes.com
The IJES
Page 6
WM/M/1 is a function of and , but they are connected through , and can be considered con- stant. By using Kleinrock's Independence Assumption, the total waiting time for our network is:
Our goal is to optimize the waiting time so we need a derivative. Parameter under our control is entiation gives:
Differ-
is selected optimally
VII.
Previous chapter assumes that we know that the of- fered load is exactly, and that it does not change in time. This case is not really interesting. In reality, of- fered load is always changing in time, and that is what makes difference between static and dynamic routing, but also gives possibility for an error when calculating dynamic routing tables. 7.1 Uniformly Changing Offered Load Let us consider more general and more realistic case, when the offered load changes in time between the lower limit l and the upper limit h, where 0.3 l < 2 must be satisfied. To make calculations easier (or possible) we will assume that the load changes uni- formly. That means that the value for the offered load spends equal amount of time inside any subinterval of the same size, included between l and h. Such distribution corresponds, for example, to constant-speed load shift from l to h, back and forth. This assump- tion that load changes uniformly between l and h is somewhat artificial, but not very far from what really happens in the network. 7.2 Optimal Dynamic Routing We will now calculate the waiting time for optimal dy- namic routing. We select our optimal branching prob- ability infinitely fast, and at any moment it follows precisely the changing load . The total waiting time will be expected value with regard to the distribution g () of the changing load:
www.theijes.com
The IJES
Page 7
By solving this integral, we get the best we can hope for in the case of uniformly changing load. Op- timal dynamic routing gives waiting time:
www.theijes.com
The IJES
Page 8
The following Table 1 shows improvement in per- cents (reduction of delays) when optimal static rout- ing is replaced by optimal dynamic routing, for differ- ent intervals [l, h], where offered load is uniformly changing.
Rows in the table give corresponding improvement for particular l, columns for h. Since l < h, only the upper right triangle of the table is used, diago- nal excluded. First impression is surprisingly small improvement that dynamic routing introduces. It al- lows us to make claim that too zealous optimization is harmful. Even without any errors in calculating rout- ing tables, best improvement we can hope for, the upper limit, is given in Table 1. Average improvement is about 1%, maximal improvement is less than 3%. It is not surprising that maximal improvement is achieved when interval [l, h] is wide. Traffic then varies a lot, and if we can follow that wide variations, improve- ment will be more significant. When we look at this modest improvement, we should keep in mind that we are dealing with a very simple model with only three nodes and one source. In a larger network, it is possible that improvement would be better, but chances for an error in the dy- namic routing tables would also be better. The com- bined effect would probably be the same. The conclusion is that optimal dynamic routing gives modest improvement over optimal static rout- ing. That small improvement can easily be annihi- lated, and actually dynamic routing can give larger de- lays than static, if there are any errors in the dynamic routing tables. Such errors always exist, because it takes significant time to calculate new routing tables, both to accumulate data in any node, and to exchange data among nodes. By the time the calculation is fin- ished, load may be sufficiently different to make the tables obsolete, and the routing far from optimal. VIII. IMPRECISE ADAPTIVE ROUTING Now, we show how that small advantage can be lost and why dynamic routing can become worse than static, even for relatively minor errors in traffic esti- mate. The goal in this section is to quantitatively exam- ine how imprecise (obsolete) traffic information used for calculating dynamic routing affects delays in the network and when dynamic routing becomes imprac- tical because optimal static routing becomes better.
www.theijes.com
The IJES
Page 9
8.1 Optimal Imprecise Dynamic Routing This imprecise opt d we substitute into expression for waiting time
Now, we can calculate, as before, optimal wait- ing time for the network when offered load uniformly changes from l to h:
Calculating this integral gives a complicated ex- pression that can be written in parts:
www.theijes.com
The IJES
Page 10
This formula for d = 0 reduces to formula for waiting time for optimal dynamic routing, Equation (13), that we had before 8.2 Static and Imprecise Dynamic Routing Now, we can compare imprecise dynamic routing with optimal static routing. As before, we will calculate improvement in percents (reduced delays) when op- timal static routing is replaced by imprecise dynamic routing. Improvement is calculated for different in- tervals [l, h] where offered load uniformly changes. When d becomes large enough, improvement will be- come negative, i.e. static routing will become superior to this sufficiently imprecise dynamic routing.
For d = 0.15 almost all elements are negative, which means that is better not to try dynamic routing
www.theijes.com
The IJES
Page 11
IX.
CONCLUSION
Previous tables give an interesting and somewhat sur- prising solution. Congestions can be avoided if we do not try to optimize too hard. Dynamic routing is good, but only if we can recalculate tables very fast. Static routing is better than attempted, but unsuccessful op- timal dynamic routing.
REFERENCES:
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] Mills, D. L.: Exterior Gateway Protocol formal specification, RFC 904, 1984 Hedrick, C.: Routing Information Protocol, RFC 1058, 1988 Blokzijl, R.: RIPE Terms of Reference, RFC 1181, 1990 Tuba, Milan: Optimal Bifurcated Routing in Computer Networks, Proceedings of the 38th Conference ETRAN'94, Vol. 3, pp. 55-56, Nis, 1994 Tuba, Milan: Dynamic Routing in Com- puter Networks Introduces Small Improvements, "Technology of Programming" Conference, pp. 7, Matematicki institut, Beograd, 1994 Tuba, Milan: Conditions when Dynamic Rout- ing Becomes Worse than Static, PriM 94, IX Conference on Applied Mathematics, pp. 81-82, Budva, 1994 Tuba, Milan: Cost Function for Communication Links in Computer Networks, Bulletins for Ap- plied Mathematics (BAM), LXXIII-1028/94, pp. 115-122, Budapest, 1994 Tuba, Milan: Dynamic Routing Based on Obso- lete Traffic Information, Proceedings of the In- ternational Conference on Technical Informatics ConTI'94, Vol. 4, pp.103-110, Timisoara, 1994 Tuba, Milan: A Mathematical Model for Routing Comparison in Computer Networks, Bulletins for Applied athematics (BAM), LXXXVI-A 1565/98, Arad, July 1998, pp. 493- 503 Karavetsios, P., Economides, A.: Performance Comparison of Distributed Routing Algorithms in Ad Hoc Mobile Networks, WSEAS Transac- tions on Communications, Vol. 3, Issue 1, 2004, pp. 317-321 Sokullu, R., Karaca, O.: Comparative Perfor- mance Study of ADMR and ODMPR in the Context of Mobile Ad Hoc Networks and Wire- less Sensor Networks, International Journal of Communications, Issue 1, Volume 2, 2008, pp. 45-53 Kumar, D., Bhuvaneswaran, R.: ALRP: Scala- bility Study of Ant Based Local Repair Routing Protocol for Mobile Ad Hoc Networks, WSEAS Transactions on Computer Research, Vol. 3, Is- sue 4, Apr 2008, pp. 224-233
AUTHORS:
Ashis Saklani: Received M.tech in Computer Science from Karnataka University, he has done MCA from Graphic Era Institute of Technology (Now Graphic Era University) Dehradoon.He is CISCO And Microsoft Certified Professional. He worked as a VPN Support Engineer at HCL Infinet, Noida.Presently he is working as Assistant Professor, at H.N.B Garhwal Central University, Srinagar, Uttarakhand, India. Dr.S.C.Dimri:.Is a Deep Researcher a scholar and a gem .He has builted many Milestones in the Horizon of Network Security, Computer Networks and Operational Research. It brings Laurel For those who Gets Opportunity to work with him. Presently he is working as HOD (Head of Department Graphic Era University, Dehradoon, Uttarakhand, India Praveen Tiwari: Received M.tech in Computer Science from G.B.P.E.C Pauri Garhwal, And B.tech in 2008 from Priyadarshni College of Computer sciences.He worked in Infotech Enterprise Ltd where he worked on Gps Navigation Softwares.His main domain is Cloud Computing.Presently he is working as Assistant Professor, at H.N.B Garhwal Central University, Srinagar, Uttarakhand, India
www.theijes.com
The IJES
Page 12