Òƶ¯×Ô×éÍøMANET(Mobile Ad Hoc Network)[1]ÊÇÓÉÒ»×é´øÓÐÎÞÏßͨÐÅÊÕ·¢×°ÖõÄÒƶ¯Öն˽ڵã×é³ÉµÄÒ»¸ö¶àÌø¡¢ÁÙʱÐÔÎÞÖÐÐĵÄÍøÂ磬Õû¸öÍøÂçûÓй̶¨µÄ»ù´¡ÉèÊ©,ÍøÖеÄÿ¸öÖն˶¼¿ÉÒÔ×ÔÓÉÒƶ¯¡¢×ÔÓɼÓÈëºÍÍ˳öÍøÂ磬¸÷ÍøÂç½ÚµãµØλÏàµÈ¡£Ad HocÍøÂç¾ßÓкܸߵÄÁé»îÐÔ£¬¿ÉÒԹ㷺ӦÓÃÓÚ²»Ò×½¨Á¢»ù´¡ÉèÊ©µÄ»·¾³£¬ÈçµØÕðºóµÄ½ô¼±ËѾȡ¢¾üÓÃÕ½Êõ»·¾³ºÍÃñÓÃÓ¦¼±Í¨ÐÅ¡£Óëµ¥ÌøµÄÎÞÏßÍø·²»Í¬£¬Òƶ¯×Ô×éÍøµÄ½ÚµãÖ®¼äͨ¹ý¶àÌøÊý¾Ýת·¢»úÖƽøÐÐÊý¾ÝͨÐÅ£¬ÐèÒªÖмä½Úµã½øÐзÖ×éת·¢¾ö²ß¡£
Òƶ¯×Ô×éÍø·ÓÉÐÒéµÄ¶àÊý·ÓÉÐÒéÒÔµ¥¾¶Â·ÓÉË㷨Ϊ»ù´¡£¬¶øÇÒÔÚ·ÓÉÑ¡ÔñʱÒÔÌøÊý×îÉÙ(»ò³ÆΪ·¾¶×î¶Ì)×÷ΪѡÔñ±ê×¼£¬Ã»Óп¼ÂÇÍøÂçÓµÈûÎÊÌâ¡£ÓÉÓÚÒ»Ìõ·¾¶µÄ´ø¿íÓÐÏÞ£¬µ±ºÜ¶à½Úµã¶¼Ñ¡ÔñÌøÊý×îÉÙ·¾¶×÷Ϊ·ÓÉ·¾¶Ê±£¬¹Ç¸É½ÚµãÁ¬½Ó·±Ã¦£¬´Ó¶øÔì³É¶Ëµ½¶ËʱÑӺͶª°üÂÊÔö´ó£¬ÍøÂçÓµÈû£¬Ó°ÏìÍøÂçÕûÌåÐÔÄÜ[2]£¬¶øÇÒÓµÈûÒýÆðµÄ·ÓÉ¿ØÖÆÏûÏ¢¶ªÊ§»á´¥·¢¸ü¶àµÄ·ÓÉÇëÇóºÍ·Óɻظ´£¬´Ó¶ø¼Ó¾çÍøÂçÓµÈû¡£
1 AODV·ÓÉÐÒé
ÍøÂç·ÓÉÐÒéÊÇʵÏÖÍøÂçͨÐÅ×î¹Ø¼üºÍ×îºËÐĵÄÎÊÌ⡣Ŀǰ±È½Ï³ÉÊì͸Ã÷µÄ°´Ðè¾àÀëʸÁ¿Â·ÓÉAODV(Ad Hoc on-Demand Distance Vector Routing)[3]»ùÓÚ´«Í³µÄ¾àÀëÏòÁ¿Â·ÓÉ»úÖÆ£¬¾ßÓмòµ¥Ò×ʵÏÖ¡¢·Àֹѻ··¢Éú¡¢Ö§³ÖÖмä½ÚµãÓ¦´ðµÈÓŵ㣬µ«Ò²´æÔÚÒ»¶¨²»×㣺ÿ´ÎÓÉÔ´½Úµã·¢Æð·ÓÉÇëÇó¾ùÖ»µÃµ½Ò»Ìõ·ÓÉ¡¢Öмä½ÚµãµÄÓ¦´ð·ÓÉ¿ÉÄܹýʱµÈ¡£ÔÚAODVÐÒéµÄ·ÂÕæʵÑéÖз¢ÏÖ£¬Ëæ×ÅÍøÂ縺ºÉµÄÔö¼Ó£¬ÍøÂç¾³£³öÏÖ¾Ö²¿ÓµÈû£¬ÍÌÍÂÂÊϽµºÜ¿ì¡£ÍøÂçÖÐijЩ½Úµã¸ººÉºÜ´ó£¬¶ø½ÚµãµÄÁ´Â·´ø¿íºÍ´¦ÀíÄÜÁ¦ÓÐÏÞ£¬µ±Êý¾Ýµ½´ïËÙÂʳ¬¹ý½Úµã´¦ÀíÄÜÁ¦Ê±£¬Êý¾Ý½«×èÈûÔÚÕâЩ½ÚµãÖеȴý´«Êä¡£Ò»µ©ÕâÖÖ×´¿ö³ÖÐøÒ»¶Îʱ¼ä£¬½Úµã»º³åÇø»áºÜ¿ìÒç³ö£¬´Ó¶øÔì³ÉÊý¾Ý·Ö×鶪ʧ¡£¶øÔ´½ÚµãÒòÔڹ涨ʱ¼äÄÚûÓÐÊÕµ½È·È϶øÑ¡ÔñÖØ´«£¬ÕâÓÖ½«½øÒ»²½¼Ó¾ç¸Ã·¾¶½ÚµãµÄÓµÈû£¬µ¼ÖÂÕâЩ½Úµã³ÉΪӰÏìÍøÂçЧÂʵÄÆ¿¾±[4]¡£
ΪÁË»º½âÓµÈû¶ÔÍøÂçÐÔÄܵÄÓ°Ï죬Ìá³öÒ»ÖÖ»ùÓÚAODV·ÓÉÐÒ飬Äܹ»»º½âÁ´Â·ÓµÈûµÄ·ÓÉËã·¨LC-AODV¡£ÔÚÓµÈû½ÚµãµÄÉÏÓνڵ㴦½¨Á¢ÄÜÈƹýÓµÈû½ÚµãµÄÅÔ·£¬ÔÚÍøÂ繤×÷·ÓÉ´¦ÓÚ¶ÂÈûÇé¿öʱÆô¶¯±¸·Ý·ÓÉ·ÖÁ÷£¬´Ó¶ø±ÜÃâÓµÈûµÄ·¢Éú¡£
2 LC-AODV·ÓÉÐÒé
2.1 AODV·ÓÉÐÒéµÄÐÞ¸Ä
ÔÚAODV·ÓÉÐÒéÖУ¬Â·ÓɲéÕÒ¹ý³ÌÖ»½¨Á¢Ò»Ìõ´ÓÔ´½Úµãµ½Ä¿µÄ½ÚµãµÄÌøÊý×îÉÙ¡¢¾àÀë×î¶ÌµÄ·ÓÉ¡£ÎªÁË»º½âÓµÈû£¬ÔÚÒ»´ÎÑ°ÕÒ·Óɹý³ÌÖн¨Á¢¶àÌõ½Úµã²»Ïà¹Ø·ÓÉ£¬²¢ÔÚ·ÓÉÑ°ÕÒ¹ý³ÌÖмÓÈëÁ´Â·ÓµÈû¶È¡£
¶¨Òå1£º½Úµã²»Ïà¹Ø·ÓÉ£¬Ö¸Ëù½¨¶àÌõ·ÓÉÖУ¬ÈκÎÁ½Ìõ·¾¶³ýÁËÔ´½ÚµãºÍÄ¿µÄ½ÚµãÍ⣬ÆäËû½Úµã¶¼²»¹²Óá£
¶¨Òå2£ºÁ´Â·ÓµÈû¶È£¬ÃèÊö±¾½ÚµãÓëÏÂÒ»ÌøÁÚ¾Ó½ÚµãµÄÓµÈû״̬£¬È¡ÖµÎªÏÂÒ»Ìø½ÚµãµÄMAC²ã½Ó¿Ú»º´æ¶ÓÁÐÖÐÊ£Óà¿Õ¼äÕ¼×ܶÓÁеıÈÂÊ¡£
¾ßÌåÐ޸IJÙ×÷ÈçÏ£º
(1)ÔÚAODV·ÓÉÐÒéµÄ»ù´¡ÉÏ£¬Õë¶Ô·ÓÉÇëÇóRREQºÍ·ÓÉÓ¦´ðRREP¿ØÖÆ°ü·Ö±ðÔö¼ÓÒ»¸öÌõÄ¿——Á´Â·ÓµÈû¶È¡£ÔÚÔ´½ÚµãÐèÒª´«ÊäÊý¾Ýʱ£¬·¢ËÍ·ÓÉÇëÇóRREQÏûÏ¢£¬µ±RREQ±¨ÎÄ°´ÕÕ²»Í¬µÄ·¾¶µ½´ïÄ¿µÄ½Úµãʱ£¬Ä¿µÄ½Úµã²»ÊǼòµ¥µØÖ»´¦ÀíµÚÒ»¸öµ½´ïµÄRREQ£¬¶Ô´Ëºóµ½´ïµÄRREQ»Ø¸´ÏàͬµÄRREP£¬²¢½¨Á¢Ô´½Úµãµ½Ä¿µÄ½ÚµãµÄ±¸·Ý·ÓÉ¡£
(2)ÔÚ·ÓÉά»¤½×¶Î£¬ÖÜÆÚÐԵش«ÊäHello±¨ÎÄÒÔÈ·±£Á´Â·µÄÁ¬½Ó¡£µ«ÊÇÔÚLC-AODV·ÓÉÐÒéÖУ¬Í¬ÑùÔÚHelloÏûÏ¢ÖÐÔö¼ÓÁ´Â·ÓµÈû¶ÈÕâÒ»ÌõÄ¿£¬¼ì²â¸Ã½ÚµãÓëÁÚ¾Ó½ÚµãÖ®¼äÁ´Â·µÄÓµÈû¶È£¬²¢¼ÓÒÔ¶¯Ì¬µ÷Õû¡£
2.2 ÓµÈû״̬¼ì²â
ÔÚ½øÐÐÊý¾Ý´«Êä¹ý³ÌÖУ¬µ±´«µ½Ò»¸ö½ÚµãµÄ°ü¸öÊý³¬¹ýËüµÄ´¦ÀíÄÜÁ¦Ê±£¬½Úµã¾Í»á±äµÃÓµÈû£¬ÓÉÓÚ½Úµã¶ÓÁ㤶ÈÓÐÏÞ£¬¹Ê°ü»á¸ù¾Ý¶ÓÁÐÀàÐ͵ķ½Ê½¿ªÊ¼¶ªÆú£¬ÓÃRÀ´±íʾ¶¨Òå2ÃèÊöµÄÁ´Â·ÓµÈû³Ì¶È[5]¡£¸ù¾ÝRÖµµÄ²»Í¬£¬É趨ÈýÖÖÓµÈû״̬¡£¸ù¾Ýʽ(1)µÄ»®·Ö£¬LCDΪ0ʱ±íʾÁ´Â·²»ÓµÈû£¬ÏÔʾΪÂÌɫ״̬£»LCDΪ1ʱ±íʾÁ´Â·³öÏÖÓµÈû£¬µ«ÊDz»ÊǺÜÑÏÖØ£¬ÏÔʾΪ»Æɫ״̬£»LCDΪ2ʱ£¬Á´Â·³öÏÖÑÏÖØÓµÈû£¬ÏÔʾΪºìɫ״̬¡£
2.3 LC-AODV¹¤×÷ÔÀí
´î½¨Ò»¸öÒƶ¯Ad HocÍøÂ磬Èçͼ1Ëùʾ£¬SΪԴ½Úµã£¬DΪĿµÄ½Úµã£¬ÆäËûΪÖмäת·¢½Úµã¡£µ±Ô´½ÚµãÓÐÊý¾ÝÒªÏòÄ¿µÄ½Úµã´«Ê䣬¶øÇÒS½ÚµãÖÐûÓе½Ä¿µÄ½ÚµãµÄ·ÓÉʱ£¬ÐèÒª½¨Á¢Â·ÓÉ¡£Ô´½Úµã¹ã²¥Â·ÓÉÇëÇóRREQ£¬¼ÙÉèÔÚ·Óɽ¨Á¢¹ý³ÌÖУ¬ÕÒµ½ÁËÁ½Ìõ·ÓÉ·Ö±ðΪ·ÓÉ1£ºS-3-4-5-DºÍ·ÓÉ2£ºS-1-2-D¡£Â·ÓÉ1ÏÈ·µ»Ø·ÓÉÓ¦´ð£¬Ôò·ÓÉ2×÷Ϊ±¸·Ý·ÓÉ´æÔÚÓÚÍøÂçÖС£µ±Êý¾Ý¿ªÊ¼´«ÊäÒ»¶Îʱ¼äºó£¬½Úµã3µ½½Úµã4Ö®¼ä·¢Éú·ÓÉÓµÈû£¬Ôò½Úµã3Æô¶¯¾Ö²¿ÐÞ¸´£¬·¢ÏÖ¿Éͨ¹ý½Úµã6µ½´ïÄ¿µÄ½Úµã£¬Ôò²úÉú·ÓÉS-3-6-5-D£¬ÒòΪͨ¹ý½Úµã6½øÐд«Êäʱ£¬Á´Â·ÓÐÇá΢ӵÈû£¬ÔòÏòÉÏÓνڵã֪ͨ±¸·Ý·ÓÉ£¬Ëæʱ׼±¸·¢ËÍÊý¾Ý¡£Èç¹ûÐÞ¸´²»³É¹¦£¬ÔòÖ±½ÓÆô¶¯±¸·Ý·ÓÉ2½øÐÐÊý¾Ý´«Êä¡£µ±ËùÓзÓɶ¼Ê§Ð§µÄÇé¿öÏ£¬Ô´½ÚµãÖØÐÂÆô¶¯Â·ÓÉÇëÇó¹ý³Ì¡£
2.4 ÁÚ¾ÓÓµÈû±í
ÿ¸ö½Úµãά»¤Ò»¸öÁÚ¾ÓÓµÈû±í£¬¼Ç¼±¾½ÚµãËùÓÐÁÚ¾Ó½Úµã(³ýÈ¥ÉÏÒ»Ìø½Úµã)µÄÓµÈû״̬¡£ÀýÈçÔÚ±í1ÖУ¬¶ÔÓÚ½ÚµãS¶øÑÔ£¬LCDs1µÄֵΪ0¡£
3 ʵÑé·ÂÕæ¼°½á¹û·ÖÎö
ʵÑé²ÉÓÃNS2[6]Ä£Äâƽ̨½øÐÐÄ£Ä⣬½«LC-AODVËã·¨ÓëAODVÔÚÏàͬÍøÂç»·¾³ºÍ¸ß¸ºÔØÌØÐÔϽøÐзÂÕæºÍÐÔÄܶԱȷÖÎö£¬ÒÔ±ãÓÐЧÆÀ¼Û±¾Ëã·¨µÄÐÔÄÜ¡£ÍøÂçÍØÆ˽ṹÉè¼ÆΪ50¸öÒƶ¯½ÚµãµÄÍøÂçÄ£ÐÍ£¬¸÷½ÚµãËæ»ú·Ö²¼ÔÚ1200m×1000mµÄƽÃæ¾ØÐÎÇøÓò£¬Ã¿Ò»¸ö½ÚµãµÄ×î´ó´«Ê䷶ΧΪ250m£¬Ëæ»úÈÎÒâ·½ÏòÔ˶¯(Random Way Point) £¬½ÚµãÍ£Áôʱ¼äΪ0s£¬ÊµÑéÄ£Äâʱ¼ä500s£¬Ô˶¯×î´óËÙÂÊΪ40m/s£¬Á¬½ÓΪ20¸öCBR£¬´óСΪ512BÊý¾ÝÁ÷£¬Êý¾ÝÁ÷Ϊ3packets/s£¬×î´óÁ¬½ÓÊýΪ20¡£ÎïÀí²ãÑ¡ÓÃTwoRayGroundÎÞÏß´«²¥Ä£ÐÍ£¬MAC²ã²ÉÓÃ802.11b DCFÐÒé¡£·ÂÕæ¹ý³ÌÈçͼ2Ëùʾ¡£Í¨¹ýÊý¾Ý°üµÄ³É¹¦´«ÊäÂʺÍƽ¾ù¶Ëµ½¶Ë´«ÊäÑÓ³Ù2¸öÖ¸±êÀ´±È½Ï¡£
3.1 Êý¾Ý°üµÄ³É¹¦´«µÝÂÊ
Êý¾Ý°üµÝ½»ÂÊ£ºÄ¿µÄ½ÚµãÊÕµ½µÄÊý¾Ý°üÊýÓëÔ´½Úµã·¢Ë͵Ä×ÜÊý¾Ý°üÊýµÄ±ÈÂÊ¡£·ÂÕæ½á¹ûÈçͼ3Ëùʾ¡£LC-AODVµÄÕýÈ·´«ÊäÂʱÈAODV¸ü¸ß£¬ÒòΪ²ÉÈ¡¿¹ÓµÈû´ëÊ©£¬½Úµã¶ªÊ§°üµÄ¼¸ÂʾͻήµÍ£¬µ¼Öµ½´ïÄ¿µÄ½ÚµãµÄÊý¾Ý°üÔö¼Ó¡£µ±½ÚµãÒƶ¯ËٶȲ»¿ìʱ£¬ÍøÂçµÄ½ÚµãλÖñ仯²»´ó£¬¼´ÍØÆ˽ṹ½ÏΪÎȶ¨£¬ÍøÂçÊý¾Ý°üµÄÕýÈ·´«µÝÂʶ¼´¦ÓÚ¸ßˮƽ£¬µ«ÊÇËæ׎ڵãÒƶ¯ËÙ¶ÈÔö´ó£¬Êý¾Ý°ü¶ªÊ§Ôö¶à£¬ÍøÂçÕûÌåÐÔÄÜϽµ¡£¶øÇÒËæ×ÅÍøÂçÍØÆ˽ṹ±ä»¯µÄ¼Ó¿ì£¬Á½ÖÖ·ÓÉÐÒéÖ®¼äµÄ²î¾àÔÚÂýÂý±äС£¬ÕâÊÇÒòΪ¸Ä½øºóµÄ·ÓÉÐÒéÔÚÍØÆ˽ṹ±ä»¯±È½Ï¿ìʱ£¬Â·Óɾ³£Ê§Ð§£¬¿¹ÓµÈû´ëÊ©×÷ÓÃÓÐËùϽµ¡£
3.2 ƽ¾ù¶Ëµ½¶ËÑÓ³Ù
´«ÊäÊý¾Ý°üËùÐèµÄ×ÜÑÓ³Ù°üÀ¨»º´æÊý¾Ý°ü¡¢Ð·ÓÉ·¢ÏÖ¡¢ÔÚ¶ÓÁÐÖÐÅŶӡ¢MAC²ãÖØ´«¡¢·¢Ëͺʹ«²¥ËùÓõÄʱÑÓ×ܺ͡£·ÂÕæ½á¹ûÈçͼ4Ëùʾ¡£ÕûÌå¶øÑÔ£¬LC-AODVµÄÐÔÄÜÓÅÓÚAODV·ÓÉÐÒ飬ÕâÊÇÒòΪ²ÉÈ¡ÁË¿¹ÓµÈû´ëÊ©£¬ÔÚÊý¾Ý´«ÊäµÄʱºòÑ¡ÔñÓµÈû¶ÈµÍµÄÁ´Â·£¬¶øÇÒÔÚ´«Êä¹ý³ÌÖÐÈôÓöµ½ÓµÈû»á¼°Ê±µØ½øÐÐÁ´Â·×ªÒÆ£¬Ê¹µÃ´«Êä¸üΪ˳³©¡£¶øÇÒÔÚ½ÚµãÒƶ¯ËٶȽÏСʱ£¬ÍØÆ˱仯½ÏС£¬±¸·Ý·ÓÉ´æÔÚʱ¼ä³¤£¬µ¼Ö±¸·Ý·ÓÉÔÚ½ÚµãÒƶ¯ËٶȵÍʱ½Ï½ÚµãÒƶ¯ËٶȿìʱµÄÀûÓÃÂʸü¸ß£¬´Ó¶øËٶȵÍʱÁ½Â·ÓÉÐÒéµÄÑÓ³Ù²î¾à¸üС¡£
±¾ÎÄÕë¶ÔÒƶ¯Ad HocÍøÂç¸ß¸ºÔØÇé¿öÏÂÍøÂç·Óɲ»ÄܺܺÃÊÊÓ¦ÍøÂç»·¾³µÄÎÊÌ⣬Ìá³öÁËÒ»ÖÖ¿¹ÓµÈûµÄ¸Ä½øAODV·ÓÉÐÒé¡£¸Ä½øµÄLC-AODVÐÒéÊÇÒ»¸öÊÊÓÃÓÚ¶¯Ì¬Ad HocÍøÂçµÄÓµÈûÊÊӦ·ÓÉÐÒé¡£ÀûÓÃÁÚ¾ÓÓµÈû±í£¬½ÚµãÄܼ´Ê±¸ÐÖªÓëÁÚ¾ÓÖ®¼äµÄÍøÂçÓµÈû¶È£¬²¢¸ù¾ÝÓµÈûµÈ¼¶²ÉÈ¡²»Í¬µÄ²ßÂÔ£¬Í¨¹ý±¸·Ý·ÓÉÀ´¿ìËÙÖØд«ÊäÊý¾Ý¡£½á¹ûÖ¤Ã÷¸Ä½øºóµÄ·ÓÉÐÒé¿ÉÒÔ»º½âÍøÂçµÄ¸ºÔØ£¬Ìá¸ßÁËÊý¾Ý°üÕýÈ·´«ÊäÂʲ¢½µµÍ¶Ëµ½¶Ëƽ¾ùÑÓ³Ù¡£
²Î¿¼ÎÄÏ×
[1] RAMANATHAN R£¬REDI J.A brief overview of mobile Ad Hoc networks: Challenges and direction[J].IEEE Communications Magazine, 2002, 40(5): 20-23.
¡¡¡¡[2] KLIAZOVICH D£¬GRANELLI F. Cross-layer congestion control in Ad Hoc wireless networks[J]. Ad Hoc Networks, 2006(4): 687-708.
¡¡¡¡[3] PERKINS C E£¬ROYER E M.Ad Hoc on demand and distance vector(AODV) routing[C]. The second IEEE workshop on mobile computing systems and applications. New Orleans. 1999:90-100.
¡¡¡¡[4] RAGHAVENDRA H.Congestion adaptive routing in mobile Ad Hoc networks[A]. IEEE Transactions on Parallel Distributed Systems[C].NJ, USA: IEEE Press,2006:1294-1305.
¡¡¡¡[5] ½¯µÀϼ£¬Áõ·ïÓñ.Ad HocÍøÂçÖлùÓÚAODVµÄÓµÈûÊÊӦ·ÓÉÐÒé[J]. ÄϾ©Àí¹¤´óѧѧ±¨(×ÔÈ»¿Æѧ°æ),2009, 33(4):411-416.
¡¡¡¡[6] ·½Â·Æ½£¬ÁõÊÀ»ª£¬³ÂÅΣ¬µÈ. NS-2ÍøÂçÄ£Äâ»ù´¡ÓëÓ¦Óà [M]. ±±¾©£º¹ú·À¹¤Òµ³ö°æÉ磬2008.
×÷ÕߣºÐìµt ÖÜÉÙÇí °ØÊ«Óñ ºÏ·Êµç×Ó¹¤³ÌѧԺÐÅϢϵ À´Ô´£º¡¶Î¢ÐÍ»úÓëÓ¦Óá·2011Äê04ÆÚ