System and method for optimizing a route in a wireless network protocol for Internet