Emulating multi-hop wireless networks over a planetary scale testbed