<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JCC</journal-id><journal-title-group><journal-title>Journal of Computer and Communications</journal-title></journal-title-group><issn pub-type="epub">2327-5219</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jcc.2015.310004</article-id><article-id pub-id-type="publisher-id">JCC-60731</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  Research on Application of Mobile Agent Based on Immune Algorithms in Ad Hoc Network
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>inggong</surname><given-names>Ma</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Bo</surname><given-names>Yang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Changzhou University Huaide College, Taizhou, China</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>hd.xxzx@cczu.edu.cn(IM)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>14</day><month>10</month><year>2015</year></pub-date><volume>03</volume><issue>10</issue><fpage>31</fpage><lpage>35</lpage><history><date date-type="received"><day>14</day>	<month>September</month>	<year>2015</year></date><date date-type="rev-recd"><day>accepted</day>	<month>26</month>	<year>October</year>	</date><date date-type="accepted"><day>29</day>	<month>October</month>	<year>2015</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  Ad Hoc network is a kind of multi hop, self-organizing wireless network without center. Each node in network can be used as host as well as router and it can form any network topology through wireless connections. Because of characteristics of itself, many new service items and application fields appear; meanwhile, it is also faced with many new security threats. Using immune agent can perceive the change of network node and make corresponding decision behavior, find the misbehavior nodes in the network as soon as possible and reduce the network attack and improve the immune competence of network.
 
