主权项 |
1. A non-transitory computer readable medium having instructions stored thereon that, when executed by a processor, cause the processor to perform tunneling for real-time communications (RTC), the tunneling comprising:
establishing an unencrypted tunnel, exclusive of authentication and prior to an establishing of an encrypted tunnel, between a tunneling server and a user equipment (UE), wherein, upon establishing the unencrypted tunnel, the UE creates a socket that resides in the unencrypted tunnel; determining, by the UE, that the socket requires encrypted RTC, wherein the socket is determined to require encrypted RTC according to a corresponding encryption level; establishing an encrypted tunnel between the tunneling server and the UE, wherein, upon establishing the encrypted tunnel, the UE moves the socket from the unencrypted tunnel to the encrypted tunnel; and performing the encrypted RTC via the socket over the encrypted tunnel, wherein the tunneling server provides an encrypted interface and an unencrypted interface corresponding to the encrypted tunnel and the unencrypted tunnel, respectively; and wherein the encrypted interface and the unencrypted interface run on the same internet protocol (IP) address, the unencrypted interface being configured on a first transport port number and the encrypted interface being configured on a second transport port number. |