posed algorithm allows to exploit the benefits of struc-
tured and unstructured approach of the peer to peer
systems. The approach here analyzed is basically un-
structured and then it is easy to maintain in a dy-
namic environment where the departures and arrivals
of hosts can be frequent events. The logical reorga-
nization of the metadata can improve the rapidity and
effectiveness of discovery operations, and moreover,
it is possible perform range queries, which is typical
feature of structured peer to peer systems. In fact,
thanks to the features of hash function, the metadata
with few different bits will be located in neighboring
regions. To measure the similarity between two meta-
data the Hamming distance or the cosine of the angle
between the related vectors can be used. In section 3
a brief description of the nature-inspired algorithm is
given, but further details can be found on (Forestiero
and Mastroianni, 2009), in which a similar algorithm
was exploitedfor building a Grid InformationSystem.
2 RELATED WORKS
Hybrid approach between CDN and P2P was ana-
lyzed by several studies, but while (Kang and Yin,
2010) (Huang et al., 2008) proposed further steps into
the use of P2P to deliver multimedia content, (Mu-
lerikkal and Khalil, 2007) (Guomin et al., 2006) ex-
ploit the P2P overlay for surrogate cooperation while
leaving the clients are regular non-cooperative enti-
ties. (Xu et al., 2006) a collaboration between clients
is proposed, but clients cannot receive data from dif-
ferent sources, such as from the peering community
and CDN entities at the same time. The dynamic
nature of the today’s networks and the large variety
of the resources make the management and discovery
operations more troublesome. Administrative bottle-
necks and low scalability of centralized systems are
becoming unbearable. Innovative approaches need to
have properties as self-organization, decentralization
and adaptivity. Erdil et al. in (Erdil et al., 2006)
outline the requirements and properties of self orga-
nizing grids. Reorganization of resources to facili-
tate discovery operations and adaptive dissemination
of information, were introduced and applied in the
approach here presented. A class of agent systems
which aims to solve very complex problems by imi-
tating the behavior of some in species of ants as in-
troduced in (Bonabeau et al., 1999). In (Forestiero
et al., 2008b) and (Forestiero et al., 2008a), the perfor-
mance of discovery operations are improved through
the creation of Grid regions specialized in a particular
class of resources. Whereas (Van Dyke Parunak et al.,
2005) proposes a decentralized scheme to tune the ac-
tivity of a single agent. These systems are positioned
along a research avenue whose objective is to devise
possible applications of ant algorithms (Bonabeau
et al., 1999) (Dorigo et al., 2000). A tree-based
ant colony algorithm to support large-scale Internet-
based live video streaming broadcast in CDNs, was
proposed in (Liu et al., 2012). In this paper, differ-
ently from the traditional solution to find paths, an
algorithm to optimize the multicast tree directly and
integrate them into a multicast tree, was introduced.
3 SELF-ORGANIZING
ALGORITHM
The work of the nature inspired agents is profitably
exploited to logically reorganizethe metadata. Agents
move among hosts performing simple operations.
When an agent arrives to an host and it does’not carry
any metadata, it decides whether or not to pick one
or more metadata from the current host. While when
arrives to an host and the agent is loaded, it decides
whether or not to leave one or more metadata in the
local host. A couple of probability functions drive
agent’s decision. The probability functions are based
on a similarity function (Lumer and Faieta, 1994),
that is:
sim( ¯m, Reg) =
1
Num
m
∑
mεReg
1−
Hamming(m, ¯m)
α
(1)
The similarity of a metadata m with all the meta-
data located in the region Reg, is measured through
the function sim. The region Reg for each host h, is
represented by h and of all host reachable from h with
a given number of hops. Here it is set to 1. Num
m
is
the overall number of metadata located in Reg, while
Hamming(m, ¯m) is the Hamming distance between m
and ¯m. The similarity scale α is set to 2. The value of
sim ranges between -1 and 1, but negative values are
septated to 0. The probability function of picking a
metadata from an host will be inversely proportional
to the similarity function sim. Vice versa, the prob-
ability function of dropping a metadata will be di-
rectly proportional to the similarity function sim. The
probability functions of picking a metadata P
1
and the
probability function of leaving a metadata P
2
, are:
P
1
= (
k1
k1+ sim( ¯m, Reg)
)
2
; (2)
P
2
= (
sim( ¯m, Reg)
k2+ sim( ¯m, Reg)
)
2
(3)
Self-organizingContents
535