首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

java基于蚁群算法路由选择可视化动态模拟.zip

后端 1.25MB 18 需要积分: 1
立即下载

资源介绍:

这是“java 基于蚁群算法路由选择可视化动态模拟”,仅供学习参考,请勿商用。
A new class of QoS routing strategies based on network
graph reduction
q
C. Casetti
a
, R. Lo Cigno
a
, M. Mellia
a
, M. Munaf
oo
a,
*
,Z.Zs
ooka
b
a
Dipartimento di Elettronica, Politecnico di Torino, Corso Duca degli Abruzzi 24, I-10129 Torino, Italy
b
Department of Telecommunications, Budapest University of Technology and Economics, Magyar tud
oosok k
oor
uutja 2,
1117 Budapest, Hungary
Received 15 October 2002; received in revised form 16 October 2002; accepted 24 October 2002
Responsible Editor: I.F. Akyildiz
Abstract
This paper discusses a new approach to QoS routing, introducing the notion of algorithm resilience (i.e., its ca-
pability to adapt to network and load modifications) as performance index of the algorithm itself.
The new approach can be summarized as Network Graph Reduction, i.e., a modification of the graph describing the
network before the routing path is computed, in order to exclude from the path selection over-congested portions of the
network. This solution leads to a class of two-step routing algorithms, where both steps are simple, hence allowing
efficient implementation.
Simulation experiments, run on randomly-generated topologies and traffic patterns, show that these routing algo-
rithms perform consistently better than both the standard Minimum Hop algorithm and those QoS-based algorithms
based on the same metrics but not using the notion of Network Graph Reduction.
2002 Elsevier Science B.V. All rights reserved.
Keywords: QoS routing; Routing algorithms; MPLS
1. Introduction
Dynamic, QoS-based routing received consid-
erable attention in recent years [1–7], especially
considering the difficulty in predicting Internet
traffic patterns and the consequent impossibility to
properly plan and dimension the network.
The core of any QoS-based routing algorithm is
a network-status-dependent cost function that is
used to find the optimal (or at least a suitable)
route across the network by solving an optimiza-
tion problem. In particular, given the best-effort
nature of the current Internet where elastic data
flows are in the majority, the most commonly used
metric aims at the maximization of either network
utilization or user throughput. Several proposals
introduced cost functions, algorithms and proto-
cols that give them advantages over traditional,
q
This work was supported in part by the Italian Ministry for
University and Scientific Research through the PLANET-IP
Project. A preliminary version of this paper was presented at
IEEE Infocom 2002 in New York.
*
Corresponding author.
E-mail address: munafo@polito.it (M. Munaf
oo).
1389-1286/02/$ - see front matter 2002 Elsevier Science B.V. All rights reserved.
PII: S 1 389-12 8 6 ( 0 2 ) 0 04 1 4 - 0
Computer Networks 41 (2003) 475–487
www.elsevier.com/locate/comnet
topology-based algorithms such as the Minimum
Hop (MH)
1
presently used in TCP/IP networks
[8,9]. For example in [1], the authors introduce the
bottleneck bandwidth as a metric and then define
the maximization of user throughput as optimi-
zation target. Similarly, in [2,3] the authors study
how to improve the throughput of high-bandwidth
traffic, such as large file transfers, in a network
where resources are fairly shared among connec-
tions. Their findings, obtained by simulation, show
that, at high loads, a MH routing algorithm
maximizes network and user performance; for
low-congested networks, instead, they propose an
algorithm, named Minimum Distance (MD)
routing, which offers better performance. However
they are unable to provide an algorithm that
merges the two behaviors. Researchers focused
their attention upon other aspects of QoS routing,
namely protocol overhead [5,7], implementation
issues [4,6], impact of update policies [5].
A major drawback, however, affects all QoS-
based routing algorithms. The cost function at the
core of the algorithms tries to find portions of the
network where resources are under-utilized and
exploits them to the benefit of connections that
would otherwise cross a congested portion of the
network. In doing so, as shown in [11] for the case
of simple alternate routing, the algorithm ends up
consuming more resources than MH routing does,
hence, in case of heavy congestion, QoS-based
routing wastes resources and performs poorly
compared with MH. A formal proof of this ob-
servation can be found in [10]. The extension of
this property to TCP/IP networks is not straight-
forward, since flows often exhibit a greedy, elastic
behavior, using up the available bandwidth. MH
routing has been already conjectured to be as-
ymptotically optimal as the load q offered to the
network tends to infinity, and many simulation
results confirm this intuition [2,3,13,16]. We stress
at this point that the poor performance of QoS-
based routing at high loads is not due to the sub-
optimality of the used algorithms, but is rooted in
the locality of the routing decision. Whenever a
call is routed, the given cost function is minimized/
maximized for the current state of the network,
necessarily disregarding the future network evo-
lution. Under heavy load, the overall network
benefit does not coincide with the cost function of
a single call, hence the minimization of the one
does not lead to the maximization of the other.
In the light of the above discussion, the draw-
back of QoS routing in the Internet is clear:
whatever is gained at low or medium network
loads, it is paid for at high network loads. What is
needed to solve this problem is a resilient algo-
rithm that allows the migration of a QoS-based
routing algorithm to MH routing as q grows large.
The problem is that q is typically not known to the
routing algorithm, not even in the case of cen-
tralized routing algorithms.
The contribution of this paper lies in the iden-
tification and definition of a class of routing algo-
rithms, named Network Graph Reduction (NGR),
whose performance encompasses that of QoS-
based routing algorithms at light and medium
loads, and the optimality of MH routing at high
loads. The goal is obtained by reducing the graph
that describes the network topology, and applying
a suitable metric to the reduced graph. Results are
reported showing both the elementary properties of
the algorithm, and its behavior in randomly gen-
erated topologies, both with uniform and non-
uniform, time-varying traffic.
The rest of the paper is organized as follows.
Section 2 provides a general description of the
NGR algorithm, along with implementation is-
sues. Section 3 presents the network and traffic
models used in the simulation presented in Section
4, in which the performance of the NGR algorithm
is compared to the one of classic QoS routing al-
gorithms, both in simple network scenarios, and in
more complex ones. Finally, conclusions and fu-
ture work are discussed in Section 5.
2. NGR routing algorithms
Routing can be formalized as the problem of
finding a suitable set of edges connecting two
nodes in a directed graph. QoS routing relies on
the definition of a suitable edge metric w, which
1
In this paper we refer to the MH algorithm as a special case
of the Shortest Path, in which all links have unitary costs.
476 C. Casetti et al. / Computer Networks 41 (2003) 475–487
depends on the networks status, and of a cost
function cðÞ, which should be minimized/maxi-
mized, yielding the optimal route selection under
specific network conditions. As discussed in the
Introduction, however, all metrics and cost func-
tions that try to maximize network utilization or/
and user throughput suffer from the same draw-
back: as the network load increases (q !1) their
performance drops below that of a simple MH
algorithm. Finding metrics that let the path selec-
tion process converge to MH routing as q in-
creases seems to be a hard problem. As shown in
[16] the elastic nature of the Internet traffic just
worsens the problem. The difficulty of finding a
suitable metric lies in the fact that the goal of such
a metric should change with the network load,
making the problem not easily tackled by a stan-
dard minimization approach.
Indeed, we can look at the routing problem
from a slightly modified perspective. Instead of
trying to find adaptive metrics, the same metric
that works well for light loads can be applied at
high loads to a reduced graph that only contains
uncongested links, i.e., links whose load is under a
given threshold. Since the reduced graph may not
be connected, i.e., no path may exist from a source
to a destination, the minimum-hop path should
always be included as possible solution of the
routing problem. Thus, as the offered load q
grows, all links become congested and the algo-
rithm necessarily chooses the minimum-hop path.
While the direct measure (or evaluation) of q is a
complex task, the identification of single congested
links is extremely easy, so that, overall, the meth-
odology is simple and its implementation straight-
forward.
This key idea leads to the definition of the NGR
strategy which can be applied to any existing QoS
routing algorithms.
2.1. Formal description
For the purpose of providing a formal de-
scription of the class of NGR algorithms in their
most general form, we use a standard graph theory
formalism. Thus, we refer to a generic network as
a directed graph G ¼ðV; EÞ, where V is the set of
vertices (nodes, in our case), and E is the set of
edges (links).
2
A path pðv
s
; v
d
Þ of length
n ¼jjpðv
s
; v
d
Þjj is defined as a sequence of n distinct
edges e
i
joining v
s
and v
d
, where v
s
; v
d
2 V, e
i
2 E,
pðv
s
; v
d
Þ¼fe
1
; e
2
; ...; e
n
g.
A set P
G
is defined as the set of all paths ex-
isting between any two distinct vertices of G, i.e.,
P
G
¼fpðv
s
; v
d
Þjv
s
; v
d
2 V; v
s
v
d
g. Each link is
assigned a weight w using any metric that com-
bines topological, physical or traffic-related char-
acteristics of that link. To each path p a cost cðpÞ is
assigned using a combination of the weights of its
links. Following this, an order relation in the set
P
G
is established among paths, and we will refer to
a path p
i
as ‘‘lighter than’’ p
j
if p
i
p
j
holds.
The NGR algorithm operates two subsequent
alterations upon the path set P
G
, and applies se-
lection criteria on the resulting subset:
Step 1: the first alteration transforms the di-
rected graph G into G
0
¼ðV; E
0
Þ, E
0
E, select-
ing only those links whose weight satisfies a
Cut-off criterion C (e.g., if w represented the link
capacity, ‘‘slower’’ links could be discarded
from path selection if w < w
M
, where w
M
is the
smallest acceptable capacity); as a result, the
path set P
G
is reduced to P
G
0
after removing
those paths containing cut-off links;
Step 2: let P
mh
be the set including one mini-
mum-hop path from each source to each desti-
nation. In case more than one minimum-hop
path exist from the same source to the same des-
tination, one at random is selected.
3
The second
alteration transforms the path set P
G
0
into
P
0
G
0
¼ P
G
0
[ P
mh
; the new subset is built from
(i) the paths belonging to P
G
0
and (ii) the mini-
mum-hop paths between any two nodes in V,
even if their links were discarded in the first step.
Finally, the decision on how to route packets
between a source and a destination is made by ap-
plying the order relation to the path subset of P
0
G
0
joining source and destination, and picking the path
2
In this paper we interchangeably use the terms ÔedgesÕ and
ÔlinksÕ and the terms ÔverticesÕ and ÔnodesÕ.
3
It is possible to optimize the P
mh
set, for example using
load-balancing criteria.
C. Casetti et al. / Computer Networks 41 (2003) 475–487 477
that turns out to be the lightest according to the cost
metric defined by the QoS routing algorithm.
2.2. NGR-MD and NGR-WS algorithms
In a broad sense the NGR methodology can be
coupled with any metric and cost function. In or-
der to exemplify this property, we considered the
application of this methodology to two algorithms
already proposed in the literature, which were
shown to offer good performance [1,2]:
Widest-shortest (WS): for each source–destina-
tion pair, the algorithm determines all the paths
with the minimum-hop count; if more than one
such path exist, it breaks the tie by choosing the
one with the largest available bandwidth [1];
Minimum distance (MD): for each source–des-
tination pair, the path is chosen which mini-
mizes the sum on each link of the inverse of
the equal bandwidth share [2].
To help the reader, we report a simple de-
scription of the above algorithms, using the nota-
tion introduced in this paper.
WS path weight computation: a weight w
l
associ-
ated to a generic link l is computed as
w
l
¼ b
l
; ð1Þ
where b
l
is an estimate of the currently avail-
able bandwidth on link l;
The set of paths among which the path P
G
is
chosen is restricted to the minimum-hop paths, i.e.,
P
G
¼ffp
i
ðv
s
; v
d
Þj jjp
i
ðv
s
; v
d
Þjj 6 jjp
j
ðv
s
; v
d
Þjj 8j g
8v
s
; v
d
g: ð2Þ
Then, the cost cðp
i
Þ of path p
i
is defined as follows:
cðp
i
Þ¼min
l2p
i
fw
l
g; ð3Þ
and the ordering relation is such that p
i
p
j
if
cðp
i
Þ > cðp
j
Þ (i.e., p
i
is lighter than p
j
if its avail-
able bandwidth is larger than p
j
Õs).
MD path weight computation: a weight w
l
asso-
ciated to a generic link l is computed as
w
l
¼
n
l
þ 1
C
l
; ð4Þ
where C
l
is the link capacity and n
l
is an esti-
mate of the number of active flows currently
routed over link l.
The cost cðp
i
Þ of path p
i
is then defined as fol-
lows:
cðp
i
Þ¼
X
l2p
i
w
l
; ð5Þ
and the ordering relation is such that p
i
p
j
if
cðp
i
Þ < cðp
j
Þ.
To implement the NGR algorithms, we define
the following:
Cut-off criterion C : a link is discarded if its utili-
zation is found to be above a given threshold W
t
, i.e.,
b
l
=c
l
> W
t
: ð6Þ
Combining NGR and C with either the MD or
WS QoS algorithms we obtain the NGR-MD and
NGR-WS algorithms.
In the rest of the paper, we assume W
t
¼ 1, i.e.,
if a link shows a 100% utilization, it is discarded by
the Cut-off criterion.
2.3. Implementation issues
After defining the algorithms, we are interested
in the viability of a consistent hop-by-hop imple-
mentation, in which routing decisions taken at an
upstream node are not liable to be superseded by
downstream nodes finding a locally-optimal al-
ternative to the path chosen earlier by upstream
nodes. As formally proved in [12], the WS algo-
rithm does not belong to the class of algorithms
that allow a consistent hop-by-hop implementa-
tion, while the MD algorithm can be implemented
in a hop-by-hop fashion while preserving consis-
tency. If we combine the NGR methodology
described above with those algorithms, is the hop-
by-hop implementation property preserved? Un-
fortunately, the answer is negative. The proof in
case of the NGR-MD metric is by counter-exam-
ple, while NGR-WS cannot be considered since
the WS criterion itself is not implementable hop-
by-hop. Consider the simple directed graph in Fig.
1, consisting of five links, a, b, c, d, z, each labeled
with its own weight, i.e., w
a
¼ 10, w
b
¼ 5, w
c
¼ 2,
w
d
¼ 2 and w
z
¼ 2. Let us consider the problem of
478 C. Casetti et al. / Computer Networks 41 (2003) 475–487

资源文件列表:

java基于蚁群算法路由选择可视化动态模拟.zip 大约有14个文件
  1. readme.pdf 52.77KB
  2. 论文+程序/A new class of QoS routing strategies based on network graph reduction.pdf 275.4KB
  3. 论文+程序/java程序/
  4. 论文+程序/java程序/ant.java 18.72KB
  5. 论文+程序/java程序/Antcolony.java 14.5KB
  6. 论文+程序/java程序/Configer.java 4.88KB
  7. 论文+程序/java程序/MapPad.java 13.35KB
  8. 论文+程序/java程序/Maps.java 184.04KB
  9. 论文+程序/java程序/Pheromone.java 1.74KB
  10. 论文+程序/java程序/SetInd.java 6.94KB
  11. 论文+程序/毕业设计任务书.doc 33.5KB
  12. 论文+程序/翻译.doc 8.03MB
  13. 论文+程序/开题报告.doc 38.5KB
  14. 论文+程序/论文.doc 1.46MB
0评论
提交 加载更多评论
其他资源 JAVA局域网飞鸽传书软件设计与实现.zip
这是“JAVA 局域网飞鸽传书软件设计与实现”,仅供学习参考,请勿商用。
JAVA局域网飞鸽传书软件设计与实现.zip
JAVA局域网监听软件的设计与开发.zip
这是“JAVA 局域网监听软件的设计与开发”,仅供学习参考,请勿商用。
JAVA局域网监听软件的设计与开发.zip
基于JAVA的足球社区管理系统(Vue.js+SpringBoot+MySQL)
基于Vue.js和SpringBoot的足球社区管理系统是一个功能丰富的平台,旨在为足球爱好者提供一个互动交流的空间。该系统分为用户前台和管理后台,支持管理员、教练和普通用户三种角色,以满足不同用户的需求。用户前台提供了足球资讯模块,用户可以浏览最新的足球新闻和动态;训练打卡模块,用户可以记录自己的训练情况,分享训练心得;球队管理模块,用户可以创建或加入球队,参与球队活动;场地管理模块,用户可以查看可用的足球场地信息,进行场地预约。管理后台则为管理员和教练提供了对用户、球队、场地等信息的管理功能,包括用户管理、球队管理、场地管理等,方便管理员和教练对社区进行有效管理。整个系统采用Vue.js进行前端开发,SpringBoot进行后端开发,保证了系统的高性能和良好的用户体验。 演示录屏:https://www.bilibili.com/video/BV1XvY4ezExp 配套教程:https://www.bilibili.com/video/BV1pW4y1P7GR
基于JAVA的足球社区管理系统(Vue.js+SpringBoot+MySQL) 基于JAVA的足球社区管理系统(Vue.js+SpringBoot+MySQL) 基于JAVA的足球社区管理系统(Vue.js+SpringBoot+MySQL)
基于JAVA的社区物资互助平台(Vue.js+SpringBoot+MySQL)
基于Vue.js和SpringBoot的社区物资互助平台是一个功能丰富的社区互助系统,它分为用户前台和管理后台两个部分,以满足不同角色的需求。管理员和普通用户都可以在这个平台上进行操作。平台的主要功能模块包括物资管理模块,管理员可以发布和管理物资信息,确保物资的准确性和及时性;物资捐赠模块,用户可以发布捐赠信息,其他用户可以查看并申请捐赠;求助留言模块,用户可以发布求助信息,其他用户或管理员可以提供帮助;论坛管理模块,用户可以在论坛中交流互助信息,分享经验;用户管理模块,管理员可以对用户进行管理,包括权限分配、信息审核等。整个平台的设计注重用户体验和操作便捷性,旨在打造一个高效、实用的社区互助环境。 演示录屏:https://www.bilibili.com/video/BV15SYxe3Esf 配套教程:https://www.bilibili.com/video/BV1pW4y1P7GR
基于JAVA的社区物资互助平台(Vue.js+SpringBoot+MySQL) 基于JAVA的社区物资互助平台(Vue.js+SpringBoot+MySQL) 基于JAVA的社区物资互助平台(Vue.js+SpringBoot+MySQL)
个人网站主页模板zip
绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光绝对曝光
个人网站主页模板zip
图像增强补丁3.00 请尽量使用官方无修改的游戏版本 反作弊是非法virus
图像增强补丁3.00 请尽量使用官方无修改的游戏版本, 使用其他修改版本,可能会出错。
parsec-vdd-0.45
截至当前ParsecVDisply的最新驱动程序,在ParsecVDisply软件安装向导的最后一步会提供安装的选项, 本来没必要单独下载的 但软件上没任何解释是什么作用,为了避免安装不必要的功能 最开始我就没勾选 此选项为没勾选的提供一个资源 ,当然重装软件勾选也可以。当然较老的电脑可能不支持,可以选择去我主页下载历史版本的驱动。
Parsec-vdd-cli
命令行版的parsec-vdd, Parsec-vdd 有个 Bug 作者一直没有修复(截至 v0.45.1 尚未修复)。就是系统没有其它屏幕的情况下运行出错(无法添加虚拟屏幕) 。