Skip to content

Installing AODV-UU Step-by-Step

AODV-UU Installation on PC/Desktop/Laptop
——————————————————————-
In this part, I will show you how to install AODV-UU on your laptop / PC using Linux OS for real world implementation on ad hoc network. We need ‘Netfilter’ modul in Linux kernel. For further info about Netfilter, please visit  http://www.netfilter.org

Before installation, you’d better check for ‘development tools’ and kernel configuration on your Linux OS. If both of them are not installed yet, you should installed them first. AODV-UU compilation is performed by ‘make’ utility from Linux OS. The Makefile will create an aodv daemon  (aodvd) and a kernel modul (kaodv.o). The installation is as follows:

- go to AODV-UU directory: ~ # cd /path/to/aodv-uu-0.9.x
- compile with  “make “ :  ~ # make
- then install : ~ # make install

If it is done, the kernel module of AODV-UU will be called by the modprobe system automatically.
Running AODV
———————-
To run AODV we need to activated AODV deamon (aodvd) with “root” privilage.

[root@laptop-aodv-uu]# aodvd -l -r  3 -w
Where :
•    aodvd :  activate AODV-UU daemon.
•    -l    :  activate log file.
•    -r  3 :  update routing table every 3 seconds.
•    -w    :  activate gateway mode.

