The invention discloses an IP-based software defined ubiquitous wireless MANET routing architecture, the wireless MANET routing architecture comprises three basic layers: an application plane, a control plane and a data plane, and the application plane comprises routing, data application, security, load balancing, strategy, QoS and the like, wherein the control plane comprises a control plane of amobile SDN controller MSC and a control plane of a mobile node (MN), the control plane of the mobile SDN controller MSC comprises a connection management module, a topology learning module, a forwarding management module and OpenFlow message compression and decompression, and the control plane of the mobile node MN comprises an OpenFlow message compression and decompression local adaptive controller LAC and a flow table FT, the data plane has the functions of forwarding an entered media stream according to a flow table FT rule and compressing/decompressing a packet header. According to the MANET routing system structure, position service support for tracking node positions is not needed, the size of Openflow messages is reduced through a compression and decompression method, and air interface resources of nodes are saved.