</p></abstract><kwd-group><kwd>Immune Network</kwd><kwd> Mobile Agent</kwd><kwd> Ad Hoc Network Security</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Mobile Ad Hoc network [<xref ref-type="bibr" rid="scirp.60731-ref1">1</xref>] is a collection of multiple mobile nodes that can communicate with each other without fixed infrastructure and network topology can arbitrarily change. As a kind of special wireless network, nodes in network generally consist of mobile terminal. Because Ad Hoc network has characteristics of open media, dynamic topology, lack of center authentication mechanism, and limited node ability, compared with traditional network, it has more network security problems. Security problems have become choke point to hinder the development of Ad Hoc network. Attacks in Ad Hoc network can be divided into “active attack” and “passive attack”. Active attack can be detected easily but passive attack has high concealment and it is not easy to be found [<xref ref-type="bibr" rid="scirp.60731-ref2">2</xref>] . While mobile agent based on immune system can well monitor each node in the network, timely find its misconduct and make use of the immune ability of the network to restore the health of network nodes or eliminate it out of the entire network. This article will focus on how to apply immune algorithms and mobile agent to improve network security performance in Ad Hoc network.</p></sec><sec id="s2"><title>2. Immunology Principle</title><sec id="s2_1"><title>2.1. Immune System</title><p>Immune system is a highly collateral distributed, adaptive information processing learning system [<xref ref-type="bibr" rid="scirp.60731-ref3">3</xref>] . The system can recognize self and non-self materials, eliminate and defend foreign invasive viral substances or molecules. In order to recognize self and non-self materials, in biological systems, it usually has T cells that specially detect antigen and B cells that produce antibody. There are two types of T cells. One kind is the helper T cell Th that is in the majority to be responsible for promoting B cells to secrete antibodies and strengthen the immune function of T cells and macrophage; another kind is suppressor T cell Ts, which activates under the action of cytokines to form effector cell and eliminate bad cells.</p><p>The immune response can be divided into three phages: immune recognition phase, antibody production stage, antigen elimination stage.</p><p>1) Immune recognition phase: when external antigen enters in the system, at first, the T cell does immunological recognition. If it recognized similar antigen and retain the information before, the memory part of T cell will combine with the antigen to realize immunological recognition;</p><p>2) Antibody production stage: if T cell has recognized the antigen, T cell will be activated and stimulate B cell to secrete large amounts of antibodies;</p><p>3) Antigen elimination stage: antibodies produced by B cell combine with antigen, which destroy the activity of antigen and it excretes the antigen out of the body. The antigen disappears, and the immune system returns to normal.</p></sec><sec id="s2_2"><title>2.2. Immune Algorithms</title><p>Immune algorithm is the learning algorithm based on the immune system [<xref ref-type="bibr" rid="scirp.60731-ref4">4</xref>] , and there are four basic elements, antigen recognition, antibody formation, immune selection and immune memory respectively. In the algorithm, regard the objective function of the optimal solution as the antigen, including problems to be solved and various constraint conditions. Solve the fitness function <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x5.png" xlink:type="simple"/></inline-formula> of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x6.png" xlink:type="simple"/></inline-formula> and regard it as antigen, search the direction and the distribution of solution group according to concentration adaptive modulation of antibody. The representa-</p><p>tion of immune selection is<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x7.png" xlink:type="simple"/></inline-formula>. Immune memory refers to reserving the solving result of a</p><p>specific problem and characteristics and parameters of the problem as initial solutions to solve the similar problems next time so as to accelerate the solving speed and effect.</p><p>The process to realize immune algorithms is as follows:</p><p>1) Initialization, randomly generate initial B cell mass <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x8.png" xlink:type="simple"/></inline-formula></p><p>2) Calculate the fitness of each B cell to generate antibodies <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x9.png" xlink:type="simple"/></inline-formula></p><p>3) Save B cell with the optimal antibody as immune memory cell <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x10.png" xlink:type="simple"/></inline-formula></p><p>4) Calculate the concentration of antibody and generate B cell mass <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x11.png" xlink:type="simple"/></inline-formula> according to the probability of immune selection.</p><p>5) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x12.png" xlink:type="simple"/></inline-formula>forms the next generation <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x13.png" xlink:type="simple"/></inline-formula> of B cell through clone and differentiation.</p><p>6) If immune memory cell hasn’t completely recognized antigen, return to step 2).</p></sec></sec><sec id="s3"><title>3. The Working Mechanism of Mobile Agent</title><p>Agent technology derives from artificial intelligence domain [<xref ref-type="bibr" rid="scirp.60731-ref5">5</xref>] , can simulate human behavior and relationships and it is a procedure that can run independently and provide specific service. It can sense the environment change, make judgment and reasoning for changes and form the decision to control corresponding behavior and complete a task. Compared with traditional distributed computing model, mobile agent technology has many advantages, such as save network bandwidth, support off-line calculating, unrelated to platform and balance computation load, etc. In the network environment, under the self-control, the mobile agent can move from one computer to another computer, hang up at any point, and it continues execution from the hanging point when moving to a new machine. Under normal circumstances, mobile agent system (MAS) includes mobile agent MA and mobile agent platform MAE. Mobile agent platform is responsible for establishing safe and correct operation environment for mobile agent, providing basic services and forming restriction mechanism, fault-tolerance strategy and security control for MA. The mobility of mobile agent and the solving ability of problems depend largely on the services provided by mobile agent platform.</p></sec><sec id="s4"><title>4. The Application of Immune Agents in Ad Hoc Network</title><p>Because the Ad Hoc network topology is changeful, the establishment of a connection mode completely depends on the location of each node and coverage area of their transceiver. Each node in the network is equivalent to a router, realizing the retransmission of information packet and participating in the discovery and maintenance of route. Ad Hoc network brings convenience to people and is faced with serious security threat. Attacks from network can be divided into passive attacks and active attacks. Under passive attack mode, attackers don’t interfere with the communication of network nodes and their purpose is to obtain sensitive information in the network; active attack refers to that the attackers interfere with or destroy the communication of network nodes and cause that the network nodes cannot work normally. Flooding DDOS attack is a typical attack type. In order to early find misbehavior nodes in network and maintain normal communication of the system, this article combines immune algorithm with mobile agent and applies them to Ad Hoc network, makes network node can dynamically monitor change situation of other nodes in network, timely remove or restrict the behavior of misbehavior nodes and realize autonomous management of network nodes under the circumstances of no one involved.</p><sec id="s4_1"><title>4.1. Working Model of Immune Agent</title><p>It is easy to find the corresponding relation between immune system and Ad Hoc network through analyzing the division of labor of lymphocyte, T cell, B cell and the working mechanisms of mobile agent in immune system. The security architecture of Ad Hoc network is equivalent to the entire immune system; misbehavior nodes in Ad Hoc network are equivalent to the antigens in immune system; normal nodes in Ad Hoc network are equivalent to healthy cells in immune system; mobile agent in Ad Hoc network is equivalent to lymphocyte in immune system and responsible for transporting other agents with specific function. In view of the function of T cell and B cell, three types of agents have been set in the system, and they are monitoring agent, coordinating agent and blocking agent respectively. Monitoring agent is equivalent to T cell in immune system, distributes in all the nodes of the whole system, and it is responsible for collecting behavior information of neighbor nodes and regularly reports it to coordinating agent; coordinating agent distributes in different areas of the network and it is equivalent to B cell in immune system and responsible for arranging the information of nodes in the charge of it in the network and storing it into information memory bank. When coordinating agent receives a new report, it will compare the report with the information in memory bank and strategy library. If it is normal information, the agent will ignore it; if it isn’t normal behavior information (if a node receives routing information and doesn’t transpond), judge the time difference of bad report at the same node in last time. If the interval is nearer, then accumulate. Otherwise, remove the bad report number of this node. If it exceeds the threshold value, activate the blocking agent. Blocking agent is equivalent to antibody in immune system and can clone itself. Its task is to eliminate the misbehavior nodes [<xref ref-type="bibr" rid="scirp.60731-ref6">6</xref>] . Coordinating agent needs certain tolerance and can tolerate a small amount of bad behavior of individual nodes (some bad behaviors may be caused by network interference).</p><p>The safety verification of antibody moving from point <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x14.png" xlink:type="simple"/></inline-formula> to <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x15.png" xlink:type="simple"/></inline-formula> is described as follows:</p><disp-formula id="scirp.60731-formula1375"><graphic  xlink:href="http://html.scirp.org/file/4-1730273x16.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.60731-formula1376"><graphic  xlink:href="http://html.scirp.org/file/4-1730273x17.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.60731-formula1377"><graphic  xlink:href="http://html.scirp.org/file/4-1730273x18.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.60731-formula1378"><graphic  xlink:href="http://html.scirp.org/file/4-1730273x19.png"  xlink:type="simple"/></disp-formula><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Results contrast figure</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-1730273x20.png"/></fig><p>When the antibody begins to roam, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x21.png" xlink:type="simple"/></inline-formula>produces a random number <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x22.png" xlink:type="simple"/></inline-formula> and a<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x23.png" xlink:type="simple"/></inline-formula>, and then calculate <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x24.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x25.png" xlink:type="simple"/></inline-formula>, send <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x26.png" xlink:type="simple"/></inline-formula> to<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x27.png" xlink:type="simple"/></inline-formula>. When the antibody reaches<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x28.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x29.png" xlink:type="simple"/></inline-formula>checks the chain relationship<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x30.png" xlink:type="simple"/></inline-formula>.</p><p>When the antibody moves to the position near the goal node, it clones, mutates and compresses [<xref ref-type="bibr" rid="scirp.60731-ref7">7</xref>] and produces a large number of antibodies that can kill the “virus”. These antibodies will isolate the communication between misbehavior nodes and other nodes in network and achieve the purpose of eliminating harmful nodes. When misbehavior nodes disappear, blocking agent will vanish by itself.</p><p>The mathematical description of antibody clone is as follows:</p><p>For binary coding, antibody<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x31.png" xlink:type="simple"/></inline-formula>. Among them, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x32.png" xlink:type="simple"/></inline-formula>represents the collection formed by all the binary strings with length of l. Antibody cluster <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x33.png" xlink:type="simple"/></inline-formula> is n tuple of antibody a.</p><p>Clone operator is defined as follows:<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x34.png" xlink:type="simple"/></inline-formula>. Among it,</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x35.png" xlink:type="simple"/></inline-formula>. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x36.png" xlink:type="simple"/></inline-formula>is <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x36.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x37.png" xlink:type="simple"/></inline-formula> dimensional row vector<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x36.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x37.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x38.png" xlink:type="simple"/></inline-formula>. Usually take</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x39.png" xlink:type="simple"/></inline-formula>. Among it, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x39.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x40.png" xlink:type="simple"/></inline-formula>is concerned set value of clone size and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x39.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x40.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x41.png" xlink:type="simple"/></inline-formula> is</p><p>top integral function. After the clone operation, it generates intermediate population <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x42.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x43.png" xlink:type="simple"/></inline-formula>.</p><p>The mathematical description of the variation is as follows:</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x44.png" xlink:type="simple"/></inline-formula>, H is Hamming distance. After variation, it generates in-</p><p>termediate population <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x45.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x46.png" xlink:type="simple"/></inline-formula>.</p><p>The main effect of compression choice is to choose n antibodies with the highest affinity in intermediate population <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x47.png" xlink:type="simple"/></inline-formula> to form a new generation of antibody group<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x48.png" xlink:type="simple"/></inline-formula>.</p><p>Evaluate the immune system in the form of weighted sum, and the evaluation function is <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x49.png" xlink:type="simple"/></inline-formula>. In this formula, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x49.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x50.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x49.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x50.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-1730273x51.png" xlink:type="simple"/></inline-formula> are weighted system of stimulating effect and inhabitant activity.</p></sec><sec id="s4_2"><title>4.2. Result Analysis</title><p>It is can be seen from <xref ref-type="fig" rid="fig1">Figure 1</xref> that when there is no attack in network, the message delay maintains at a relatively low level and the network communication is normal shown in the figure as “●”; when the network appears attack, the delay rate of message will rise rapidly. With the extension of time, network performance becomes worse and worse and the worst result is network paralysis, shown as “▲”; after applying the method of immune agent in network, the number of message delay of the system will reduce sharply, shown as “■”. Although it is higher than the message delay rate when there is no attack, it is still in a lower level and acceptable.</p></sec></sec><sec id="s5"><title>Cite this paper</title><p>QinggongMa,BoYang, (2015) Research on Application of Mobile Agent Based on Immune Algorithms in Ad Hoc Network. Journal of Computer and Communications,03,31-35. doi: 10.4236/jcc.2015.310004</p></sec></body><back><ref-list><title>References</title><ref id="scirp.60731-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Zheng, S.R., Wang, H.T. and Zhao, Z.F. (2005) Ad Hoc Network Technology. Posts and Telecom Press, Beijing.</mixed-citation></ref><ref id="scirp.60731-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Cohen, F. (1999) Simulating Cyber Attacks, Defenses, and Consequences [EB/OL]. http://all.net/journal/ntb/simulate/simulate.html</mixed-citation></ref><ref id="scirp.60731-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Steve, C. and Uwe, A. (2002) A Recommender System Based on the Immune Network. Proceedings CEC 2002, Honolulu, 807-813.</mixed-citation></ref><ref id="scirp.60731-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Wang, L. (2001) Intelligent Optimization Algorithms with Applications. Tsinghua University Press, Beijing.</mixed-citation></ref><ref id="scirp.60731-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Magic, G. (2012) Telescript/Odyssey [EB/OL]. http://www.genmagic.com/agents</mixed-citation></ref><ref id="scirp.60731-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Agent Transport Protocol Specification. IBM Aglet Work Bench [EB/OL]. http://www.trl.ibm.com.jp/aglets</mixed-citation></ref><ref id="scirp.60731-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Zhou, G.Y. (2000) Principles of Immunology. Shanghai Scientific and Technological Literature Press, Shanghai.</mixed-citation></ref></ref-list></back></article>