132 thoughts on “Installing AODV-UU Step-by-Step”

  1. Can you please help me in my project I want to share internet from a gateway node to all other nodes using AODV. How can I do this?
    I am using Ubuntu 6.06
    I have 2 wireless cards and 1 lan card in each node Lan card is connected to internet.
    1 wireless card is working in AP mode and other is working in adhoc mode and AODV is running on the card which is working on adhoc mode.
    Any help will be very much helpful for my project

    1. hey, did you do something with that? i’m so dumb 🙁
      i really appreciate if you know what to do to install in slako puppy…

  2. Can you help me with more information on how to install this protocol ? On what kernel does it work i haven’t found any info about this. I tried to install it on a Puppy linux with kernel 2.6.33 but when i use the make command i got many error regarding the code. What do you think the problem is??

    1. I was using Ubuntu 10.04 with its default kernel. I think the problem is the different of kernel tree and its library.

  3. I am using Ubuntu 10.04.4 to install the AODV daemon. Every step that you have described above works correctly. But when I run
    aodvd -l -r 3 -w it gives me following error
    module kodv does not exist in /proc/module
    I am using AODV UU 0.9.6

  4. How do I load the kernel being as root. I did “sudo modprobe kaodv”. After that “aodvd -l -r 3 -w” still give me errors. One reason I could gues is that I am using ubuntu 10.04.4 whereas you have used 10.04. Could this be a problem?
    Kindly elaborate the steps more. Specially
    Netfilter: What is it and how to install it in ubuntu?
    Development tools: I did sudo apt-get install build-essentials. Is it Ok
    Kernel configuration: I haven’t done anything in it. What and how to do it?
    Thanks.

  5. Dear Abdusyarif,
    I still couldn’t install AODV. I have following doubts.
    1. I am wondering if AODV-uu daemon on Ubuntu is really used in research.
    2. Is it worth installing aodv-0.9.6 on ubuntu or ns2 (aodvuu) is good enough.
    3. Is aodv-uu still an active project?
    4. Where can I find more help on it?
    Thanks
    Mukul

    1. Hi Mukul,
      Yesterday I have installed aodv-uu-0.9.6 succesfully in my Ubuntu 10.04 LTS. And I have installed into ns-2 also. There is no problem with me. I’m not sure aodv-uu or ad hoc still become an active research project. I think it is depend on your institution. You may subscribed to mailing list to find more help on it. Good luck.

  6. Dear Abdusyarif,
    I earlier tried AODV-UU on ns2 without success. At present I am interested in aodv-uu-0.9.6 on my ubuntu 10.04 LTS. I will put here the exact error while installing it.
    As I have explained earlier, till “sudo modprobe kaodv” there is not error. But when I try to run the aodv daemon by “sudo aodvd -l -r 3 -w” it gives me following error…
    sudo aodvd -l -r 3
    20:11:00.580 host_init: Could not get index of � ��#����b�: No such device
    20:11:00.585 cleanup: CLEANING UP!
    Does this happen because of the wrong setting of the Wireless LAN card? Kindly provide me more information about your wireless settings. Is it necessary to have a wireless LAN card configured properly before installing AODV-UU?
    Thanks for all the help.
    Mukul

    1. Hi Mukul,
      Before you running “aodvd” you need to configure you wireless card (wlan0). Try to use static IP in every node. Don’t forget to set Netmask, Mode as “ad-hoc”, ESSID, Channel, Rate.

  7. Thanks a lot for your help. I will try to set my wlan0 before runnning aodvd.
    I am new to Wireless Networking. Can you please point me a tutorial on Wireless Networking in Ubuntu/Linux. I have googled a lot on this but I am not sure of how to do wireless settings using /etc/network/interface file. I am not using Network Manager.

  8. Dear Abdusyarif,
    I am able to compile and run the aodv-uu-0.9.6 on ubuntu 10.04. It was actually the problem of wireless lan card (wlan0). It worked even without “sudo modprobe kaodv”.
    What is the use of “sudo modprobe kaodv”?
    If I want to start AODV-UU as my machine boots up what should I do?

  9. Dear Abdusyarif,
    I want to install aodv-uu-0.9.6 on ubuntu 12.04 LTS. Is it possible? Have you tried that?
    Thanks.
    Mukul

  10. Dear Abdusyarif ,
    i have same problem with mukul shukla about modprobe kaodv.
    My system can’t find the module of kaodv. Then how can i find it? I’ve tried in ubuntu 7.01 desktop , ubuntu 10.4 desktop , ubuntu server 7.10 but i always found that command. “Kaodv module not found” .

    1. Dear Ayu,
      It means that the kernel aodv is not installed successfully.
      Maybe you need to “sudo modprobe kaodv” while you can’t execute “sudo aodvd -l -r 3”.

      1. Dear Abdusyarif ,
        When I try “modprobe kaodv”:
        FATAL: Error inserting kaodv (/lib/modules/3.2.0-29-generic-pae/aodv/kaodv.ko): Invalid module format
        How can I fix it?

        1. you better check for ‘development tools’ and kernel configuration on your Linux OS. If both of them are not installed yet, you should installed them first.

      2. Dear Abdusyarif!
        I check development tools by: apt-get install build-essential
        I check kernel by: uname -a and it return Kernel 2.6
        Is it ok?
        I’m using Linux 10.04.1
        Thanks

  11. Dear Abdusyarif,
    I am a newbie in Linux kernel stuff. I have a question regarding routing table. Does aodv-uu-0.9.6 update/modify any kernel routing table after performing a route discovery? If so, then which table? I have been walking through the code, but couldn’t find where it is.
    Thanks.

  12. Dear Abdusyarif,
    I’m trying to implement this AODV-UU in 10.04.
    I was running this command for both machines (ACER):
    sudo stop network-manager
    ifconfig wlan0 down
    iwconfig wlan0 mode ad-hoc
    iwconfig wlan0 channel 11
    ifconfig wlan0 up
    ifconfig wlan0 10.0.0.x netmask 255.255.255.0
    echo 1 > /proc/sys/net/ipv4/ip_forward
    modprobe kaodv
    aodvd -l -D -r 3 -i wlan0
    it works for both machines.
    Laptop A can discover Laptop B as neighbor & so does laptop B.
    when i try with different laptop (ACER & HP), both of the machines won’t discover each other.
    can you give me a solution for this problem ?

    1. Dear Atomic,
      Can you tell me more about kaodv.ko? Because I have a trouble with this file. I can’t insert kaodv…

  13. Dear Abdusyarif,
    Please help me…
    1. When I run “make”:
    make -C /root/Desktop/aodvuu/lnx KERNEL_DIR=/lib/modules/3.2.0-29-generic-pae/build KCC=gcc XDEFS=-DDEBUG
    make[1]: Entering directory `/root/Desktop/aodvuu/lnx’
    make[1]: Nothing to be done for `default’.
    make[1]: Leaving directory `/root/Desktop/aodvuu/lnx’
    2. When I run “make install”:
    make -C /root/Desktop/aodvuu/lnx KERNEL_DIR=/lib/modules/3.2.0-29-generic-pae/build KCC=gcc XDEFS=-DDEBUG
    make[1]: Entering directory `/root/Desktop/aodvuu/lnx’
    make[1]: Nothing to be done for `default’.
    make[1]: Leaving directory `/root/Desktop/aodvuu/lnx’
    install -s -m 755 aodvd /usr/sbin/aodvd
    Installing kernel module in /lib/modules/3.2.0-29-generic-pae/aodv/
    /sbin/depmod -a
    3. When I run “modprobe kaodv”:
    FATAL: Error inserting kaodv (/lib/modules/3.2.0-29-generic-pae/aodv/kaodv.ko): Invalid module format
    4. When I run “aodvd – l -D -r 3 -i wlan0”:
    insmod: error inserting ‘kaodv.ko’: -1 Invalid module format
    A kernel module could not be loaded, check your installation… 0
    10:20:15.305 cleanup: CLEANING UP!
    How can I fix it??? I tried to update but it didn’t work
    Thanks you!!!

  14. Dear Abdusyarif ,
    I have a 3 node setup to test AODV
    A B C
    The Aodv implementation which i use is aodv-uu-0.9.6
    and i’m using the Linux kernel version 2.6.37 (fedora 12) After running aodvd -l -r 3, ping from A to C is not working.
    Plz help me to solve this.
    Thanks in advance

  15. Hi, i am working on a project, implementing AODV in to linux. I just installed 10.04 linux and I dont know how to start. Please can you send a step-by-step manual about the AODV-UU installation?! Thanks forward!

    1. – Go to AODV-UU directory: ~ # cd /path/to/aodv-uu-0.9.x
      – Compile with “make “ : ~ # make
      – Then install : ~ # make install
      => If it is done, the kernel module of AODV-UU will be called by the modprobe (intelligently adds or removes a module from the Linux kernel for convenience) system automatically.
      stop network-manager
      ifconfig wlan0 down
      iwconfig wlan0 mode ad-hoc
      iwconfig wlan channel 11
      ifconfig wlan0 up
      ifconfig wlan0 10.0.0.x netmask 255.255.255.0
      echo 1 > /proc/sys/net/ipv4/ip_forward
      modprobe kaodv
      To run AODV we need to activate AODV deamon (aodvd) with “root” privilage.
      root@ubuntu:~/Desktop/aodvuu# aodvd -l –r 3 –w
      Where:
      aodvd: activate AODV-UU daemon.
      -l: activate log file.
      -r 3: update routing table every 3 seconds.
      -w: activate gateway mode.
      If you have any problem, you can contact me by email: nguyen.tram1290@gmail.com

      1. please help.. i have install in ubuntu 12.04 LTS but it say like this
        bonnie@bonnie-Aspire-4736:~$ cd aodvuu
        bonnie@bonnie-Aspire-4736:~/aodvuu$ make
        gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o main.o main.c
        gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o list.o list.c
        gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o debug.o debug.c
        debug.c: In function ‘print_rt_table’:
        debug.c:349:13: warning: variable ‘written’ set but not used [-Wunused-but-set-variable]
        gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o timer_queue.o timer_queue.c
        gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o aodv_socket.o aodv_socket.c
        gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o aodv_hello.o aodv_hello.c
        gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o aodv_neighbor.o aodv_neighbor.c
        gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o aodv_timeout.o aodv_timeout.c
        gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o routing_table.o routing_table.c
        routing_table.c: In function ‘rt_table_insert’:
        routing_table.c:92:17: warning: variable ‘nm’ set but not used [-Wunused-but-set-variable]
        routing_table.c: In function ‘rt_table_update’:
        routing_table.c:196:17: warning: variable ‘nm’ set but not used [-Wunused-but-set-variable]
        gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o seek_list.o seek_list.c
        gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o aodv_rreq.o aodv_rreq.c
        gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o aodv_rrep.o aodv_rrep.c
        gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o aodv_rerr.o aodv_rerr.c
        gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o nl.o nl.c
        gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o locality.o locality.c
        gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -o aodvd main.o list.o debug.o timer_queue.o aodv_socket.o aodv_hello.o aodv_neighbor.o aodv_timeout.o routing_table.o seek_list.o aodv_rreq.o aodv_rrep.o aodv_rerr.o nl.o locality.o
        make -C /home/bonnie/aodvuu/lnx KERNEL_DIR=/lib/modules/3.5.0-38-generic/build KCC=gcc XDEFS=-DDEBUG
        make[1]: Entering directory `/home/bonnie/aodvuu/lnx’
        gcc -Wall -Wno-strict-aliasing -O2 -D__KERNEL__ -DMODULE -nostdinc -DMODVERSIONS -include /lib/modules/3.5.0-38-generic/build/include/linux/modversions.h -I /usr/lib/gcc/i686-linux-gnu/4.6/include -I/lib/modules/3.5.0-38-generic/build/include -DDEBUG -c -o kaodv-mod.o kaodv-mod.c
        In file included from /lib/modules/3.5.0-38-generic/build/include/linux/list.h:4:0,
        from /lib/modules/3.5.0-38-generic/build/include/linux/module.h:9,
        from kaodv-mod.c:29:
        /lib/modules/3.5.0-38-generic/build/include/linux/types.h:4:23: fatal error: asm/types.h: No such file or directory
        compilation terminated.
        make[1]: *** [kaodv-mod.o] Error 1
        make[1]: Leaving directory `/home/bonnie/aodvuu/lnx’
        make: *** [kaodv] Error 2
        bonnie@bonnie-Aspire-4736:~/aodvuu$
        please help me

    1. I have the same problem. What do you mean ,,without aodv,,?
      You gives command ,,$ iwconfig wlan0 mode ad-hoc,, before ,,make install,,??

  16. dear abdusyarif,
    my name is lanang, im a student in telecommunication enginering, im a newbie for linux and i have ubuntu 10.10, im interesting about adhoc wireless protocol, i want to install aodv and dsdv for real implementain and i want to compair the, can u guide me for the installation, i want to make a module for my research.

  17. hey.. i want to install aodv in ubuntu.. but i can’t.. it say
    cc1: fatal error: /lib/modules/3.5.0-23-generic/build/include/linux/modversions.h: No such file or directory
    compilation terminated.
    can you help me please?

  18. Hi all!
    I think the problem is Ubuntu…We should use Ubuntu 10.04, and you can try to configure AODV-UU in this version first. And then to try in another Ubuntu…Another thing is about wireless card…Your computer should have a wireless card. Just follow step by step that I listed above.
    I was successful to install in Ubuntu 10.04 many times.
    Hope you guys install successfully.

  19. hi i have successfuly implemented aodv uu in ubuntu 12.04 with the kernel version 3.8. i want to send files with aodv damaeon running in the background i am having one ordinary UDP file transfer program whether i can run that client and server above the aodv uu for that file transfer.

    1. could you please help me, i’m trying to install aodv in ubuntu 12.04, and i meet this problem:
      node@node-Lenovo-G450:~/Desktop/aodv-uu-0.9.6$ make
      make -C /home/node/Desktop/aodv-uu-0.9.6/lnx KERNEL_DIR=/lib/modules/3.8.0-29-generic/build KCC=gcc XDEFS=-DDEBUG
      make[1]: Entering directory `/home/node/Desktop/aodv-uu-0.9.6/lnx’
      gcc -Wall -Wno-strict-aliasing -O2 -D__KERNEL__ -DMODULE -nostdinc -DMODVERSIONS -include /lib/modules/3.8.0-29-generic/build/include/linux/modversions.h -I /usr/lib/gcc/i686-linux-gnu/4.6/include -I/lib/modules/3.8.0-29-generic/build/include -DDEBUG -c -o kaodv-mod.o kaodv-mod.c
      cc1: fatal error: /lib/modules/3.8.0-29-generic/build/include/linux/modversions.h: No such file or directory
      compilation terminated.
      make[1]: *** [kaodv-mod.o] Error 1
      make[1]: Leaving directory `/home/node/Desktop/aodv-uu-0.9.6/lnx’
      make: *** [kaodv] Error 2

  20. I am trying to install aodv-uu-0.9.6 in Linux mint 15. when i do “make” then following error occurs:
    cc1: fatal error: /lib/modules/3.8.0-19-generic/build/include/linux/modversions.h: No such file or directory
    compilation terminated.
    make[1]: *** [kaodv-mod.o] Error 1
    make[1]: Leaving directory `/home/navin/aodv-uu-0.9.6/lnx’
    make: *** [kaodv] Error 2
    So how can i rectify such error. Thanks in advance

  21. Hi! I am a newbie for linux and AODV-UU and I try to install AODV-UU in my CentOS, when I do “make” command, I got these error:
    grep: /lib/modules/2.6.32-358.18.1.el6.i686/build/Makefile: No such file or directory
    make[1]: Entering directory `/root/aodv-uu-0.9.6/lnx’
    gcc -Wall -Wno-strict-aliasing -O2 -D__KERNEL__ -DMODULE -nostdinc -DMODVERSIONS -include /lib/modules/2.6.32-358.18.1.el6.i686/build/include/linux/modversions.h -I /usr/lib/gcc/i686-redhat-linux/4.4.7/include -I/lib/modules/2.6.32-358.18.1.el6.i686/build/include -DDEBUG -c -o kaodv-mod.o kaodv-mod.c
    cc1: error: /lib/modules/2.6.32-358.18.1.el6.i686/build/include/linux/modversions.h: No such file or directory
    kaodv-mod.c:22:27: error: linux/version.h: No such file or directory
    …….
    can you help me please?

  22. Before installation, you’d better check for ‘development tools’ and kernel configuration on your Linux OS. Try to ‘sudo apt-get install build-essential’.

  23. I am working on my thesis with AODV protocol, and is working with AODV gateway.
    To setup a gateway, I have an ethernet interface (eth0) to connect to the Internet, and wireless interface (wlan0) to connect to the ad-hoc network.
    I also do
    > /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
    on the gateway and
    > route add default dev wlan0
    on the MANET node (wlan0 here is the interface of MANET node)
    However, I cannot make my MANET node to ping to eth0 of the gateway as well as the Internet.
    Can you help me please, I am running out of time to do this.
    My topology:
    Internet — eth0 (10.0.0.6) | GW | wlan0 (192.168.30.1) — wlan0 (192.168.30.2) | MANET_NODE
    Thank you very much.
    I am looking forward for your reply.

    1. Here is my iptables configuration at Gateway node:
      #—————————————————————
      # Allow port 80 (www) connections from the gateway
      #—————————————————————
      iptables -A OUTPUT -j ACCEPT -m state \
      –state NEW,ESTABLISHED,RELATED -o eth0 -p tcp \
      -m multiport –dport 80 -m multiport –sport 1024:65535
      #—————————————————————
      # Allow previously established connections
      # – Interface eth0 is the internet interface
      #—————————————————————
      iptables -A INPUT -j ACCEPT -m state –state ESTABLISHED,RELATED \
      -i eth0 -p tcp
      #—————————————————————
      # Allow all bidirectional traffic from gateway to the
      # protected network
      # – Interface eth0 is the private network interface
      #—————————————————————
      iptables -A INPUT -j ACCEPT -p all -s 192.168.10.0/24 -i eth0
      iptables -A OUTPUT -j ACCEPT -p all -d 192.168.10.0/24 -o eth0
      And here is my MANETs configuration:
      – IP Address: 192.168.180.xx
      – Netmask:255.255.255.0
      – Mode: Ad-hoc
      – Essid: Any
      – Rate: 11
      – Channel: 9

    1. Also, on gateway, I have
      05:00:16.512 rreq_record_insert: Buffering RREQ 192.168.30.1 rreq_id=16 time=5600
      05:00:16.512 log_pkt_fields: rreq->flags: rreq->hopcount=0 rreq->rreq_id=16
      05:00:16.512 log_pkt_fields: rreq->dest_addr:192.168.1.31 rreq->dest_seqno=0
      05:00:16.512 log_pkt_fields: rreq->orig_addr:192.168.30.1 rreq->orig_seqno=18
      05:00:16.512 rreq_forward: forwarding RREQ src=192.168.30.1, rreq_id=16
      05:00:16.512 aodv_socket_send: AODV msg to 255.255.255.255 ttl=34 size=24
      05:00:16.513 rreq_process: ip_src=192.168.30.3 rreq_orig=192.168.30.1 rreq_dest=192.168.1.31 ttl=34
      05:00:19.473 rreq_process: ip_src=192.168.30.1 rreq_orig=192.168.30.1 rreq_dest=192.168.1.31 ttl=35
      05:00:19.473 rreq_record_insert: Buffering RREQ 192.168.30.1 rreq_id=17 time=5600
      which mean the request to send package to 192.168.1.31 is sent, but the gateway cannot forward the package. Am I correct?
      So how to solve this problem…

      1. Sorry for posting too many comments, but I’ve just done it again and it went back to the old problem.
        The manet can only send 1 package to the destination (I tried with 8.8.8.8), and it stop right there.
        Here is the result from gateway:
        05:07:54.956 rreq_process: ip_src=192.168.30.1 rreq_orig=192.168.30.1 rreq_dest=8.8.8.8 ttl=2
        05:07:54.956 rreq_record_insert: Buffering RREQ 192.168.30.1 rreq_id=1 time=5600
        05:07:54.956 log_pkt_fields: rreq->flags: rreq->hopcount=0 rreq->rreq_id=1
        05:07:54.956 log_pkt_fields: rreq->dest_addr:8.8.8.8 rreq->dest_seqno=0
        05:07:54.956 log_pkt_fields: rreq->orig_addr:192.168.30.1 rreq->orig_seqno=3
        05:07:54.956 rrep_create: Assembled RREP:
        05:07:54.956 log_pkt_fields: rrep->flags: rrep->hcnt=0
        05:07:54.956 log_pkt_fields: rrep->dest_addr:192.168.30.2 rrep->dest_seqno=3
        05:07:54.956 log_pkt_fields: rrep->orig_addr:192.168.30.1 rrep->lifetime=3000
        05:07:54.956 rreq_process: Responding for INTERNET dest: 8.8.8.8 rrep_size=26
        05:07:54.956 rrep_send: Sending RREP to next hop 192.168.30.1 about 192.168.30.1->192.168.30.2
        05:07:54.956 aodv_socket_send: AODV msg to 192.168.30.1 ttl=255 size=26
        05:07:55.010 rreq_process: ip_src=192.168.30.3 rreq_orig=192.168.30.1 rreq_dest=8.8.8.8 ttl=1

  24. Hi Abdusy Syarif,
    Can you help me explain the situation when I can only be able to ping one packet from manet to 8.8.8.8 and then it stuck right there?
    Cheers

    1. Have you try to run aodv with different command at Gateway and Manet node? Try to activate the gateway mode by “aodvd -l -r 3 -w”

      1. I also try
        aodvd -D -w
        aodvd -w
        aodvd -l -r 3 -w
        🙁
        it says that dest 8.8.8.8 down and then delete the route. what is a possibility?

      2. Thank you for your help.
        Can I have the aodv packet that you used to install aodv on your machines?
        I think there may be some problem in the source code.

        1. It was a few years ago and I used aodv-uu-0.9.6 downloaded from Internet and I didn’t change the source code as well.

      3. Hi Abdusy Syarif,
        Thank you for your assistance.
        Still I don’t know how to fix this problem, but I think I may need to know how AODV work within the gateway, how it handle the packages.
        Do you have any material about this?
        Sorry if I am disturbing you..

  25. dear abdusyarif,
    i am trying to implement aodv on latest android device, can you help me with the method of implementing,and packages to be installed to run the aodv on android.

  26. Excuse me, anyone here success in implement AODV with gateway?
    Please help me, I have only 1 more week to finish my project 🙁
    I tried many times with many test cases, but when I try to ping to the eth of the gateway (the interface to the Internet), the result is that it can ping only 1 packet >”<
    Is there any explanation for this case?
    By the way, in which version of Ubuntu or linux did you install AODV, and which version of AODV too, that is successfully make a node to be a gateway?
    Thank you very much…

    1. Hi An Nguyen, I was using Ubuntu 10.04 32 bit. However, I don’t know how to solved your problem. It could be misconfiguration on your machine. Good luck.

      1. Hi Abdusy,
        I find out that when I ping 8.8.8.8 from my manet node, only the routing table of the node has updated, but the routing table of the gateway stay unchanged, even though it should have added the route to 8.8.8.8 😕
        Here is the routing table of manet node:
        http://s27.postimg.org/b54o7eun7/unnamed.png
        Do you know why does the routing table of the gateway is not updated?
        Or do you know anyway to update this routing table manually?

  27. Hi Abdusy,
    Do you still have your gateway machine over there?
    Would you mind doing me a favor please?
    Can you put the machine into an iso file and send it to me 🙁
    I think the problem is AODV itself doesn’t update its gateway routing table, but I don’t know how to fix it.
    Thank you very much

  28. Thanking you for help, I have installed aodv in ubuntu 10.04.4 LTS but on running aodvd daemon I got buffer overfolw detected problem. How can I resolve this problem.
    rpdhakad@rpdhakad-laptop:~$ sudo aodvd -l -r 3
    *** buffer overflow detected ***: aodvd terminated
    ======= Backtrace: =========
    /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x50)[0xb770f940]
    /lib/tls/i686/cmov/libc.so.6(+0xe787a)[0xb770e87a]
    /lib/tls/i686/cmov/libc.so.6(__strcpy_chk+0x44)[0xb770dbf4]
    aodvd[0x804a74b]
    aodvd[0x804acf7]
    /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb763dbf6]
    aodvd[0x80491b1]
    ======= Memory map: ========
    08048000-08059000 r-xp 00000000 08:0b 3014714 /usr/sbin/aodvd
    08059000-0805a000 r–p 00010000 08:0b 3014714 /usr/sbin/aodvd
    0805a000-0805b000 rw-p 00011000 08:0b 3014714 /usr/sbin/aodvd
    0805b000-0805c000 rw-p 00000000 00:00 0
    096bd000-096de000 rw-p 00000000 00:00 0 [heap]
    b7607000-b7624000 r-xp 00000000 08:0b 786459 /lib/libgcc_s.so.1
    b7624000-b7625000 r–p 0001c000 08:0b 786459 /lib/libgcc_s.so.1
    b7625000-b7626000 rw-p 0001d000 08:0b 786459 /lib/libgcc_s.so.1
    b7626000-b7627000 rw-p 00000000 00:00 0
    b7627000-b7781000 r-xp 00000000 08:0b 917513 /lib/tls/i686/cmov/libc-2.11.1.so
    b7781000-b7782000 —p 0015a000 08:0b 917513 /lib/tls/i686/cmov/libc-2.11.1.so
    b7782000-b7784000 r–p 0015a000 08:0b 917513 /lib/tls/i686/cmov/libc-2.11.1.so
    b7784000-b7785000 rw-p 0015c000 08:0b 917513 /lib/tls/i686/cmov/libc-2.11.1.so
    b7785000-b7788000 rw-p 00000000 00:00 0
    b7797000-b7799000 rw-p 00000000 00:00 0
    b7799000-b779a000 r-xp 00000000 00:00 0 [vdso]
    b779a000-b77b5000 r-xp 00000000 08:0b 786862 /lib/ld-2.11.1.so
    b77b5000-b77b6000 r–p 0001a000 08:0b 786862 /lib/ld-2.11.1.so
    b77b6000-b77b7000 rw-p 0001b000 08:0b 786862 /lib/ld-2.11.1.so
    bfb68000-bfb7d000 rw-p 00000000 00:00 0 [stack]
    Aborted
    rpdhakad@rpdhakad-laptop:~$

  29. Dear all,
    I have a very small question to ask.
    In AODV-UU, we have to set up the wireless interface so that it is connect to the ad-hoc network by:
    stop network-manager
    ifconfig wlan0 down
    iwconfig wlan0 mode ad-hoc
    iwconfig wlan channel 11
    ifconfig wlan0 up
    ifconfig wlan0 10.0.0.x netmask 255.255.255.0
    So, the IP addresses of the nodes are static IP.
    However, can we connect a node into the network using dynamic IP (without using the last command above)?
    If it is possible, please tell me how to do it.
    Thank you very much!

  30. Hi all. I am trying to install AODV-UU 0.9.6 on 64 bit ubuntu 10.04.1 running on my 64 bit machine. Here are the results I get:
    amatek@amatek-laptop:~/aodv-uu-0.9.6$ make
    make -C /home/amatek/aodv-uu-0.9.6/lnx KERNEL_DIR=/lib/modules/2.6.32-57-generic/build KCC=gcc XDEFS=-DDEBUG
    make[1]: Entering directory `/home/amatek/aodv-uu-0.9.6/lnx’
    make[1]: Nothing to be done for `default’.
    make[1]: Leaving directory `/home/amatek/aodv-uu-0.9.6/lnx’
    amatek@amatek-laptop:~/aodv-uu-0.9.6$ make install
    make -C /home/amatek/aodv-uu-0.9.6/lnx KERNEL_DIR=/lib/modules/2.6.32-57-generic/build KCC=gcc XDEFS=-DDEBUG
    make[1]: Entering directory `/home/amatek/aodv-uu-0.9.6/lnx’
    make[1]: Nothing to be done for `default’.
    make[1]: Leaving directory `/home/amatek/aodv-uu-0.9.6/lnx’
    install -s -m 755 aodvd /usr/sbin/aodvd
    install: cannot create regular file `/usr/sbin/aodvd’: Permission denied
    make: *** [install] Error 1
    amatek@amatek-laptop:~/aodv-uu-0.9.6$
    Please any ideas on how I can solve this error?

    1. Able to install and run AODV-UU on Acer Aspire (Intel Core, Intel wifi card), HP with Atheros 5k chip & Celeron, Fujitsu core i5 x64 & x86 with Atheros 9k. The only “requirement” I can see is AODV-UU can only run on kernel 2.6 and before (due to coding). Pls correct me if I’m wrong.

  31. There are three nodes:
    A B C
    and A is out of direct contact with C. If B is in direct contact with A and C, how can A contact C? Though Ping?
    Another thing I discovered was that the nodes could not discover neighbours without being connected to the internet via WiFi. I tried setting up the ad-hoc network in a place where there was no WiFi access and the nodes could not identify neighbours. Why is this so?

    1. You may try using Wireshark for troubleshooting , in summary.
      – When running AODV daemon on both three nodes. They will broadcast HELLO message and able to discover neighbor within it’s coverage -> A will see B, B will see both A& C, C will see B only.
      – Note that AODV is on-demand routing means you need to trigger route finding (route request or RREQ message). So you need to perform: ARP request (ping, DNS queries, etc…).
      – Let A ping C for a few packet, a new route from A to C via B will be added (may view with command “route” on linux node).
      Please also note that AODV can run on both Ad-hoc or Managed mode. If you want to run in Ad-hoc mode, following need to be done on all three nodes:
      #sudo stop network-manager
      #sudo ifconfig wlan0 stop
      #sudo iwconfig wlan0 mode ad-hoc
      #sudo iwconfig wlan0 essid your-defined
      #sudo ifconfig wlan0 start
      then start aodv
      #sudo aodvd -l -r 3

  32. Can AODV-UU support the settings like below?
    nodeA(wlan1) (wlan2)nodeB(wlan3)(wlan4)nodeC
    where nodeB supports two wireless network cards, it receives packets from nodeA through wlan2 and forward the packets to NodeC through wlan3.
    I’ve faced many troubles as follows after the command “aodvd -i wlan2, wlan3” :
    wasn@ubuntu:~$ sudo aodvd -i wlan2,wlan3
    14:32:53.019 aodv_socket_init: RAW send socket buffer size set to 262142
    14:32:53.019 aodv_socket_init: Receive buffer size set to 262142
    Bind failed : Address already in use
    14:32:53.019 cleanup: CLEANING UP!

    1. sir can u help me what sould i do with my final project,, i have to implementation AODV and Network mobility ,now i use debian kernel 3.8, but aodv doesn’t support with this kernel , can u help what the solution in order aodv can support in debian 7 ,,
      i hope u can help me

  33. sir please help me. when i run ifconfig wlan0 down. i get error wlan0: ERROR while getting interface flags: No such device
    please help me.

  34. hello im implementing aodv in rasberry pi3,im really having trouble with the c++ or python code for the aodv protocol sir can u help me in this regard ive. ive done this using ns2 but im really stuck implementing it on a hardware
    please help me .

  35. Sir im working on implementing aodv on rasberry pi3 and im really stuck on the c++ or python code for aodv implementaion ive done aodv using ns2 but this thing is really new to me and im having serious trouble
    please help me sir.

  36. please help me,i try implement aodv with two node. this aodv can run but if i try to ping node B, the destination host unreachable

  37. hi
    i am getting this errorwhen i provide make command
    make: *** No rule to make target `timer_queue.h’, needed by `main.o’. Stop.
    pleaase guys help me since i am new to this

  38. anybody implement the aodv-uu-0.96 in linux kernel 3.x?i want move the aodv apply to the linux 3.0 set node?but the aodvuu-0.96 just for kernel 2.6

  39. i am working on a research project where I will be creating a proactive protocol similar to AODV. Creating the protocol from the scratch will be a tedious and time consuming task and it will be time saving If I implement the protocol from already working AODV.
    I can find AODV for old linux kernel such as 2.6.x such as famous AODV-uu from http://sourceforge.net/projects/aodvuu/. They are not compiling properly against the newer version for kernel version 3.8 and above. Does anyone have know AODV for latest kernel or does anyone AODV-uu for latest kernel version. Any help is very much appreciated.

  40. hi i installed aodv uu in ubuntu 10.04 and successfully compiled, then i got an error when i run the command aodvd – l -r -3. my wlan 0 is not up and running. i tried to fix it further i tried to get help from ubuntu forums they said, old kernals does not support the adapter, further the ubuntu 10.04 is not supported any more.. so what other ubuntu version i could use to compile AODV UU. please help me… this is very urgent

  41. Greetings from California! I’m bored at work so I decided to check out your blog on my iphone during lunch break.
    I really like the info you provide here and can’t wait to take a look when I get home.
    I’m surprised at how fast your blog loaded on my cell phone ..
    I’m not even using WIFI, just 3G .. Anyhow, very good blog!

Leave a Reply

Your email address will not be published. Required fields are marked *