Mobile ad hoc networks (MANETs) are wireless networks without any fixed infrastructure. Nodes in a MANET can act as both hosts and routers to forward packets between nodes. MANETs have dynamic topologies that change unpredictably as nodes move. Common routing protocols for MANETs operate in an on-demand fashion, discovering routes only when needed to reduce overhead from periodic updates. Some examples are dynamic source routing (DSR) and destination-sequenced distance-vector (DSDV) routing. Security poses unique challenges in MANETs due to the lack of centralized administration and shared wireless medium.