Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello,
could someone tell me if, when I run my wireless adapter in ad hoc mode, a routing protocol is used (e.g. olsr)? or I can just communicate with nodes in my range of communication?
Thank you very much for the reply!

ad hoc simply provides a connection mechanism for wifi connections. It is completely irrelevant to routing or routing protocols. You can connect to people in ad hoc networks. IP addressing, etc. would be taken care of just as it is with wired connections - someone can run a DHCP server, or APIPA would take over.
TECH-NO-LOGICAL ROMANCE!
http://www.homestarrunner.com/tgs12.html

Wireless ad-hoc network is wireless connection between computers without using access point/wireless router, it's the same concept if you connect 2 computers directly using crossover cable.
If one of the computer (computer A) is enabled with Internet Connection Sharing or configured as router, other computers in ad-hoc network can still go to Internet or other networks by pointing to this computer
A as gateway.Internet Connection Sharing Tutorial
How to configure XP as a simple router (ip forwarding)
Hope helps..

Thanks to all,
the information you provided me with were very useful.
But this is exactly what I wanted to know: there are 3 hosts with a wireless adapter A, B and C. A is close to B and B is close to C BUT a CANNOT see C. in order A to communicate with C there's the need for some ad hoc routing protocols right? My question is: HOW CAN I USE SUCH PROTOCOLS. Or How does the routing (packet forwarding I mean) works in such a case?
Thank you very much

"in order A to communicate with C there's the need for some ad hoc routing protocols right?"
NO! Ad hoc networks are effectively peer to peer networks. No routing protocols are necessary.
"Enough, enough bowing down to disillusion!
Hats off & applause to rogues & evolution!
The ripple effect is too good not to mention.
If you’re not affected, you’re not paying attention!"

If A is connected to B, and B is connected to C, in order for A to see C, you need to configure B as router (ip forwarding), so that B knows how to route traffic.

How do you propose that is going to happen unless you assign multiple IP's on the NIC on B, and make a routing table on B, configure either a routing table or a DG on both A and C?
If you want to go to all that trouble, by all means, go for it.
"Enough, enough bowing down to disillusion!
Hats off & applause to rogues & evolution!
The ripple effect is too good not to mention.
If you’re not affected, you’re not paying attention!"

Ok ok,
but the the discussion title is MANET (mobile ad hoc networks) and I am pretty sure that (think to military applications where nodes are far away each other and not all in the same trasmission range) they have been designed and implemented some routing protocols because, in such scenario, nodes are also packets forwarder.
Now, my practical question is: I have the code and the binary of one of such routing protocol. HOW CAN I USE IT?
Thank you, your previous answers are anyway accepted since they provide me with new skills.

You're not getting it.
Ad hoc networks are not on the same OSI level as routing.
Ad hoc - the only thing it does is say "connect peer to peer, not to an access point". It's similar to changing a wired interconnect from a hub to a switch. It has absolutely nothing to do with routing.
"Enough, enough bowing down to disillusion!
Hats off & applause to rogues & evolution!
The ripple effect is too good not to mention.
If you’re not affected, you’re not paying attention!"

You're right, routing is involved in network layer (3rd level).
So, let's come back to the 3 hosts example: if A, B and C are ALL in the same trasmission range of A, A can send messages to both B and C.....it's like to have an hub in the "wired world"?
(I can say that because I did an ad hoc network with 3 other friends and we could ping each other....obviously we the IP addresses had the same network address (accordingly to the netmask)).
Thank you...and sorry for my insistent questions but I need to know some mechanisms.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |