1

We see that almost always the term of "ad-hoc networks" comes with WSN (Wireless Sensor Network). Does it mean an ad-hoc network must be always wireless?

If we define an ad-hoc network as follows:

"An ad hoc network is a network that is composed of individual devices communicating with each other directly." [1]

Can we imagine a "wired ad hoc" network?


[1] https://www.techopedia.com/definition/5868/ad-hoc-network

2
  • Probably they are referring to a specific operation mode of WiFi networks commonly known as ad-hoc mode. Wikipedia has a brief description of it: en.wikipedia.org/wiki/Wi-Fi#Wi-Fi_ad-hoc_mode
    – kasperd
    Dec 14, 2018 at 14:57
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can provide and accept your own answer.
    – Ron Maupin
    Dec 25, 2018 at 10:27

4 Answers 4

8

Caveat: This question might raise primarily opinion-based answers, and might be put on hold or considered off-topic, for exactly that reason.

Still, I dare to attempt an answer:

Following https://en.wikipedia.org/wiki/Ad_hoc#Networking

The term “ad hoc networking” typically refers to a system of network elements that combine to form a network requiring little or no planning.

The linked main wikipedia article subsequently focusses on wireless ad hoc networks only.

However, I don't quite see why a wired ad hoc network should not be thinkable, if a few conditions are met:

  • the devices to be connected all have a network interface of matching technology ("Ethernet" springs to mind).
  • there is a means to wire them all together, in a fashion that any participating device can talk to any (and to all) other participating device (Star? Bus? Ring? Anyone remember 10base2?)
  • the medium and topology chosen to interconnect the devices must also support multicast (or broadcast) propagation to all participants, or another mechanism to "talk to all devices", see above
  • a hub or switch to connect the devices might disqualify the setup as "ad hoc", as this would be an intermediate device (1).
  • the participating devices have a means to manage addressing on the emerging common subnet themselves (IPv4: APIPA, IPv6: link-local addresses with DAD), if the given underlying technology does not provide unique identifiers natively
  • the participating devices support suitable service announcement/discovery mechanisms and if needed some form of name resolution, so they have a way to find each other and find out what they can do with each other. Multicast based Zeroconf Networking (a.k.a. "Bonjour" or "Avahi") can do this.

... then yes, I would say that such a setup might be called an "ad hoc wired network".


(1) that might be subject of debate because a simple hub or switch fulfills the criterion of "little or no planning" with ease.

5
  • I would consider that a switch disqualifies an ad hoc network, although a hub is really just a powered cable, repeating the signals, even the collisions and damaged signals, to to every interface.
    – Ron Maupin
    Dec 14, 2018 at 15:01
  • I disagree - so long as it's a switch that does no configuration of its clients, ie doesn't also have a DHCP server or similar, then I would describe the client network communication as ad-hoc.
    – pjc50
    Dec 14, 2018 at 15:46
  • @pjc50, a switch is a bridge, just like a WAP is a bridge. They both serve the same function, so how does one make an ad hoc network, while the other does not?
    – Ron Maupin
    Dec 14, 2018 at 15:50
  • 1
    In the end, it comes down to your definition of "little or no planning", and at what layers you're interested in. Certainly people make ad-hoc point-to-point connections over wired ethernet, SLIP/RS-232, USB. I've made fileservers over hotel networks when ethernet sockets were common, which counts as "the network" for many end users. Many technical conferences have open wired networks with RFC 2322 DHCP. Which of these you count depends on your own understanding of ad-hoc in your contexts.
    – jonathanjo
    Dec 14, 2018 at 17:02
  • 1
    Your answer covers good points. However, I don't think I agree that the term "ad-hoc" requires multicast/broadcast, nor service announcement/discovery. I'm not saying they're not useful or beneficial in facilitating ad-hoc networks, especially for end users, just that they're not implicit in the term.
    – jonathanjo
    Dec 15, 2018 at 16:49
3

As the already present answer point out, ad hoc is a matter of perspective.

From a user's POV an ad-hoc network should be effortless and require no planning. If this precludes bringing along a cable, then yes, it needs to be wireless.

If you admit a cable you can connect two machines with Ethernet. Using obsolete 10BASE2 coax cabling you could even connect a whole lot. I'd call this ad hoc as well.

If you also admit a repeater hub or a simple switch you can already connect a large number of machines. From the user's POV there's little difference between a switch and a repeater hub. I'd still call this ad hoc since it requires very little effort and next to no planning or preparation.

Technically, the term is used almost exclusively for the WiFi ad-hoc mode. The initial coax Ethernet was actually designed in a similar way but Ethernet has moved away since, using star or tree topology on the physical layer (L1). Ethernet's data link layer (L2) is still plug & play, so it doesn't disqualify its use for ad-hoc networking.

The network layer (L3) is all the same for wired or wireless networks, so there the differentiation ends.

2

About the term

The term "Ad Hoc" seems to have completely different meanings in different contexts.

In wireless LAN context "Ad Hoc" means that all devices in the network have the same role. The opposite is an "Infrastructure network" where one device has a special role. The data format (OSI layer 2) is slightly different in both types of networks.

(Note that "WLAN tethering" with a mobile phone uses an "Infrastructure" network, not an "Ad Hoc" one.)

In this context however the term "Ad Hoc" does not say anything about the effort needed for configuring and planning the network:

The effort needed for planning and configuring a "WLAN Ad Hoc" network even seems to be higher than using a "WLAN Infrastructure" network when using modern devices and modern software!

Why do you see the term only in conjunction with wireless LAN?

Of course the operating system does not need to know if the network that you are planning "requires little or no planning" or if it requires a lot of planning.

Therefore you won't find any configuration setting where you will be asked if your network is an "Ad Hoc" network with the meaning of the term "Ad Hoc" described in Marc Luethi's answer.

However because "Ad Hoc" and "Infrastructure" WLAN networks use a slightly different data format, the operating system needs to know which kind of data format shall be used.

Therefore you will definitely find the setting "Ad Hoc" or "Infrastructure" in the WLAN settings.

Is this possible with wired networks, too?

If you want to know if wired network types use the word or term "Ad Hoc":

I don't think so.

Of course there are wired network types having different operating modes that can be selected by configuration. But none of them seems to use the term "Ad Hoc" for a certain selectable operating mode.

If you want to know if there are wired networks which would be "Ad Hoc" when using the WLAN terminology:

"Normal" Ethernet would be the best example.

Ethernet frames are not sent to a device with a certain MAC address which then forwards the frames to the actual receiver. Instead, the "destination MAC address" in the frame sent by the sender will already specify the final destination of the frame (*). In WLAN terminology this would be called "Ad Hoc network".

(*) but not necessarily of the layer-3 packet inside the frame

0

The term "ad-hoc" is used to distinguish a peer-to-peer wireless network from an access-point based "managed" one.

Wired networks on the other hand always use a symmetric signaling layer, so no such distinction exists, which is why you see the word used rather seldom in wired contexts.

There may be some confusion because Windows 95/98 had a wizard to set up private IP addresses on an interface that was also called "Set up ad-hoc networking".

1
  • I don't know what's confusing about it: that's an ad-hoc wired network, rare though it might be in comparison to ad-hoc wifi. And I'd disagree about "ad-hoc" meaning "peer-to-peer". It means "without planning", and normally implies temporary.
    – jonathanjo
    Dec 14, 2018 at 18:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.