A gateway that performs the function of communicating over both a Wide Area Network (WAN) and the Neighborhood Area Network (NAN) and that provides advanced networking services, including addressing, routing/switching, health information, network time, security, and encryption.