<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2757478326362201078</id><updated>2024-11-01T03:39:05.201-07:00</updated><title type='text'>AntNet Algorithm for NS-2</title><subtitle type='html'>ACO Algorithm for routing in IP networks.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://antnetalgorithm.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://antnetalgorithm.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Richardson Lima</name><uri>http://www.blogger.com/profile/01542908183043856765</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2757478326362201078.post-6001307311639627342</id><published>2012-08-30T07:28:00.000-07:00</published><updated>2012-08-30T07:28:03.022-07:00</updated><title type='text'>STANFORD “ANTNET”: LE FORMICHE LAVORANO COME INTERNET</title><content type='html'>&quot;&lt;span style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 17px;&quot;&gt;Apparentemente le formiche e Internet non hanno molto in comune, tuttavia due ricercatori di Stanford hanno scoperto che invece il sistema usato dalle formiche per raccogliere il cibo è concettualmente uguale agli algoritmi usati per il funzionamento di Internet.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 17px; margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 17px;&quot;&gt;Deborah Gordon, docente di Biologia dell’università, studia le formiche da oltre 20 anni e per capire in che modo le formiche determinano quante formiche servono per trasferire una fonte di cibo, ha contattato Balaji Prabhakar, docente di informatica ed esperto nel trasferimento dei dati.&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 17px; margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 17px; margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 17px;&quot;&gt;Grazie a questa singolare collaborazione, è stato possibile determinare la somiglianza tra il sistema adoperato dalle formiche e il protocollo TCP (Transmission Control Protocol), ovvero quella serie di regole che determinano come devono essere trasferiti i dati su Internet...&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 17px; margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 17px; margin: 0px; padding: 0px;&quot; /&gt;&lt;i style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 17px; margin: 0px; padding: 0px;&quot;&gt;Continua a leggere questa notizia su&amp;nbsp;&lt;a href=&quot;http://www.pianetatech.it/hardware/curiosita/hi-tech/stanford-antnet-formiche-lavorano-come-internet.html&quot; rel=&quot;nofollow&quot; style=&quot;color: black; font-weight: bold; margin: 0px; padding: 0px;&quot; target=&quot;_blank&quot;&gt;pianetatech.it&lt;/a&gt;.&lt;/i&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 17px;&quot;&gt;&amp;nbsp;&quot;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://antnetalgorithm.blogspot.com/feeds/6001307311639627342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/stanford-antnet-le-formiche-lavorano.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/6001307311639627342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/6001307311639627342'/><link rel='alternate' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/stanford-antnet-le-formiche-lavorano.html' title='STANFORD “ANTNET”: LE FORMICHE LAVORANO COME INTERNET'/><author><name>Richardson Lima</name><uri>http://www.blogger.com/profile/01542908183043856765</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2757478326362201078.post-3832741134559937750</id><published>2012-08-02T17:53:00.001-07:00</published><updated>2012-08-02T17:53:24.618-07:00</updated><title type='text'>Online AntNet Simulator</title><content type='html'>&lt;a href=&quot;http://w3.ualg.pt/~pcardoso/antnet_simulator/main.html&quot;&gt;http://w3.ualg.pt/~pcardoso/antnet_simulator/main.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://antnetalgorithm.blogspot.com/feeds/3832741134559937750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/online-antnet-simulator.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/3832741134559937750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/3832741134559937750'/><link rel='alternate' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/online-antnet-simulator.html' title='Online AntNet Simulator'/><author><name>Richardson Lima</name><uri>http://www.blogger.com/profile/01542908183043856765</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2757478326362201078.post-583265156596306997</id><published>2012-08-02T16:50:00.002-07:00</published><updated>2012-08-02T16:50:41.928-07:00</updated><title type='text'>Examples of the algorithm Reviewed AntNet: Data Structures</title><content type='html'>&lt;br /&gt;
&lt;b&gt;Routing Table&lt;/b&gt;&lt;br /&gt;
For any one destination d, and for each neighbor node n, is likely Pnd, which represents the &quot;trend&quot; to choose the node n as part of the path to the destination d.&lt;br /&gt;
Local Traffic Statistics&lt;br /&gt;
Contains information about the distribution of traffic across the network.&lt;br /&gt;
&lt;br /&gt;
AntNet: Description of the algorithm&lt;br /&gt;
At each time interval t, at each node n is created an ant (Forward Ant), with a pseudo-random target (dependent on traffic patterns).&lt;br /&gt;
The goal of each ant is to find a path from origin to destination, and let each node visited, useful information for future ants. Each Forward Ant saves in its memory, which we visited and the time spent between each one.&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://antnetalgorithm.blogspot.com/feeds/583265156596306997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/examples-of-algorithm-reviewed-antnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/583265156596306997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/583265156596306997'/><link rel='alternate' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/examples-of-algorithm-reviewed-antnet.html' title='Examples of the algorithm Reviewed AntNet: Data Structures'/><author><name>Richardson Lima</name><uri>http://www.blogger.com/profile/01542908183043856765</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2757478326362201078.post-9083013769097773815</id><published>2012-08-02T16:49:00.004-07:00</published><updated>2012-08-02T16:49:50.778-07:00</updated><title type='text'>Artificial ants (AntNet)</title><content type='html'>&lt;br /&gt;
AntNet is an algorithm to adapt the best effort routing in IP networks.&lt;br /&gt;
AntNet&#39;s design is based on ant colony optimization (ACO), which explores the mechanisms behind the behavior of ants, using the shortest way to define a meta-heuristic inspired by nature for combinatorial optimization.&lt;br /&gt;
The ACO is characterized by a multi-agent using estigmergia communication between agents (distributed transactions), using a stochastic policy decision to build solutions, estigmergia learning the parameters of the policy decision. It has been successfully applied to a variety of combinatorial problems. AntNet was the first algorithm&lt;br /&gt;
ACO for routing in packet-switched networks. This work is based on the work of Dr. Gianni Di Caro in AntNet, under the supervision of Prof. Marco Dorigo.&lt;br /&gt;
AntNet, as well as most other algorithms based on ACO, displays a series of interesting properties: it works in a fully distributed, it is highly adaptable to changing network and traffic, uses lightweight mobile agents (called ants) for sampling path assets, is robust to failures of the agent, has several routing paths, and automatically takes care of loading data from spreading.&lt;br /&gt;
&lt;br /&gt;
The performance of AntNet has been extensively tested in simulations, considering the different networks and traffic patterns, and compared to various routing algorithms (state-of-the-art). In the vast majority of situations, AntNet far surpassed all its competitors, showing excellent adaptability and robustness. AntNet has also been tested in small physical networks, confirming the good results and performance in real world tests.&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://antnetalgorithm.blogspot.com/feeds/9083013769097773815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/artificial-ants-antnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/9083013769097773815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/9083013769097773815'/><link rel='alternate' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/artificial-ants-antnet.html' title='Artificial ants (AntNet)'/><author><name>Richardson Lima</name><uri>http://www.blogger.com/profile/01542908183043856765</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2757478326362201078.post-788429088096227779</id><published>2012-08-02T16:49:00.002-07:00</published><updated>2012-08-02T16:49:07.236-07:00</updated><title type='text'>Real ants</title><content type='html'>&lt;br /&gt;
The behavior in search of food in many societies of ants is based on indirect communication based on pheromones.&lt;br /&gt;
While walking from the nest to food sources and vice versa, ants leave a chemical trail (pheromone) forming a trail for other ants.&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://antnetalgorithm.blogspot.com/feeds/788429088096227779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/real-ants.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/788429088096227779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/788429088096227779'/><link rel='alternate' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/real-ants.html' title='Real ants'/><author><name>Richardson Lima</name><uri>http://www.blogger.com/profile/01542908183043856765</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2757478326362201078.post-5377070567066812970</id><published>2012-08-02T16:45:00.002-07:00</published><updated>2012-08-02T16:45:11.534-07:00</updated><title type='text'>Metrics and goals of the routing</title><content type='html'>&lt;br /&gt;
The metrics can be defined as delay in the delivery of packets (seconds), service quality, speed at which packets are sent (bits / second), the network resources used. Have the goals may be too much load, increase the amount of packets sent on the same average delay, with low (decreasing the average delay of each packet).&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://antnetalgorithm.blogspot.com/feeds/5377070567066812970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/metrics-and-goals-of-routing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/5377070567066812970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/5377070567066812970'/><link rel='alternate' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/metrics-and-goals-of-routing.html' title='Metrics and goals of the routing'/><author><name>Richardson Lima</name><uri>http://www.blogger.com/profile/01542908183043856765</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2757478326362201078.post-5255456341583972279</id><published>2012-08-02T16:44:00.002-07:00</published><updated>2012-08-02T16:44:38.893-07:00</updated><title type='text'>ACO - Algorithm  Routing in Networks</title><content type='html'>&lt;br /&gt;
The routing algorithm is distributed throughout the network, you must choose the best path to take the packages to your destination and avoid congestion. Most algorithms using data structures in the nodes (Routing Tables), these structures are both databases and local models of global state, the information such as store and update depends on the algorithm used.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://antnetalgorithm.blogspot.com/feeds/5255456341583972279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/aco-algorithm-routing-in-networks.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/5255456341583972279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/5255456341583972279'/><link rel='alternate' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/aco-algorithm-routing-in-networks.html' title='ACO - Algorithm  Routing in Networks'/><author><name>Richardson Lima</name><uri>http://www.blogger.com/profile/01542908183043856765</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2757478326362201078.post-4410755015359160002</id><published>2012-08-02T16:43:00.002-07:00</published><updated>2012-08-02T16:43:45.598-07:00</updated><title type='text'>Estigmergia</title><content type='html'>&lt;br /&gt;
Term introduced by the French zoologist Pierre-Paul Grasse in 1959.&lt;br /&gt;
Estigmergia: Greek stigma (mark, sign) + ergon (action, work), the term refers to the notion that an action of a particular agent ceases signals in the environment, and this signal can be perceived by other agents (usually the same species) in order to incite or determine its subsequent actions. In real ants, this signal (or communication) is made by deposition of pheromone in the environment.&lt;br /&gt;
The shortest paths emerge from the collective behavior through:&lt;br /&gt;
A choice location and probability of each ant on where to move, and most likely paths that have more pheromones.&lt;br /&gt;
An indirect way of communication (Estigmergia), when the ants leave a trail of pheromone, modify how the next ants shall go see the local terrain, influencing the choice of the next way forward ants.&lt;br /&gt;
When reading / writing the pheromone chemical signal in a local ants are communicating indirectly via the environment&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://antnetalgorithm.blogspot.com/feeds/4410755015359160002/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/estigmergia.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/4410755015359160002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/4410755015359160002'/><link rel='alternate' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/estigmergia.html' title='Estigmergia'/><author><name>Richardson Lima</name><uri>http://www.blogger.com/profile/01542908183043856765</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2757478326362201078.post-4155471483803787879</id><published>2012-08-02T16:42:00.001-07:00</published><updated>2012-08-02T16:42:29.209-07:00</updated><title type='text'>ACO: Pseudo-code</title><content type='html'>&lt;br /&gt;
1: Initialize parameters&lt;br /&gt;
2: Initialize array heuristic&lt;br /&gt;
3: Initialize the pheromone matrix&lt;br /&gt;
4: while stopping conditions not satisfied do&lt;br /&gt;
5: to build solutions&lt;br /&gt;
6: Apply Local Search (optional)&lt;br /&gt;
7: Pheromone Update&lt;br /&gt;
8: end while&lt;br /&gt;
9: View best solution&lt;br /&gt;
10: Stop&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://antnetalgorithm.blogspot.com/feeds/4155471483803787879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/aco-pseudo-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/4155471483803787879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/4155471483803787879'/><link rel='alternate' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/aco-pseudo-code.html' title='ACO: Pseudo-code'/><author><name>Richardson Lima</name><uri>http://www.blogger.com/profile/01542908183043856765</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2757478326362201078.post-4109310387159233981</id><published>2012-08-02T16:41:00.003-07:00</published><updated>2012-08-02T16:41:31.137-07:00</updated><title type='text'>Introduction ACO AntNet</title><content type='html'>&lt;br /&gt;
Currently, researchers around the world propose new methods to solve classical problems or complex, so simple and / or efficient.&lt;br /&gt;
A simple proof of this are the new optimization techniques based on swarm intelligence, where through cooperation between individuals, directly or indirectly, can be a better adaptation of the environment.&lt;br /&gt;
An example of a swarm intelligence technique is the ant colony optimization (ACO), inspired by the behavior of agents (artificial ants) in search of alimento.A ant colony optimization, originally described by Dorigo (1992), has idea primarily as indirect communication among its subjects, through the path made by each ant during the exploration of the search space. This track is made using a kind of artificial pheromone, which acts as an attraction for them, serving as information perceived by the ants which is modified to reflect your current search experience.&lt;br /&gt;
&lt;br /&gt;
The motivation of this work is to implement and evaluate the feasibility of a new target for heuristic called Ant Colony Optimization (ACO - Ant Colony Optimization), in solving routing problem in IP networks. Inspired by the behavior of some species of ants the analogy of the problem is that the ants would seek the best path with lower cost and time (effort) for moths acceptable computational routes.&lt;br /&gt;
&lt;br /&gt;
The whole context was simulated by me using the NS-2 algorithm with AntNet integrated three topologies were adopted, 3x4 mesh networks, ring topology using three nodes and an arbitrary topology using 12 nodes&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://antnetalgorithm.blogspot.com/feeds/4109310387159233981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/introduction-aco-antnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/4109310387159233981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/4109310387159233981'/><link rel='alternate' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/introduction-aco-antnet.html' title='Introduction ACO AntNet'/><author><name>Richardson Lima</name><uri>http://www.blogger.com/profile/01542908183043856765</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2757478326362201078.post-4797774332054462333</id><published>2012-08-02T16:40:00.002-07:00</published><updated>2012-08-02T16:40:12.240-07:00</updated><title type='text'>ACO</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span class=&quot;longtext&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US;&quot;&gt;I present this site, a stochastic meta-heuristic inspired by
nature, based on Ant Colony Optimization for (ACO), originally formulated for
combinatorial optimization problems, and a Genetic Algorithm (AntNet) to solve
the problem of routing in IP networks. Solving the problem of routing in IP
networks is complex because it involves a search in a huge search space that
grows as the number of nodes, making it impractical to use exact methods. The proposed
algorithm is Antnet to obtain good results, so as to circumvent the question of
the complexity of the problem. &lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US;&quot;&gt;&lt;br /&gt;
&lt;span class=&quot;longtext&quot;&gt;The ant colony optimization (ACO) is a new meta-heuristic
that mimics the behavior of a population of agents (ants) in search of food. Through
the use of cooperation mechanisms and adaptation, this technique emulates
nature so as to obtain promising solutions with simple ideas. &lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;longtext&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US;&quot;&gt;With this, the ACO is proving to be a competitive
approach in relation to other strategies presented in the literature. &lt;span style=&quot;background: white;&quot;&gt;Regarding the application of this technique, the same
can be applied in a wide range of problems, being among the best known, for
example, the problem of vehicle routing, restoration of electrical power
systems, routing in IP networks.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Arial, sans-serif; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://antnetalgorithm.blogspot.com/feeds/4797774332054462333/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/aco.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/4797774332054462333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/4797774332054462333'/><link rel='alternate' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/aco.html' title='ACO'/><author><name>Richardson Lima</name><uri>http://www.blogger.com/profile/01542908183043856765</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2757478326362201078.post-6130465736982126036</id><published>2012-08-02T15:31:00.002-07:00</published><updated>2012-08-02T15:31:54.705-07:00</updated><title type='text'>Antnet abstract</title><content type='html'>&lt;br /&gt;
&lt;h2 style=&quot;background-color: white; color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 16px; line-height: 18px; margin: 0px; padding: 9px 0px 0px; text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;AntNet&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 12px; line-height: 18px; padding: 10px 0px 0px; text-align: justify;&quot;&gt;
AntNet is an algorithm for adaptive best-effort routing in IP networks. AntNet’s design is based on the&amp;nbsp;&lt;a href=&quot;http://www.idsia.ch/~gianni/antnet.html#ACO&quot; style=&quot;color: #105cb6;&quot; target=&quot;_blank&quot;&gt;Ant Colony Optimization (ACO)&lt;/a&gt;&amp;nbsp;framework, which exploits the mechanisms behind the shortest path behavior observed in ant colonies to define a Nature-inspired metaheuristic for combinatorial optimization. ACO features a multi-agent organization, stigmergic communication among the agents, distributed operations, use of a stochastic decision policy to construct solutions, stigmergic learning of the parameters of the decision policy, and so on. It has been applied with success to a large variety of combinatorial problems. AntNet has been the first ACO algorithm for routing in packet-switched networks. My first work on AntNet dates back to 1997. AntNet, as well as most of the other ACO routing algorithms designed after AntNet, exhibits a number of interesting properties: it works in a fully distributed way, is highly adaptive to network and traffic changes, uses lightweight mobile agents (called ants) for active path sampling, is robust to agent failures, provides multipath routing, and automatically takes care of data load spreading. AntNet’s performance has been extensively tested, considering different networks and traffic patterns, and compared to several state-of-the-art routing algorithms. In the great majority of the considered situations, AntNet has largely outperformed all its competitors, showing excellent adaptivity and robustness.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 12px; line-height: 18px; padding: 10px 0px 0px; text-align: left;&quot;&gt;
&lt;a href=&quot;http://www.idsia.ch/~gianni/antnet.html&quot; style=&quot;color: #105cb6;&quot;&gt;More information&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://antnetalgorithm.blogspot.com/feeds/6130465736982126036/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/antnet-abstract.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/6130465736982126036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/6130465736982126036'/><link rel='alternate' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/antnet-abstract.html' title='Antnet abstract'/><author><name>Richardson Lima</name><uri>http://www.blogger.com/profile/01542908183043856765</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2757478326362201078.post-4251130408928594747</id><published>2012-08-02T15:30:00.003-07:00</published><updated>2012-08-02T15:30:59.570-07:00</updated><title type='text'>Download AntNet</title><content type='html'>&lt;br /&gt;
&lt;h2 style=&quot;background-color: white; color: #333333; font-family: Arial, Helvetica, Georgia, sans-serif; font-size: 16px; line-height: 27px; margin: 0px; padding: 0px 0px 2px; text-align: left;&quot;&gt;
Download the Antnet&amp;nbsp;Algorithm&lt;/h2&gt;
&lt;br /&gt;
&lt;a href=&quot;https://github.com/richardsonlima/antnet/downloads&quot;&gt;https://github.com/richardsonlima/antnet/downloads&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://antnetalgorithm.blogspot.com/feeds/4251130408928594747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/download-antnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/4251130408928594747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/4251130408928594747'/><link rel='alternate' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/download-antnet.html' title='Download AntNet'/><author><name>Richardson Lima</name><uri>http://www.blogger.com/profile/01542908183043856765</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2757478326362201078.post-4189170879868033890</id><published>2012-08-02T15:29:00.000-07:00</published><updated>2012-08-02T15:29:15.158-07:00</updated><title type='text'>AntNet Algorithm on Google+</title><content type='html'>AntNet is an algorithm for adaptive best-effort routing in IP networks.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://plus.google.com/b/108902716282114833896/108902716282114833896/posts&quot;&gt;https://plus.google.com/b/108902716282114833896/108902716282114833896/posts&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://antnetalgorithm.blogspot.com/feeds/4189170879868033890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/antnet-algorithm-on-google.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/4189170879868033890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/4189170879868033890'/><link rel='alternate' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/antnet-algorithm-on-google.html' title='AntNet Algorithm on Google+'/><author><name>Richardson Lima</name><uri>http://www.blogger.com/profile/01542908183043856765</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2757478326362201078.post-8069380514453910381</id><published>2012-08-02T15:26:00.004-07:00</published><updated>2012-08-02T15:26:58.377-07:00</updated><title type='text'>Gianni Di Caro publication about AntNet implementation for NS-2</title><content type='html'>&lt;span style=&quot;background-color: white; font-family: arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;Gianni Di Caro ,senior researcher at Istituto Dalle Molle di Studi sull&#39;Intelligenza Artificiale (IDSIA), in Lugano, Switzerland says [ Software implementations of AntNet ] &quot;Lavina Jain made an implementation of AntNet for NS-2 (that can be also downloaded here). Starting from Jain&#39;s code, Richardson Lima has released a revised and updated version of AntNet for NS-2.33. Since I&#39;m not an NS-2 user, I haven&#39;t checked these implementations, but I guess the Lima&#39;s implementation can be used as a good starting point. If you plan to use Lima&#39;s code, please feel free to contact me to check/improve the quality of the implementation.&quot;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://antnetalgorithm.blogspot.com/feeds/8069380514453910381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/gianni-di-caro-publication-about-antnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/8069380514453910381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/8069380514453910381'/><link rel='alternate' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/gianni-di-caro-publication-about-antnet.html' title='Gianni Di Caro publication about AntNet implementation for NS-2'/><author><name>Richardson Lima</name><uri>http://www.blogger.com/profile/01542908183043856765</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2757478326362201078.post-712738474439681837</id><published>2012-08-02T15:24:00.003-07:00</published><updated>2012-08-02T15:24:53.444-07:00</updated><title type='text'>AntNet Algorithm Source Code on github</title><content type='html'>&lt;a href=&quot;https://github.com/richardsonlima/antnet&quot;&gt;https://github.com/richardsonlima/antnet&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;h1 style=&quot;-webkit-font-smoothing: antialiased; border: 0px; cursor: text; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 28px; margin: 0px 0px 10px; padding: 0px; position: relative;&quot;&gt;
AntNet Algorithm for The Network Simulator - ns-2 (&lt;a href=&quot;http://www.isi.edu/nsnam/ns/&quot; style=&quot;border: 0px; color: #4183c4; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;www.isi.edu/nsnam/ns/&lt;/a&gt;)&lt;/h1&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; padding: 0px;&quot;&gt;
AntNet Algorithm - Ant-based routing in networks&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
Antnet for NS2.34 Antnet implementation for ns2.34 based on the version for ns2.33 by Richardson Lima description available at&lt;a href=&quot;http://antnetalgorithm.blogspot.com.br/&quot; style=&quot;border: 0px; color: #4183c4; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;http://antnetalgorithm.blogspot.com.br&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href=&quot;http://antnet.wordpress.com/&quot; style=&quot;border: 0px; color: #4183c4; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;http://antnet.wordpress.com&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
Matthew Orlinski at&amp;nbsp;&lt;a href=&quot;mailto:orlinskm@cs.man.ac.uk&quot; style=&quot;border: 0px; color: #4183c4; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;orlinskm@cs.man.ac.uk&lt;/a&gt;&amp;nbsp;and Richardson Lima at&amp;nbsp;&lt;a href=&quot;mailto:richardsonlimasurfjiujitsu@gmail.com&quot; style=&quot;border: 0px; color: #4183c4; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;richardsonlimasurfjiujitsu@gmail.com&lt;/a&gt;&amp;nbsp;with suggestions/improvements&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
REMEMBER, YOU NEED GCC4.0 TO INSTALL NS2.34 * *********************************************** WARNING If you have made any alterations to your NS2.34 (e.g. installing newer protocols), installing with the below instructions MAY overright your changes. If you have made alterations and you still want to use this protocol. The changelog below should be helpful to you in getting Antnet into ns2.34 without destroying your additions.&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
Instructions copy the files provided into NS2.34 directory as is.&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
Run: ./configure make&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
Finally, enjoy&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
Change log for none destructive install Additions we&#39;re made to ns2.34 to get antnet to work. The below is a guide only to be used in troubleshooting and ARE NOT COMPLETE INSTRUCTIONS. Not all changes are documented below but with these and following the clear advice on&amp;nbsp;&lt;a href=&quot;http://elmurod.net/wps/?p=157&quot; style=&quot;border: 0px; color: #4183c4; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;http://elmurod.net/wps/?p=157&lt;/a&gt;&amp;nbsp;on how to add a new routing protocol (TIP: Follow the instructions on the site substituting his protocol name &quot;wfrp&quot; for &quot;antnet&quot; and then make the changes below. This should get you antnet compiled and working)&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
// =========================== // queue/drop-tail.h // =========================== [Code]&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
public: int getlength();&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
[/Code] Added to the DropTail class&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
// =========================== // queue/drop-tail.cc // =========================== [Code]&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
int DropTail::getlength() { return q_-&amp;gt;length(); } [/Code] add this method to queue/drop-tail.cc&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
// =========================== // queue/priqueue.cc // =========================== [Code]&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
case PT_ANT: if (ch-&amp;gt;direction() == hdr_cmn::UP) { recvHighPriority(p, h); } else { Queue::recv(p, h); } break; [/Code] Added to queue/priqueue.cc instead&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
// =========================== // common/packet.h // =========================== [Code]&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
name_[PT_ANT] = &quot;Ant&quot;; [/Code] Basically anywhere that the WFRP tutorial (The website above) tells you to put PT_WFRP, put PT_ANT instead&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
// =========================== // trace/cmu-trace.cc // =========================== [Code]&lt;/div&gt;
&lt;h1 style=&quot;-webkit-font-smoothing: antialiased; border: 0px; cursor: text; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 28px; margin: 20px 0px 10px; padding: 0px; position: relative;&quot;&gt;
&lt;a class=&quot;anchor&quot; href=&quot;https://github.com/richardsonlima/antnet#include-&quot; name=&quot;include-&quot; style=&quot;border: 0px; bottom: 0px; color: #4183c4; cursor: pointer; display: block; left: 0px; margin: 0px 0px 0px -30px; padding: 0px 0px 0px 30px; position: absolute; text-decoration: none; top: 0px;&quot;&gt;&lt;/a&gt;include&lt;/h1&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; padding: 0px;&quot;&gt;
[/Code] Remember to include this in cmu-trace.cc&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
[Code]&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
void CMUTrace::format_antnet(Packet *p, int offset) { struct hdr_ant_pkt *ah = HDR_ANT_PKT(p);&lt;/div&gt;
&lt;pre style=&quot;background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(204, 204, 204); color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Courier, monospace; font-size: 13px; line-height: 19px; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px;&quot;&gt;&lt;code style=&quot;background-color: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: none; font-family: Consolas, &#39;Liberation Mono&#39;, Courier, monospace; font-size: 12px; margin: 0px; padding: 0px;&quot;&gt;if (pt_-&amp;gt;tagged()) {
sprintf(pt_-&amp;gt;buffer() + offset,
    &quot;-ant:o %d -ant:s %d -ant:l %d &quot;,
    ah-&amp;gt;pkt_src(), ah-&amp;gt;pkt_seq_num(), ah-&amp;gt;pkt_len());
}
else if (newtrace_) {
sprintf(pt_-&amp;gt;buffer() + offset,
    &quot;-P ant -Po %d -Ps %d -Pl %d &quot;,
    ah-&amp;gt;pkt_src(), ah-&amp;gt;pkt_seq_num(), ah-&amp;gt;pkt_len());
}
else {
sprintf(pt_-&amp;gt;buffer() + offset,
    &quot;[ant %d %d %d] &quot;,
    ah-&amp;gt;pkt_src(), ah-&amp;gt;pkt_seq_num(), ah-&amp;gt;pkt_len());
}
&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
} [/Code] The trace format function in cmu-trace.cc is the above taken from the ns2.33 version by Richardson Lima&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
[Code]&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
case PT_ANT: format_antnet(p, offset); break; [/Code] Add this to the function CMUTrace::format(.....&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
// =========================== // tcl/lib/ns-default.tcl // =========================== [Code]&lt;/div&gt;
&lt;h1 style=&quot;-webkit-font-smoothing: antialiased; border: 0px; cursor: text; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 28px; margin: 20px 0px 10px; padding: 0px; position: relative;&quot;&gt;
&lt;a class=&quot;anchor&quot; href=&quot;https://github.com/richardsonlima/antnet#defaults-for-antnet&quot; name=&quot;defaults-for-antnet&quot; style=&quot;border: 0px; bottom: 0px; color: #4183c4; cursor: pointer; display: block; left: 0px; margin: 0px 0px 0px -30px; padding: 0px 0px 0px 30px; position: absolute; text-decoration: none; top: 0px;&quot;&gt;&lt;/a&gt;Defaults for Antnet&lt;/h1&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; padding: 0px;&quot;&gt;
Agent/Antnet set num&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;nodes_x&lt;/em&gt;&amp;nbsp;4 Agent/Antnet set num&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;nodes_y&lt;/em&gt;&amp;nbsp;4 Agent/Antnet set num&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;nodes&lt;/em&gt;&amp;nbsp;16 Agent/Antnet set r&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;factor&lt;/em&gt;&amp;nbsp;0.001 Agent/Antnet set timer&lt;em style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;ant&lt;/em&gt;&amp;nbsp;0.03 [/Code] Add this at the end&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-top: 15px; padding: 0px;&quot;&gt;
// =========================== // tcl/lib/ns-default.tcl // =========================== [Code]&lt;/div&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; margin-top: 15px; padding: 0px;&quot;&gt;
Simulator instproc get-drop-queue { n1 n2 } { $self instvar link_ set q [$link_($n1:$n2) queue] return $q } [/Code] Add this code to tcl/lib/ns-lib.tcl&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://antnetalgorithm.blogspot.com/feeds/712738474439681837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/antnet-algorithm-source-code-on-github.html#comment-form' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/712738474439681837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/712738474439681837'/><link rel='alternate' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/antnet-algorithm-source-code-on-github.html' title='AntNet Algorithm Source Code on github'/><author><name>Richardson Lima</name><uri>http://www.blogger.com/profile/01542908183043856765</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2757478326362201078.post-6000498757404234189</id><published>2012-08-02T15:21:00.002-07:00</published><updated>2012-08-02T15:21:33.381-07:00</updated><title type='text'>AntNet Algorithm on ENSC427: COMMUNICATION NETWORKS  SPRING 2011</title><content type='html'>&lt;span style=&quot;background-color: white; font-family: arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&quot;One of the implementations for routing in MANET is Antnet, first developed by Lavina Jain and later updated by Richardson Lima[1]. Inspired by the foraging behaviour of ants when they search for food and the swarm intelligence to the optimized path between a food source and colony, each node in a MANET stores routing information for the neighbouring nodes and their usage as pheromone values and routes incoming packets to the path with the highest pheromone value. However, during initialization and route discovery phase, all the pheromone values are set equal and nodes route incoming packets randomly until the pheromone value converges to the optimum values. &quot;&amp;nbsp;&lt;/span&gt;&lt;a class=&quot;ot-anchor&quot; href=&quot;http://www.sfu.ca/~ela6/ProjectReport.pdf&quot; style=&quot;background-color: white; color: #3366cc; cursor: pointer; font-family: arial, sans-serif; font-size: 13px; line-height: 18px; text-decoration: none;&quot;&gt;http://www.sfu.ca/~ela6/ProjectReport.pdf&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://antnetalgorithm.blogspot.com/feeds/6000498757404234189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/antnet-algorithm-on-ensc427.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/6000498757404234189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2757478326362201078/posts/default/6000498757404234189'/><link rel='alternate' type='text/html' href='http://antnetalgorithm.blogspot.com/2012/08/antnet-algorithm-on-ensc427.html' title='AntNet Algorithm on ENSC427: COMMUNICATION NETWORKS  SPRING 2011'/><author><name>Richardson Lima</name><uri>http://www.blogger.com/profile/01542908183043856765</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>