In a fixed infrastructure network, mobile devices and sensors must connect to an access point like a base station to use the network. However, in a mobile ad-hoc network (MANET), the network organization is self-organizing and can change as devices and sensors move. Nodes in a MANET function as both hosts and routers, allowing the network to be established across multiple intermediate nodes. The connectivity and available routes in a MANET depend on the locations of nodes and their ability to discover services and route messages through nearby nodes.