WO2022001639A1 - Communication method, mobile device and routing device - Google Patents

Communication method, mobile device and routing device Download PDF

Info

Publication number
WO2022001639A1
WO2022001639A1 PCT/CN2021/099852 CN2021099852W WO2022001639A1 WO 2022001639 A1 WO2022001639 A1 WO 2022001639A1 CN 2021099852 W CN2021099852 W CN 2021099852W WO 2022001639 A1 WO2022001639 A1 WO 2022001639A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile device
transmission channel
data
routing device
routing
Prior art date
Application number
PCT/CN2021/099852
Other languages
French (fr)
Chinese (zh)
Inventor
薛清风
惠少博
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022001639A1 publication Critical patent/WO2022001639A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1023Server selection for load balancing based on a hash applied to IP addresses or costs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a communication method, a mobile device, and a routing device.
  • the two-way transmission method of wireless fidelity (Wi-Fi) network and mobile Internet can be widely used when the signal of one network is weak, the other network can quickly assist, stabilize the transmission rate and reduce the transmission delay. .
  • Wi-Fi wireless fidelity
  • the mobile device and all the servers that the mobile device may connect to need to be adapted in advance, resulting in high promotion costs and unfavorable promotion. How to provide a two-way transmission method of Wi-Fi network and mobile Internet that is conducive to promotion has become our demand.
  • the present application provides a communication method, a mobile device and a routing device, which can realize a two-way transmission mode of Wi-Fi network and mobile Internet between the mobile device and the routing device, without requiring all application servers to have strict data splitting and data aggregation.
  • the requirement brings users a high-bandwidth and low-latency communication experience, reducing implementation costs.
  • the present application provides a communication method, and the communication method, which is applied to a mobile device.
  • the mobile device and a routing device establish a first transmission channel through a Wi-Fi network, and the first transmission channel includes at least one transmission channel.
  • the mobile device is installed with N applications, any one of the N applications corresponds to an application server in the M application servers, and M and N are both positive integers; the method includes:
  • the mobile device After the mobile device receives the first response from the routing device through the first transmission channel, the mobile device determines that the routing device has the ability to multiplex data; the first response is for the first response A response to the request, which is used to indicate that the routing device has the ability to multiplex data;
  • the mobile device and the routing device After receiving the first response sent by the routing device through the first transmission channel, the mobile device and the routing device establish a second transmission channel through the cellular network; the second transmission channel includes at least one transmission channel .
  • the mobile device and the routing device establish a first transmission channel through a Wi-Fi network, and the mobile device and the routing device establish a second transmission channel through a cellular network.
  • the mobile device splits the upload data into first data and second data, and transmits the first data to the routing device via the first transmission channel, and transmits the second data to the routing device via the second transmission channel, so that the routing device transmits the first data to the routing device.
  • the first data and the second data are combined into upload data, and the upload data is transmitted to the application server based on the connection between the routing device and the application server.
  • the present application implements a dual-channel transmission mode of Wi-Fi network and mobile Internet between the routing device and the mobile device, uses the routing device as a bridge for business realization between the mobile device and the application server, and transmits the data of the mobile device to the mobile device in time.
  • the application server solves the strict requirements of data splitting and data aggregation in related technologies for all application servers, facilitates the promotion of different types of services, reduces the implementation cost, and is also conducive to improving the efficiency of data transmission to meet the large-scale requirements of mobile devices.
  • the service requirements of throughput rate bring users a high-bandwidth and low-latency communication experience.
  • the communication method before the mobile device and the routing device establish the second transmission channel through the cellular network, the communication method further includes: after the mobile device determines that the routing device has the capability of multiplexing data, sending the mobile device to the mobile device through the cellular network.
  • the routing device sends a second request, where the second request is a request to perform PING detection on the transmission channel between the WAN interface corresponding to the cellular network of the mobile device and the WAN interface of the routing device. If the mobile device does not receive the second response from the routing device through the cellular network within a preset period of time, the mobile device obtains the IP address and port information of the gateway of the mobile device, and the IP address and port information of the gateway of the routing device based on NAT traversal.
  • Port information, and the second response is a response to the second request.
  • the mobile device determines to transmit data via the second transmission channel based on the IP address and port information of the gateway of the mobile device, the IP address and port information of the gateway of the routing device, and the IP address and port information of the WAN interface of the routing device. Thereby, the second transmission channel between the mobile device and the WAN interface of the routing device is determined.
  • the communication method further includes: if the mobile device receives the second response from the routing device through the cellular network within a preset time period, the mobile device determines the IP address and port information based on the WAN interface of the routing device , and transmit data via the second transmission channel. Thereby, the second transmission channel between the mobile device and the WAN interface of the routing device is determined.
  • establishing the second transmission channel between the mobile device and the routing device through the cellular network includes: the mobile device sends a third request to the routing device through the cellular network, where the third request is for establishing the second transmission channel through the cellular network ask.
  • the mobile device receives a third response from the routing device through the cellular network, where the third response is used to indicate that the routing device has established a second transmission channel with the mobile device through the cellular network. In this way, preparations are made for establishing the second transmission channel, so that both the mobile device and the routing device know that the second transmission channel has been established.
  • the mobile device determining that the routing device has the capability of multiplexing data includes: the mobile device sends a first request to the routing device via the first transmission channel, where the first request is to inquire whether the routing device has multiplexing capabilities Data capability request. After the mobile device receives the first response from the routing device via the first transmission channel, the mobile device determines that the routing device has the capability of multiplexing data. The first response is a response to the first request, and is used to indicate that the routing device has the capability of multiplexing data. Thereby, preparations are made for establishing the second transmission channel.
  • the first request also carries the IP address and port information of the WAN interface of the routing device.
  • the mobile device receives the third data of the routing device via the first transmission channel, and receives the fourth data of the routing device via the second transmission channel, and the third data and the fourth data are separated by the routing device.
  • the download data is obtained by dividing the download data.
  • the download data is the connection between the routing device and the P-th application server in the M application servers, and is received from the P-th application service in the M application servers.
  • the download data is Data to be transferred to the mobile device.
  • the mobile device After the mobile device receives the third data and the fourth data, the mobile device combines the third data and the fourth data into download data. And based on the downloaded data, the service of the application corresponding to the Pth application server in the M application servers is implemented.
  • the present application realizes the dual transmission mode of Wi-Fi network and mobile Internet between the routing device and the mobile device, and uses the routing device as a bridge for service realization between the mobile device and the application server, and realizes the
  • the mutual transmission of data between the mobile device and the application server solves the strict requirements of data splitting and data aggregation in all application servers in related technologies, which facilitates the promotion of different types of services, reduces the implementation cost, and is also conducive to improving data.
  • the transmission efficiency meets the service requirements of high throughput of mobile devices, and brings users a high-bandwidth and low-latency communication experience.
  • the mobile device is adapted with a first SDK, and the first SDK is used to support the mobile device and the routing device to establish the first transmission channel and the second transmission channel at the same time.
  • the mobile device detects that the bandwidth occupied by the mobile device on the Wi-Fi network is greater than or equal to the preset first threshold, and/or after the mobile device detects that the transmission delay of the mobile device through the Wi-Fi network is less than or equal to the preset
  • the mobile device transmits the upload data to the routing device via the first transmission channel. And the download data of the routing device is received via the first transmission channel. Therefore, it is not necessary to occupy too many resources to transmit data, which ensures the integrity of the data transmission scheme.
  • the present application provides a mobile device, including: a mobile device, the mobile device and a routing device establish a first transmission channel through a Wi-Fi network, the first transmission channel includes at least one transmission channel, the The mobile device is installed with N applications, any one of the N applications corresponds to one application server in the M application servers, and M and N are both positive integers; the mobile device includes:
  • processors one or more processors
  • the mobile device After the mobile device receives the first response from the routing device through the first transmission channel, the mobile device determines that the routing device has the ability to multiplex data; the first response is for the first request The response is used to indicate that the routing device has the ability to multiplex data;
  • the mobile device and the routing device After receiving the first response sent by the routing device through the first transmission channel, the mobile device and the routing device establish a second transmission channel through the cellular network; the second transmission channel includes at least one transmission channel .
  • the computer program when executed by one or more processors, also causes the mobile device to perform the following steps:
  • the communication method further includes: after the mobile device determines that the routing device has the capability of multiplexing data, the mobile device sends a second request to the routing device through the cellular network, and the first The second request is a request to perform PING detection on the transmission channel between the WAN interface corresponding to the cellular network of the mobile device and the WAN interface of the routing device. If the mobile device does not receive the second response from the routing device through the cellular network within a preset period of time, the mobile device obtains the IP address and port information of the gateway of the mobile device, and the IP address and port information of the gateway of the routing device based on NAT traversal.
  • Port information, and the second response is a response to the second request.
  • the mobile device determines to transmit data via the second transmission channel based on the IP address and port information of the gateway of the mobile device, the IP address and port information of the gateway of the routing device, and the IP address and port information of the WAN interface of the routing device.
  • the computer program when executed by one or more processors, also causes the mobile device to perform the following steps:
  • the communication method further includes: if the mobile device receives the second response from the routing device through the cellular network within a preset time period, the mobile device determines the IP address and port information based on the WAN interface of the routing device, and sends the second transmission channel via the second transmission channel. transfer data.
  • the computer program when executed by one or more processors, it causes the mobile device to specifically perform the following steps:
  • Establishing the second transmission channel between the mobile device and the routing device through the cellular network includes: the mobile device sends a third request to the routing device through the cellular network, where the third request is a request for establishing the second transmission channel through the cellular network.
  • the mobile device receives a third response from the routing device through the cellular network, where the third response is used to indicate that the routing device has established a second transmission channel with the mobile device through the cellular network.
  • the computer program when executed by one or more processors, it causes the mobile device to specifically perform the following steps:
  • the mobile device determining that the routing device has the capability of multiplexing data includes: the mobile device sends a first request to the routing device via the first transmission channel, where the first request is a request for inquiring whether the routing device has the capability of multiplexing data. After the mobile device receives the first response from the routing device via the first transmission channel, the mobile device determines that the routing device has the capability of multiplexing data. The first response is a response to the first request, and is used to indicate that the routing device has the capability of multiplexing data.
  • the first request also carries the IP address and port information of the WAN interface of the routing device.
  • the mobile device receives the third data of the routing device via the first transmission channel, and receives the fourth data of the routing device via the second transmission channel, and the third data and the fourth data are separated by the routing device.
  • the download data is obtained by dividing the download data, and the download data is received by the routing device from the P-th application service in the M application servers via the connection between the routing device and the P-th application server in the M application servers, and the download data is required.
  • the mobile device After the mobile device receives the third data and the fourth data, the mobile device combines the third data and the fourth data into download data. And based on the downloaded data, the service of the application corresponding to the Pth application server in the M application servers is implemented.
  • the mobile device is adapted with a first SDK, and the first SDK is used to support the mobile device and the routing device to establish the first transmission channel and the second transmission channel at the same time.
  • the beneficial effects of the mobile device can refer to the beneficial effects brought by the above-mentioned first aspect and each possible implementation manner of the first aspect. Repeat.
  • the present application provides a communication method, which is applied to a routing device, the routing device and at least one mobile device establish a first transmission channel through a Wi-Fi network, the routing device and the M application servers
  • the Pth application server establishes the Pth transmission channel through the wired network; any one of the M application servers corresponds to an application in the N applications installed by the mobile device, and M and N are positive Integer; the method includes:
  • the first response is a response to the first request and is used to indicate that the routing device has multiplexed data ability
  • the routing device and the mobile device After sending the first response to the mobile device through the first transmission channel, the routing device and the mobile device establish a second transmission channel through the cellular network; the second transmission channel includes at least one transmission channel.
  • a first transmission channel is established between the mobile device and the routing device through the Wi-Fi network, the mobile device and the routing device establish a second transmission channel through the cellular network, and the routing device receives the mobile device through the first transmission channel.
  • the first data of the device receives the second data of the mobile device via the second transmission channel.
  • the routing device combines the first data and the second data into uploading data, and transmits the uploading data to the application server through the connection between the routing device and the application server.
  • the present application implements a dual-channel transmission mode of Wi-Fi network and mobile Internet between the routing device and the mobile device, uses the routing device as a bridge for business realization between the mobile device and the application server, and transmits the data of the mobile device to the mobile device in time.
  • the application server solves the strict requirements of data splitting and data aggregation in related technologies for all application servers, facilitates the promotion of different types of services, reduces the implementation cost, and is also conducive to improving the efficiency of data transmission to meet the large-scale requirements of mobile devices.
  • the service requirements of throughput rate bring users a high-bandwidth and low-latency communication experience.
  • the communication method further includes: the routing device receives a second request from the mobile device through the cellular network, where the second request is for the mobile device
  • the transmission channel between the WAN interface corresponding to the cellular network and the WAN interface of the routing device performs a PING probe request. If the routing device does not transmit the second response to the mobile device through the cellular network within the preset time period, the routing device obtains the IP address and port information of the gateway of the mobile device and the IP address and port information of the gateway of the routing device based on NAT traversal , and the second response is a response to the second request.
  • the routing device determines to transmit data via the second transmission channel based on the IP address and port information of the gateway of the mobile device, the IP address and port information of the gateway of the routing device, and the IP address and port information of the WAN interface of the routing device. Thereby, the second transmission channel between the mobile device and the WAN interface of the routing device is determined.
  • the communication method further includes: if the routing device transmits the second response to the mobile device through the cellular network within a preset time period, the routing device determines the IP address and port information based on the WAN interface of the routing device, Data is transmitted via the second transmission channel. Thereby, the second transmission channel between the mobile device and the WAN interface of the routing device is determined.
  • the routing device and the mobile device establish a second transmission channel through the cellular network, including: the routing device receives a third request from the mobile device through the cellular network, and the third request is to establish the second transmission channel through the cellular network. request. In response to the third request, the routing device sends a third response to the mobile device through the cellular network, where the third response is used to indicate that the routing device has established a second transmission channel with the mobile device through the cellular network. In this way, preparations are made for establishing the second transmission channel, so that both the mobile device and the routing device know that the second transmission channel has been established.
  • the communication method before the routing device receives the second request of the mobile device through the cellular network, the communication method further includes: the routing device receives the first request of the mobile device via the first transmission channel, where the first request is A request that asks whether the routing device has the ability to multiplex data. After the routing device determines that the routing device has the capability of multiplexing data, the routing device sends a first response to the mobile device via the first transmission channel. The first response is a response to the first request, and is used to indicate that the routing device has the capability of multiplexing data. Thereby, preparations are made for establishing the second transmission channel.
  • the first request also carries the IP address and port information of the WAN interface of the routing device.
  • the routing device receives the download data of the P-th application server in the M application servers via the connection between the routing device and the P-th application server in the M application servers.
  • Download data is the data to be transferred to the mobile device.
  • the routing device splits the download data into third data and fourth data, and transmits the third data to the mobile device through the first transmission channel, and transmits the fourth data to the mobile device through the second transmission channel, so that the mobile device transmits the third data to the mobile device.
  • the third data and the fourth data are combined as download data.
  • the service of the application corresponding to the Pth application server in the M application servers is implemented.
  • the present application realizes the dual transmission mode of Wi-Fi network and mobile Internet between the routing device and the mobile device, and uses the routing device as a bridge for service realization between the mobile device and the application server, and realizes the
  • the mutual transmission of data between the mobile device and the application server solves the strict requirements of data splitting and data aggregation in all application servers in related technologies, which facilitates the promotion of different types of services, reduces the implementation cost, and is also conducive to improving data.
  • the transmission efficiency meets the service requirements of high throughput of mobile devices, and brings users a high-bandwidth and low-latency communication experience.
  • the routing device is adapted with a second SDK, and the second SDK is used to support the routing device and the mobile device to establish the first transmission channel and the second transmission channel at the same time, and the wired network is an optical fiber network. Therefore, it is not necessary to occupy too many resources to transmit data, which ensures the integrity of the data transmission scheme.
  • the present application provides a routing device, including:
  • a routing device where the routing device and at least one mobile device establish a first transmission channel through a Wi-Fi network, and the routing device and the Pth application server in the M application servers establish a Pth transmission channel through a wired network ;
  • Any one of the M application servers corresponds to an application in the N applications installed by the mobile device, and M and N are both positive integers, and P is a positive integer less than or equal to M;
  • the routing equipment include:
  • processors one or more processors
  • the one or more computer programs are stored on the memory and, when executed by the one or more processors, cause the routing device to perform the following steps:
  • the first response is a response to the first request and is used to indicate that the routing device has multiplexed data ability
  • the routing device and the mobile device After sending the first response to the mobile device through the first transmission channel, the routing device and the mobile device establish a second transmission channel through the cellular network; the second transmission channel includes at least one transmission channel.
  • the computer program when executed by one or more processors, also causes the routing device to perform the following steps:
  • the communication method further includes: the routing device receives a second request from the mobile device through the cellular network, where the second request is a WAN of the mobile device corresponding to the cellular network A request for PING detection on the transmission channel between the interface and the WAN interface of the routing device. If the routing device does not transmit the second response to the mobile device through the cellular network within the preset time period, the routing device obtains the IP address and port information of the gateway of the mobile device and the IP address and port information of the gateway of the routing device based on NAT traversal , and the second response is a response to the second request. The routing device determines to transmit data via the second transmission channel based on the IP address and port information of the gateway of the mobile device, the IP address and port information of the gateway of the routing device, and the IP address and port information of the WAN interface of the routing device.
  • the computer program when executed by one or more processors, also causes the routing device to perform the following steps:
  • the communication method further includes: if the routing device transmits the second response to the mobile device through the cellular network within a preset time period, the routing device determines the IP address and port information based on the WAN interface of the routing device, and transmits the second response via the second transmission channel data.
  • the computer program when executed by one or more processors, also causes the routing device to perform the following steps:
  • Establishing a second transmission channel between the routing device and the mobile device through the cellular network includes: the routing device receives a third request from the mobile device through the cellular network, where the third request is a request for establishing the second transmission channel through the cellular network. In response to the third request, the routing device sends a third response to the mobile device through the cellular network, where the third response is used to indicate that the routing device has established a second transmission channel with the mobile device through the cellular network.
  • the computer program when executed by one or more processors, also causes the routing device to perform the following steps:
  • the communication method further includes: the routing device receives the first request of the mobile device via the first transmission channel, where the first request is to inquire whether the routing device has multiplexing Data capability request. After the routing device determines that the routing device has the capability of multiplexing data, the routing device sends a first response to the mobile device via the first transmission channel. The first response is a response to the first request, and is used to indicate that the routing device has the capability of multiplexing data.
  • the first request also carries the IP address and port information of the WAN interface of the routing device.
  • the routing device receives the download data of the P-th application server in the M application servers via the connection between the routing device and the P-th application server in the M application servers.
  • Download data is the data to be transferred to the mobile device.
  • the routing device splits the download data into third data and fourth data, and transmits the third data to the mobile device through the first transmission channel, and transmits the fourth data to the mobile device through the second transmission channel, so that the mobile device transmits the third data to the mobile device.
  • the third data and the fourth data are combined as download data.
  • the service of the application corresponding to the Pth application server in the M application servers is implemented.
  • the routing device is adapted with a second SDK, and the second SDK is used to support the routing device and the mobile device to establish the first transmission channel and the second transmission channel at the same time.
  • the wired network is an optical fiber network.
  • the present application provides a communication method, which is applied to a communication system, where the communication system at least includes a mobile device, a routing device and M application servers, and the mobile device and the routing device establish a first transmission channel through a Wi-Fi network,
  • the routing devices respectively establish M connections with the M application servers through wired networks.
  • the mobile device is installed with N applications, any one of the N applications corresponds to one application server in the M application servers, and both M and N are positive integers.
  • the communication method includes: after the mobile device detects that the bandwidth occupied by the mobile device on the Wi-Fi network is less than a preset first threshold, and/or when the mobile device detects that the transmission delay of the mobile device through the Wi-Fi network is greater than a predetermined threshold After setting the second threshold, the mobile device and the routing device establish a second transmission channel through the cellular network.
  • the mobile device splits the upload data into first data and second data, transmits the first data to the routing device via the first transmission channel, and transmits the second data to the routing device via the second transmission channel.
  • the upload data is the data to be transmitted to the Pth application server among the M application servers.
  • P is a positive integer greater than or equal to 1 and less than or equal to M.
  • the routing device After the routing device receives the first data and the second data, the routing device combines the first data and the second data into upload data.
  • the routing device transmits the uploaded data to the P th application server in the M application servers via the connection between the routing device and the P th application server in the M application servers.
  • the mobile device and the routing device establish a first transmission channel through a Wi-Fi network, and the mobile device and the routing device establish a second transmission channel through a cellular network.
  • the mobile device splits the upload data into first data and second data, and transmits the first data to the routing device via the first transmission channel, and transmits the second data to the routing device via the second transmission channel.
  • the routing device combines the first data and the second data into uploading data, and transmits the uploading data to the application server through the connection between the routing device and the application server.
  • the present application implements a dual-channel transmission mode of Wi-Fi network and mobile Internet between the routing device and the mobile device, uses the routing device as a bridge for business realization between the mobile device and the application server, and transmits the data of the mobile device to the mobile device in time.
  • the application server solves the strict requirements of data splitting and data aggregation in related technologies for all application servers, facilitates the promotion of different types of services, reduces the implementation cost, and is also conducive to improving the efficiency of data transmission to meet the large-scale requirements of mobile devices.
  • the service requirements of throughput rate bring users a high-bandwidth and low-latency communication experience.
  • the communication method before the mobile device and the routing device establish the second transmission channel through the cellular network, the communication method further includes: after the mobile device determines that the routing device has the ability to multiplex data, the mobile device through the cellular network A second request is sent to the routing device, where the second request is a request for performing PING detection on the transmission channel between the WAN interface corresponding to the cellular network of the mobile device and the WAN interface of the routing device. If the mobile device does not receive the second response from the routing device through the cellular network within a preset period of time, the mobile device and the routing device obtain the IP address and port information of the gateway of the mobile device and the IP address of the gateway of the routing device based on NAT traversal.
  • the mobile device and the routing device determine, via the second transmission channel, based on the IP address and port information of the gateway of the mobile device, the IP address and port information of the gateway of the routing device, and the IP address and port information of the WAN interface of the routing device transfer data. Thereby, the second transmission channel between the mobile device and the WAN interface of the routing device is determined.
  • the communication method further includes: if the mobile device receives the second response from the routing device through the cellular network within a preset time period, the mobile device and the routing device determine an IP address based on the WAN interface of the routing device and port information to transmit data via the second transmission channel. Thereby, the second transmission channel between the mobile device and the WAN interface of the routing device is determined.
  • establishing the second transmission channel between the mobile device and the routing device through the cellular network includes: the mobile device sends a third request to the routing device through the cellular network, where the third request is for establishing the second transmission channel through the cellular network ask.
  • the routing device sends a third response to the mobile device through the cellular network, where the third response is used to indicate that the routing device has established a second transmission channel with the mobile device through the cellular network. In this way, preparations are made for establishing the second transmission channel, so that both the mobile device and the routing device know that the second transmission channel has been established.
  • the mobile device determining that the routing device has the capability of multiplexing data includes: the mobile device sends a first request to the routing device via the first transmission channel, where the first request is to inquire whether the routing device has multiplexing capabilities Data capability request. After the routing device receives the first request of the mobile device via the first transmission channel, and determines that the routing device has the capability of multiplexing data, the routing device sends a first response to the mobile device via the first transmission channel, the first response is for The response to the first request is used to indicate that the routing device has the capability of multiplexing data. Thereby, preparations are made for establishing the second transmission channel.
  • the first request also carries the IP address and port information of the WAN interface of the routing device.
  • the P th application server among the M application servers transmits the download data to the routing device via the connection between the routing device and the P th application server among the M application servers.
  • Download data is the data to be transferred to the mobile device.
  • the routing device splits the downloaded data into third data and fourth data, transmits the third data to the mobile device via the first transmission channel, and transmits the fourth data to the mobile device via the second transmission channel.
  • the mobile device After the mobile device receives the third data and the fourth data, the mobile device combines the third data and the fourth data into download data. And based on the downloaded data, the service of the application corresponding to the Pth application server in the M application servers is implemented.
  • the present application realizes the dual transmission mode of Wi-Fi network and mobile Internet between the routing device and the mobile device, and uses the routing device as a bridge for service realization between the mobile device and the application server, and realizes the
  • the mutual transmission of data between the mobile device and the application server solves the strict requirements of data splitting and data aggregation in all application servers in related technologies, which facilitates the promotion of different types of services, reduces the implementation cost, and is also conducive to improving data.
  • the transmission efficiency meets the service requirements of high throughput of mobile devices, and brings users a high-bandwidth and low-latency communication experience.
  • the mobile device is adapted with a first SDK, and the first SDK is used to support the mobile device and the routing device to establish the first transmission channel and the second transmission channel at the same time.
  • the routing device is adapted with a second SDK, and the second SDK is used to support the routing device and the mobile device to establish the first transmission channel and the second transmission channel at the same time.
  • the wired network is an optical fiber network.
  • the mobile device After the mobile device detects that the bandwidth occupied by the mobile device on the Wi-Fi network is greater than or equal to the preset first threshold, and/or after the mobile device detects that the transmission delay of the mobile device through the Wi-Fi network is less than or equal to the preset After the second threshold, the mobile device transmits the upload data to the routing device via the first transmission channel.
  • the routing device transmits the request response to the mobile device via the first transmission channel. Therefore, it is not necessary to occupy too many resources to transmit data, which ensures the integrity of the data transmission scheme.
  • the present application provides a communication system.
  • the communication system includes at least one mobile device, one routing device, and M application servers.
  • the mobile device and the routing device establish a first transmission channel through a Wi-Fi network, and the routing device and the M application servers respectively establish a first transmission channel.
  • Each application server establishes M connections through the wired network.
  • the mobile device is installed with N applications, any one of the N applications corresponds to one application server in the M application servers, and both M and N are positive integers.
  • the mobile device and the routing device are used for, after the mobile device detects that the bandwidth occupied by the mobile device on the Wi-Fi network is less than the preset first threshold, and/or when the mobile device detects that the mobile device transmits through the Wi-Fi network After the delay is greater than the preset second threshold, a second transmission channel is established through the cellular network.
  • the mobile device is configured to split the upload data into first data and second data, transmit the first data to the routing device via the first transmission channel, and transmit the second data to the routing device via the second transmission channel.
  • the upload data is the data to be transmitted to the Pth application server among the M application servers.
  • P is a positive integer greater than or equal to 1 and less than or equal to M.
  • the routing device is configured to combine the first data and the second data into upload data after the routing device receives the first data and the second data.
  • the routing device is configured to transmit the uploaded data to the P-th application server in the M application servers via the connection between the routing device and the P-th application server in the M application servers.
  • the mobile device before the mobile device and the routing device establish the second transmission channel through the cellular network, the mobile device is further configured to, after the mobile device determines that the routing device has the capability of multiplexing data, transmit data to the routing device through the cellular network The device sends a second request, where the second request is a request for performing PING detection on the transmission channel between the WAN interface corresponding to the cellular network of the mobile device and the WAN interface of the routing device.
  • the mobile device and the routing device are used to obtain the IP address and port information of the gateway of the mobile device based on NAT traversal, and the routing device
  • the IP address and port information of the gateway, and the second response is a response to the second request.
  • the mobile device and the routing device are used to determine the IP address and port information of the gateway based on the mobile device, the IP address and port information of the gateway of the routing device, and the IP address and port information of the WAN interface of the routing device.
  • Two transmission channels transmit data.
  • the mobile device and the routing device are further used to determine the IP address and port based on the WAN interface of the routing device information, and data is transmitted via the second transmission channel.
  • the mobile device is specifically configured to send a third request to the routing device through the cellular network, where the third request is a request to establish a second transmission channel through the cellular network.
  • the routing device is configured to send a third response to the mobile device through the cellular network in response to the third request, where the third response is used to indicate that the routing device has established a second transmission channel with the mobile device through the cellular network.
  • the mobile device is specifically configured to send a first request to the routing device via the first transmission channel, where the first request is a request for inquiring whether the routing device has the capability of multiplexing data.
  • a routing device configured to send a first response to the mobile device via the first transmission channel after the routing device receives the first request of the mobile device and determines that the routing device has the capability of multiplexing data, where the first response is directed to the first request The response is used to indicate that the routing device is capable of multiplexing data.
  • the first request also carries the IP address and port information of the WAN interface of the routing device.
  • the P th application server among the M application servers is configured to transmit the download data to the routing device via the connection between the routing device and the P th application server among the M application servers.
  • Download data is the data to be transferred to the mobile device.
  • the routing device is configured to split the download data into third data and fourth data, transmit the third data to the mobile device via the first transmission channel, and transmit the fourth data to the mobile device via the second transmission channel.
  • the mobile device is configured to combine the third data and the fourth data into download data after the mobile device receives the third data and the fourth data. And based on the downloaded data, the service of the application corresponding to the Pth application server in the M application servers is implemented.
  • the mobile device is adapted with a first SDK, and the first SDK is used to support the mobile device and the routing device to establish the first transmission channel and the second transmission channel at the same time.
  • the routing device is adapted with a second SDK, and the second SDK is used to support the routing device and the mobile device to establish the first transmission channel and the second transmission channel at the same time.
  • the wired network is an optical fiber network.
  • the mobile device After the mobile device detects that the bandwidth occupied by the mobile device on the Wi-Fi network is greater than or equal to the preset first threshold, and/or after the mobile device detects that the transmission delay of the mobile device through the Wi-Fi network is less than or equal to the preset After the second threshold, the mobile device is further configured to transmit the uploaded data to the routing device via the first transmission channel. The routing device is further configured to transmit the request response to the mobile device via the first transmission channel.
  • the present application provides a readable storage medium, in which an execution instruction is stored, and when at least one processor of a mobile device executes the execution instruction, the mobile device executes any one of the first aspect and the first aspect. communication methods in a possible design.
  • the present application provides a readable storage medium, where an execution instruction is stored in the readable storage medium, and when at least one processor of the routing device executes the execution instruction, the routing device executes any one of the third aspect and the third aspect. communication methods in a possible design.
  • the present application provides a program product, the program product includes execution instructions, and the execution instructions are stored in a readable storage medium.
  • At least one processor of the mobile device can read the execution instructions from the readable storage medium, and the at least one processor executes the execution instructions to cause the mobile device to implement the first aspect and the communication method in any possible design of the first aspect.
  • the present application provides a program product, the program product includes execution instructions, and the execution instructions are stored in a readable storage medium.
  • At least one processor of the routing device can read the execution instruction from the readable storage medium, and the at least one processor executes the execution instruction to cause the routing device to implement the communication method in the third aspect and any possible design of the third aspect.
  • the present application provides a chip.
  • the chip is connected to a memory, or a memory is integrated on the chip.
  • a software program stored in the memory is executed, the first aspect and any possible design of the first aspect are realized. communication method.
  • the present application provides a chip.
  • the chip is connected to a memory, or a memory is integrated on the chip.
  • a software program stored in the memory is executed, the third aspect and any of the possible designs of the third aspect are implemented. communication method.
  • FIG. 1 is a schematic diagram of the architecture of a communication system
  • FIG. 2 is a schematic diagram of the architecture of a communication system provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a mobile device according to an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a routing device according to an embodiment of the present application.
  • FIG. 5 is a software structural block diagram of a mobile device and a routing device provided by an embodiment of the present application
  • FIG. 6 is a signaling flowchart of a communication method provided by an embodiment of the present application.
  • FIG. 7 is a signaling flowchart of a communication method provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a mobile device according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a routing device according to an embodiment of the present application.
  • a and/or B in the embodiment of the present application is only an association relationship describing the associated objects, which means that there may be three kinds of relationships.
  • a and/or B means: A alone exists, A and B exist at the same time, and B exists alone.
  • first and second are used to distinguish different objects, but are not used to describe the specific order of the objects, nor are they used to limit the specific quantity.
  • first target object and the second target object are used to distinguish different target objects, not to describe a specific order of the target objects, nor to limit the specific number of the target objects.
  • any kind of network has dead space in coverage, such as Wi-Fi network and cellular network.
  • the mobile device When the mobile device is located in the dead zone area, the mobile device only uses one kind of network, and the transmission rate of this kind of network will be low, which will affect the user's use. Or, the network performance in the area where the mobile device is located is good, but there are many mobile devices, which will also reduce the transmission rate and affect the use of the user.
  • a Wi-Fi network Take a Wi-Fi network as an example. For example, when a user is dining in a restaurant, if the Wi-Fi network performance of the user in the restaurant is poor, such as insufficient bandwidth, when the user watches high-throughput services such as online video through a mobile device, the video will often freeze, affecting the user. experience.
  • the performance of the Wi-Fi network at the user in the restaurant is good, for example, the bandwidth is good, but the number of mobile devices connected to the Wi-Fi network is large, which increases the interference between mobile devices and reduces the transmission rate.
  • the video often freezes, affecting user experience.
  • the two-way transmission method of Wi-Fi network and cellular network can quickly supplement the signal of one network when the signal of the other network is weak, and stabilize the transmission rate, which is widely used.
  • This method can realize dual uplink aggregation of the cellular network and the Wi-Fi network, that is, a dual transmission channel of the cellular network and the Wi-Fi network can be established simultaneously between the mobile device and any application server.
  • the application server is a server corresponding to the application accessed by the mobile device after opening an application in order to obtain the data of the application and/or realize the function of the application.
  • instant messaging application A is installed on a mobile device
  • the application server corresponding to instant messaging application A receives a request from the user to start the application, and the application server Return the corresponding data to the mobile device.
  • the system of the dual transmission mode of the Wi-Fi network and the cellular network includes a mobile device 101 , a first application server 102 and a second application server 103 .
  • the mobile device 101 is installed with a client software development kit (client_Software Development Kit, C_SDK), and both the first application server 102 and the second application server 103 are installed with a server software development kit (server_Software Development Kit, S_SDK).
  • client_Software Development Kit C_SDK
  • server_Software Development Kit server software development kit
  • C_SDK is a client software development kit that transmits data to and from S_SDK through two-way transmission; C_SDK is responsible for the establishment of the transmission channel of the mobile device 101, the measurement of the transmission channel, the unpacking and sending of data packets, the combination of data packet reception and the service whitelist. Wait.
  • S_SDK is a server-side software development kit that transmits data to and from C_SDK through two-way transmission; S_SDK is responsible for data packet reception and aggregation in application servers (102 and 103), and data packet splitting and sending.
  • the mobile device 101 connects to the first application server 102 through the cellular network 104 and the Wi-Fi network 105 to realize dual transmission; similarly, the mobile device 101 connects to the second application server 103 through the cellular network 104 and the Wi-Fi network 105 to realize dual transmission. road transmission.
  • the mobile device 101 transmits data to the first application server 102 through the Wi-Fi network 105, and the first application Server 102 transmits data to mobile device 101 via Wi-Fi network 105; cellular network 104 may not be used at this time, or cellular network 104 may be used with less bandwidth of cellular network 104.
  • the mobile device 101 transmits data to the first application server 102 through the cellular network 104, and the first application server 102 transmits data to the mobile device 101 through the cellular network 104; at this time, the Wi-Fi network 105 may not be used, or the Wi-Fi network 105 may be used with less bandwidth. In this way, the overall transmission bandwidth of the two networks remains the same, or the change is small. Even when the user is watching high-throughput services such as online video, the video will maintain the same smoothness, and the user experience will be better.
  • the system of the dual transmission mode of the Wi-Fi network and the cellular network shown in FIG. 1 further includes: a routing device 106 .
  • the mobile device 101 transmits data to the routing device 106 through the Wi-Fi network 105, and the routing device 106 transmits the data to the first application server 102 and the second application server 103 respectively, and the first application server 102 and the second application server 103 through the Wi-Fi
  • the Fi network 105 respectively transmits the data to the routing device 106 , which in turn transmits the data to the mobile device 101 .
  • the first application server 102 is taken as an example for description. Specifically, when the mobile device 101 has a service data request, the C_SDK in the mobile device 101 determines whether the corresponding service is in the service whitelist. If so, the C_SDK can distribute different data packets to the two transmission channels simultaneously to the first application according to the respective capabilities (such as bandwidth and/or delay) of the transmission channels of the cellular network 104 and the Wi-Fi network 105 S_SDK in server 102. At the same time, the S_SDK detects and receives the data packets on the two transmission channels, and aggregates the data packets received from the two transmission channels based on the combination sequence of the originating end to obtain the data request of the mobile device 101 .
  • the C_SDK in the mobile device 101 determines whether the corresponding service is in the service whitelist. If so, the C_SDK can distribute different data packets to the two transmission channels simultaneously to the first application according to the respective capabilities (such as bandwidth and/or delay) of the transmission channels of the cellular network
  • the S_SDK obtains a data response based on the data request of the mobile device 101 .
  • the S_SDK splits the data response into different data packets, and distributes the different data packets to the two transmission channels and sends them to the C_SDK in the mobile device 101 at the same time.
  • the C_SDK detects and receives the data packets on the two transmission channels, and aggregates the data packets received from the two transmission channels based on the combination sequence of the originator to obtain a data response.
  • the C_SDK then transfers the data response to the application corresponding to the mobile device 101, so that the application implements the corresponding service. Therefore, the two-way transmission between the mobile device 101 and the application server 102 increases the bandwidth and reduces the delay.
  • first application server 102 and the second application server 103 in FIG. 1 are only illustrative examples of application servers, and are not used to limit the number of application servers.
  • the application servers correspond to the applications installed on the mobile device 101, and the number of application servers may reach thousands or even more.
  • the above-mentioned multiplex transmission modes of various networks require that the mobile device and all the application servers that the mobile device may be connected to be pre-adapted, resulting in high cost and unfavorable promotion.
  • the mobile device 101 needs to be pre-installed with C_SDK, and both the first application server 102 and the second application server 103 need to be pre-installed with S_SDK. That is to say, the application server corresponding to the application installed on the mobile device 101 needs to be pre-installed with S_SDK.
  • the mobile device 101 is installed with 100 different applications, and the application servers corresponding to the 100 applications need to follow the S_SDK in advance. This makes the promotion of the above methods subject to certain restrictions, and the promotion cost is relatively high. How to provide a two-way transmission method of Wi-Fi network and cellular network that is conducive to promotion has become our demand.
  • FIG. 2 is a schematic structural diagram of a communication system according to an embodiment of the present application.
  • the communication system of the present application includes: a mobile device 100, a routing device 200, and M application servers 300 (business servers), where M is a positive integer.
  • a multi-connection/multi-path may be established between the mobile device 100 and the routing device 200 .
  • the MP includes at least one first transmission channel and at least one second transmission channel.
  • the application does not limit the number of the first transmission channel and the second transmission channel in the MP.
  • the MP may also include at least two first transmission channels.
  • the first transmission channel refers to the transmission channel established through the Wi-Fi network 400, that is, the wide area network (WAN) interface 1 of the mobile device 100 corresponding to the Wi-Fi network 400 and the local area network (local area network) of the routing device 200.
  • WAN wide area network
  • local area network local area network
  • the IP address of the WAN interface 1 of the mobile device 100 and the IP address of the LAN interface 3 of the routing device 200 belong to the same segment. For example, assume that the IP address of LAN interface 3 of routing device 200 is 192.168.1.1. If the mobile device 100 accesses the Wi-Fi network 400 of the routing device 200, the routing device 200 can assign an IP address to the WAN interface 1 of the mobile device 100 corresponding to the Wi-Fi network 400, such as 192.168.1.1, or 192.168. 1.10, so that the mobile device 100 and the routing device 200 can mutually transmit data via the first transmission channel.
  • the second transmission channel refers to the transmission channel established through the cellular network 500 , that is, the transmission channel between the mobile device 100 and the routing device 200 through the cellular network 500 .
  • the common types of cellular network 500 are: global system for mobile communications (GSM) network, enhanced data rate for GSM evolution (EDGE) network, wideband code division multiple access System (wideband code division multiple access, WCDMA) network, code division multiple access 2000 system (code division multiple access, CDMA2000) network, time division synchronous code division multiple access system (time division-synchronization code division multiple access, TD-SCDMA) network , Long Term Evolution (LTE) network, 5G New Radio (NR) network and next-generation mobile network, etc.
  • GSM global system for mobile communications
  • EDGE enhanced data rate for GSM evolution
  • WCDMA wideband code division multiple access System
  • CDMA2000 code division multiple access 2000 system
  • time division synchronous code division multiple access system time division-synchronization code division multiple access
  • TD-SCDMA time division-synchronization code division
  • the mobile device 100 needs to access the operator's Internet gateway device (ie the gateway 600 of the mobile device 100), the operator's Internet gateway device (ie the gateway 600 of the mobile device 100), Only the Internet and the carrier's Internet gateway device (ie, the gateway 700 of the routing device 200 ) to which the routing device 200 is connected can provide the WAN interface 4 that transmits data to the routing device 200 .
  • the operator's Internet gateway device ie the gateway 600 of the mobile device 100
  • the operator's Internet gateway device ie the gateway 600 of the mobile device 100
  • Only the Internet and the carrier's Internet gateway device ie, the gateway 700 of the routing device 200
  • gateway 600 of the mobile device 100 and the gateway 700 of the routing device 200 may be the same gateway or different gateways, which are not limited in this application.
  • data can be directly transmitted between the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 and the WAN interface 4 of the routing device 200, then the second transmission channel is the communication between the mobile device 100 and the cellular network.
  • the transmission channel between the WAN interface 2 corresponding to 500 and the WAN interface 4 of the routing device 200 can be directly transmitted between the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 and the WAN interface 4 of the routing device 200.
  • the mobile device 100 needs to know the IP address and port information of the WAN interface 4 of the routing device 200, and the routing device 200 needs to know the IP address and port information of the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500.
  • the IP address and port information of the WAN interface 4 of the routing device 200 may also be replaced by the domain name and port information of the WAN interface 4 of the routing device 200, which are not limited in this application.
  • the specific implementation process for the mobile device 100 to learn the IP address and port information of the WAN interface 4 of the routing device 200 is as follows: the LAN interface 3 of the routing device 200 can send the data to the WAN interface 1 of the mobile device 100 corresponding to the Wi-Fi network 400 IP address and port information of the WAN interface 4 of the routing device 200 .
  • the specific implementation process for the routing device 200 to learn the IP address and port information of the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 is as follows: the mobile device 100 passes the WAN interface 1 of the mobile device 100 that corresponds to the Wi-Fi network 400 .
  • the IP address and port information of the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 may be sent to the LAN interface 3 of the routing device 200 .
  • the mobile device 100 can transmit data to the WAN interface 4 of the routing device 200 through the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 based on the IP address and port information of the WAN interface 4 of the routing device 200 .
  • the routing device 200 can transmit to the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 through the WAN interface 4 of the routing device 200 based on the IP address and port information of the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500. data.
  • data cannot usually be transmitted between the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 and the WAN interface 4 of the routing device 200, and the second transmission channel is the communication between the mobile device 100 and the cellular network.
  • the WAN interface 2 corresponding to 500 is via a transmission channel between the carrier Internet and the WAN interface 4 of the routing device 200 .
  • the mobile device 100 needs to know the IP address and port information of the gateway 600 of the mobile device 100, the IP address and port information of the gateway 700 of the routing device 200, and the IP address and port information of the WAN interface 4 of the routing device 200, and The routing device 200 needs to know the IP address and port information of the gateway 600 of the mobile device 100, the IP address and port information of the gateway 700 of the routing device 200, and the IP address and port of the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 information.
  • the specific implementation process for the mobile device 100 to learn the IP address and port information of the WAN interface 4 of the routing device 200 may refer to the foregoing description, and the routing device 200 learns the IP address and port of the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500
  • the routing device 200 learns the IP address and port of the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500
  • the specific implementation process for the mobile device 100 to learn the IP address and port information of the gateway 600 of the mobile device 100 is as follows: the mobile device 100 uses the network address translation (NAT) traversal technology to communicate with the cellular network 500 through the mobile device 100 .
  • the corresponding WAN interface 2 sends a traversal request to the cloud server 800 via the gateway 600 of the mobile device 100 , so that the cloud server 800 can obtain the IP address and port information of the gateway 600 of the mobile device 100 .
  • the cloud server 800 sends the IP address and port information of the gateway 600 of the mobile device 100 to the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 via the gateway 600 of the mobile device 100 .
  • NAT network address translation
  • the specific implementation process for the routing device 200 to learn the IP address and port information of the gateway 600 of the mobile device 100 is as follows:
  • the interface 3 sends the IP address and port information of the gateway 600 of the mobile device 100 .
  • the specific implementation process for the routing device 200 to learn the IP address and port information of the gateway 700 of the routing device 200 is as follows: the routing device 200 uses the NAT traversal technology to pass the WAN interface 4 of the routing device 200 to the cloud through the gateway 700 of the routing device 200.
  • the server 800 sends a traversal request, so that the cloud server 800 can obtain the IP address and port information of the gateway 700 of the routing device 200 .
  • the cloud server 800 sends the IP address and port information of the gateway 700 of the routing device 200 to the WAN interface 4 of the routing device 200 via the gateway 700 of the routing device 200 .
  • the specific implementation process for the mobile device 100 to learn the IP address and port information of the gateway 700 of the routing device 200 is:
  • the interface 1 sends the IP address and port information of the gateway 700 of the routing device 200 .
  • the mobile device 100 based on the IP address and port information of the gateway 600 of the mobile device 100 , the IP address and port information of the gateway 700 of the routing device 200 , and the IP address and port information of the WAN interface 4 of the routing device 200 , the mobile device 100
  • the WAN interface 2 of the device 100 corresponding to the cellular network 500 can transmit data to the WAN interface 4 of the routing device 200 via the gateway 600 of the mobile device 100 , the carrier Internet and the gateway 700 of the routing device 200 .
  • the routing device 200 passes the routing device 200 based on the IP address and port information of the gateway 600 of the mobile device 100, the IP address and port information of the gateway 700 of the routing device 200, and the IP address and port information of the WAN interface 4 of the routing device 200.
  • the WAN interface 4 of the mobile device 100 can transmit data to the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 via the gateway 500 of the routing device 200 , the carrier Internet and the gateway 400 of the mobile device 100 .
  • the present application does not limit the specific types of NAT traversal technology adopted by the mobile device 100 and the routing device 200, as long as the two can communicate with each other through the operator Internet.
  • NAT traversal technology For example, basic NAT technology or Network Address/Port Translator (NAPT) technology, etc.
  • the mobile device 100 involved in this application may include, but is not limited to, a mobile phone, a tablet computer, an e-reader, a remote control, a personal computer (PC), a notebook computer, a personal digital assistant (PDA), a vehicle-mounted device , Internet TV, wearable devices, TV sets, smart watches, smart bracelets and other devices.
  • a mobile phone a tablet computer
  • an e-reader a remote control
  • PC personal computer
  • PDA personal digital assistant
  • vehicle-mounted device Internet TV
  • wearable devices TV sets, smart watches, smart bracelets and other devices.
  • the following describes the mobile device 100 involved in the present application in detail with reference to FIG. 3 .
  • FIG. 3 is a schematic structural diagram of a mobile device according to an embodiment of the present application.
  • the mobile device 100 may include a processor 110 , an external memory interface 120 , an internal memory 121 , a universal serial bus (USB) interface 130 , a charging management module 140 , a power management module 141 , and a battery 142 , Antenna 1, Antenna 2, Mobile Communication Module 150, Wireless Communication Module 160, Audio Module 170, Speaker 170A, Receiver 170B, Microphone 170C, Headphone Interface 170D, Sensor Module 180, Key 190, Motor 191, Indicator 192, Camera 193 , a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • application processor application processor, AP
  • modem processor graphics processor
  • graphics processor graphics processor
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the controller may be the nerve center and command module of the mobile device 100 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the charging management module 140 is used to receive charging input from the charger.
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the wireless communication function of the mobile device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in mobile device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the mobile device 100 .
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the mobile device 100 realizes the display function through the GPU, the display screen 194, and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the mobile device 100 can realize the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile device 100 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the mobile device 100 by executing the instructions stored in the internal memory 121 .
  • the internal memory 121 may include a storage program area and a storage data area.
  • the mobile device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals.
  • Speaker 170A also referred to as a "speaker” is used to convert audio electrical signals into sound signals.
  • the receiver 170B also referred to as “earpiece”, is used to convert audio electrical signals into sound signals.
  • the microphone 170C also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the earphone jack 170D is used to connect wired earphones.
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the gyro sensor 180B may be used to determine the motion attitude of the mobile device 100 .
  • the air pressure sensor 180C is used to measure air pressure.
  • the magnetic sensor 180D includes a Hall sensor.
  • the mobile device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the mobile device 100 in various directions (generally three axes).
  • Distance sensor 180F for measuring distance.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the temperature sensor 180J is used to detect the temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the keys 190 include a power-on key, a volume key, and the like.
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the mobile device 100 may include more or fewer components than shown, or some components may be combined, or some components may be split, or a different arrangement of components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the routing device 200 involved in this application may include, but is not limited to, a router, a customer premise equipment (customer premise equipment, CPE), and the like.
  • FIG. 4 is a schematic structural diagram of a routing device according to an embodiment of the present application.
  • the structure of the routing device 200 involved in the present application is further introduced.
  • the routing device 200 includes one or more processors 201 , multiple communication interfaces 202 , and a memory 203 .
  • the processor 201, the communication interface 202 and the memory 203 may be connected by a bus or otherwise.
  • the embodiment of the present application takes the connection through the bus 204 as an example.
  • the processor 201 may be constituted by one or more general-purpose processors, such as a CPU.
  • the processor 201 may be configured to run the relevant program codes for the off-peak startup of the smart home device.
  • Communication interface 202 may be a wired interface (eg, an Ethernet interface) or a wireless interface (eg, a cellular network interface or using a wireless local area network interface) for communicating with other nodes.
  • the communication interface 202 can be specifically used for communicating with the mobile device 100 and also for communicating with the server 300 .
  • the memory 203 may include volatile memory, such as RAM; the memory may also include non-volatile memory, such as ROM, flash memory, HDD or solid-state drive SSD; memory 203 may also include a combination of the types of memory described above.
  • the memory 203 can be used to store a set of program codes, so that the processor 201 can call the program codes stored in the memory 203 so that the routing device 200 can implement the communication method of the present application.
  • routing device 200 shown in FIG. 4 is only an implementation manner of the present application. In practical applications, the routing device 200 may also include more or less components, which is not limited here.
  • routing device 200 is similar to the routing device 200 shown in FIG. 4 , and details are not repeated here.
  • the routing device 200 may also include more or less components, which is not limited here.
  • routing device 200 can be connected to one mobile device 100 or multiple mobile devices 100 at the same time.
  • the connection method between each mobile device 100 and the routing device 200 can be found in the above description, which is not repeated here.
  • the mobile device 100 may be connected to one routing device 200 or multiple routing devices 200.
  • the number of mobile devices 100 connected to the routing device 200 may be set according to performance indicators such as a central processing unit (CPU) and memory of the routing device 200, which are not limited in this application.
  • FIG. 2 takes a mobile device 100 and a routing device 200 as an example for illustration.
  • a wired connection or a wireless connection may be implemented between the routing device 200 and each application server 300 , that is, the routing device 200 establishes M connections with M application servers 300 through wired networks respectively.
  • the wired network may include, but is not limited to, an optical fiber network. It should be noted that the number of application servers 300 may be one or more. For ease of description, FIG. 2 takes an application server 300 as an example for illustration.
  • the application server 300 involved in this application is a specific service for realizing an application.
  • the structure of the application server 300 may be similar to the structure of the routing device 200 shown in FIG. 4 , and details are not described here.
  • the application server 300 may also include more or less components, which are not limited here.
  • the first SDK is deployed in the mobile device 100 .
  • the first SDK is used to support the mobile device 100 and the routing device 200 to establish the first transmission channel and the second transmission channel at the same time.
  • the first SDK is responsible for the establishment of the second transmission channel, actively negotiates with the routing device 200 to determine whether the service requirements are met, detects and evaluates the connection status and channel quality of the first transmission channel and the second transmission channel in real time, and can complete the communication with the cloud.
  • the differences between the first SDK and C_SDK are: 1.
  • the destination IPs of the two are different.
  • the destination IP of the first SDK is the routing device 200
  • the destination IP of the C_SDK is the corresponding application server. 2.
  • the headers of the data packets are processed differently.
  • the packet header processing method of the first first SDK the packet header of the data packet on the first transmission channel does not do any processing, and the packet header of the data packet on the second transmission channel needs to add IP.
  • the header processing method of the data packet of C_SDK All data packets must rebuild the header of adding IP. Therefore, the packet header processing operation of the data packet of the present application is reduced, and the processing efficiency is improved. 3.
  • the second transmission channel established by the first SDK may include: the transmission channel between the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 and the WAN interface 4 of the routing device 200, or the mobile device 100 and the cellular network.
  • the WAN interface 2 corresponding to 500 passes through the transmission channel between the carrier Internet and the WAN interface 4 of the routing device 200, while the transmission channel established by C_SDK is only the WAN interface corresponding to the cellular network 500 of the mobile device and the WAN interface of the routing device. transmission channel between. 4.
  • the destination IP of the first SDK does not need to be preset, and the destination IP can be obtained through the first transmission channel, and the C-SDK must preset the server IP of the S-SDK in advance.
  • a second SDK is deployed in the routing device 200 .
  • the second SDK is used to support the routing device 200 and the mobile device 100 to establish the first transmission channel and the second transmission channel at the same time.
  • the second SDK is responsible for driving the establishment of the second transmission channel based on the request of the first SDK, receiving the capability negotiation of the first SDK, and detecting and evaluating the connection status and channel quality of the first transmission channel and the second transmission channel in real time.
  • the request of the SDK completes the NAT traversal with the cloud server 800, and the download data sent by the application server 300 is proxied to the first transmission channel and the second transmission channel for transmission, and the data packets are implemented on the first transmission channel and the second transmission channel. aggregated or redundant sending and receiving, as well as packet header handling, etc.
  • the second SDK receives data packets from the LAN interface 3 of the routing device 200 via the first transmission channel, and receives data packets from the WAN interface 4 of the routing device 200 via the second transmission channel, and then aggregates the data packets.
  • the S-SDK obtains data packets on each path from the service access port of the application server.
  • FIG. 5 is a software structural block diagram of a mobile device and a routing device according to an embodiment of the present application.
  • the first SDK includes: a service application, a server awareness (SA) module, a first data proxy module, a first NAT module, a first MP policy module, and an MP protocol client (client) module , the first MP and the first channel management module, as shown in Table 1.
  • SA server awareness
  • client MP protocol client
  • the first SDK includes: a business layer, a control layer, a protocol layer and a link layer.
  • business applications and service applications are located in the business layer
  • the first data proxy module, the first NAT module, the first MP policy module and the first channel management module are located in the control layer
  • the MP protocol client module is located in the protocol layer
  • the first MP is located in the chain road layer.
  • the SA module is located in the control layer.
  • a business identification model is preset.
  • the business identification model is used to identify the business of any business application, and is configured with the whitelist capability, that is, when the business type corresponding to the identified business application is in the whitelist.
  • the mobile device 100 is notified to activate the MP for data transmission.
  • this application does not limit the specific representation of the service type.
  • a whitelist is stored in the SA module, and various service types are stored in the whitelist, which is used to indicate that the service corresponding to the service type can be implemented through the MP.
  • the SA module can identify whether the service type of the service application is in the whitelist. If it exists, the SA module can determine that the service application can implement the service of the service application through the MP, and can trigger the first MP policy module to start the MP.
  • the SA module may be an existing module in the mobile device 100, or may be a module newly added to the mobile device 100, which is not limited in this application.
  • the second SDK includes: routing service module, proxy information module, second data proxy module, second NAT module, second MP policy module, MP protocol server module, second MP and the first Two-channel management module, as shown in Table 2.
  • the second SDK includes: a business layer, a control layer, a protocol layer and a link layer.
  • the routing service module is located at the business layer
  • the proxy information module, the second data proxy module, the second NAT module, the second MP policy module and the second channel management module are located at the control layer
  • the MP protocol server module is located at the protocol layer
  • the second MP at the link layer.
  • the mobile device 100 is installed with service applications, such as N applications (application, APP), any one of the N applications corresponds to one application server 300 of the M application servers 300, and N is a positive integer.
  • service applications such as N applications (application, APP)
  • any one of the N applications corresponds to one application server 300 of the M application servers 300
  • N is a positive integer.
  • each application that is, by installing a program developed by a third party, expands the application functions of the mobile device 100, such as applications such as instant chat, voice call, video call, input method, information browsing, watching video, calling assistant or playing games.
  • this application can set different network requirements.
  • instant messaging application A and video application B have different application types
  • instant messaging application A and video application B have different network requirements.
  • the present application may be pre-configured with network parameters of the corresponding service according to the network requirements of each service, as shown in Table 3.
  • the present application is not limited to storing network parameters of services in the form of a table.
  • the protocol of the MP is a protocol supported by the MP, including protocol types such as MPTCP or MPUDP.
  • protocol types such as MPTCP or MPUDP.
  • the protocol adopted by each transmission channel in the MP is the same.
  • MPTCP defines the MP protocol extension based on the request for Comments (RFC) standard to support the following three MP mode types.
  • the mobile device 100 When initiating MPTCP, the mobile device 100 will establish a link that aggregates MPTCP, including two subflows, namely the Wi-Fi network subflow (ie the first transmission channel) and the LTE network subflow (ie the second transmission channel). In the case that both the Wi-Fi network and the LTE network are normal, the mobile device 100 splits the upload data according to the MP policy and the transmission capabilities of the Wi-Fi network and the LTE network and allocates them to the first transmission channel and the second transmission respectively. Data packets are transmitted over the channel for double the bandwidth of Wi-Fi and LTE networks.
  • the Wi-Fi network subflow ie the first transmission channel
  • LTE network subflow ie the second transmission channel
  • the mobile device 100 When initiating MPTCP, the mobile device 100 will establish a redundant MPTCP link, including two sub-streams, namely the Wi-Fi network sub-flow (ie the first transmission channel) and the LTE network sub-flow (ie the second transmission channel).
  • the mobile device 100 copies the uploaded data in two copies, and transmits them simultaneously on the first transmission channel and the second transmission channel respectively, so that the uploaded data reaches the route via any transmission channel.
  • the device 200, the routing device 200 receives the upload data on the first transmission channel and the second transmission channel at the same time, and adopts the principle of first-come-first-use, last-to-discard to obtain lower latency and end-to-end "zero" packet loss. experience.
  • Mode 3 Active-standby mode
  • the mobile device 100 When initiating MPTCP, the mobile device 100 will establish an active and standby MPTCP link, including a total of two links of the active Wi-Fi network sub-flow and the standby LTE network sub-flow. When both the Wi-Fi network and the LTE network are normal, the mobile device 100 will use the primary Wi-Fi network substream to transmit data. In the event of a Wi-Fi network failure, the mobile device 100 will automatically switch to the LTE network sub-stream to transmit data to ensure network availability.
  • the active-standby mode can be applied to the scenario where the communication between the mobile device 100 and the routing device 200 through MP (referred to as MP communication) occurs abnormally, and the mobile device 100 can automatically switch to the transmission channel that can transmit data normally to ensure that data Transmission stability.
  • MP communication the communication between the mobile device 100 and the routing device 200 through MP
  • MPUDP is a protocol tunnel carried over UDP.
  • an active-standby mode and a redundant mode are provided to obtain a low-latency and highly reliable network experience.
  • the difference between MPUDP and MPTCP is: under MPUDP, after the mobile device 100 sends a data packet to the routing device 200, the mobile device 100 needs to receive the response sent by the routing device 200 before sending the next packet to the routing device 200. a packet.
  • the routing device 200 may also stop communicating with the mobile device 100 through the MP.
  • the second NAT module of the routing device 200 detects that the IP address and port information of the gateway 700 of the routing device 200 are incorrect, the second NAT module of the routing device 200 can report to the second NAT module of the routing device 200
  • the second MP policy module module sends a corresponding instruction, so that the second MP policy module module of the routing device 200 releases the MP resources related to the applied service, such as the IP quintuple of the applied service, so that the routing device 200 can stop passing through the MP
  • the first transmission channel and the second transmission channel communicate with the mobile device 100.
  • the IP quintuple is IP triplet+source IP (that is, the IP address of the mobile device 100)+source port (that is, the port information of the mobile device 100).
  • the IP triplet may include: the service type of the application, the destination IP (that is, the IP address of the application server 300 ), and the destination port (that is, the port information of the application server 300 ).
  • the MP protocol server module of the routing device 200 can send a message to the second MP of the routing device 200
  • the policy module module sends an instruction instruction, so that the second MP policy module module of the routing device 200 releases the MP resources related to the applied service, so that the routing device 200 can stop communicating with the mobile device 100 through the first transmission channel and the second transmission channel in the MP. to communicate.
  • the second data proxy module of the routing device 200 detects a data packet corresponding to a service that is not applied on each transmission channel in the MP after a preset time period, the second data proxy module of the routing device 200 The data proxy module can send an instruction instruction to the second MP policy module module of the routing device 200, so that the second MP policy module module of the routing device 200 releases the MP resources related to the applied service, so that the routing device 200 can stop passing the first MP resource in the MP.
  • a transmission channel and a second transmission channel communicate with the mobile device 100 .
  • the specific value of the preset duration is not limited in this application, and can be set according to the actual situation.
  • the MP protocol server module of the routing device 200 receives a message sent by the MP protocol client module of the mobile device 100 to indicate that communication through MP is stopped, the MP protocol server module of the routing device 200 The module can send an instruction instruction to the second MP policy module module of the routing device 200, so that the second MP policy module module of the routing device 200 releases the MP resources related to the applied service, so that the routing device 200 can stop passing the first transmission in the MP.
  • the channel and the second transmission channel communicate with the mobile device 100 .
  • the present application is not limited to the above several possible implementation manners to realize that the routing device 200 and the mobile device 100 stop communicating through the MP.
  • the mobile device 100 may also stop communicating with the routing device 200 through the MP through the above possible implementation manners.
  • the specific implementation process of the communication method of the present application is described in detail by taking the mobile device 100 , the routing device 200 and the M application servers 300 in the communication system of the embodiment shown in FIG. 2 as execution subjects.
  • the mobile device 100 and the routing device 200 establish a first transmission channel through the Wi-Fi network 400 .
  • FIG. 6 is a signaling flowchart of a communication method provided by an embodiment of the present application. As shown in Figure 6, the communication method of the present application may include:
  • the mobile device After the mobile device detects that the bandwidth occupied by the mobile device on the Wi-Fi network is less than a preset first threshold, and/or after the mobile device detects that the transmission delay of the mobile device through the Wi-Fi network is greater than a preset first threshold After two thresholds, the mobile device and the routing device establish a second transmission channel through the cellular network.
  • the mobile device 100 may preset network parameters of various types of services, as shown in Table 3. For any one of the N applications, after the mobile device 100 detects that the bandwidth occupied by the mobile device 100 of the Wi-Fi network 400 is less than the preset first threshold, and/or, after the mobile device 100 detects that the mobile device 100 has passed the After the transmission delay of the Wi-Fi network 400 is greater than the preset second threshold, the mobile device 100 may determine that the current Wi-Fi network 400 cannot meet the service requirements of the application. Therefore, the mobile device 100 and the routing device 200 can establish a second transmission channel through the cellular network 500, thereby providing a more efficient two-way transmission method for the application to realize the corresponding service in time through the first transmission channel and the second transmission channel .
  • the specific implementation process of establishing the second transmission channel between the mobile device 100 and the routing device 200 may include the following steps:
  • Step 1 During the running process of the application, the mobile device 100 can determine whether the service of the application can be communicated through the MP.
  • the mobile device 100 connects to the routing device 200 via the Wi-Fi network 400 to access the Internet.
  • the SA module of the mobile device 100 can identify the service type of the application, and when determining the service type of the application included in the whitelist, the SA module of the mobile device 100 can determine that the service of the application can communicate through the MP. Conversely, the SA module of the mobile device 100 may determine that the application's service cannot be communicated through the MP.
  • Step 2 The mobile device 100 determines whether the MP has been activated when it is determined that the service of the application can be communicated through the MP.
  • the SA module of the mobile device 100 may notify the first MP policy module of the mobile device 100 when determining that the service of the application can communicate through the MP.
  • the first MP policy module of the mobile device 100 may call the first channel management module of the mobile device 100 to check the network capability of each transmission channel in the MP.
  • the first MP policy module of the mobile device 100 determines whether the MP has been activated based on the network capability of the transmission channel serving the service of the application.
  • the mobile device 100 and the routing device 200 do not need to establish a second transmission channel, and the mobile device 100 may execute S102.
  • the mobile device 100 determines whether the bandwidth occupied by the mobile device 100 of the Wi-Fi network 400 is less than the preset first threshold, or the mobile device 100 passes the Wi-Fi Whether the transmission delay of the network 400 is greater than the preset second threshold. Therefore, after the mobile device 100 detects that the bandwidth occupied by the mobile device 100 of the Wi-Fi network 400 is less than the preset first threshold, and/or when the mobile device 100 detects that the mobile device 100 transmits through the Wi-Fi network 400 After the delay is greater than the preset second threshold, the mobile device 100 and the routing device 200 establish a second transmission channel. In addition, the mobile device 100 can also determine conditions such as whether the mobile device 100 is in an activated state, and whether the service protocol type supported by the mobile device 100 includes the preset protocol type of the MP.
  • the first MP policy module of the mobile device 100 obtains the IP quintuple and preset network parameters (such as bandwidth, delay, number of links, etc.) of the application service from the SA module based on the application service. requirements), the MP capability information of the mobile device 100 and other parameters, and notify the first data proxy module of the mobile device 100 to reroute the data packets of the IP quintuple of the application-based service, that is, to transmit through the MP, so that the mobile device 100 The first data proxy module diverts the corresponding data packets to the MP protocol client module of the mobile device 100 based on the IP quintuple of the service of the application.
  • IP quintuple and preset network parameters such as bandwidth, delay, number of links, etc.
  • the preset network parameters of the applied service are used to represent the network QoS requirements preconfigured by the mobile device 100 for different services, such as requirements such as bandwidth, delay, number of links, etc. Please refer to the network parameters in Table 2.
  • the preset bandwidth threshold of the service is used to indicate the corresponding bandwidth range of each service when the mobile device 100 communicates with the routing device 200 through the MP, such as a maximum bandwidth value or a minimum bandwidth value.
  • the preset delay threshold of the service is used to indicate the delay range of each service when the mobile device 100 communicates with the routing device 200 through the MP, such as the maximum delay value or the minimum delay value.
  • the MP capability information of the mobile device 100 may include, but is not limited to, parameters such as MP support state, MP capability set, and working state of the mobile device 100 .
  • the MP support status of the mobile device 100 is used to indicate whether the mobile device 100 supports MP.
  • the MP capability set of the mobile device 100 is used to indicate the MP capability possessed by the mobile device 100 .
  • the MP capability set of the mobile device 100 may include, but is not limited to, the protocol type of the MP, the mode type of the MP, the network type of each transport channel in the MP, and the number of transport channels (such as the network type of each transport channel and the network type of each transport channel). type of transmission channels).
  • the working state of the mobile device 100 is used to indicate whether the mobile device 100 starts the MP or stops the MP.
  • the mobile device 100 may determine that the current Wi-Fi network 400 can meet the service requirements of the application. Therefore, the mobile device 100 transmits the upload data to the routing device 200 via the first transmission channel, and the routing device 200 transmits the request response to the mobile device 100 via the first transmission channel.
  • the mobile device splits the uploaded data into first data and second data, transmits the first data to the routing device via the first transmission channel, and transmits the second data to the routing device via the second transmission channel.
  • the uploaded data is data to be transmitted to the Pth application server among the M application servers, and P is a positive integer greater than or equal to 1 and less than or equal to M.
  • the mobile device 100 can split the uploaded data into first data and second data based on the MP policy of the applied service, and transmit the first data to the routing device 200 via the first transmission channel, and the second data It is transmitted to the routing device 200 via the second transmission channel.
  • each data packet in the uploaded data may be in the format of packet header + packet body, or may be in the format of packet header + packet body + packet tail.
  • the first data proxy module of the mobile device 100 initiates the transmission of the IP quintuple data packets of the application-based service through the MP, so that the first data proxy module of the mobile device 100 according to the mode type of the MP and the MP of the protocol type, the upload data is split into first data and second data, and the first data and second data are transmitted to the MP protocol client module of the mobile device 100.
  • the MP protocol client module of the mobile device 100 reroutes the first data to the Wi-Fi AP of the routing device 200 via the first transmission channel, and reroutes the second data to the WAN interface 4 of the routing device 200 via the second transmission channel,
  • the MP protocol server module of the routing device 200 receives the first data and the second data.
  • the MP protocol server module of the routing device 200 then sends the first data and the second data to the second data proxy module of the routing device 200 .
  • the split mode of the uploaded data can also be configured adaptively based on the protocol type of the MP.
  • the mobile device 100 sends the first transmission channel to the routing device 200 through the MP.
  • the specific implementation process of the data and the second data is given as an example.
  • the mobile device 100 may divide the uploaded data into the first data and the second data.
  • the mobile device 100 may add a number corresponding to each data packet in the packet header of each data packet in the first data.
  • the number is used for the mobile device 100 or the routing device 200 to sort the data packets on the MP to obtain complete data.
  • the number may occupy one or more bits, which is not limited in this application.
  • the mobile device 100 may add the IP address and port information of the WAN interface 4 of the routing device 200 and the number corresponding to each data packet in the header of each data packet in the second data
  • the mobile device 100 may add the IP address and port information of the gateway 700 of the routing device 200 and the number corresponding to each data packet in the header of each data packet in the second data.
  • the mobile device 100 does not need to split the upload data, and can transmit the upload data on both the first transmission channel and the second transmission channel.
  • the formats of the data packets on the first transmission channel and the second transmission channel please refer to the foregoing description of the format of the data packets on the first transmission channel and the second transmission channel when the mode type of the MP is the aggregation mode. Do repeat.
  • the routing device After the routing device receives the first data and the second data, the routing device combines the first data and the second data into upload data.
  • the routing device 200 can perform unpacking processing on the first data on the first transmission channel, and perform unpacking processing on the second data on the second transmission channel according to the MP policy of the applied service. size, sort the unpacked data, and combine to get the uploaded data.
  • the second data proxy module of the routing device 200 is based on the service type of the first application in the MP data entry (such as the mode type of the MP and the protocol type of the MP, etc.), the MP capability set of the mobile device 100, and the parameters such as the communication strategy of the MP, the first data on the first transmission channel can be unpacked, the second data on the second transmission channel can be unpacked, and the unpacked data can be unpacked according to the size of the number.
  • the packets are sorted and combined to obtain the uploaded data.
  • the routing device transmits the uploaded data to the P-th application server in the M application servers via the connection between the routing device and the P-th application server in the M application servers.
  • the routing device 200 determines the P-th application server 300 corresponding to the application from the M application servers 300 based on the service type of the application.
  • the routing device 200 transmits the upload data to the P-th application server 300 of the M application servers 300 via the connection between the routing device 200 and the P-th application server 300 of the M application servers 300 .
  • the second data proxy module of the routing device 200 forwards the uploaded data to the MP protocol server module of the routing device 200 .
  • the MP protocol server module of the routing device 200 forwards it to the application server 300 through the WAN interface 4 of the routing device 200 .
  • the WAN interface 4 of the routing device 200 mentioned here may be the same as or different from the WAN interface 4 of the routing device 200 when the mobile device 100 sends upload data to the routing device 200 via the second transmission channel. This application does not limit this.
  • the present application implements a dual transmission mode of Wi-Fi network and mobile Internet between the routing device and the mobile device, uses the routing device as a bridge for service realization between the mobile device and the application server, and transmits the data of the mobile device in time.
  • the routing device uses the routing device as a bridge for service realization between the mobile device and the application server, and transmits the data of the mobile device in time.
  • it solves the strict requirements of data splitting and data aggregation in related technologies for all application servers, facilitates the promotion of different types of services, reduces implementation costs, and is also conducive to improving the efficiency of data transmission to meet the needs of mobile devices.
  • the high-throughput service requirements bring users a high-bandwidth and low-latency communication experience.
  • steps S105-S107 are optional. If the P th application server among the M application servers has data and needs to return data to the mobile device 100, the present application may perform steps S105-S107.
  • the P th application server among the M application servers transmits the download data to the routing device via the connection between the routing device and the P th application server among the M application servers.
  • the download data is the data to be transmitted to the mobile device.
  • the P-th application server 300 determines the service requirements of the application requested by the mobile device 100 according to the uploaded data. Thus, the P-th application server 300 can send the download data to the routing device 200 so as to forward the download data to the mobile device 100 by means of the routing device 200 .
  • each data packet in the downloaded data may be in the format of packet header+packet body, or may be in the format of packet header+packet body+packet tail.
  • the MP protocol server module of the routing device 200 receives the download data sent by the P-th application server 300 through the WAN interface 4 of the routing device 200 .
  • the routing device splits the downloaded data into third data and fourth data, transmits the third data to the mobile device via the first transmission channel, and transmits the fourth data to the mobile device via the second transmission channel.
  • the routing device 200 splits the download data into third data and fourth data based on the MP policy of the applied service, transmits the third data to the mobile device 100 via the first transmission channel, and transmits the fourth data to the mobile device 100 via the first transmission channel.
  • the second transmission channel is transmitted to the mobile device 100 .
  • the present application does not limit the specific implementation manners of the third data and the fourth data.
  • the second data proxy module of the routing device 200 initiates transmission of the data packets of the IP quintuple of the application-based service through the MP, so that the second data proxy module of the routing device 200 is based on the IP quintuple of the service. , query the MP data entry to determine the MP protocol type and MP mode type. The second data proxy module of the routing device 200 splits the downloaded data into the third data and the fourth data according to the mode type of the MP and the protocol type of the MP, and transmits the third data and the fourth data to the third data and the fourth data via the second transmission channel.
  • the MP protocol server module of the routing device 200 The MP protocol server module of the routing device 200.
  • the MP protocol server module of the routing device 200 reroutes the third data to the WAN interface 1 of the mobile device 100 corresponding to the Wi-Fi network 400 via the first transmission channel, and reroutes the fourth data to the mobile device 100 via the second transmission channel
  • the device 100 corresponds to the WAN interface 2 of the cellular network 500, so that the MP protocol client module of the mobile device 100 receives the third data and the fourth data.
  • the MP protocol client module of the mobile device 100 then sends the third data and the fourth data to the first data proxy module of the mobile device 100 .
  • the protocol type of the MP and the mode type of the MP are different, and the way the routing device 200 transmits the download data to the mobile device 100 is different.
  • the manner in which the routing device 200 sends the download data to the mobile device 100 in S106 is the same as the manner in which the mobile device 100 sends the request data to the routing device 200 in S102.
  • the routing device 200 sends the third data to the mobile device 100 through the MP
  • the specific implementation process of the fourth data is given as an example.
  • the routing device 200 may divide the download data into third data and fourth data.
  • the data distribution packet situation and data packet format of the third data and the fourth data reference may be made to the foregoing description, which will not be repeated here.
  • the routing device 200 may add a number corresponding to each data packet in the packet header of each data packet in the third data.
  • the routing device 200 may add the IP address and port information of the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 and the information of each data packet in the header of each data packet in the fourth data The number corresponding to each data packet, or the routing device 200 may add the IP address and port information of the gateway 600 of the mobile device 100 and the number corresponding to each data packet in the header of each data packet in the fourth data.
  • the routing device 200 does not need to split the download data, and can transmit the download data on both the first transmission channel and the second transmission channel.
  • the formats of the data packets on the first transmission channel and the second transmission channel please refer to the foregoing description of the format of the data packets on the first transmission channel and the second transmission channel when the mode type of the MP is the aggregation mode. Do repeat.
  • the mobile device after the mobile device receives the third data and the fourth data, the mobile device combines the third data and the fourth data into download data, and based on the download data, realizes the correspondence with the Pth application server in the M application servers application business.
  • the mobile device 100 can perform unpacking processing on the third data on the first transmission channel, and perform unpacking processing on the fourth data on the second transmission channel. size, sort the unpacked data, and combine to get the download data.
  • the first data agent module of the mobile device 100 implements the service of the application based on the downloaded data. For example, a video application on a mobile phone implements video playback.
  • a first transmission channel is established by a mobile device and a routing device through a Wi-Fi network
  • a second transmission channel is established by the mobile device and the routing device through a cellular network.
  • the mobile device splits the upload data into first data and second data, and transmits the first data to the routing device via the first transmission channel, and transmits the second data to the routing device via the second transmission channel.
  • the routing device combines the first data and the second data into uploading data, and transmits the uploading data to the application server through the connection between the routing device and the application server.
  • the application server obtains the download data based on the upload data, and transmits the download data to the routing device through the connection between the application server and the routing device.
  • the routing device splits the download data into third data and fourth data, and transmits the third data to the mobile device via the first transmission channel, and transmits the fourth data to the mobile device via the second transmission channel.
  • the mobile device combines the third data and the fourth data into download data, and implements the service of the application corresponding to the application server based on the download data.
  • the present application realizes the dual transmission mode of Wi-Fi network and mobile Internet between the routing device and the mobile device, uses the routing device as a bridge for service realization between the mobile device and the application server, and realizes the connection between the mobile device and the application server.
  • Data transmission solves the demanding requirements of data splitting and data aggregation for all application servers in related technologies, facilitates the promotion of different types of services, reduces implementation costs, and is also conducive to improving the efficiency of data transmission to meet the needs of large mobile devices.
  • the service requirements of throughput rate bring users a high-bandwidth and low-latency communication experience.
  • FIG. 7 is a signaling flowchart of a communication method provided by an embodiment of the present application. As shown in Figure 7, the communication method of the present application may include:
  • the mobile device After the mobile device detects that the bandwidth occupied by the mobile device on the Wi-Fi network is less than a preset first threshold, and/or when the mobile device detects that the transmission delay of the mobile device through the Wi-Fi network is greater than a preset first threshold After two thresholds, the mobile device sends the first request to the routing device via the first transmission channel.
  • the first request is a request for inquiring whether the routing device has the capability of multiplexing data.
  • the first request carries preset network parameters of the service of the application and MP capability information of the mobile device.
  • the routing device After the routing device receives the first request of the mobile device via the first transmission channel and determines that the routing device has the capability of multiplexing data, the routing device sends a first response to the mobile device via the first transmission channel.
  • the first response is a response to the first request, and is used to indicate that the routing device has the capability of multiplexing data.
  • the mobile device 100 may determine that the MP needs to be activated.
  • the mobile device 100 may send a first request to the routing device 200, so that the routing device 200 obtains preset network parameters of the application service and MP capability information of the mobile device 100 from the first request. Therefore, the routing device 200 can determine whether the actual network conditions of the routing device 200 (such as the network QoS of parameters such as bandwidth and delay of the WAN interface 4 of the routing device 200) can satisfy the preset network parameters of the application service, and the routing The device 200 can also determine whether the MP capability information of the routing device 200 matches the MP capability information of the mobile device 100, that is, whether the protocol type of the MP is satisfied, whether the mode type of the MP is satisfied, and whether the number of transmission channels of the MP is satisfied, etc.
  • the routing device 200 can determine whether the actual network conditions of the routing device 200 (such as the network QoS of parameters such as bandwidth and delay of the WAN interface 4 of the routing device 200) can satisfy the preset network parameters of the application service, and the routing The device 200 can also determine whether the MP capability information of the routing device 200 matches the MP capability information of the
  • the MP capability information of the routing device 200 may include, but is not limited to: MP support status, MP capability set, working status, and the like of the routing device 200 .
  • the MP support status of the routing device 200 is used to indicate whether the routing device 200 supports MP.
  • the MP capability set of the routing device 200 is used to indicate the MP capabilities possessed by the routing device 200 .
  • the MP capability set of the routing device 200 may include, but is not limited to, the protocol type of the MP, the mode type of the MP, the network type of each transmission channel in the MP, and the number of transmission channels.
  • the working status of the routing device 200 is used to indicate whether the routing device 200 starts the MP or stops starting the MP.
  • the routing device 200 can determine whether the routing device 200 has the capability of multiplexing data, which facilitates the mobile device 100 to determine whether the routing device 200 supports MP.
  • routing device 200 sends a first response to mobile device 100 .
  • the first MP policy center module of the mobile device 100 may call the MP protocol client module of the mobile device 100 to send the first request to the MP protocol server module of the routing device 200 .
  • the mobile device 100 may inquire the routing device 200 whether the routing device 200 supports MP through the first request.
  • the MP protocol server module of the routing device 200 forwards the first request to the second MP policy center module of the routing device 200 .
  • the second MP policy center module of the routing device 200 obtains the MP capability information of the routing device 200 from the proxy information module of the routing device 200, and obtains the routing device 200 from the WAN interface 4 of the routing device 200 from the second connection management module of the routing device 200 The actual network QoS of the first transmission channel. Therefore, the second MP policy center module of the routing device 200 can determine whether the protocol type of the MP of the routing device 200 is satisfied, whether the mode type of the MP is satisfied, and the actual network QoS of the first transmission channel of the routing device 200 (such as delay, parameters such as bandwidth) are satisfied, etc., to determine whether the routing device 200 supports MP.
  • the second MP policy module of the routing device 200 drives the MP protocol server module of the routing device 200 to send the first response to the MP protocol client module of the mobile device 100 , the MP protocol client module of the mobile device 100 forwards the first response to the first MP policy module.
  • the first response may not carry the IP address and port information of the WAN interface 4 of the routing device 200 of the routing device 200, and the routing device 200 may transmit the IP address and port information of the WAN interface 4 of the routing device 200 to
  • the cloud server 800 enables the mobile device 100 to obtain the IP address and port information of the WAN interface 4 of the routing device 200 from the cloud server 800 by means of account binding or the like.
  • the mobile device After the mobile device determines that the routing device has the capability of multiplexing data, the mobile device sends a second request to the routing device through the cellular network.
  • the second request is a request for performing Internet packet explorer (packet internet groper, PING) detection on the transmission channel between the WAN interface corresponding to the cellular network and the WAN interface of the routing device.
  • the mobile device 100 can perform PING detection on the IP address and port information of the WAN interface 4 of the routing device 200 to determine whether the mobile device 100 can communicate with the routing device 200 via the WAN interface 4 of the routing device 200 through the cellular network 500, Therefore, it is determined that the second transmission channel can transmit data to each other, which ensures the effective transmission of data packets, so that the mobile device 100 can smoothly communicate with the routing device 200 through the MP.
  • the first MP policy module of the mobile device 100 invokes the first channel management module of the mobile device 100 to initiate a PING probe for the IP address and port information of the WAN interface 4 of the routing device 200 .
  • the mobile device determines whether a second response from the routing device is received through the cellular network within a preset time period, where the second response is a response to the second request.
  • the mobile device 100 determines to perform PING detection on the IP address and port information of the WAN interface 4 of the routing device 200 through the cellular network 500 If it fails, the mobile device 100 can execute steps S2051-S2052.
  • the mobile device 100 determines that the PING detection of the IP address and port information of the WAN interface 4 of the routing device 200 through the cellular network 500 is successful. , so that the mobile device 100 can execute step S206.
  • S203 is an optional step, that is, in general, the cellular network 500 of the mobile device 100 will fail to perform PING detection on the IP address and port information of the WAN interface 4 of the routing device 200. Therefore, the mobile device 100 S2051-S2052 can be directly executed.
  • the mobile device 100 may adopt the following multiple implementation manners to obtain the IP address and port information of the WAN interface 4 of the routing device 200 .
  • the mobile device 100 may request the routing device 200 through the Wi-Fi network 400 for the WAN interface 4 of the routing device 200.
  • the IP address and port information enables the routing device 200 to send the IP address and port information of the WAN interface 4 of the routing device 200 to the mobile device 100 .
  • the mobile device 100 uses the same account as the routing device 200 to log in to the cloud server 800 through an application (Application, App) and/or a web page, so as to obtain the WAN interface 4 of the routing device 200 from the cloud server 800 .
  • IP address and port information is another feasible implementation manner.
  • the cloud server 800 may serve as an information exchange center between the mobile device 100 and the routing device 200 .
  • the cloud server 800 can store the binding information of the routing device 200, such as the ID of the routing device 200, the type of the routing device 200 (such as router or CPE), the MP capability information of the routing device 200, and the IP address of the WAN interface 4 of the routing device 200. and port information, query functions, etc.
  • the routing device 200 may upload the binding information of the routing device 200 to the cloud server 800 in advance.
  • the routing device 200 may update the corresponding information to the cloud server 800 synchronously.
  • the user can bind the mobile phone and the router through an APP or a web page, so that the cloud server 800 provides the binding information of the router to the mobile phone.
  • the cloud server 800 may also provide a query interface to the mobile device 100, so as to query whether the routing device 200 supports MP and the like from the query interface.
  • the cloud server 800 may also transmit the detected service conditions of the application (eg, experience indicators such as delay, bandwidth, or freezing rate) to the mobile device 100, so that the mobile device 100 presents the service conditions of the application.
  • the mobile device 100 may also display parameters such as the quality of each transmission channel in the MP, the usage traffic of different network types in the MP, and the like.
  • the mobile device 100 uses the Near Field Communication (Near Field Communication, NFC) technology to obtain the IP address and port information of the WAN interface 4 of the routing device 200 by touching the routing device 200.
  • NFC Near Field Communication
  • the mobile device 100 can scan the two-dimensional code of the routing device 200 to obtain the IP address and port information of the WAN interface 4 of the routing device 200 .
  • the present application is not limited to the above four feasible implementation manners so that the mobile device 100 can obtain the IP address and port information of the WAN interface 4 of the routing device 200 .
  • the mobile device acquires the IP address and port information of the gateway of the mobile device based on NAT traversal, and sends the IP address and port information of the gateway of the mobile device to the routing device via the first transmission channel.
  • the routing device acquires the IP address and port information of the gateway of the routing device based on NAT traversal, and sends the IP address and port information of the gateway of the routing device to the mobile device via the first transmission channel.
  • the mobile device 100 may determine that the mobile device 100 cannot access the mobile device 100 based on the IP address and port information of the WAN interface 4 of the mobile device 100
  • the second transmission channel communicates with the routing device 200, and the routing device 200 cannot sense whether the mobile device 100 sends the second request.
  • the mobile device 100 can use the NAT traversal technology to send NAT traversal data to the cloud server 800 via the gateway 600 of the mobile device 100, so that the cloud server 800 obtains the IP address and port information of the gateway 600 of the mobile device 100.
  • the cloud server 800 sends the IP address and port information of the gateway 600 of the mobile device 100 to the mobile device 100 via the gateway 600 of the mobile device 100 . Therefore, the mobile device 100 sends the IP address and port information of the gateway 600 of the mobile device 100 to the routing device 200 through the Wi-Fi network 400 via the first transmission channel.
  • the first MP policy module of the mobile device 100 drives the first NAT module of the mobile device 100 to complete NAT traversal with the cloud server 800, and the first NAT module of the mobile device 100 will store the mobile device when the NAT traversal is successful. IP address and port information of gateway 600 of 100. Therefore, the first MP policy module of the mobile device 100 calls the IP address and port information of the gateway 600 of the mobile device 100 from the first NAT module of the mobile device 100, and drives the MP protocol client module of the mobile device 100 to the routing device 200 The MP protocol server module sends the IP address and port information of the gateway 600 of the mobile device 100 .
  • the mobile device 100 When the mobile device 100 acquires the IP address and port information of the gateway 600 of the mobile device 100, the mobile device 100 initiates a NAT traversal request to the routing device 200 through the Wi-Fi network 400 via the first transmission channel, so that the routing device 200 can send a NAT traversal request to the routing device 200 from the cloud.
  • the server 800 acquires the IP address and port information of the gateway 700 of the routing device 200 .
  • the routing device 200 can use the NAT traversal technology to send NAT traversal data to the cloud server 800 via the gateway 700 of the routing device 200 , so that the cloud server 800 obtains the IP address and port information of the gateway 700 of the routing device 200 .
  • the cloud server 800 sends the IP address and port information of the gateway 700 of the routing device 200 to the routing device 200 via the gateway 700 of the routing device 200 .
  • the routing device 200 sends the IP address and port information of the gateway 700 of the routing device 200 to the mobile device 100 through the Wi-Fi network 400 via the first transmission channel.
  • the first MP policy module of the mobile device 100 drives the MP protocol client module of the mobile device 100 to initiate a NAT traversal request, and the MP protocol client module of the mobile device 100 sends a NAT traversal request to the MP protocol server module of the routing device 200 ask.
  • the MP protocol server module of the routing device 200 forwards the NAT traversal request to the second MP policy module of the routing device 200 .
  • the second MP policy module of the routing device 200 drives the second NAT module of the routing device 200 to complete NAT traversal with the cloud server 800, and the second NAT module of the routing device 200 will store the IP address of the gateway 700 of the routing device 200 when the NAT traversal is successful address and port information. Therefore, the second MP policy module of the routing device 200 calls the IP address and port information of the gateway 700 of the routing device 200 from the second NAT module of the routing device 200, and drives the MP protocol server module of the routing device 200 to the mobile device 100 The MP protocol client module sends the IP address and port information of the gateway 700 of the routing device 200 .
  • the mobile device 100 and the routing device 200 determine the IP address and port information based on the gateway 600 of the mobile device 100 , the IP address and port information of the gateway 700 of the routing device 200 , and the IP address and port information of the WAN interface 4 of the routing device 200 , transmit data via the second transmission channel.
  • both the mobile device 100 and the routing device 200 can obtain the IP address and port information of the gateway 600 of the mobile device 100, the IP address and port information of the gateway 700 of the routing device 200, and the information of the WAN interface 4 of the routing device 200. IP address and port information.
  • the mobile device 100 can determine based on the IP address and port information of the gateway 600 of the mobile device 100, the IP address and port information of the gateway 700 of the routing device 200, and the IP address and port information of the WAN interface 4 of the routing device 200, which can be obtained from
  • the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 transmits data from the WAN interface 4 of the routing device 200 to the routing device 200 via the gateway 600 of the mobile device 100 , the carrier Internet, and the gateway 700 of the routing device 200 .
  • the routing device 200 can determine the IP address and port information based on the gateway 600 of the mobile device 100, the IP address and port information of the gateway 700 of the routing device 200, and the IP address and port information of the WAN interface 4 of the routing device 200, which can be obtained from the routing device.
  • WAN interface 4 of 200 transmits data from WAN interface 2 of mobile device 100 corresponding to cellular network 500 to mobile device 100 via gateway 700 of routing device 200 , the carrier Internet, and gateway 600 of mobile device 100 .
  • the mobile device 100 and the routing device 200 determine to transmit data via the second transmission channel based on the IP address and port information of the WAN interface 4 of the routing device 200 .
  • the mobile device 100 can determine the IP address and port information of the WAN interface 4 of the routing device 200 based on the second transmission channel. Communicate with routing device 200 . And because the routing device 200 only sends the second response to the mobile device 100 after receiving the second request, the routing device 200 can determine the IP address and port information based on the WAN interface 4 of the routing device 200, and can communicate with the mobile device 100 via the second transmission channel. The mobile device 100 communicates.
  • the mobile device 100 can determine the IP address and port information based on the WAN interface 4 of the routing device 200 from the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500, via the gateway 600 of the mobile device 100, the carrier Internet and The gateway 700 of the routing device 200 transmits data from the WAN interface 4 of the routing device 200 to the routing device 200 .
  • the routing device 200 can determine the IP address and port information based on the WAN interface 4 of the routing device 200 , and can transfer the data from the WAN interface 4 of the routing device 200 , via the gateway 700 of the routing device 200 , the carrier Internet, and the gateway 600 of the mobile device 100 . Data is transmitted to the mobile device 100 from the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 .
  • the mobile device 100 and the routing device 200 can determine whether the MP between the mobile device 100 and the routing device 200 has been established, that is, whether the second transmission channel has been established.
  • the mobile device 100 executes steps S207-S208, and then executes S102-S107.
  • the mobile device 100 can directly use the established first transmission channel and the second transmission channel, and can directly execute S102-S107.
  • the mobile device sends a third request to the routing device through the cellular network.
  • the third request is a request for establishing a second transmission channel through the cellular network.
  • the mobile device 100 sends a third request to the routing device 200 through the cellular network 500 via the second transmission channel, so as to achieve the purpose of requesting the routing device 200 to establish the second transmission channel.
  • the first MP policy module of the mobile device 100 drives the MP protocol client module of the mobile device 100 to send the third request, and the MP protocol client module of the mobile device 100 sends the third request to the MP protocol server module of the routing device 200 .
  • the present application does not limit the specific implementation manner of the third request.
  • the third request may further include: IP address and port information of the gateway 600 of the mobile device 100
  • the first MP policy module of the mobile device 100 drives the The MP protocol client module of the mobile device 100 sends the third request, and the MP protocol client module of the mobile device 100 sends the third request to the MP protocol server module of the routing device 200 .
  • the third request carries parameters such as IP quintuple, preset network parameters of the application service (such as bandwidth, delay, number of links, etc.), MP capability information of the mobile device 100, and MP communication strategy.
  • parameters such as IP quintuple, preset network parameters of the application service (such as bandwidth, delay, number of links, etc.), MP capability information of the mobile device 100, and MP communication strategy.
  • the MP policy is a policy for the mobile device 100 and the routing device 200 to communicate through MP.
  • the MP policy is used to indicate the network type and the number of transmission channels of each transmission channel in the MP, the data packet allocation of each transmission channel in the MP (such as the transmission volume of data packets on each transmission channel), and the number of transmission channels in the MP.
  • the data format of each transmission channel for example, the form of the encapsulation header used on each transmission channel, etc.
  • the network type and the number of transmission channels of each transmission channel in the MP comprehensively consider various factors such as network requirements of the service, MP capability information of the mobile device 100 and MP capability information of the routing device 200 .
  • the mobile device 100 will preferentially transmit data on the transmission channel of the Wi-Fi network 400, so as to save the cellular traffic of the user and improve the user experience.
  • the data packet allocation situation may be configured based on factors such as the protocol type of the MP, the mode type of the MP, and the transmission capability of each transmission channel in the MP, so as to ensure the transmission rate of the data packets. For example, when the protocol type of the MP is the aggregation mode, if the ratio of the transmission capability index of the cellular network 500 to the Wi-Fi network 400 is 1:2, the mobile device 100 can transmit the data packets on the second transmission channel with the data packets on the first transmission channel. The ratio of the number of packets transmitted on a transmission channel is 1:2.
  • the transmission capability index ratio may be a bandwidth ratio or a delay ratio, which is not limited in this application.
  • the mobile device 100 often chooses to transmit more data packets on the first transmission channel and transmit fewer data packets on the second transmission channel, which can save the user's cellular traffic and help improve the user's experience.
  • the data packet format can be determined according to the second transmission channel, which can ensure the accuracy and security of data packet transmission.
  • the mobile device 100 and the routing device 200 transmit data through the Wi-Fi network 400
  • the mobile device 100 and the routing device 200 can transmit data to each other without using the NAT traversal technology.
  • the mobile device 100 and the routing device 200 transmit data through the cellular network 500
  • the mobile device 100 and the routing device 200 may need to use the NAT traversal technology to transmit data to each other. Therefore, the present application can set the format of the data packets on the first transmission channel to be simpler than the format of the data packets on the second transmission channel, so as to save the transmission volume of the data packets and improve the transmission rate of the data packets.
  • the communication strategy of the MP is not limited to the above implementation manner.
  • the routing device In response to the third request, the routing device sends a third response to the mobile device through the cellular network.
  • the third response is used to indicate that the routing device has established the second transmission channel with the mobile device through the cellular network.
  • the routing device 200 can obtain parameters such as the service type of the application, the MP capability set of the mobile device 100, and the communication strategy of the MP from the third request.
  • the routing device 200 establishes an MP data entry based on parameters such as the service type of the application, the MP capability set of the mobile device 100 and the communication strategy of the MP, thereby establishing the MP between the mobile device 100 and the routing device 200, that is, establishing the second transmission channel . Therefore, when the second transmission channel is established, the routing device 200 can send the third response to the mobile device 100 through the cellular network 500 via the second transmission channel, so that the mobile device 100 can know in time that the routing device 200 has established the second transmission aisle.
  • the MP data table entry includes: the service type of the application (which can be represented in the form of an IP quintuple, that is, an IP triplet + source IP (that is, the IP address of the mobile device 100 ) + source port (that is, the mobile device 100’s IP address) port information)), the MP capability set of the mobile device 100, the MP communication strategy and other parameters.
  • the service type of the application which can be represented in the form of an IP quintuple, that is, an IP triplet + source IP (that is, the IP address of the mobile device 100 ) + source port (that is, the mobile device 100’s IP address) port information)
  • the MP capability set of the mobile device 100 the MP communication strategy and other parameters.
  • the present application does not limit the specific implementation manner of the third response.
  • the MP protocol server module of the routing device 200 establishes the MP data entry based on the third request, thereby establishing the MP, that is, establishing the second transmission channel.
  • the MP data entry may be stored in the second MP policy module of the routing device 200 .
  • the second MP policy module of the routing device 200 will start the MP, and notify the second data proxy mode of the routing device 200 based on the IP quintuple of the application service.
  • Data packet rerouting, that is, communication is performed through MP, so that the second data proxy module of the routing device 200 diverts the corresponding data packet to the MP protocol server module of the routing device 200 based on the IP quintuple of the application service.
  • the mobile device 100 and the routing device 200 have established the second transmission channel, thereby facilitating subsequent operations.
  • FIG. 8 is a schematic structural diagram of a mobile device according to an embodiment of the present application.
  • the mobile device 10 of the present application is used to implement operations corresponding to the hardware and/or software of the mobile device in any of the foregoing method embodiments.
  • the mobile device 10 of the present application and at least one routing device establish a first transmission channel through a Wi-Fi network, the mobile device is installed with N applications, and any one of the N applications corresponds to M application servers An application server in , where M and N are positive integers.
  • the mobile device 10 of the present application may include: a processing module 11 and a sending module 12 .
  • the processing module 11 is configured to, after the mobile device detects that the bandwidth occupied by the mobile device on the Wi-Fi network is less than the preset first threshold, and/or when the mobile device detects that the delay of the mobile device transmission through the Wi-Fi network is greater than After the preset second threshold, a second transmission channel is established with the routing device through the cellular network.
  • the processing module 11 is further configured to split the uploaded data into first data and second data.
  • the sending module 12 is configured to transmit the first data to the routing device via the first transmission channel, and transmit the second data to the routing device via the second transmission channel.
  • the upload data is the data to be transmitted to the Pth application server among the M application servers.
  • P is a positive integer greater than or equal to 1 and less than or equal to M.
  • the mobile device 10 of the present application may further include: a receiving module 13 .
  • the receiving module 13 is configured to receive the third data of the routing device via the first transmission channel, and receive the fourth data of the routing device via the second transmission channel, where the third data and the fourth data are routing
  • the download data is obtained by the device splitting the download data, and the download data is the connection between the routing device and the P-th application server in the M application servers, and is received from the P-th application service in the M application servers.
  • Download Data is the data to be transferred to the mobile device.
  • the processing module 11 is further configured to combine the third data and the fourth data into download data after the receiving module 13 receives the third data and the fourth data. And based on the downloaded data, the service of the application corresponding to the Pth application server in the M application servers is implemented.
  • the sending module 12 is further configured to send the first transmission channel to the routing device through the cellular network after determining that the routing device has the capability of multiplexing data
  • the second request is a request for performing PING detection on the transmission channel between the WAN interface corresponding to the cellular network of the mobile device and the WAN interface of the routing device.
  • the processing module 11 is specifically configured to obtain the IP address and port information of the gateway of the mobile device based on NAT traversal, and IP address and port information of the gateway of the routing device, and the second response is a response to the second request. And determine based on the IP address and port information of the gateway of the mobile device, the IP address and port information of the gateway of the routing device, and the IP address and port information of the WAN interface of the routing device, and transmit data via the second transmission channel.
  • the processing module 11 is further configured to determine the IP address and port information based on the WAN interface of the routing device when the second response of the routing device is received through the cellular network within a preset time period, and the Two transmission channels transmit data.
  • the processing module 11 is further configured to send a third request to the routing device through the cellular network, where the third request is a request to establish a second transmission channel through the cellular network. And a third response from the routing device is received through the cellular network, where the third response is used to indicate that the routing device has established a second transmission channel with the mobile device through the cellular network.
  • the processing module 11 is further configured to send a first request to the routing device via the first transmission channel, where the first request is a request for inquiring whether the routing device has the capability of multiplexing data. After receiving the first response from the routing device via the first transmission channel, it is determined that the routing device has the capability of multiplexing data. The first response is a response to the first request, and is used to indicate that the routing device has the capability of multiplexing data.
  • the first request also carries the IP address and port information of the WAN interface of the routing device.
  • the mobile device is adapted with a first SDK, and the first SDK is used to support the mobile device and the routing device to establish the first transmission channel and the second transmission channel at the same time.
  • FIG. 9 is a schematic structural diagram of a routing device according to an embodiment of the present application.
  • the routing device 200 of the present application is used to implement operations corresponding to the hardware and/or software of the routing device in any of the foregoing method embodiments.
  • the routing device 20 of the present application establishes a first transmission channel with at least one mobile device through a Wi-Fi network, and the routing device respectively establishes M connections with M application servers through wired networks. Any one of the M application servers corresponds to one application among the N applications installed on the mobile device, and both M and N are positive integers.
  • the routing device 20 of the present application may include: a processing module 21 , a receiving module 22 and a sending module 23 .
  • the processing module 21 is configured to establish a second transmission channel with the mobile device through the cellular network.
  • the processing module 21 is further configured to combine the first data and the second data after the receiving module 22 receives the first data of the mobile device via the first transmission channel and receives the second data of the mobile device via the second transmission channel for uploading data.
  • the upload data is the data to be transmitted to the Pth application server among the M application servers.
  • P is a positive integer greater than or equal to 1 and less than or equal to M.
  • the sending module 23 is configured to transmit the uploaded data to the P th application server among the M application servers via the connection between the routing device and the P th application server among the M application servers.
  • the receiving module 22 is configured to receive the download data of the Pth application server among the M application servers via the connection between the routing device and the Pth application server among the M application servers. Download data is the data to be transferred to the mobile device.
  • the processing module 21 is further configured to split the downloaded data into third data and fourth data.
  • the sending module 23 is further configured to transmit the third data to the mobile device via the first transmission channel, and transmit the fourth data to the mobile device via the second transmission channel, so that the mobile device combines the third data and the fourth data into download data . And based on the downloaded data, the service of the application corresponding to the Pth application server in the M application servers is implemented.
  • the receiving module 22 is further configured to receive, through the cellular network, a second request from the mobile device, where the second request is an The transmission channel between the WAN interface corresponding to the cellular network and the WAN interface of the routing device performs a PING detection request.
  • the processing module 21 is specifically configured to obtain, based on NAT traversal, the IP address and port information of the gateway of the mobile device, and the IP address and port information of the gateway of the routing device when the second response is not transmitted to the mobile device through the cellular network within a preset time period. Port information, and the second response is a response to the second request. And determine based on the IP address and port information of the gateway of the mobile device, the IP address and port information of the gateway of the routing device, and the IP address and port information of the WAN interface of the routing device, and transmit data via the second transmission channel.
  • the processing module 21 is further configured to determine the IP address and port information based on the WAN interface of the routing device when the second response is transmitted to the mobile device through the cellular network within a preset period of time, and the second response is sent via the second response.
  • the transmission channel transmits data.
  • the processing module 21 is further configured to receive a third request from the mobile device through the cellular network, where the third request is a request to establish a second transmission channel through the cellular network.
  • a third response is sent to the mobile device through the cellular network, where the third response is used to indicate that the routing device has established a second transmission channel with the mobile device through the cellular network.
  • the processing module 21 is further configured to receive the first request of the mobile device through the first transmission channel before receiving the second request of the mobile device through the cellular network, where the first request is to ask the routing device whether A request with the ability to multiplex data. And after the routing device determines that the routing device has the capability of multiplexing data, it sends a first response to the mobile device via the first transmission channel.
  • the first response is a response to the first request, and is used to indicate that the routing device has the capability of multiplexing data.
  • the first request also carries the IP address and port information of the WAN interface of the routing device.
  • the routing device is adapted with a second SDK, and the second SDK is used to support the routing device and the mobile device to establish the first transmission channel and the second transmission channel at the same time.
  • the wired network is an optical fiber network.
  • the present application further provides a readable storage medium, where an execution instruction is stored in the readable storage medium, and when at least one processor of the mobile device executes the execution instruction, the mobile device executes the communication method in the foregoing method embodiment.
  • the present application further provides a readable storage medium, where an execution instruction is stored in the readable storage medium, and when at least one processor of the routing device executes the execution instruction, the routing device executes the communication method in the above method embodiment.
  • the present application also provides a program product including execution instructions stored in a readable storage medium.
  • At least one processor of the mobile device can read the execution instruction from the readable storage medium, and the at least one processor executes the execution instruction to cause the mobile device to implement the communication method in the above method embodiment.
  • the present application also provides a program product including execution instructions stored in a readable storage medium.
  • At least one processor of the routing device can read the execution instruction from the readable storage medium, and the execution of the execution instruction by the at least one processor causes the routing device to implement the communication method in the above method embodiment.
  • the present application further provides a chip, where the chip is connected to a memory, or a memory is integrated on the chip, and when a software program stored in the memory is executed, the communication method in the above method embodiment is implemented.
  • the computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), and the like.

Abstract

The present application relates to a communication method, a mobile device and a routing device. A mobile device, in which N applications are installed, establishes a first transmission channel with a routing device by means of a Wi-Fi network, and any one of the applications corresponds to one of M application servers. The mobile device comprises: a processor, a memory and a computer program on the memory. When the computer program is executed, the mobile device performs the following operations: upon detecting that the bandwidth of the first transmission channel is less than a preset first threshold, the mobile device sending a first request to the routing device by means of the first transmission channel, the first request being a request for querying whether the routing device has a multi-channel data transmission capability; after the mobile device receives a first response from the routing device by means of the first transmission channel, the mobile device determining that the routing device has the multi-channel data transmission capability; and then the mobile device establishing a second transmission channel with the routing device by means of a cellular network. The present invention implements multi-channel transmission between the two without the need to adapt an application server, facilitating popularization.

Description

通信方法、移动设备及路由设备Communication method, mobile device and routing device
本申请要求于2020年06月30日提交中国专利局、申请号为202010617746.2、申请名称为“通信方法、移动设备及路由设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202010617746.2 and the application title "Communication Method, Mobile Device and Routing Device" filed with the China Patent Office on June 30, 2020, the entire contents of which are incorporated herein by reference middle.
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种通信方法、移动设备及路由设备。The present application relates to the field of communication technologies, and in particular, to a communication method, a mobile device, and a routing device.
背景技术Background technique
无线保真(wireless fidelity,Wi-Fi)网络和移动互联网的双路传输方式,能够在其中一个网络的信号较弱时,另一个网络迅速辅助,稳定传输速率,降低传输时延,得到广泛应用。不过,为了保证Wi-Fi网络和移动互联网的双路传输,需要移动设备以及移动设备可能连接的所有服务器都预先进行适配,导致推广成本较高,不利推行。如何提供一种利于推广的Wi-Fi网络和移动互联网的双路传输方式,成为我们的需求。The two-way transmission method of wireless fidelity (Wi-Fi) network and mobile Internet can be widely used when the signal of one network is weak, the other network can quickly assist, stabilize the transmission rate and reduce the transmission delay. . However, in order to ensure two-way transmission between the Wi-Fi network and the mobile Internet, the mobile device and all the servers that the mobile device may connect to need to be adapted in advance, resulting in high promotion costs and unfavorable promotion. How to provide a two-way transmission method of Wi-Fi network and mobile Internet that is conducive to promotion has become our demand.
发明内容SUMMARY OF THE INVENTION
本申请提供一种通信方法、移动设备及路由设备,可以在移动设备与路由设备之间实现Wi-Fi网络和移动互联网的双路传输方式,无需所有应用服务器具备数据拆分和数据聚合的苛刻要求为用户带来了高带宽且低时延的通信体验,降低了推行成本。The present application provides a communication method, a mobile device and a routing device, which can realize a two-way transmission mode of Wi-Fi network and mobile Internet between the mobile device and the routing device, without requiring all application servers to have strict data splitting and data aggregation. The requirement brings users a high-bandwidth and low-latency communication experience, reducing implementation costs.
第一方面,本申请提供一种通信方法,通信方法,应用于移动设备,所述移动设备与一个路由设备通过Wi-Fi网络建立第一传输通道,所述第一传输通道至少包括一条传输通道,所述移动设备安装有N个应用,所述N个应用中的任意一个应用对应于M个应用服务器中的一个应用服务器,M和N均为正整数;所述方法包括:In a first aspect, the present application provides a communication method, and the communication method, which is applied to a mobile device. The mobile device and a routing device establish a first transmission channel through a Wi-Fi network, and the first transmission channel includes at least one transmission channel. , the mobile device is installed with N applications, any one of the N applications corresponds to an application server in the M application servers, and M and N are both positive integers; the method includes:
在检测到所述第一传输通道的带宽小于预设的第一阈值后,和/或,在检测到所述第一传输通道的时延大于预设的第二阈值后,After detecting that the bandwidth of the first transmission channel is smaller than the preset first threshold, and/or after detecting that the delay of the first transmission channel is greater than the preset second threshold,
所述移动设备通过所述第一传输通道向所述路由设备发送第一请求,所述第一请求为询问所述路由设备是否具有多路传输数据的能力的请求;sending, by the mobile device, a first request to the routing device through the first transmission channel, where the first request is a request for inquiring whether the routing device has the capability of multiplexing data;
在所述移动设备通过所述第一传输通道接收到所述路由设备的第一响应后,所述移动设备确定所述路由设备具有多路传输数据的能力;所述第一响应为针对第一请求的响应,用于表明所述路由设备具有多路传输数据的能力;After the mobile device receives the first response from the routing device through the first transmission channel, the mobile device determines that the routing device has the ability to multiplex data; the first response is for the first response A response to the request, which is used to indicate that the routing device has the ability to multiplex data;
在通过所述第一传输通道接收到所述路由设备发送的第一响应后,所述移动设备与所述路由设备通过蜂窝网络建立第二传输通道;所述第二传输通道至少包括一条传输通道。After receiving the first response sent by the routing device through the first transmission channel, the mobile device and the routing device establish a second transmission channel through the cellular network; the second transmission channel includes at least one transmission channel .
通过第一方面提供的通信方法,移动设备与路由设备通过Wi-Fi网络建立第一传输通道,移动设备与路由设备通过蜂窝网络建立第二传输通道。移动设备将上传数据拆分为第一数据和第二数据,且经由第一传输通道将第一数据传输至路由设备,经由第二传输通道将第二数据传输至路由设备,使得路由设备将第一数据和第二数据组合成上传数据,并基于路 由设备与应用服务器之间的连接,将上传数据传输至应用服务器。从而,本申请在路由设备与移动设备之间实现Wi-Fi网络和移动互联网的双路传输方式,将路由设备作为移动设备与应用服务器之间业务实现的桥梁,及时将移动设备的数据传输至应用服务器,解决了相关技术中需要所有应用服务器具备数据拆分和数据聚合的苛刻要求,方便不同类型的业务的推广,降低了推行成本,还有利于提升数据传输的效率,满足移动设备的大吞吐率的业务需求,为用户带来了高带宽且低时延的通信体验。With the communication method provided in the first aspect, the mobile device and the routing device establish a first transmission channel through a Wi-Fi network, and the mobile device and the routing device establish a second transmission channel through a cellular network. The mobile device splits the upload data into first data and second data, and transmits the first data to the routing device via the first transmission channel, and transmits the second data to the routing device via the second transmission channel, so that the routing device transmits the first data to the routing device. The first data and the second data are combined into upload data, and the upload data is transmitted to the application server based on the connection between the routing device and the application server. Therefore, the present application implements a dual-channel transmission mode of Wi-Fi network and mobile Internet between the routing device and the mobile device, uses the routing device as a bridge for business realization between the mobile device and the application server, and transmits the data of the mobile device to the mobile device in time. The application server solves the strict requirements of data splitting and data aggregation in related technologies for all application servers, facilitates the promotion of different types of services, reduces the implementation cost, and is also conducive to improving the efficiency of data transmission to meet the large-scale requirements of mobile devices. The service requirements of throughput rate bring users a high-bandwidth and low-latency communication experience.
在一种可能的设计中,移动设备与路由设备通过蜂窝网络建立第二传输通道之前,该通信方法还包括:在移动设备确定路由设备具有多路传输数据的能力后,移动设备通过蜂窝网络向路由设备发送第二请求,第二请求为对移动设备的与蜂窝网络对应的WAN接口与路由设备的WAN接口之间的传输通道进行PING探测的请求。若移动设备在预设时长内没有通过蜂窝网络接收到路由设备的第二响应后,则移动设备基于NAT穿越,获取移动设备的网关的IP地址和端口信息,以及路由设备的网关的IP地址和端口信息,第二响应为针对第二请求的响应。移动设备确定基于所述移动设备的网关的IP地址和端口信息、路由设备的网关的IP地址和端口信息以及路由设备的WAN接口的IP地址和端口信息,经由所述第二传输通道传输数据。由此,确定出移动设备与路由设备的WAN接口之间的第二传输通道。In a possible design, before the mobile device and the routing device establish the second transmission channel through the cellular network, the communication method further includes: after the mobile device determines that the routing device has the capability of multiplexing data, sending the mobile device to the mobile device through the cellular network. The routing device sends a second request, where the second request is a request to perform PING detection on the transmission channel between the WAN interface corresponding to the cellular network of the mobile device and the WAN interface of the routing device. If the mobile device does not receive the second response from the routing device through the cellular network within a preset period of time, the mobile device obtains the IP address and port information of the gateway of the mobile device, and the IP address and port information of the gateway of the routing device based on NAT traversal. Port information, and the second response is a response to the second request. The mobile device determines to transmit data via the second transmission channel based on the IP address and port information of the gateway of the mobile device, the IP address and port information of the gateway of the routing device, and the IP address and port information of the WAN interface of the routing device. Thereby, the second transmission channel between the mobile device and the WAN interface of the routing device is determined.
在一种可能的设计中,该通信方法还包括:若移动设备在预设时长内通过蜂窝网络接收到路由设备的第二响应,则移动设备确定基于路由设备的WAN接口的IP地址和端口信息,经由所述第二传输通道传输数据。由此,确定出移动设备与路由设备的WAN接口之间的第二传输通道。In a possible design, the communication method further includes: if the mobile device receives the second response from the routing device through the cellular network within a preset time period, the mobile device determines the IP address and port information based on the WAN interface of the routing device , and transmit data via the second transmission channel. Thereby, the second transmission channel between the mobile device and the WAN interface of the routing device is determined.
在一种可能的设计中,移动设备与路由设备通过蜂窝网络建立第二传输通道,包括:移动设备通过蜂窝网络向路由设备发送第三请求,第三请求为通过蜂窝网络建立第二传输通道的请求。移动设备通过蜂窝网络接收到路由设备的第三响应,第三响应用于表明路由设备已与移动设备通过蜂窝网络建立第二传输通道。由此,为建立第二传输通道做准备,使得移动设备与路由设备均获知第二传输通道已建立。In a possible design, establishing the second transmission channel between the mobile device and the routing device through the cellular network includes: the mobile device sends a third request to the routing device through the cellular network, where the third request is for establishing the second transmission channel through the cellular network ask. The mobile device receives a third response from the routing device through the cellular network, where the third response is used to indicate that the routing device has established a second transmission channel with the mobile device through the cellular network. In this way, preparations are made for establishing the second transmission channel, so that both the mobile device and the routing device know that the second transmission channel has been established.
在一种可能的设计中,移动设备确定路由设备具有多路传输数据的能力,包括:移动设备经由第一传输通道向路由设备发送第一请求,第一请求为询问路由设备是否具有多路传输数据的能力的请求。在移动设备经由第一传输通道接收到路由设备的第一响应后,移动设备确定路由设备具有多路传输数据的能力。第一响应为针对第一请求的响应,用于表明路由设备具有多路传输数据的能力。由此,为建立第二传输通道做准备。In a possible design, the mobile device determining that the routing device has the capability of multiplexing data includes: the mobile device sends a first request to the routing device via the first transmission channel, where the first request is to inquire whether the routing device has multiplexing capabilities Data capability request. After the mobile device receives the first response from the routing device via the first transmission channel, the mobile device determines that the routing device has the capability of multiplexing data. The first response is a response to the first request, and is used to indicate that the routing device has the capability of multiplexing data. Thereby, preparations are made for establishing the second transmission channel.
在一种可能的设计中,第一请求还携带有路由设备的WAN接口的IP地址和端口信息。In a possible design, the first request also carries the IP address and port information of the WAN interface of the routing device.
在一种可能的设计中,移动设备经由第一传输通道接收到路由设备的第三数据,并经由第二传输通道接收到路由设备的第四数据,第三数据和第四数据为路由设备拆分下载数据得到的,下载数据为路由设备经由路由设备与M个应用服务器中的第P个应用服务器之间的连接,从M个应用服务器中的第P个应用服务接收到的,下载数据为要被传输至移动设备的数据。在移动设备接收到第三数据和第四数据后,移动设备将第三数据和第四数据组合为下载数据。并基于下载数据,实现与M个应用服务器中的第P个应用服务器对应的应用的业务。In a possible design, the mobile device receives the third data of the routing device via the first transmission channel, and receives the fourth data of the routing device via the second transmission channel, and the third data and the fourth data are separated by the routing device. The download data is obtained by dividing the download data. The download data is the connection between the routing device and the P-th application server in the M application servers, and is received from the P-th application service in the M application servers. The download data is Data to be transferred to the mobile device. After the mobile device receives the third data and the fourth data, the mobile device combines the third data and the fourth data into download data. And based on the downloaded data, the service of the application corresponding to the Pth application server in the M application servers is implemented.
通过实施例提供的通信方法,本申请在路由设备与移动设备之间实现Wi-Fi网络和移动 互联网的双路传输方式,将路由设备作为移动设备与应用服务器之间业务实现的桥梁,实现了移动设备与应用服务器之间数据的相互传输,解决了相关技术中需要所有应用服务器具备数据拆分和数据聚合的苛刻要求,方便不同类型的业务的推广,降低了推行成本,还有利于提升数据传输的效率,满足移动设备的大吞吐率的业务需求,为用户带来了高带宽且低时延的通信体验。Through the communication method provided by the embodiment, the present application realizes the dual transmission mode of Wi-Fi network and mobile Internet between the routing device and the mobile device, and uses the routing device as a bridge for service realization between the mobile device and the application server, and realizes the The mutual transmission of data between the mobile device and the application server solves the strict requirements of data splitting and data aggregation in all application servers in related technologies, which facilitates the promotion of different types of services, reduces the implementation cost, and is also conducive to improving data. The transmission efficiency meets the service requirements of high throughput of mobile devices, and brings users a high-bandwidth and low-latency communication experience.
在一种可能的设计中,移动设备适配有第一SDK,第一SDK用于支持移动设备与路由设备同时建立第一传输通道和第二传输通道。在移动设备检测到移动设备占据Wi-Fi网络的带宽大于或等于预设的第一阈值后,和/或,在移动设备检测到移动设备通过Wi-Fi网络传输的时延小于或等于预设的第二阈值后,移动设备将上传数据经由第一传输通道传输至路由设备。并经由第一传输通道接收到路由设备的下载数据。由此,无需占用过多资源来传输数据,确保了数据传输方案的完整性。In a possible design, the mobile device is adapted with a first SDK, and the first SDK is used to support the mobile device and the routing device to establish the first transmission channel and the second transmission channel at the same time. After the mobile device detects that the bandwidth occupied by the mobile device on the Wi-Fi network is greater than or equal to the preset first threshold, and/or after the mobile device detects that the transmission delay of the mobile device through the Wi-Fi network is less than or equal to the preset After the second threshold, the mobile device transmits the upload data to the routing device via the first transmission channel. And the download data of the routing device is received via the first transmission channel. Therefore, it is not necessary to occupy too many resources to transmit data, which ensures the integrity of the data transmission scheme.
第二方面,本申请提供一种移动设备,包括:移动设备,所述移动设备与一个路由设备通过Wi-Fi网络建立第一传输通道,所述第一传输通道至少包括一条传输通道,所述移动设备安装有N个应用,所述N个应用中的任意一个应用对应于M个应用服务器中的一个应用服务器,M和N均为正整数;所述移动设备包括:In a second aspect, the present application provides a mobile device, including: a mobile device, the mobile device and a routing device establish a first transmission channel through a Wi-Fi network, the first transmission channel includes at least one transmission channel, the The mobile device is installed with N applications, any one of the N applications corresponds to one application server in the M application servers, and M and N are both positive integers; the mobile device includes:
一个或多个处理器;one or more processors;
存储器;memory;
以及一个或多个计算机程序,其中所述一个或多个计算机程序存储在所述存储器上,当所述计算机程序被所述一个或多个处理器执行时,使得所述移动设备执行以下步骤:and one or more computer programs, wherein the one or more computer programs are stored on the memory and, when executed by the one or more processors, cause the mobile device to perform the following steps:
在检测到所述第一传输通道的带宽小于预设的第一阈值后,和/或,在检测到所述第一传输通道的时延大于预设的第二阈值后,After detecting that the bandwidth of the first transmission channel is smaller than the preset first threshold, and/or after detecting that the delay of the first transmission channel is greater than the preset second threshold,
所述移动设备通过所述第一传输通道向所述路由设备发送第一请求,所述第一请求为询问所述路由设备是否具有多路传输数据能力的请求;sending, by the mobile device, a first request to the routing device through the first transmission channel, where the first request is a request for inquiring whether the routing device has the capability of multiplexing data;
在所述移动设备通过所述第一传输通道接收到所述路由设备的第一响应后,所述移动设备确定所述路由设备具有多路传输数据能力;所述第一响应为针对第一请求的响应,用于表明所述路由设备具有多路传输数据能力;After the mobile device receives the first response from the routing device through the first transmission channel, the mobile device determines that the routing device has the ability to multiplex data; the first response is for the first request The response is used to indicate that the routing device has the ability to multiplex data;
在通过所述第一传输通道接收到所述路由设备发送的第一响应后,所述移动设备与所述路由设备通过蜂窝网络建立第二传输通道;所述第二传输通道至少包括一条传输通道。After receiving the first response sent by the routing device through the first transmission channel, the mobile device and the routing device establish a second transmission channel through the cellular network; the second transmission channel includes at least one transmission channel .
在一种可能的设计中,当计算机程序被一个或多个处理器执行时,还使得移动设备执行以下步骤:In one possible design, the computer program, when executed by one or more processors, also causes the mobile device to perform the following steps:
移动设备与路由设备通过蜂窝网络建立第二传输通道之前,该通信方法还包括:在移动设备确定路由设备具有多路传输数据的能力后,移动设备通过蜂窝网络向路由设备发送第二请求,第二请求为对移动设备的与蜂窝网络对应的WAN接口与路由设备的WAN接口之间的传输通道进行PING探测的请求。若移动设备在预设时长内没有通过蜂窝网络接收到路由设备的第二响应后,则移动设备基于NAT穿越,获取移动设备的网关的IP地址和端口信息,以及路由设备的网关的IP地址和端口信息,第二响应为针对第二请求的响应。移动设备确定基于所述移动设备的网关的IP地址和端口信息、路由设备的网关的IP地址和端口信息以及路由设备的WAN接口的IP地址和端口信息,经由所述第二传输通道传输数据。Before the mobile device and the routing device establish the second transmission channel through the cellular network, the communication method further includes: after the mobile device determines that the routing device has the capability of multiplexing data, the mobile device sends a second request to the routing device through the cellular network, and the first The second request is a request to perform PING detection on the transmission channel between the WAN interface corresponding to the cellular network of the mobile device and the WAN interface of the routing device. If the mobile device does not receive the second response from the routing device through the cellular network within a preset period of time, the mobile device obtains the IP address and port information of the gateway of the mobile device, and the IP address and port information of the gateway of the routing device based on NAT traversal. Port information, and the second response is a response to the second request. The mobile device determines to transmit data via the second transmission channel based on the IP address and port information of the gateway of the mobile device, the IP address and port information of the gateway of the routing device, and the IP address and port information of the WAN interface of the routing device.
在一种可能的设计中,当计算机程序被一个或多个处理器执行时,还使得移动设备执行以下步骤:In one possible design, the computer program, when executed by one or more processors, also causes the mobile device to perform the following steps:
该通信方法还包括:若移动设备在预设时长内通过蜂窝网络接收到路由设备的第二响应,则移动设备确定基于路由设备的WAN接口的IP地址和端口信息,经由所述第二传输通道传输数据。The communication method further includes: if the mobile device receives the second response from the routing device through the cellular network within a preset time period, the mobile device determines the IP address and port information based on the WAN interface of the routing device, and sends the second transmission channel via the second transmission channel. transfer data.
在一种可能的设计中,当计算机程序被一个或多个处理器执行时,使得移动设备具体执行以下步骤:In one possible design, when the computer program is executed by one or more processors, it causes the mobile device to specifically perform the following steps:
移动设备与路由设备通过蜂窝网络建立第二传输通道,包括:移动设备通过蜂窝网络向路由设备发送第三请求,第三请求为通过蜂窝网络建立第二传输通道的请求。移动设备通过蜂窝网络接收到路由设备的第三响应,第三响应用于表明路由设备已与移动设备通过蜂窝网络建立第二传输通道。Establishing the second transmission channel between the mobile device and the routing device through the cellular network includes: the mobile device sends a third request to the routing device through the cellular network, where the third request is a request for establishing the second transmission channel through the cellular network. The mobile device receives a third response from the routing device through the cellular network, where the third response is used to indicate that the routing device has established a second transmission channel with the mobile device through the cellular network.
在一种可能的设计中,当计算机程序被一个或多个处理器执行时,使得移动设备具体执行以下步骤:In one possible design, when the computer program is executed by one or more processors, it causes the mobile device to specifically perform the following steps:
移动设备确定路由设备具有多路传输数据的能力,包括:移动设备经由第一传输通道向路由设备发送第一请求,第一请求为询问路由设备是否具有多路传输数据的能力的请求。在移动设备经由第一传输通道接收到路由设备的第一响应后,移动设备确定路由设备具有多路传输数据的能力。第一响应为针对第一请求的响应,用于表明路由设备具有多路传输数据的能力。The mobile device determining that the routing device has the capability of multiplexing data includes: the mobile device sends a first request to the routing device via the first transmission channel, where the first request is a request for inquiring whether the routing device has the capability of multiplexing data. After the mobile device receives the first response from the routing device via the first transmission channel, the mobile device determines that the routing device has the capability of multiplexing data. The first response is a response to the first request, and is used to indicate that the routing device has the capability of multiplexing data.
在一种可能的设计中,第一请求还携带有路由设备的WAN接口的IP地址和端口信息。In a possible design, the first request also carries the IP address and port information of the WAN interface of the routing device.
在一种可能的设计中,移动设备经由第一传输通道接收到路由设备的第三数据,并经由第二传输通道接收到路由设备的第四数据,第三数据和第四数据为路由设备拆分下载数据得到的,下载数据为路由设备经由路由设备与M个应用服务器中的第P个应用服务器之间的连接从M个应用服务器中的第P个应用服务接收到的,下载数据为要被传输至移动设备的数据。移动设备在移动设备接收到第三数据和第四数据后,将第三数据和第四数据组合为下载数据。并基于下载数据,实现与M个应用服务器中的第P个应用服务器对应的应用的业务。In a possible design, the mobile device receives the third data of the routing device via the first transmission channel, and receives the fourth data of the routing device via the second transmission channel, and the third data and the fourth data are separated by the routing device. The download data is obtained by dividing the download data, and the download data is received by the routing device from the P-th application service in the M application servers via the connection between the routing device and the P-th application server in the M application servers, and the download data is required. Data transferred to the mobile device. After the mobile device receives the third data and the fourth data, the mobile device combines the third data and the fourth data into download data. And based on the downloaded data, the service of the application corresponding to the Pth application server in the M application servers is implemented.
在一种可能的设计中,移动设备适配有第一SDK,第一SDK用于支持移动设备与路由设备同时建立第一传输通道和第二传输通道。In a possible design, the mobile device is adapted with a first SDK, and the first SDK is used to support the mobile device and the routing device to establish the first transmission channel and the second transmission channel at the same time.
上述第二方面以及上述第二方面的各可能的设计中所提供的移动设备,其有益效果可以参见上述第一方面和第一方面的各可能的实施方式所带来的有益效果,在此不再赘述。For the above-mentioned second aspect and the mobile device provided in each possible design of the above-mentioned second aspect, the beneficial effects of the mobile device can refer to the beneficial effects brought by the above-mentioned first aspect and each possible implementation manner of the first aspect. Repeat.
第三方面,本申请提供一种通信方法,应用于一个路由设备,所述路由设备与至少一个移动设备通过Wi-Fi网络建立第一传输通道,所述路由设备与所述M个应用服务器中的第P个应用服务器通过有线网络建立第P条传输通道;所述M个应用服务器中的任意一个应用服务器对应于所述移动设备安装的N个应用中的一个应用,M和N均为正整数;所述方法包括:In a third aspect, the present application provides a communication method, which is applied to a routing device, the routing device and at least one mobile device establish a first transmission channel through a Wi-Fi network, the routing device and the M application servers The Pth application server establishes the Pth transmission channel through the wired network; any one of the M application servers corresponds to an application in the N applications installed by the mobile device, and M and N are positive Integer; the method includes:
通过所述第一传输通道接收到所述移动设备的第一请求,所述第一请求为所述移动设备询问所述路由设备是否具有多路传输数据能力的请求;receiving a first request from the mobile device through the first transmission channel, where the first request is a request from the mobile device to inquire whether the routing device has the ability to multiplex data;
响应于所述第一请求,通过所述第一传输通道向所述移动设备发送第一响应;所述第一响应为针对第一请求的响应,用于表明所述路由设备具有多路传输数据能力;In response to the first request, send a first response to the mobile device through the first transmission channel; the first response is a response to the first request and is used to indicate that the routing device has multiplexed data ability;
在通过所述第一传输通道向所述移动设备发送第一响应后,所述路由设备与所述移动设备通过蜂窝网络建立第二传输通道;所述第二传输通道至少包括一条传输通道。After sending the first response to the mobile device through the first transmission channel, the routing device and the mobile device establish a second transmission channel through the cellular network; the second transmission channel includes at least one transmission channel.
通过第三方面提供的通信方法,基于移动设备与路由设备通过Wi-Fi网络建立第一传输通道,移动设备与路由设备通过蜂窝网络建立第二传输通道,路由设备经由第一传输通道接收到移动设备的第一数据,经由第二传输通道接收到移动设备的第二数据。路由设备将第一数据和第二数据组合成上传数据,并通过路由设备与应用服务器之间的连接,将上传数据传输至应用服务器。从而,本申请在路由设备与移动设备之间实现Wi-Fi网络和移动互联网的双路传输方式,将路由设备作为移动设备与应用服务器之间业务实现的桥梁,及时将移动设备的数据传输至应用服务器,解决了相关技术中需要所有应用服务器具备数据拆分和数据聚合的苛刻要求,方便不同类型的业务的推广,降低了推行成本,还有利于提升数据传输的效率,满足移动设备的大吞吐率的业务需求,为用户带来了高带宽且低时延的通信体验。With the communication method provided by the third aspect, a first transmission channel is established between the mobile device and the routing device through the Wi-Fi network, the mobile device and the routing device establish a second transmission channel through the cellular network, and the routing device receives the mobile device through the first transmission channel. The first data of the device receives the second data of the mobile device via the second transmission channel. The routing device combines the first data and the second data into uploading data, and transmits the uploading data to the application server through the connection between the routing device and the application server. Therefore, the present application implements a dual-channel transmission mode of Wi-Fi network and mobile Internet between the routing device and the mobile device, uses the routing device as a bridge for business realization between the mobile device and the application server, and transmits the data of the mobile device to the mobile device in time. The application server solves the strict requirements of data splitting and data aggregation in related technologies for all application servers, facilitates the promotion of different types of services, reduces the implementation cost, and is also conducive to improving the efficiency of data transmission to meet the large-scale requirements of mobile devices. The service requirements of throughput rate bring users a high-bandwidth and low-latency communication experience.
在一种可能的设计中,在移动设备与路由设备通过蜂窝网络建立第二传输通道之前,该通信方法还包括:路由设备通过蜂窝网络接收到移动设备的第二请求,第二请求为对移动设备的与蜂窝网络对应的WAN接口与路由设备的WAN接口之间的传输通道进行PING探测的请求。若路由设备在预设时长内通过蜂窝网络没有向移动设备传输第二响应,则路由设备基于NAT穿越,获取移动设备的网关的IP地址和端口信息,以及路由设备的网关的IP地址和端口信息,第二响应为针对第二请求的响应。路由设备确定基于所述移动设备的网关的IP地址和端口信息、路由设备的网关的IP地址和端口信息以及路由设备的WAN接口的IP地址和端口信息,经由所述第二传输通道传输数据。由此,确定出移动设备与路由设备的WAN接口之间的第二传输通道。In a possible design, before the mobile device and the routing device establish a second transmission channel through the cellular network, the communication method further includes: the routing device receives a second request from the mobile device through the cellular network, where the second request is for the mobile device The transmission channel between the WAN interface corresponding to the cellular network and the WAN interface of the routing device performs a PING probe request. If the routing device does not transmit the second response to the mobile device through the cellular network within the preset time period, the routing device obtains the IP address and port information of the gateway of the mobile device and the IP address and port information of the gateway of the routing device based on NAT traversal , and the second response is a response to the second request. The routing device determines to transmit data via the second transmission channel based on the IP address and port information of the gateway of the mobile device, the IP address and port information of the gateway of the routing device, and the IP address and port information of the WAN interface of the routing device. Thereby, the second transmission channel between the mobile device and the WAN interface of the routing device is determined.
在一种可能的设计中,该通信方法还包括:若路由设备在预设时长内通过蜂窝网络向移动设备传输第二响应,则路由设备确定基于路由设备的WAN接口的IP地址和端口信息,经由所述第二传输通道传输数据。由此,确定出移动设备与路由设备的WAN接口之间的第二传输通道。In a possible design, the communication method further includes: if the routing device transmits the second response to the mobile device through the cellular network within a preset time period, the routing device determines the IP address and port information based on the WAN interface of the routing device, Data is transmitted via the second transmission channel. Thereby, the second transmission channel between the mobile device and the WAN interface of the routing device is determined.
在一种可能的设计中,路由设备与移动设备通过蜂窝网络建立第二传输通道,包括:路由设备通过蜂窝网络接收到移动设备的第三请求,第三请求为通过蜂窝网络建立第二传输通道的请求。路由设备响应于第三请求,通过蜂窝网络向移动设备发送第三响应,第三响应用于表明路由设备已与移动设备通过蜂窝网络建立第二传输通道。由此,为建立第二传输通道做准备,使得移动设备与路由设备均获知第二传输通道已建立。In a possible design, the routing device and the mobile device establish a second transmission channel through the cellular network, including: the routing device receives a third request from the mobile device through the cellular network, and the third request is to establish the second transmission channel through the cellular network. request. In response to the third request, the routing device sends a third response to the mobile device through the cellular network, where the third response is used to indicate that the routing device has established a second transmission channel with the mobile device through the cellular network. In this way, preparations are made for establishing the second transmission channel, so that both the mobile device and the routing device know that the second transmission channel has been established.
在一种可能的设计中,在路由设备通过蜂窝网络接收到移动设备的第二请求之前,该通信方法还包括:路由设备经由第一传输通道接收到移动设备的第一请求,第一请求为询问路由设备是否具有多路传输数据的能力的请求。在路由设备确定路由设备具有多路传输数据的能力后,路由设备经由第一传输通道向移动设备发送第一响应。第一响应为针对第一请求的响应,用于表明路由设备具有多路传输数据的能力。由此,为建立第二传输通道做准备。In a possible design, before the routing device receives the second request of the mobile device through the cellular network, the communication method further includes: the routing device receives the first request of the mobile device via the first transmission channel, where the first request is A request that asks whether the routing device has the ability to multiplex data. After the routing device determines that the routing device has the capability of multiplexing data, the routing device sends a first response to the mobile device via the first transmission channel. The first response is a response to the first request, and is used to indicate that the routing device has the capability of multiplexing data. Thereby, preparations are made for establishing the second transmission channel.
在一种可能的设计中,第一请求还携带有路由设备的WAN接口的IP地址和端口信息。In a possible design, the first request also carries the IP address and port information of the WAN interface of the routing device.
在一种可能的设计中,路由设备经由路由设备与M个应用服务器中的第P个应用服务器之间的连接,接收到M个应用服务器中的第P个应用服务器的下载数据。下载数据为要 被传输至移动设备的数据。路由设备将下载数据拆分为第三数据和第四数据,并将第三数据经由第一传输通道传输至移动设备,将第四数据经由第二传输通道传输至移动设备,使得移动设备将第三数据和第四数据组合为下载数据。并基于下载数据,实现与M个应用服务器中的第P个应用服务器对应的应用的业务。In a possible design, the routing device receives the download data of the P-th application server in the M application servers via the connection between the routing device and the P-th application server in the M application servers. Download data is the data to be transferred to the mobile device. The routing device splits the download data into third data and fourth data, and transmits the third data to the mobile device through the first transmission channel, and transmits the fourth data to the mobile device through the second transmission channel, so that the mobile device transmits the third data to the mobile device. The third data and the fourth data are combined as download data. And based on the downloaded data, the service of the application corresponding to the Pth application server in the M application servers is implemented.
通过实施例提供的通信方法,本申请在路由设备与移动设备之间实现Wi-Fi网络和移动互联网的双路传输方式,将路由设备作为移动设备与应用服务器之间业务实现的桥梁,实现了移动设备与应用服务器之间数据的相互传输,解决了相关技术中需要所有应用服务器具备数据拆分和数据聚合的苛刻要求,方便不同类型的业务的推广,降低了推行成本,还有利于提升数据传输的效率,满足移动设备的大吞吐率的业务需求,为用户带来了高带宽且低时延的通信体验。Through the communication method provided by the embodiment, the present application realizes the dual transmission mode of Wi-Fi network and mobile Internet between the routing device and the mobile device, and uses the routing device as a bridge for service realization between the mobile device and the application server, and realizes the The mutual transmission of data between the mobile device and the application server solves the strict requirements of data splitting and data aggregation in all application servers in related technologies, which facilitates the promotion of different types of services, reduces the implementation cost, and is also conducive to improving data. The transmission efficiency meets the service requirements of high throughput of mobile devices, and brings users a high-bandwidth and low-latency communication experience.
在一种可能的设计中,路由设备适配有第二SDK,第二SDK用于支持路由设备与移动设备同时建立第一传输通道和第二传输通道,有线网络为光纤网络。由此,无需占用过多资源来传输数据,确保了数据传输方案的完整性。In a possible design, the routing device is adapted with a second SDK, and the second SDK is used to support the routing device and the mobile device to establish the first transmission channel and the second transmission channel at the same time, and the wired network is an optical fiber network. Therefore, it is not necessary to occupy too many resources to transmit data, which ensures the integrity of the data transmission scheme.
第四方面,本申请提供一种路由设备,包括:In a fourth aspect, the present application provides a routing device, including:
路由设备,所述路由设备与至少一个移动设备通过Wi-Fi网络建立第一传输通道,所述路由设备与所述M个应用服务器中的第P个应用服务器通过有线网络建立第P条传输通道;所述M个应用服务器中的任意一个应用服务器对应于所述移动设备安装的N个应用中的一个应用,M和N均为正整数,P为小于等于M的正整数;所述路由设备包括:A routing device, where the routing device and at least one mobile device establish a first transmission channel through a Wi-Fi network, and the routing device and the Pth application server in the M application servers establish a Pth transmission channel through a wired network ; Any one of the M application servers corresponds to an application in the N applications installed by the mobile device, and M and N are both positive integers, and P is a positive integer less than or equal to M; the routing equipment include:
一个或多个处理器;one or more processors;
存储器;memory;
以及一个或多个计算机程序,其中所述一个或多个计算机程序存储在所述存储器上,当所述计算机程序被所述一个或多个处理器执行时,使得所述路由设备执行以下步骤:and one or more computer programs, wherein the one or more computer programs are stored on the memory and, when executed by the one or more processors, cause the routing device to perform the following steps:
通过所述第一传输通道接收到所述移动设备的第一请求,所述第一请求为所述移动设备询问所述路由设备是否具有多路传输数据能力的请求;receiving a first request from the mobile device through the first transmission channel, where the first request is a request from the mobile device to inquire whether the routing device has the ability to multiplex data;
响应于所述第一请求,通过所述第一传输通道向所述移动设备发送第一响应;所述第一响应为针对第一请求的响应,用于表明所述路由设备具有多路传输数据能力;In response to the first request, send a first response to the mobile device through the first transmission channel; the first response is a response to the first request and is used to indicate that the routing device has multiplexed data ability;
在通过所述第一传输通道向所述移动设备发送第一响应后,所述路由设备与所述移动设备通过蜂窝网络建立第二传输通道;所述第二传输通道至少包括一条传输通道。After sending the first response to the mobile device through the first transmission channel, the routing device and the mobile device establish a second transmission channel through the cellular network; the second transmission channel includes at least one transmission channel.
在一种可能的设计中,当计算机程序被一个或多个处理器执行时,还使得路由设备执行以下步骤:In one possible design, the computer program, when executed by one or more processors, also causes the routing device to perform the following steps:
在移动设备与路由设备通过蜂窝网络建立第二传输通道之前,该通信方法还包括:路由设备通过蜂窝网络接收到移动设备的第二请求,第二请求为对移动设备的与蜂窝网络对应的WAN接口与路由设备的WAN接口之间的传输通道进行PING探测的请求。若路由设备在预设时长内通过蜂窝网络没有向移动设备传输第二响应,则路由设备基于NAT穿越,获取移动设备的网关的IP地址和端口信息,以及路由设备的网关的IP地址和端口信息,第二响应为针对第二请求的响应。路由设备确定基于所述移动设备的网关的IP地址和端口信息、路由设备的网关的IP地址和端口信息以及路由设备的WAN接口的IP地址和端口信息,经由所述第二传输通道传输数据。Before the mobile device and the routing device establish a second transmission channel through the cellular network, the communication method further includes: the routing device receives a second request from the mobile device through the cellular network, where the second request is a WAN of the mobile device corresponding to the cellular network A request for PING detection on the transmission channel between the interface and the WAN interface of the routing device. If the routing device does not transmit the second response to the mobile device through the cellular network within the preset time period, the routing device obtains the IP address and port information of the gateway of the mobile device and the IP address and port information of the gateway of the routing device based on NAT traversal , and the second response is a response to the second request. The routing device determines to transmit data via the second transmission channel based on the IP address and port information of the gateway of the mobile device, the IP address and port information of the gateway of the routing device, and the IP address and port information of the WAN interface of the routing device.
在一种可能的设计中,当计算机程序被一个或多个处理器执行时,还使得路由设备执 行以下步骤:In one possible design, the computer program, when executed by one or more processors, also causes the routing device to perform the following steps:
该通信方法还包括:若路由设备在预设时长内通过蜂窝网络向移动设备传输第二响应,则路由设备确定基于路由设备的WAN接口的IP地址和端口信息,经由所述第二传输通道传输数据。The communication method further includes: if the routing device transmits the second response to the mobile device through the cellular network within a preset time period, the routing device determines the IP address and port information based on the WAN interface of the routing device, and transmits the second response via the second transmission channel data.
在一种可能的设计中,当计算机程序被一个或多个处理器执行时,还使得路由设备执行以下步骤:In one possible design, the computer program, when executed by one or more processors, also causes the routing device to perform the following steps:
路由设备与移动设备通过蜂窝网络建立第二传输通道,包括:路由设备通过蜂窝网络接收到移动设备的第三请求,第三请求为通过蜂窝网络建立第二传输通道的请求。路由设备响应于第三请求,通过蜂窝网络向移动设备发送第三响应,第三响应用于表明路由设备已与移动设备通过蜂窝网络建立第二传输通道。Establishing a second transmission channel between the routing device and the mobile device through the cellular network includes: the routing device receives a third request from the mobile device through the cellular network, where the third request is a request for establishing the second transmission channel through the cellular network. In response to the third request, the routing device sends a third response to the mobile device through the cellular network, where the third response is used to indicate that the routing device has established a second transmission channel with the mobile device through the cellular network.
在一种可能的设计中,当计算机程序被一个或多个处理器执行时,还使得路由设备执行以下步骤:In one possible design, the computer program, when executed by one or more processors, also causes the routing device to perform the following steps:
在路由设备通过蜂窝网络接收到移动设备的第二请求之前,该通信方法还包括:路由设备经由第一传输通道接收到移动设备的第一请求,第一请求为询问路由设备是否具有多路传输数据的能力的请求。在路由设备确定路由设备具有多路传输数据的能力后,路由设备经由第一传输通道向移动设备发送第一响应。第一响应为针对第一请求的响应,用于表明路由设备具有多路传输数据的能力。Before the routing device receives the second request of the mobile device through the cellular network, the communication method further includes: the routing device receives the first request of the mobile device via the first transmission channel, where the first request is to inquire whether the routing device has multiplexing Data capability request. After the routing device determines that the routing device has the capability of multiplexing data, the routing device sends a first response to the mobile device via the first transmission channel. The first response is a response to the first request, and is used to indicate that the routing device has the capability of multiplexing data.
在一种可能的设计中,第一请求还携带有路由设备的WAN接口的IP地址和端口信息。In a possible design, the first request also carries the IP address and port information of the WAN interface of the routing device.
在一种可能的设计中,路由设备经由路由设备与M个应用服务器中的第P个应用服务器之间的连接,接收到M个应用服务器中的第P个应用服务器的下载数据。下载数据为要被传输至移动设备的数据。路由设备将下载数据拆分为第三数据和第四数据,并将第三数据经由第一传输通道传输至移动设备,将第四数据经由第二传输通道传输至移动设备,使得移动设备将第三数据和第四数据组合为下载数据。并基于下载数据,实现与M个应用服务器中的第P个应用服务器对应的应用的业务。In a possible design, the routing device receives the download data of the P-th application server in the M application servers via the connection between the routing device and the P-th application server in the M application servers. Download data is the data to be transferred to the mobile device. The routing device splits the download data into third data and fourth data, and transmits the third data to the mobile device through the first transmission channel, and transmits the fourth data to the mobile device through the second transmission channel, so that the mobile device transmits the third data to the mobile device. The third data and the fourth data are combined as download data. And based on the downloaded data, the service of the application corresponding to the Pth application server in the M application servers is implemented.
在一种可能的设计中,路由设备适配有第二SDK,第二SDK用于支持路由设备与移动设备同时建立第一传输通道和第二传输通道。有线网络为光纤网络。In a possible design, the routing device is adapted with a second SDK, and the second SDK is used to support the routing device and the mobile device to establish the first transmission channel and the second transmission channel at the same time. The wired network is an optical fiber network.
上述第四方面以及上述第四方面的各可能的设计中所提供的路由设备,其有益效果可以参见上述第三方面和第三方面的各可能的实施方式所带来的有益效果,在此不再赘述。The above-mentioned fourth aspect and the routing device provided in each possible design of the above-mentioned fourth aspect, the beneficial effects of which can refer to the beneficial effects brought by the above-mentioned third aspect and each possible implementation manner of the third aspect, and are not discussed here. Repeat.
第五方面,本申请提供一种通信方法,应用于通信系统,通信系统至少包括一个移动设备、一个路由设备和M个应用服务器,移动设备与路由设备通过Wi-Fi网络建立第一传输通道,路由设备分别与M个应用服务器通过有线网络各自建立M条连接。移动设备安装有N个应用,N个应用中的任意一个应用对应于M个应用服务器中的一个应用服务器,M和N均为正整数。In a fifth aspect, the present application provides a communication method, which is applied to a communication system, where the communication system at least includes a mobile device, a routing device and M application servers, and the mobile device and the routing device establish a first transmission channel through a Wi-Fi network, The routing devices respectively establish M connections with the M application servers through wired networks. The mobile device is installed with N applications, any one of the N applications corresponds to one application server in the M application servers, and both M and N are positive integers.
该通信方法包括:在移动设备检测到移动设备占据Wi-Fi网络的带宽小于预设的第一阈值后,和/或,在移动设备检测到移动设备通过Wi-Fi网络传输的时延大于预设的第二阈值后,移动设备与路由设备通过蜂窝网络建立第二传输通道。移动设备将上传数据拆分为第一数据和第二数据,并将第一数据经由第一传输通道传输至路由设备,将第二数据经由第二传输通道传输至路由设备。上传数据为要被传输至M个应用服务器中的第P个应用服务器的数据。P为大于等于1,且小于等于M的正整数。在路由设备接收到第一数据和第二数据 后,路由设备将第一数据和第二数据组合为上传数据。路由设备将上传数据经由路由设备与M个应用服务器中的第P个应用服务器之间的连接,传输至M个应用服务器中的第P个应用服务器。The communication method includes: after the mobile device detects that the bandwidth occupied by the mobile device on the Wi-Fi network is less than a preset first threshold, and/or when the mobile device detects that the transmission delay of the mobile device through the Wi-Fi network is greater than a predetermined threshold After setting the second threshold, the mobile device and the routing device establish a second transmission channel through the cellular network. The mobile device splits the upload data into first data and second data, transmits the first data to the routing device via the first transmission channel, and transmits the second data to the routing device via the second transmission channel. The upload data is the data to be transmitted to the Pth application server among the M application servers. P is a positive integer greater than or equal to 1 and less than or equal to M. After the routing device receives the first data and the second data, the routing device combines the first data and the second data into upload data. The routing device transmits the uploaded data to the P th application server in the M application servers via the connection between the routing device and the P th application server in the M application servers.
通过第五方面提供的通信方法,移动设备与路由设备通过Wi-Fi网络建立第一传输通道,移动设备与路由设备通过蜂窝网络建立第二传输通道。移动设备将上传数据拆分为第一数据和第二数据,且经由第一传输通道将第一数据传输至路由设备,经由第二传输通道将第二数据传输至路由设备。路由设备将第一数据和第二数据组合成上传数据,并通过路由设备与应用服务器之间的连接,将上传数据传输至应用服务器。从而,本申请在路由设备与移动设备之间实现Wi-Fi网络和移动互联网的双路传输方式,将路由设备作为移动设备与应用服务器之间业务实现的桥梁,及时将移动设备的数据传输至应用服务器,解决了相关技术中需要所有应用服务器具备数据拆分和数据聚合的苛刻要求,方便不同类型的业务的推广,降低了推行成本,还有利于提升数据传输的效率,满足移动设备的大吞吐率的业务需求,为用户带来了高带宽且低时延的通信体验。With the communication method provided in the fifth aspect, the mobile device and the routing device establish a first transmission channel through a Wi-Fi network, and the mobile device and the routing device establish a second transmission channel through a cellular network. The mobile device splits the upload data into first data and second data, and transmits the first data to the routing device via the first transmission channel, and transmits the second data to the routing device via the second transmission channel. The routing device combines the first data and the second data into uploading data, and transmits the uploading data to the application server through the connection between the routing device and the application server. Therefore, the present application implements a dual-channel transmission mode of Wi-Fi network and mobile Internet between the routing device and the mobile device, uses the routing device as a bridge for business realization between the mobile device and the application server, and transmits the data of the mobile device to the mobile device in time. The application server solves the strict requirements of data splitting and data aggregation in related technologies for all application servers, facilitates the promotion of different types of services, reduces the implementation cost, and is also conducive to improving the efficiency of data transmission to meet the large-scale requirements of mobile devices. The service requirements of throughput rate bring users a high-bandwidth and low-latency communication experience.
在一种可能的设计中,在移动设备与路由设备通过蜂窝网络建立第二传输通道之前,该通信方法还包括:在移动设备确定路由设备具有多路传输数据的能力后,移动设备通过蜂窝网络向路由设备发送第二请求,第二请求为对移动设备的与蜂窝网络对应的WAN接口与路由设备的WAN接口之间的传输通道进行PING探测的请求。若移动设备在预设时长内没有通过蜂窝网络接收到路由设备的第二响应,则移动设备和路由设备基于NAT穿越,获取移动设备的网关的IP地址和端口信息,以及路由设备的网关的IP地址和端口信息,第二响应为针对第二请求的响应。移动设备和路由设备确定基于所述移动设备的网关的IP地址和端口信息、路由设备的网关的IP地址和端口信息以及路由设备的WAN接口的IP地址和端口信息,经由所述第二传输通道传输数据。由此,确定出移动设备与路由设备的WAN接口之间的第二传输通道。In a possible design, before the mobile device and the routing device establish the second transmission channel through the cellular network, the communication method further includes: after the mobile device determines that the routing device has the ability to multiplex data, the mobile device through the cellular network A second request is sent to the routing device, where the second request is a request for performing PING detection on the transmission channel between the WAN interface corresponding to the cellular network of the mobile device and the WAN interface of the routing device. If the mobile device does not receive the second response from the routing device through the cellular network within a preset period of time, the mobile device and the routing device obtain the IP address and port information of the gateway of the mobile device and the IP address of the gateway of the routing device based on NAT traversal. address and port information, and the second response is a response to the second request. The mobile device and the routing device determine, via the second transmission channel, based on the IP address and port information of the gateway of the mobile device, the IP address and port information of the gateway of the routing device, and the IP address and port information of the WAN interface of the routing device transfer data. Thereby, the second transmission channel between the mobile device and the WAN interface of the routing device is determined.
在一种可能的设计中,该通信方法还包括:若移动设备在预设时长内通过蜂窝网络接收到路由设备的第二响应,则移动设备和路由设备确定基于路由设备的WAN接口的IP地址和端口信息,经由所述第二传输通道传输数据。由此,确定出移动设备与路由设备的WAN接口之间的第二传输通道。In a possible design, the communication method further includes: if the mobile device receives the second response from the routing device through the cellular network within a preset time period, the mobile device and the routing device determine an IP address based on the WAN interface of the routing device and port information to transmit data via the second transmission channel. Thereby, the second transmission channel between the mobile device and the WAN interface of the routing device is determined.
在一种可能的设计中,移动设备与路由设备通过蜂窝网络建立第二传输通道,包括:移动设备通过蜂窝网络向路由设备发送第三请求,第三请求为通过蜂窝网络建立第二传输通道的请求。路由设备响应于第三请求,通过蜂窝网络向移动设备发送第三响应,第三响应用于表明路由设备已与移动设备通过蜂窝网络建立第二传输通道。由此,为建立第二传输通道做准备,使得移动设备与路由设备均获知第二传输通道已建立。In a possible design, establishing the second transmission channel between the mobile device and the routing device through the cellular network includes: the mobile device sends a third request to the routing device through the cellular network, where the third request is for establishing the second transmission channel through the cellular network ask. In response to the third request, the routing device sends a third response to the mobile device through the cellular network, where the third response is used to indicate that the routing device has established a second transmission channel with the mobile device through the cellular network. In this way, preparations are made for establishing the second transmission channel, so that both the mobile device and the routing device know that the second transmission channel has been established.
在一种可能的设计中,移动设备确定路由设备具有多路传输数据的能力,包括:移动设备经由第一传输通道向路由设备发送第一请求,第一请求为询问路由设备是否具有多路传输数据的能力的请求。在路由设备经由第一传输通道接收到移动设备的第一请求,以及确定路由设备具有多路传输数据的能力后,路由设备经由第一传输通道向移动设备发送第一响应,第一响应为针对第一请求的响应,用于表明路由设备具有多路传输数据的能力。由此,为建立第二传输通道做准备。In a possible design, the mobile device determining that the routing device has the capability of multiplexing data includes: the mobile device sends a first request to the routing device via the first transmission channel, where the first request is to inquire whether the routing device has multiplexing capabilities Data capability request. After the routing device receives the first request of the mobile device via the first transmission channel, and determines that the routing device has the capability of multiplexing data, the routing device sends a first response to the mobile device via the first transmission channel, the first response is for The response to the first request is used to indicate that the routing device has the capability of multiplexing data. Thereby, preparations are made for establishing the second transmission channel.
在一种可能的设计中,第一请求还携带有路由设备的WAN接口的IP地址和端口信息。In a possible design, the first request also carries the IP address and port information of the WAN interface of the routing device.
在一种可能的设计中,M个应用服务器中的第P个应用服务器将下载数据经由路由设备与M个应用服务器中的第P个应用服务器之间的连接,传输至路由设备。下载数据为要被传输至移动设备的数据。路由设备将下载数据拆分为第三数据和第四数据,并将第三数据经由第一传输通道传输至移动设备,将第四数据经由第二传输通道传输至移动设备。在移动设备接收到第三数据和第四数据后,移动设备将第三数据和第四数据组合为下载数据。并基于下载数据,实现与M个应用服务器中的第P个应用服务器对应的应用的业务。In a possible design, the P th application server among the M application servers transmits the download data to the routing device via the connection between the routing device and the P th application server among the M application servers. Download data is the data to be transferred to the mobile device. The routing device splits the downloaded data into third data and fourth data, transmits the third data to the mobile device via the first transmission channel, and transmits the fourth data to the mobile device via the second transmission channel. After the mobile device receives the third data and the fourth data, the mobile device combines the third data and the fourth data into download data. And based on the downloaded data, the service of the application corresponding to the Pth application server in the M application servers is implemented.
通过实施例提供的通信方法,本申请在路由设备与移动设备之间实现Wi-Fi网络和移动互联网的双路传输方式,将路由设备作为移动设备与应用服务器之间业务实现的桥梁,实现了移动设备与应用服务器之间数据的相互传输,解决了相关技术中需要所有应用服务器具备数据拆分和数据聚合的苛刻要求,方便不同类型的业务的推广,降低了推行成本,还有利于提升数据传输的效率,满足移动设备的大吞吐率的业务需求,为用户带来了高带宽且低时延的通信体验。Through the communication method provided by the embodiment, the present application realizes the dual transmission mode of Wi-Fi network and mobile Internet between the routing device and the mobile device, and uses the routing device as a bridge for service realization between the mobile device and the application server, and realizes the The mutual transmission of data between the mobile device and the application server solves the strict requirements of data splitting and data aggregation in all application servers in related technologies, which facilitates the promotion of different types of services, reduces the implementation cost, and is also conducive to improving data. The transmission efficiency meets the service requirements of high throughput of mobile devices, and brings users a high-bandwidth and low-latency communication experience.
在一种可能的设计中,移动设备适配有第一SDK,第一SDK用于支持移动设备与路由设备同时建立第一传输通道和第二传输通道。路由设备适配有第二SDK,第二SDK用于支持路由设备与移动设备同时建立第一传输通道和第二传输通道。有线网络为光纤网络。在移动设备检测到移动设备占据Wi-Fi网络的带宽大于或等于预设的第一阈值后,和/或,在移动设备检测到移动设备通过Wi-Fi网络传输的时延小于或等于预设的第二阈值后,移动设备将上传数据经由第一传输通道传输至路由设备。路由设备将请求响应经由第一传输通道传输至移动设备。由此,无需占用过多资源来传输数据,确保了数据传输方案的完整性。In a possible design, the mobile device is adapted with a first SDK, and the first SDK is used to support the mobile device and the routing device to establish the first transmission channel and the second transmission channel at the same time. The routing device is adapted with a second SDK, and the second SDK is used to support the routing device and the mobile device to establish the first transmission channel and the second transmission channel at the same time. The wired network is an optical fiber network. After the mobile device detects that the bandwidth occupied by the mobile device on the Wi-Fi network is greater than or equal to the preset first threshold, and/or after the mobile device detects that the transmission delay of the mobile device through the Wi-Fi network is less than or equal to the preset After the second threshold, the mobile device transmits the upload data to the routing device via the first transmission channel. The routing device transmits the request response to the mobile device via the first transmission channel. Therefore, it is not necessary to occupy too many resources to transmit data, which ensures the integrity of the data transmission scheme.
第六方面,本申请提供一种通信系统,通信系统至少包括一个移动设备、一个路由设备和M个应用服务器,移动设备与路由设备通过Wi-Fi网络建立第一传输通道,路由设备分别与M个应用服务器通过有线网络各自建立M条连接。移动设备安装有N个应用,N个应用中的任意一个应用对应于M个应用服务器中的一个应用服务器,M和N均为正整数。In a sixth aspect, the present application provides a communication system. The communication system includes at least one mobile device, one routing device, and M application servers. The mobile device and the routing device establish a first transmission channel through a Wi-Fi network, and the routing device and the M application servers respectively establish a first transmission channel. Each application server establishes M connections through the wired network. The mobile device is installed with N applications, any one of the N applications corresponds to one application server in the M application servers, and both M and N are positive integers.
移动设备与路由设备,用于在移动设备检测到移动设备占据Wi-Fi网络的带宽小于预设的第一阈值后,和/或,在移动设备检测到移动设备通过Wi-Fi网络传输的时延大于预设的第二阈值后,通过蜂窝网络建立第二传输通道。移动设备,用于将上传数据拆分为第一数据和第二数据,并将第一数据经由第一传输通道传输至路由设备,将第二数据经由第二传输通道传输至路由设备。上传数据为要被传输至M个应用服务器中的第P个应用服务器的数据。P为大于等于1,且小于等于M的正整数。路由设备,用于在路由设备接收到第一数据和第二数据后,将第一数据和第二数据组合为上传数据。路由设备,用于将上传数据经由路由设备与M个应用服务器中的第P个应用服务器之间的连接,传输至M个应用服务器中的第P个应用服务器。The mobile device and the routing device are used for, after the mobile device detects that the bandwidth occupied by the mobile device on the Wi-Fi network is less than the preset first threshold, and/or when the mobile device detects that the mobile device transmits through the Wi-Fi network After the delay is greater than the preset second threshold, a second transmission channel is established through the cellular network. The mobile device is configured to split the upload data into first data and second data, transmit the first data to the routing device via the first transmission channel, and transmit the second data to the routing device via the second transmission channel. The upload data is the data to be transmitted to the Pth application server among the M application servers. P is a positive integer greater than or equal to 1 and less than or equal to M. The routing device is configured to combine the first data and the second data into upload data after the routing device receives the first data and the second data. The routing device is configured to transmit the uploaded data to the P-th application server in the M application servers via the connection between the routing device and the P-th application server in the M application servers.
在一种可能的设计中,在移动设备与路由设备通过蜂窝网络建立第二传输通道之前,移动设备,还用于在移动设备确定路由设备具有多路传输数据的能力后,通过蜂窝网络向路由设备发送第二请求,第二请求为对移动设备的与蜂窝网络对应的WAN接口与路由设备的WAN接口之间的传输通道进行PING探测的请求。若移动设备在预设时长内没有通过蜂窝网络接收到路由设备的第二响应后,则移动设备和路由设备,用于基于NAT穿越,获取移动设备的网关的IP地址和端口信息,以及路由设备的网关的IP地址和端口信息, 第二响应为针对第二请求的响应。移动设备和路由设备,用于确定基于所述移动设备的网关的IP地址和端口信息、路由设备的网关的IP地址和端口信息以及路由设备的WAN接口的IP地址和端口信息,经由所述第二传输通道传输数据。In a possible design, before the mobile device and the routing device establish the second transmission channel through the cellular network, the mobile device is further configured to, after the mobile device determines that the routing device has the capability of multiplexing data, transmit data to the routing device through the cellular network The device sends a second request, where the second request is a request for performing PING detection on the transmission channel between the WAN interface corresponding to the cellular network of the mobile device and the WAN interface of the routing device. If the mobile device does not receive the second response from the routing device through the cellular network within a preset period of time, the mobile device and the routing device are used to obtain the IP address and port information of the gateway of the mobile device based on NAT traversal, and the routing device The IP address and port information of the gateway, and the second response is a response to the second request. The mobile device and the routing device are used to determine the IP address and port information of the gateway based on the mobile device, the IP address and port information of the gateway of the routing device, and the IP address and port information of the WAN interface of the routing device. Two transmission channels transmit data.
在一种可能的设计中,若移动设备在预设时长内通过蜂窝网络接收到路由设备的第二响应,则移动设备和路由设备,还用于确定基于路由设备的WAN接口的IP地址和端口信息,经由所述第二传输通道传输数据。In a possible design, if the mobile device receives the second response from the routing device through the cellular network within a preset time period, the mobile device and the routing device are further used to determine the IP address and port based on the WAN interface of the routing device information, and data is transmitted via the second transmission channel.
在一种可能的设计中,移动设备,具体用于通过蜂窝网络向路由设备发送第三请求,第三请求为通过蜂窝网络建立第二传输通道的请求。路由设备,用于响应于第三请求,通过蜂窝网络向移动设备发送第三响应,第三响应用于表明路由设备已与移动设备通过蜂窝网络建立第二传输通道。In a possible design, the mobile device is specifically configured to send a third request to the routing device through the cellular network, where the third request is a request to establish a second transmission channel through the cellular network. The routing device is configured to send a third response to the mobile device through the cellular network in response to the third request, where the third response is used to indicate that the routing device has established a second transmission channel with the mobile device through the cellular network.
在一种可能的设计中,移动设备,具体用于经由第一传输通道向路由设备发送第一请求,第一请求为询问路由设备是否具有多路传输数据的能力的请求。路由设备,用于在路由设备接收移动设备的第一请求,以及确定路由设备具有多路传输数据的能力后,经由第一传输通道向移动设备发送第一响应,第一响应为针对第一请求的响应,用于表明路由设备具有多路传输数据的能力。In a possible design, the mobile device is specifically configured to send a first request to the routing device via the first transmission channel, where the first request is a request for inquiring whether the routing device has the capability of multiplexing data. A routing device, configured to send a first response to the mobile device via the first transmission channel after the routing device receives the first request of the mobile device and determines that the routing device has the capability of multiplexing data, where the first response is directed to the first request The response is used to indicate that the routing device is capable of multiplexing data.
在一种可能的设计中,第一请求还携带有路由设备的WAN接口的IP地址和端口信息。In a possible design, the first request also carries the IP address and port information of the WAN interface of the routing device.
在一种可能的设计中,M个应用服务器中的第P个应用服务器,用于将下载数据经由路由设备与M个应用服务器中的第P个应用服务器之间的连接,传输至路由设备。下载数据为要被传输至移动设备的数据。路由设备,用于将下载数据拆分为第三数据和第四数据,并将第三数据经由第一传输通道传输至移动设备,将第四数据经由第二传输通道传输至移动设备。移动设备,用于在移动设备接收到第三数据和第四数据后,将第三数据和第四数据组合为下载数据。并基于下载数据,实现与M个应用服务器中的第P个应用服务器对应的应用的业务。In a possible design, the P th application server among the M application servers is configured to transmit the download data to the routing device via the connection between the routing device and the P th application server among the M application servers. Download data is the data to be transferred to the mobile device. The routing device is configured to split the download data into third data and fourth data, transmit the third data to the mobile device via the first transmission channel, and transmit the fourth data to the mobile device via the second transmission channel. The mobile device is configured to combine the third data and the fourth data into download data after the mobile device receives the third data and the fourth data. And based on the downloaded data, the service of the application corresponding to the Pth application server in the M application servers is implemented.
在一种可能的设计中,移动设备适配有第一SDK,第一SDK用于支持移动设备与路由设备同时建立第一传输通道和第二传输通道。路由设备适配有第二SDK,第二SDK用于支持路由设备与移动设备同时建立第一传输通道和第二传输通道。有线网络为光纤网络。在移动设备检测到移动设备占据Wi-Fi网络的带宽大于或等于预设的第一阈值后,和/或,在移动设备检测到移动设备通过Wi-Fi网络传输的时延小于或等于预设的第二阈值后,移动设备,还用于将上传数据经由第一传输通道传输至路由设备。路由设备,还用于将请求响应经由第一传输通道传输至移动设备。In a possible design, the mobile device is adapted with a first SDK, and the first SDK is used to support the mobile device and the routing device to establish the first transmission channel and the second transmission channel at the same time. The routing device is adapted with a second SDK, and the second SDK is used to support the routing device and the mobile device to establish the first transmission channel and the second transmission channel at the same time. The wired network is an optical fiber network. After the mobile device detects that the bandwidth occupied by the mobile device on the Wi-Fi network is greater than or equal to the preset first threshold, and/or after the mobile device detects that the transmission delay of the mobile device through the Wi-Fi network is less than or equal to the preset After the second threshold, the mobile device is further configured to transmit the uploaded data to the routing device via the first transmission channel. The routing device is further configured to transmit the request response to the mobile device via the first transmission channel.
上述第六方面以及上述第六方面的各可能的设计中所提供的通信系统,其有益效果可以参见上述第五方面和第五方面的各可能的实施方式所带来的有益效果,在此不再赘述。The above-mentioned sixth aspect and the communication system provided in each possible design of the above-mentioned sixth aspect, the beneficial effects of which can be referred to the beneficial effects brought by the above-mentioned fifth aspect and each possible implementation manner of the fifth aspect. Repeat.
第七方面,本申请提供一种可读存储介质,可读存储介质中存储有执行指令,当移动设备的至少一个处理器执行该执行指令时,移动设备执行第一方面及第一方面任一种可能的设计中的通信方法。In a seventh aspect, the present application provides a readable storage medium, in which an execution instruction is stored, and when at least one processor of a mobile device executes the execution instruction, the mobile device executes any one of the first aspect and the first aspect. communication methods in a possible design.
第八方面,本申请提供一种可读存储介质,可读存储介质中存储有执行指令,当路由设备的至少一个处理器执行该执行指令时,路由设备执行第三方面及第三方面任一种可能的设计中的通信方法。In an eighth aspect, the present application provides a readable storage medium, where an execution instruction is stored in the readable storage medium, and when at least one processor of the routing device executes the execution instruction, the routing device executes any one of the third aspect and the third aspect. communication methods in a possible design.
第九方面,本申请提供一种程序产品,该程序产品包括执行指令,该执行指令存储在 可读存储介质中。移动设备的至少一个处理器可以从可读存储介质读取该执行指令,至少一个处理器执行该执行指令使得移动设备实施第一方面及第一方面任一种可能的设计中的通信方法。In a ninth aspect, the present application provides a program product, the program product includes execution instructions, and the execution instructions are stored in a readable storage medium. At least one processor of the mobile device can read the execution instructions from the readable storage medium, and the at least one processor executes the execution instructions to cause the mobile device to implement the first aspect and the communication method in any possible design of the first aspect.
第十方面,本申请提供一种程序产品,该程序产品包括执行指令,该执行指令存储在可读存储介质中。路由设备的至少一个处理器可以从可读存储介质读取该执行指令,至少一个处理器执行该执行指令使得路由设备实施第三方面及第三方面任一种可能的设计中的通信方法。In a tenth aspect, the present application provides a program product, the program product includes execution instructions, and the execution instructions are stored in a readable storage medium. At least one processor of the routing device can read the execution instruction from the readable storage medium, and the at least one processor executes the execution instruction to cause the routing device to implement the communication method in the third aspect and any possible design of the third aspect.
第十一方面,本申请提供一种芯片,芯片与存储器相连,或者芯片上集成有存储器,当存储器中存储的软件程序被执行时,实现第一方面及第一方面任一种可能的设计中的通信方法。In an eleventh aspect, the present application provides a chip. The chip is connected to a memory, or a memory is integrated on the chip. When a software program stored in the memory is executed, the first aspect and any possible design of the first aspect are realized. communication method.
第十二方面,本申请提供一种芯片,芯片与存储器相连,或者芯片上集成有存储器,当存储器中存储的软件程序被执行时,实现第三方面及第三方面任一种可能的设计中的通信方法。In a twelfth aspect, the present application provides a chip. The chip is connected to a memory, or a memory is integrated on the chip. When a software program stored in the memory is executed, the third aspect and any of the possible designs of the third aspect are implemented. communication method.
附图说明Description of drawings
图1为一种通信系统的架构示意图;1 is a schematic diagram of the architecture of a communication system;
图2为本申请实施例提供的一种通信系统的架构示意图;FIG. 2 is a schematic diagram of the architecture of a communication system provided by an embodiment of the present application;
图3为本申请实施例提供的一种移动设备的结构示意图;3 is a schematic structural diagram of a mobile device according to an embodiment of the present application;
图4为本申请实施例提供的一种路由设备的结构示意图;FIG. 4 is a schematic structural diagram of a routing device according to an embodiment of the present application;
图5为本申请实施例提供的一种移动设备与路由设备的软件结构框图;5 is a software structural block diagram of a mobile device and a routing device provided by an embodiment of the present application;
图6为本申请实施例提供的一种通信方法的信令流程图;FIG. 6 is a signaling flowchart of a communication method provided by an embodiment of the present application;
图7为本申请实施例提供的一种通信方法的信令流程图;FIG. 7 is a signaling flowchart of a communication method provided by an embodiment of the present application;
图8为本申请一实施例提供的一种移动设备的结构示意图;FIG. 8 is a schematic structural diagram of a mobile device according to an embodiment of the present application;
图9为本申请一实施例提供的一种路由设备的结构示意图。FIG. 9 is a schematic structural diagram of a routing device according to an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present application.
需要说明的是,本申请实施例“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系。例如,A和/或B,表示:单独存在A,同时存在A和B,单独存在B这三种情况。It should be noted that "and/or" in the embodiment of the present application is only an association relationship describing the associated objects, which means that there may be three kinds of relationships. For example, A and/or B means: A alone exists, A and B exist at the same time, and B exists alone.
本申请实施例的说明书和权利要求书中“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序,也不用于限制具体数量。例如,第一目标对象和第二目标对象等是用于区别不同的目标对象,而不是用于描述目标对象的特定顺序,也不限制目标对象的具体数量。In the description and claims of the embodiments of the present application, "first" and "second" etc. are used to distinguish different objects, but are not used to describe the specific order of the objects, nor are they used to limit the specific quantity. For example, the first target object and the second target object are used to distinguish different target objects, not to describe a specific order of the target objects, nor to limit the specific number of the target objects.
在本申请实施例中,“示例性的”或者“例如”等用于作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其 它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, "exemplary" or "for example" and the like are used as examples, illustrations or descriptions. Any embodiment or design described in the embodiments of the present application as "exemplary" or "such as" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.
在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。In the description of the embodiments of the present application, unless otherwise specified, the meaning of "plurality" refers to two or more.
通常来说,任何一种网络在覆盖上都存在死角区域,比如Wi-Fi网络和蜂窝网络。在移动设备位于死角区域时,移动设备只使用一种网络,会在该种网络的传输速率低下,影响用户使用。或者,移动设备位于区域的网络性能良好,但移动设备较多,也会使得传输速率低下,影响用户使用。以Wi-Fi网络为例说明。例如,用户在饭馆用餐时,若饭馆内用户处的Wi-Fi网络性能较差,如带宽不足,则用户在通过移动设备观看网络视频等大吞吐率业务时,视频会经常卡顿,影响用户体验。若饭馆内用户处的Wi-Fi网络性能良好,如带宽较好,但接入该Wi-Fi网络的移动设备数量较多,导致移动设备之间的干扰增大,使得传输速率下降,则用户在通过移动设备观看网络视频等大吞吐率业务时,视频也会经常卡顿,影响用户体验。Generally speaking, any kind of network has dead space in coverage, such as Wi-Fi network and cellular network. When the mobile device is located in the dead zone area, the mobile device only uses one kind of network, and the transmission rate of this kind of network will be low, which will affect the user's use. Or, the network performance in the area where the mobile device is located is good, but there are many mobile devices, which will also reduce the transmission rate and affect the use of the user. Take a Wi-Fi network as an example. For example, when a user is dining in a restaurant, if the Wi-Fi network performance of the user in the restaurant is poor, such as insufficient bandwidth, when the user watches high-throughput services such as online video through a mobile device, the video will often freeze, affecting the user. experience. If the performance of the Wi-Fi network at the user in the restaurant is good, for example, the bandwidth is good, but the number of mobile devices connected to the Wi-Fi network is large, which increases the interference between mobile devices and reduces the transmission rate. When viewing high-throughput services such as online video on mobile devices, the video often freezes, affecting user experience.
为了解决单一网络下可能出现的传输速率低下,影响用户使用的问题,推出了多种网络的多路传输方式。比如,Wi-Fi网络和蜂窝网络的双路传输方式。Wi-Fi网络和蜂窝网络的双路传输方式,能够在其中一个网络的信号较弱时,另一个网络迅速补足,稳定传输速率,得到广泛应用。该方式可实现蜂窝网络和Wi-Fi网络的双上行聚合,即移动设备与任意一个应用服务器之间可同时建立蜂窝网络和Wi-Fi网络的双路传输通道。其中,应用服务器是移动设备在打开某个应用后,为获取该应用的数据和/或实现该应用的功能,所访问的该应用所对应的服务器。比如,即时通讯应用A安装在移动设备上,在用户点击移动设备上的即时通讯应用A的图标后,与即时通讯应用A对应的应用服务器就收到用户要启动该应用的请求,该应用服务器返回相应的数据至该移动设备。In order to solve the problem that the transmission rate may be low under a single network and affect the use of users, multiple network transmission methods have been introduced. For example, the two-way transmission method of Wi-Fi network and cellular network. The two-way transmission method of Wi-Fi network and cellular network can quickly supplement the signal of one network when the signal of the other network is weak, and stabilize the transmission rate, which is widely used. This method can realize dual uplink aggregation of the cellular network and the Wi-Fi network, that is, a dual transmission channel of the cellular network and the Wi-Fi network can be established simultaneously between the mobile device and any application server. The application server is a server corresponding to the application accessed by the mobile device after opening an application in order to obtain the data of the application and/or realize the function of the application. For example, if instant messaging application A is installed on a mobile device, after the user clicks the icon of instant messaging application A on the mobile device, the application server corresponding to instant messaging application A receives a request from the user to start the application, and the application server Return the corresponding data to the mobile device.
下面以图1所示架构为例,示例性地进一步说明。如图1所示,Wi-Fi网络和蜂窝网络的双路传输方式的系统包含移动设备101、第一应用服务器102和第二应用服务器103。移动设备101安装有客户端软件开发工具包(client_Software Development Kit,C_SDK),第一应用服务器102和第二应用服务器103都安装有服务端软件开发工具包(server_Software Development Kit,S_SDK)。其中,C_SDK为通过双路传输方式与S_SDK相互传输数据的客户端软件开发工具包;C_SDK负责移动设备101的传输通道建立、传输通道度量、数据包拆包发送、数据包接收组合以及业务白名单等。S_SDK为通过双路传输方式与C_SDK相互传输数据的服务端软件开发工具包;S_SDK负责应用服务器(102和103)中的数据包接收聚合以及数据包拆分发送等。移动设备101通过蜂窝网络104和Wi-Fi网络105连接第一应用服务器102,实现双路传输;同样地,移动设备101通过蜂窝网络104和Wi-Fi网络105连接第二应用服务器103,实现双路传输。以移动设备101与第一应用服务器102之间的通信为例,在Wi-Fi网络105的性能较好时,移动设备101通过Wi-Fi网络105传输数据至第一应用服务器102,第一应用服务器102通过Wi-Fi网络105传输数据至移动设备101;此时蜂窝网络104可不被使用,或者蜂窝网络104可被使用蜂窝网络104的带宽较少。在Wi-Fi网络105的性能较差时,移动设备101通过蜂窝网络104传输数据至第一应用服务器102,第一应用服务器102通过蜂窝网络104传输数据至移动设 备101;此时Wi-Fi网络105可不被使用,或者Wi-Fi网络105可被使用的带宽较少。这样,两路网络总体的传输带宽保持一致,或者变化较小,即使用户在观看网络视频等大吞吐率业务时,视频也会保持同样的流畅度,用户体验较好。The following takes the architecture shown in FIG. 1 as an example to further illustrate by way of example. As shown in FIG. 1 , the system of the dual transmission mode of the Wi-Fi network and the cellular network includes a mobile device 101 , a first application server 102 and a second application server 103 . The mobile device 101 is installed with a client software development kit (client_Software Development Kit, C_SDK), and both the first application server 102 and the second application server 103 are installed with a server software development kit (server_Software Development Kit, S_SDK). Among them, C_SDK is a client software development kit that transmits data to and from S_SDK through two-way transmission; C_SDK is responsible for the establishment of the transmission channel of the mobile device 101, the measurement of the transmission channel, the unpacking and sending of data packets, the combination of data packet reception and the service whitelist. Wait. S_SDK is a server-side software development kit that transmits data to and from C_SDK through two-way transmission; S_SDK is responsible for data packet reception and aggregation in application servers (102 and 103), and data packet splitting and sending. The mobile device 101 connects to the first application server 102 through the cellular network 104 and the Wi-Fi network 105 to realize dual transmission; similarly, the mobile device 101 connects to the second application server 103 through the cellular network 104 and the Wi-Fi network 105 to realize dual transmission. road transmission. Taking the communication between the mobile device 101 and the first application server 102 as an example, when the performance of the Wi-Fi network 105 is good, the mobile device 101 transmits data to the first application server 102 through the Wi-Fi network 105, and the first application Server 102 transmits data to mobile device 101 via Wi-Fi network 105; cellular network 104 may not be used at this time, or cellular network 104 may be used with less bandwidth of cellular network 104. When the performance of the Wi-Fi network 105 is poor, the mobile device 101 transmits data to the first application server 102 through the cellular network 104, and the first application server 102 transmits data to the mobile device 101 through the cellular network 104; at this time, the Wi-Fi network 105 may not be used, or the Wi-Fi network 105 may be used with less bandwidth. In this way, the overall transmission bandwidth of the two networks remains the same, or the change is small. Even when the user is watching high-throughput services such as online video, the video will maintain the same smoothness, and the user experience will be better.
需要说明的是,图1所示的Wi-Fi网络和蜂窝网络的双路传输方式的系统还包含:路由设备106。移动设备101通过Wi-Fi网络105传输数据至路由设备106,路由设备106再分别传输数据至第一应用服务器102和第二应用服务器103,第一应用服务器102和第二应用服务器103通过Wi-Fi网络105分别传输数据至路由设备106,路由设备106再传输数据给移动设备101。It should be noted that the system of the dual transmission mode of the Wi-Fi network and the cellular network shown in FIG. 1 further includes: a routing device 106 . The mobile device 101 transmits data to the routing device 106 through the Wi-Fi network 105, and the routing device 106 transmits the data to the first application server 102 and the second application server 103 respectively, and the first application server 102 and the second application server 103 through the Wi-Fi The Fi network 105 respectively transmits the data to the routing device 106 , which in turn transmits the data to the mobile device 101 .
以第一应用服务器102为例说明。具体来说,当移动设备101有业务数据请求时,移动设备101中的C_SDK判断对应的业务是否在业务白名单中。如果在,则C_SDK可以根据蜂窝网络104和Wi-Fi网络105的传输通道各自的能力(如带宽和/或时延),将不同的数据包分配到两路传输通道上同时分发至第一应用服务器102中的S_SDK。与此同时,该S_SDK会检测并接收这两路传输通道上的数据包,且基于发端组合顺序,对从这两路传输通道上接收到的数据包进行聚合,得到移动设备101的数据请求。该S_SDK基于移动设备101的数据请求,得到数据响应。该S_SDK将数据响应拆分为不同的数据包,并将不同的数据包分配到这两路传输通道上同时发送给该移动设备101中的C_SDK。与此同时,该C_SDK会检测并接收该两路传输通道上的数据包,且基于发端组合顺序,对从这两路传输通道上接收到的数据包进行聚合,得到数据响应。该C_SDK再将数据响应转给移动设备101对应的应用,使得应用实现相应的业务。从而,移动设备101与应用服务器102之间通过双路传输方式,增加了带宽且降低了时延。The first application server 102 is taken as an example for description. Specifically, when the mobile device 101 has a service data request, the C_SDK in the mobile device 101 determines whether the corresponding service is in the service whitelist. If so, the C_SDK can distribute different data packets to the two transmission channels simultaneously to the first application according to the respective capabilities (such as bandwidth and/or delay) of the transmission channels of the cellular network 104 and the Wi-Fi network 105 S_SDK in server 102. At the same time, the S_SDK detects and receives the data packets on the two transmission channels, and aggregates the data packets received from the two transmission channels based on the combination sequence of the originating end to obtain the data request of the mobile device 101 . The S_SDK obtains a data response based on the data request of the mobile device 101 . The S_SDK splits the data response into different data packets, and distributes the different data packets to the two transmission channels and sends them to the C_SDK in the mobile device 101 at the same time. At the same time, the C_SDK detects and receives the data packets on the two transmission channels, and aggregates the data packets received from the two transmission channels based on the combination sequence of the originator to obtain a data response. The C_SDK then transfers the data response to the application corresponding to the mobile device 101, so that the application implements the corresponding service. Therefore, the two-way transmission between the mobile device 101 and the application server 102 increases the bandwidth and reduces the delay.
需要说明的是,图1中的第一应用服务器102和第二应用服务器103仅为对应用服务器的示意性举例,并非用于限制应用服务器的数量。实际上,应用服务器与移动设备101上安装应用相对应,应用服务器的数量可以达到数千甚至更多。It should be noted that the first application server 102 and the second application server 103 in FIG. 1 are only illustrative examples of application servers, and are not used to limit the number of application servers. In fact, the application servers correspond to the applications installed on the mobile device 101, and the number of application servers may reach thousands or even more.
不过,上述的多种网络的多路传输方式,需要移动设备以及移动设备可能连接的所有应用服务器都预先进行适配,导致成本较高,不利于推广。仍以图1的Wi-Fi网络105和蜂窝网络104的双路传输方式的系统架构为例。在图1中,需要预先在移动设备101中安装有C_SDK,以及预先在第一应用服务器102和第二应用服务器103中都安装有S_SDK。也就是说,移动设备101上安装应用所对应的应用服务器,均需要预先安装有S_SDK。比如移动设备101安装有100个不同的应用,这100个应用各自对应的应用服务器均需要预先按照S_SDK。这就使得上述方式的推广受到一定限制,推广成本较高。如何提供一种利于推广的Wi-Fi网络和蜂窝网络的双路传输方式,成为我们的需求。However, the above-mentioned multiplex transmission modes of various networks require that the mobile device and all the application servers that the mobile device may be connected to be pre-adapted, resulting in high cost and unfavorable promotion. Still take the system architecture of the dual transmission mode of the Wi-Fi network 105 and the cellular network 104 in FIG. 1 as an example. In FIG. 1 , the mobile device 101 needs to be pre-installed with C_SDK, and both the first application server 102 and the second application server 103 need to be pre-installed with S_SDK. That is to say, the application server corresponding to the application installed on the mobile device 101 needs to be pre-installed with S_SDK. For example, the mobile device 101 is installed with 100 different applications, and the application servers corresponding to the 100 applications need to follow the S_SDK in advance. This makes the promotion of the above methods subject to certain restrictions, and the promotion cost is relatively high. How to provide a two-way transmission method of Wi-Fi network and cellular network that is conducive to promotion has become our demand.
图2为本申请实施例提供的一种通信系统的架构示意图。如图2所示,本申请的通信系统包括:移动设备100、路由设备200和M个应用服务器300(business server),M为正整数。FIG. 2 is a schematic structural diagram of a communication system according to an embodiment of the present application. As shown in FIG. 2, the communication system of the present application includes: a mobile device 100, a routing device 200, and M application servers 300 (business servers), where M is a positive integer.
本申请中,移动设备100与路由设备200之间可以建立多连接/多路径(multi path,MP)。MP包括至少一个第一传输通道和至少一个第二传输通道。其中,本申请对MP中的第一传输通道和第二传输通道的数量不做限定。另外,MP也可以包括至少两个第一传输通道。In this application, a multi-connection/multi-path (multi-path, MP) may be established between the mobile device 100 and the routing device 200 . The MP includes at least one first transmission channel and at least one second transmission channel. The application does not limit the number of the first transmission channel and the second transmission channel in the MP. In addition, the MP may also include at least two first transmission channels.
第一传输通道指的是,通过Wi-Fi网络400建立的传输通道,即移动设备100的与Wi-Fi网络400对应的广域网(wide area network,WAN)接口1与路由设备200的局域网(local area network,LAN)接口3之间的传输通道。The first transmission channel refers to the transmission channel established through the Wi-Fi network 400, that is, the wide area network (WAN) interface 1 of the mobile device 100 corresponding to the Wi-Fi network 400 and the local area network (local area network) of the routing device 200. area network, LAN) transmission channel between interfaces 3.
其中,移动设备100的WAN接口1的IP地址与路由设备200的LAN接口3的IP地址属于同一个区段。例如,假设路由设备200的LAN接口3的IP地址为192.168.1.1。若移动设备100接入路由设备200的Wi-Fi网络400,则路由设备200可以为移动设备100的与Wi-Fi网络400对应的WAN接口1分配IP地址,如192.168.1.1,或者,192.168.1.10,使得移动设备100与路由设备200可以经由第一传输通道可以相互传输数据。The IP address of the WAN interface 1 of the mobile device 100 and the IP address of the LAN interface 3 of the routing device 200 belong to the same segment. For example, assume that the IP address of LAN interface 3 of routing device 200 is 192.168.1.1. If the mobile device 100 accesses the Wi-Fi network 400 of the routing device 200, the routing device 200 can assign an IP address to the WAN interface 1 of the mobile device 100 corresponding to the Wi-Fi network 400, such as 192.168.1.1, or 192.168. 1.10, so that the mobile device 100 and the routing device 200 can mutually transmit data via the first transmission channel.
第二传输通道指的是,通过蜂窝网络500建立的传输通道,即移动设备100通过蜂窝网络500与路由设备200之间的传输通道。其中,常见的蜂窝网络500的类型有:全球移动通信系统(global system for mobile communications,GSM)网络、增强型数据速率GSM演进系统(enhanced data rate for GSM evolution,EDGE)网络、宽带码分多址系统(wideband code division multiple access,WCDMA)网络、码分多址2000系统(code division multiple access,CDMA2000)网络、时分同步码分多址系统(time division-synchronization code division multiple access,TD-SCDMA)网络,长期演进系统(long term evolution,LTE)网络、5G新无线电(new radio,NR)网络及下一代移动网络等。The second transmission channel refers to the transmission channel established through the cellular network 500 , that is, the transmission channel between the mobile device 100 and the routing device 200 through the cellular network 500 . Among them, the common types of cellular network 500 are: global system for mobile communications (GSM) network, enhanced data rate for GSM evolution (EDGE) network, wideband code division multiple access System (wideband code division multiple access, WCDMA) network, code division multiple access 2000 system (code division multiple access, CDMA2000) network, time division synchronous code division multiple access system (time division-synchronization code division multiple access, TD-SCDMA) network , Long Term Evolution (LTE) network, 5G New Radio (NR) network and next-generation mobile network, etc.
本领域技术人员可以理解,移动设备100通过移动设备100的与蜂窝网络500对应的WAN接口2,需要经由移动设备100接入的运营商互联网网关设备(即移动设备100的网关600)、运营商互联网以及路由设备200接入的运营商互联网网关设备(即路由设备200的网关700),才能给将数据传输给路由设备200的WAN接口4。Those skilled in the art can understand that, through the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500, the mobile device 100 needs to access the operator's Internet gateway device (ie the gateway 600 of the mobile device 100), the operator's Internet gateway device (ie the gateway 600 of the mobile device 100), Only the Internet and the carrier's Internet gateway device (ie, the gateway 700 of the routing device 200 ) to which the routing device 200 is connected can provide the WAN interface 4 that transmits data to the routing device 200 .
需要说明的是,移动设备100的网关600和路由设备200的网关700可以为同一个网关,也可以为不同的网关,本申请对此不做限定。It should be noted that the gateway 600 of the mobile device 100 and the gateway 700 of the routing device 200 may be the same gateway or different gateways, which are not limited in this application.
在一些实施例中,移动设备100的与蜂窝网络500对应的WAN接口2与路由设备200的WAN接口4之间能给直接传输数据,则第二传输通道,即为移动设备100的与蜂窝网络500对应的WAN接口2与路由设备200的WAN接口4之间的传输通道。In some embodiments, data can be directly transmitted between the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 and the WAN interface 4 of the routing device 200, then the second transmission channel is the communication between the mobile device 100 and the cellular network. The transmission channel between the WAN interface 2 corresponding to 500 and the WAN interface 4 of the routing device 200 .
由此,移动设备100需要获知路由设备200的WAN接口4的IP地址和端口信息,且路由设备200需要获知移动设备100的与蜂窝网络500对应的WAN接口2的IP地址和端口信息。需要说明的是,路由设备200的WAN接口4的IP地址和端口信息也可以替代为路由设备200的WAN接口4的域名和端口信息,本申请对此不做限定。Therefore, the mobile device 100 needs to know the IP address and port information of the WAN interface 4 of the routing device 200, and the routing device 200 needs to know the IP address and port information of the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500. It should be noted that the IP address and port information of the WAN interface 4 of the routing device 200 may also be replaced by the domain name and port information of the WAN interface 4 of the routing device 200, which are not limited in this application.
其中,移动设备100获知路由设备200的WAN接口4的IP地址和端口信息的具体实现过程为:路由设备200的LAN接口3可以向移动设备100的与Wi-Fi网络400对应的WAN接口1发送路由设备200的WAN接口4的IP地址和端口信息。The specific implementation process for the mobile device 100 to learn the IP address and port information of the WAN interface 4 of the routing device 200 is as follows: the LAN interface 3 of the routing device 200 can send the data to the WAN interface 1 of the mobile device 100 corresponding to the Wi-Fi network 400 IP address and port information of the WAN interface 4 of the routing device 200 .
其中,路由设备200获知移动设备100的与蜂窝网络500对应的WAN接口2的IP地址和端口信息的具体实现过程为:移动设备100通过移动设备100的与Wi-Fi网络400对应的WAN接口1可以向路由设备200的LAN接口3发送移动设备100的与蜂窝网络500对应的WAN接口2的IP地址和端口信息。The specific implementation process for the routing device 200 to learn the IP address and port information of the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 is as follows: the mobile device 100 passes the WAN interface 1 of the mobile device 100 that corresponds to the Wi-Fi network 400 . The IP address and port information of the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 may be sent to the LAN interface 3 of the routing device 200 .
综上,移动设备100基于路由设备200的WAN接口4的IP地址和端口信息,通过移动设备100的与蜂窝网络500对应的WAN接口2,可以向路由设备200的WAN接口4传输数据。且路由设备200基于移动设备100的与蜂窝网络500对应的WAN接口2的IP地址和端口信息,通 过路由设备200的WAN接口4,可以向移动设备100的与蜂窝网络500对应的WAN接口2传输数据。In summary, the mobile device 100 can transmit data to the WAN interface 4 of the routing device 200 through the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 based on the IP address and port information of the WAN interface 4 of the routing device 200 . And the routing device 200 can transmit to the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 through the WAN interface 4 of the routing device 200 based on the IP address and port information of the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500. data.
在另一些实施例中,移动设备100的与蜂窝网络500对应的WAN接口2与路由设备200的WAN接口4之间通常无法传输数据,则第二传输通道,即为移动设备100的与蜂窝网络500对应的WAN接口2经由运营商互联网与路由设备200的WAN接口4之间的传输通道。In other embodiments, data cannot usually be transmitted between the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 and the WAN interface 4 of the routing device 200, and the second transmission channel is the communication between the mobile device 100 and the cellular network. The WAN interface 2 corresponding to 500 is via a transmission channel between the carrier Internet and the WAN interface 4 of the routing device 200 .
由此,移动设备100需要获知移动设备100的网关600的IP地址和端口信息、路由设备200的网关700的IP地址和端口信息、以及路由设备200的WAN接口4的IP地址和端口信息,且路由设备200需要获知移动设备100的网关600的IP地址和端口信息、路由设备200的网关700的IP地址和端口信息、以及移动设备100的与蜂窝网络500对应的WAN接口2的IP地址和端口信息。Therefore, the mobile device 100 needs to know the IP address and port information of the gateway 600 of the mobile device 100, the IP address and port information of the gateway 700 of the routing device 200, and the IP address and port information of the WAN interface 4 of the routing device 200, and The routing device 200 needs to know the IP address and port information of the gateway 600 of the mobile device 100, the IP address and port information of the gateway 700 of the routing device 200, and the IP address and port of the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 information.
其中,移动设备100获知路由设备200的WAN接口4的IP地址和端口信息的具体实现过程可参见前述描述,路由设备200获知移动设备100的与蜂窝网络500对应的WAN接口2的IP地址和端口信息的具体实现过程可参见前述描述,此处均不做赘述。The specific implementation process for the mobile device 100 to learn the IP address and port information of the WAN interface 4 of the routing device 200 may refer to the foregoing description, and the routing device 200 learns the IP address and port of the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 For the specific implementation process of the information, reference may be made to the foregoing description, which will not be repeated here.
其中,移动设备100获知移动设备100的网关600的IP地址和端口信息的具体实现过程为:移动设备100借助网络地址转换(network address translation,NAT)穿越技术,通过移动设备100的与蜂窝网络500对应的WAN接口2,经由移动设备100的网关600向云端服务器800发送穿越请求,使得云端服务器800可以获得移动设备100的网关600的IP地址和端口信息。云端服务器800经由移动设备100的网关600,向移动设备100的与蜂窝网络500对应的WAN接口2发送移动设备100的网关600的IP地址和端口信息。The specific implementation process for the mobile device 100 to learn the IP address and port information of the gateway 600 of the mobile device 100 is as follows: the mobile device 100 uses the network address translation (NAT) traversal technology to communicate with the cellular network 500 through the mobile device 100 The corresponding WAN interface 2 sends a traversal request to the cloud server 800 via the gateway 600 of the mobile device 100 , so that the cloud server 800 can obtain the IP address and port information of the gateway 600 of the mobile device 100 . The cloud server 800 sends the IP address and port information of the gateway 600 of the mobile device 100 to the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 via the gateway 600 of the mobile device 100 .
其中,路由设备200获知移动设备100的网关600的IP地址和端口信息的具体实现过程为:移动设备100通过移动设备100的与Wi-Fi网络400对应的WAN接口1,向路由设备200的LAN接口3发送移动设备100的网关600的IP地址和端口信息。The specific implementation process for the routing device 200 to learn the IP address and port information of the gateway 600 of the mobile device 100 is as follows: The interface 3 sends the IP address and port information of the gateway 600 of the mobile device 100 .
其中,路由设备200获知路由设备200的网关700的IP地址和端口信息的具体实现过程为:路由设备200借助NAT穿越技术,通过路由设备200的WAN接口4,经由路由设备200的网关700向云端服务器800发送穿越请求,使得云端服务器800可以获得路由设备200的网关700的IP地址和端口信息。云端服务器800经由路由设备200的网关700,向路由设备200的WAN接口4发送路由设备200的网关700的IP地址和端口信息。The specific implementation process for the routing device 200 to learn the IP address and port information of the gateway 700 of the routing device 200 is as follows: the routing device 200 uses the NAT traversal technology to pass the WAN interface 4 of the routing device 200 to the cloud through the gateway 700 of the routing device 200. The server 800 sends a traversal request, so that the cloud server 800 can obtain the IP address and port information of the gateway 700 of the routing device 200 . The cloud server 800 sends the IP address and port information of the gateway 700 of the routing device 200 to the WAN interface 4 of the routing device 200 via the gateway 700 of the routing device 200 .
其中,移动设备100获知路由设备200的网关700的IP地址和端口信息的具体实现过程为:路由设备200通过路由设备200的LAN接口3,向移动设备100的与Wi-Fi网络400对应的WAN接口1发送路由设备200的网关700的IP地址和端口信息。The specific implementation process for the mobile device 100 to learn the IP address and port information of the gateway 700 of the routing device 200 is: The interface 1 sends the IP address and port information of the gateway 700 of the routing device 200 .
综上,移动设备100基于移动设备100的网关600的IP地址和端口信息、路由设备200的网关700的IP地址和端口信息、以及路由设备200的WAN接口4的IP地址和端口信息,通过移动设备100的与蜂窝网络500对应的WAN接口2,经由移动设备100的网关600、运营商互联网和路由设备200的网关700,可以向路由设备200的WAN接口4传输数据。且路由设备200基于移动设备100的网关600的IP地址和端口信息、路由设备200的网关700的IP地址和端口信息、以及路由设备200的WAN接口4的IP地址和端口信息,通过路由设备200的WAN接口4,经由路由设备200的网关500、运营商互联网和移动设备100的网关400,可以向移动设备100的与蜂窝网络500对应的WAN接口2传输数据。To sum up, based on the IP address and port information of the gateway 600 of the mobile device 100 , the IP address and port information of the gateway 700 of the routing device 200 , and the IP address and port information of the WAN interface 4 of the routing device 200 , the mobile device 100 The WAN interface 2 of the device 100 corresponding to the cellular network 500 can transmit data to the WAN interface 4 of the routing device 200 via the gateway 600 of the mobile device 100 , the carrier Internet and the gateway 700 of the routing device 200 . And the routing device 200 passes the routing device 200 based on the IP address and port information of the gateway 600 of the mobile device 100, the IP address and port information of the gateway 700 of the routing device 200, and the IP address and port information of the WAN interface 4 of the routing device 200. The WAN interface 4 of the mobile device 100 can transmit data to the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 via the gateway 500 of the routing device 200 , the carrier Internet and the gateway 400 of the mobile device 100 .
其中,本申请对移动设备100和路由设备200采用的NAT穿越技术的具体类型不做限定, 只需满足两者能够通过运营商互联网进行互相通信即可。例如,基本的NAT技术或者网络地址/端口转换(Network Address/Port Translator,NAPT)技术等。Wherein, the present application does not limit the specific types of NAT traversal technology adopted by the mobile device 100 and the routing device 200, as long as the two can communicate with each other through the operator Internet. For example, basic NAT technology or Network Address/Port Translator (NAPT) technology, etc.
本申请涉及的移动设备100可以包括但不限于:手机、平板电脑、电子阅读器、遥控器、个人计算机(personal computer,PC)、笔记本电脑、个人数字助理(personal digital assistant,PDA)、车载设备、网络电视、可穿戴设备、电视机、智能手表、智能手环等设备。The mobile device 100 involved in this application may include, but is not limited to, a mobile phone, a tablet computer, an e-reader, a remote control, a personal computer (PC), a notebook computer, a personal digital assistant (PDA), a vehicle-mounted device , Internet TV, wearable devices, TV sets, smart watches, smart bracelets and other devices.
下面结合图3,具体介绍本申请涉及的移动设备100。The following describes the mobile device 100 involved in the present application in detail with reference to FIG. 3 .
图3为本申请实施例提供的一种移动设备的结构示意图。如图3所示,移动设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。FIG. 3 is a schematic structural diagram of a mobile device according to an embodiment of the present application. As shown in FIG. 3 , the mobile device 100 may include a processor 110 , an external memory interface 120 , an internal memory 121 , a universal serial bus (USB) interface 130 , a charging management module 140 , a power management module 141 , and a battery 142 , Antenna 1, Antenna 2, Mobile Communication Module 150, Wireless Communication Module 160, Audio Module 170, Speaker 170A, Receiver 170B, Microphone 170C, Headphone Interface 170D, Sensor Module 180, Key 190, Motor 191, Indicator 192, Camera 193 , a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195 and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
其中,控制器可以是移动设备100的神经中枢和指挥模块。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command module of the mobile device 100 . The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。A memory may also be provided in the processor 110 for storing instructions and data.
充电管理模块140用于从充电器接收充电输入。The charging management module 140 is used to receive charging input from the charger.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
移动设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the mobile device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。移动设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in mobile device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
移动通信模块150可以提供应用在移动设备100上的包括2G/3G/4G/5G等无线通信的解决方案。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the mobile device 100 .
无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
移动设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The mobile device 100 realizes the display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel.
移动设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The mobile device 100 can realize the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
ISP用于处理摄像头193反馈的数据。摄像头193用于捕获静态图像或视频。The ISP is used to process the data fed back by the camera 193 . Camera 193 is used to capture still images or video.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展移动设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile device 100 . The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行移动设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the mobile device 100 by executing the instructions stored in the internal memory 121 . The internal memory 121 may include a storage program area and a storage data area.
移动设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The mobile device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。The audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。耳机接口170D用于连接有线耳机。Speaker 170A, also referred to as a "speaker", is used to convert audio electrical signals into sound signals. The receiver 170B, also referred to as "earpiece", is used to convert audio electrical signals into sound signals. The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. The earphone jack 170D is used to connect wired earphones.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。陀螺仪传感器180B可以用于确定移动设备100的运动姿态。气压传感器180C用于测量气压。磁传感器180D包括霍尔传感器。移动设备100可以利用磁传感器180D检测翻盖皮套的开合。加速度传感器180E可检测移动设备100在各个方向上(一般为三轴)加速度的大小。距离传感器180F,用于测量距离。接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。环境光传感器180L用于感知环境光亮度。指纹传感器180H用于采集指纹。温度传感器180J用于检测温度。触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。骨传导传感器180M可以获取振动信号。The pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals. The gyro sensor 180B may be used to determine the motion attitude of the mobile device 100 . The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a Hall sensor. The mobile device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D. The acceleration sensor 180E can detect the magnitude of the acceleration of the mobile device 100 in various directions (generally three axes). Distance sensor 180F for measuring distance. Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The ambient light sensor 180L is used to sense ambient light brightness. The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect the temperature. Touch sensor 180K, also called "touch panel". The touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The bone conduction sensor 180M can acquire vibration signals.
按键190包括开机键,音量键等。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。The keys 190 include a power-on key, a volume key, and the like. Motor 191 can generate vibrating cues. The motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback. The indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like. The SIM card interface 195 is used to connect a SIM card.
可以理解的是,本申请示意的结构并不构成对移动设备100的具体限定。在另一些实施例中,移动设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in this application do not constitute a specific limitation on the mobile device 100 . In other embodiments, the mobile device 100 may include more or fewer components than shown, or some components may be combined, or some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
本申请涉及的路由设备200可以包括但不限于:路由器、客户移动设备(customer premise equipment,CPE)等。The routing device 200 involved in this application may include, but is not limited to, a router, a customer premise equipment (customer premise equipment, CPE), and the like.
图4为本申请实施例提供的一种路由设备的结构示意图。结合图4,进一步介绍本申请涉及的路由设备200的结构。如图4所示,路由设备200包括一个或多个处理器201、多个通信接口202、存储器203。处理器201、通信接口202和存储器203可通过总线或者 其它方式连接。本申请实施例以通过总线204连接为例。FIG. 4 is a schematic structural diagram of a routing device according to an embodiment of the present application. With reference to FIG. 4 , the structure of the routing device 200 involved in the present application is further introduced. As shown in FIG. 4 , the routing device 200 includes one or more processors 201 , multiple communication interfaces 202 , and a memory 203 . The processor 201, the communication interface 202 and the memory 203 may be connected by a bus or otherwise. The embodiment of the present application takes the connection through the bus 204 as an example.
处理器201可以由一个或者多个通用处理器构成,例如CPU。处理器201可用于运行智能家居设备错峰启动的相关的程序代码。The processor 201 may be constituted by one or more general-purpose processors, such as a CPU. The processor 201 may be configured to run the relevant program codes for the off-peak startup of the smart home device.
通信接口202可以为有线接口(例如以太网接口)或无线接口(例如蜂窝网络接口或使用无线局域网接口),用于与其他节点进行通信。本申请中,通信接口202具体可用于与移动设备100进行通信,还用于与服务器300进行通信。Communication interface 202 may be a wired interface (eg, an Ethernet interface) or a wireless interface (eg, a cellular network interface or using a wireless local area network interface) for communicating with other nodes. In this application, the communication interface 202 can be specifically used for communicating with the mobile device 100 and also for communicating with the server 300 .
存储器203可以包括易失性存储器(volatile memory),例如RAM;存储器也可以包括非易失性存储器(non-vlatile memory),例如ROM、快闪存储器(flash memory)、HDD或固态硬盘SSD;存储器203还可以包括上述种类的存储器的组合。存储器203可用于存储一组程序代码,以便于处理器201调用存储器203中存储的程序代码使得路由设备200可以实现本申请的通信方法。The memory 203 may include volatile memory, such as RAM; the memory may also include non-volatile memory, such as ROM, flash memory, HDD or solid-state drive SSD; memory 203 may also include a combination of the types of memory described above. The memory 203 can be used to store a set of program codes, so that the processor 201 can call the program codes stored in the memory 203 so that the routing device 200 can implement the communication method of the present application.
需要说明的是,图4所示的路由设备200仅仅是本申请的一种实现方式,实际应用中,路由设备200还可以包括更多或更少的部件,这里不作限制。It should be noted that the routing device 200 shown in FIG. 4 is only an implementation manner of the present application. In practical applications, the routing device 200 may also include more or less components, which is not limited here.
本申请中,路由设备200的结构示意图类似于图4示出的路由设备200,这里不再赘述。另外,路由设备200在实际应用中,还可以包括更多或更少的部件,这里不作限制。In this application, the schematic structural diagram of the routing device 200 is similar to the routing device 200 shown in FIG. 4 , and details are not repeated here. In addition, in practical applications, the routing device 200 may also include more or less components, which is not limited here.
需要说明的是,路由设备200可以连接一个移动设备100,也可以同时连接多个移动设备100,每个移动设备100与路由设备200的连接方式具体可参见上述描述内容,此处不做赘述。移动设备100可以连接一个路由设备200,也可以连接多个路由设备200,该移动设备100与每个路由设备200的连接方式具体可参见上述描述内容,此处不做赘述。It should be noted that the routing device 200 can be connected to one mobile device 100 or multiple mobile devices 100 at the same time. The connection method between each mobile device 100 and the routing device 200 can be found in the above description, which is not repeated here. The mobile device 100 may be connected to one routing device 200 or multiple routing devices 200. For details of the connection method between the mobile device 100 and each routing device 200, refer to the above description, which will not be repeated here.
其中,路由设备200所连接的移动设备100的数量可以依据路由设备200的中央处理器(central processing unit,CPU)、内存等性能指标进行设置,本申请对此不做限定。为了便于说明,图2中以一个移动设备100和一个路由设备200为例进行示意。The number of mobile devices 100 connected to the routing device 200 may be set according to performance indicators such as a central processing unit (CPU) and memory of the routing device 200, which are not limited in this application. For convenience of description, FIG. 2 takes a mobile device 100 and a routing device 200 as an example for illustration.
本申请中,路由设备200与每个应用服务器300之间可以实现有线连接或者无线连接,即路由设备200分别与M个应用服务器300通过有线网络各自建立M条连接。其中,有线网络可以包括但不限于光纤网络。需要说明的是,应用服务器300的数量可以为一个或者多个。为了便于说明,图2中以一个应用服务器300为例进行示意。In this application, a wired connection or a wireless connection may be implemented between the routing device 200 and each application server 300 , that is, the routing device 200 establishes M connections with M application servers 300 through wired networks respectively. The wired network may include, but is not limited to, an optical fiber network. It should be noted that the number of application servers 300 may be one or more. For ease of description, FIG. 2 takes an application server 300 as an example for illustration.
其中,本申请涉及的应用服务器300是为实现应用的具体业务。比如即时聊天、语音通话、视频通话、输入法、信息浏览、观看视频、来电助手或者玩游戏等各种业务的网络需求而设计的硬件和软件平台。Wherein, the application server 300 involved in this application is a specific service for realizing an application. Such as instant chat, voice call, video call, input method, information browsing, watching video, calling assistant or playing games and other business network requirements designed hardware and software platform.
需要说明的是,应用服务器300的结构可类似于图4示出的路由设备200的结构,这里不再赘述。另外,应用服务器300在实际应用中,还可以包括更多或更少的部件,这里不作限制。It should be noted that the structure of the application server 300 may be similar to the structure of the routing device 200 shown in FIG. 4 , and details are not described here. In addition, in practical applications, the application server 300 may also include more or less components, which are not limited here.
本申请中,移动设备100中部署有第一SDK。其中,第一SDK用于支持移动设备100与路由设备200同时建立第一传输通道和第二传输通道。第一SDK负责第二传输通道的建立,主动与路由设备200进行能力协商以判断是否满足业务需求,实时探测及评估第一传输通道和第二传输通道的连接状态及通道质量,能够完成与云端服务器800的NAT穿越,将应用的上传数据代理到第一传输通道和第二传输通道上进行传输,在第一传输通道和第二传输通道上实现数据包的聚合或冗余发送和接收,以及数据包的包头处理方式等。In this application, the first SDK is deployed in the mobile device 100 . The first SDK is used to support the mobile device 100 and the routing device 200 to establish the first transmission channel and the second transmission channel at the same time. The first SDK is responsible for the establishment of the second transmission channel, actively negotiates with the routing device 200 to determine whether the service requirements are met, detects and evaluates the connection status and channel quality of the first transmission channel and the second transmission channel in real time, and can complete the communication with the cloud. NAT traversal of the server 800, proxying the uploaded data of the application to the first transmission channel and the second transmission channel for transmission, and implementing aggregation or redundant transmission and reception of data packets on the first transmission channel and the second transmission channel, and The packet header processing method, etc.
需要说明的是,第一SDK与C_SDK的区别在于:1、两者的目的IP不同。第一SDK的目的IP为路由设备200,C_SDK的目的IP为对应的应用服务器。2、数据包的包头处理方式不同。第一第一SDK的数据包的包头处理方式:在第一传输通道上的数据包的包头不做任何处理,在第二传输通道上的数据包的包头需要添加IP。C_SDK的数据包的包头处理方式:所有数据包都必须重新构建添加IP的包头。从而,减少了本申请的数据包的包头处理操作,提升了处理效率。3、第一SDK建立的第二传输通道可以包括:移动设备100的与蜂窝网络500对应的WAN接口2与路由设备200的WAN接口4之间的传输通道,或者,移动设备100的与蜂窝网络500对应的WAN接口2经由运营商互联网与路由设备200的WAN接口4之间的传输通道,而C_SDK建立的传输通道仅为移动设备的与蜂窝网络500对应的WAN接口与路由设备的WAN接口之间的传输通道。4、第一SDK的目IP不用预置,经由第一传输通道便可获知目的IP,而C-SDK必须提前预置S-SDK的服务器IP。It should be noted that the differences between the first SDK and C_SDK are: 1. The destination IPs of the two are different. The destination IP of the first SDK is the routing device 200, and the destination IP of the C_SDK is the corresponding application server. 2. The headers of the data packets are processed differently. The packet header processing method of the first first SDK: the packet header of the data packet on the first transmission channel does not do any processing, and the packet header of the data packet on the second transmission channel needs to add IP. The header processing method of the data packet of C_SDK: All data packets must rebuild the header of adding IP. Therefore, the packet header processing operation of the data packet of the present application is reduced, and the processing efficiency is improved. 3. The second transmission channel established by the first SDK may include: the transmission channel between the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 and the WAN interface 4 of the routing device 200, or the mobile device 100 and the cellular network. The WAN interface 2 corresponding to 500 passes through the transmission channel between the carrier Internet and the WAN interface 4 of the routing device 200, while the transmission channel established by C_SDK is only the WAN interface corresponding to the cellular network 500 of the mobile device and the WAN interface of the routing device. transmission channel between. 4. The destination IP of the first SDK does not need to be preset, and the destination IP can be obtained through the first transmission channel, and the C-SDK must preset the server IP of the S-SDK in advance.
本申请中,路由设备200中部署有第二SDK。其中,第二SDK用于支持路由设备200与移动设备100同时建立第一传输通道和第二传输通道。第二SDK负责基于第一SDK的请求来驱动第二传输通道的建立,接收第一SDK的能力协商,实时探测及评估第一传输通道和第二传输通道的连接状态及通道质量,基于第一SDK的请求完成与云端服务器800的NAT穿越,将应用服务端300发送的下载数据代理到第一传输通道和第二传输通道上进行传输,在第一传输通道和第二传输通道上实现数据包的聚合或冗余发送和接收,以及数据包的包头处理方式等。In this application, a second SDK is deployed in the routing device 200 . The second SDK is used to support the routing device 200 and the mobile device 100 to establish the first transmission channel and the second transmission channel at the same time. The second SDK is responsible for driving the establishment of the second transmission channel based on the request of the first SDK, receiving the capability negotiation of the first SDK, and detecting and evaluating the connection status and channel quality of the first transmission channel and the second transmission channel in real time. The request of the SDK completes the NAT traversal with the cloud server 800, and the download data sent by the application server 300 is proxied to the first transmission channel and the second transmission channel for transmission, and the data packets are implemented on the first transmission channel and the second transmission channel. aggregated or redundant sending and receiving, as well as packet header handling, etc.
需要说明的是,第二SDK与S_SDK的区别在于:收包机制不同。第二SDK是从路由设备200的LAN接口3经由第一传输通道接收数据包,以及从路由设备200的WAN接口4经由第二传输通道接收数据包,再将数据包进行聚合。而S-SDK均是从应用服务器的业务访问端口获取各个路径上的数据包。It should be noted that the difference between the second SDK and the S_SDK is that the packet receiving mechanism is different. The second SDK receives data packets from the LAN interface 3 of the routing device 200 via the first transmission channel, and receives data packets from the WAN interface 4 of the routing device 200 via the second transmission channel, and then aggregates the data packets. The S-SDK obtains data packets on each path from the service access port of the application server.
下面,结合图5,介绍第一SDK和第二SDK的软件架构框图。Below, with reference to FIG. 5 , the software architecture block diagrams of the first SDK and the second SDK are introduced.
图5为本申请实施例提供的一种移动设备与路由设备的软件结构框图。如图5所示,第一SDK中包括:服务应用、服务意识(server awareness,SA)模块、第一数据代理模块、第一NAT模块、第一MP策略模块、MP协议客户端(client)模块、第一MP和第一通道管理模块,如表1所示。FIG. 5 is a software structural block diagram of a mobile device and a routing device according to an embodiment of the present application. As shown in FIG. 5 , the first SDK includes: a service application, a server awareness (SA) module, a first data proxy module, a first NAT module, a first MP policy module, and an MP protocol client (client) module , the first MP and the first channel management module, as shown in Table 1.
表1Table 1
Figure PCTCN2021099852-appb-000001
Figure PCTCN2021099852-appb-000001
Figure PCTCN2021099852-appb-000002
Figure PCTCN2021099852-appb-000002
第一SDK包括:业务层、控制层、协议层以及链路层。其中,业务应用和服务应用位于业务层,第一数据代理模块、第一NAT模块、第一MP策略模块和第一通道管理模块位于控制层,MP协议client模块位于协议层,第一MP位于链路层。另外,SA模块位于控制层。The first SDK includes: a business layer, a control layer, a protocol layer and a link layer. Among them, business applications and service applications are located in the business layer, the first data proxy module, the first NAT module, the first MP policy module and the first channel management module are located in the control layer, the MP protocol client module is located in the protocol layer, and the first MP is located in the chain road layer. In addition, the SA module is located in the control layer.
SA模块中,预置有业务识别模型,该业务识别模型用于识别任意一个业务应用的业务,并配置有白名单能力,即在识别出业务应用的业务所对应的业务类型位于白名单中时通知移动设备100启动MP进行数据传输。In the SA module, a business identification model is preset. The business identification model is used to identify the business of any business application, and is configured with the whitelist capability, that is, when the business type corresponding to the identified business application is in the whitelist The mobile device 100 is notified to activate the MP for data transmission.
其中,本申请对业务类型的具体表示方式不做限定。例如,SA模块中存储有白名单,该白名单中存储有各种业务类型,用于表示业务类型所对应的业务能够通过MP实现。从而,SA模块可以识别业务应用的业务类型是否在白名单中。若存在,则SA模块可以确定出业务应用能够通过MP实现业务应用的业务,便可触发第一MP策略模块启动MP。Wherein, this application does not limit the specific representation of the service type. For example, a whitelist is stored in the SA module, and various service types are stored in the whitelist, which is used to indicate that the service corresponding to the service type can be implemented through the MP. Thus, the SA module can identify whether the service type of the service application is in the whitelist. If it exists, the SA module can determine that the service application can implement the service of the service application through the MP, and can trigger the first MP policy module to start the MP.
需要说明的是,SA模块可以为移动设备100中已存在的模块,也可以为新增到移动设备100中的模块,本申请对此不做限定。It should be noted that the SA module may be an existing module in the mobile device 100, or may be a module newly added to the mobile device 100, which is not limited in this application.
继续结合图5,第二SDK中包括:路由服务模块、代理信息模块、第二数据代理模块、第二NAT模块、第二MP策略模块、MP协议服务端(server)模块、第二MP和第二通道管理模块,如表2所示。Continue to combine Fig. 5, the second SDK includes: routing service module, proxy information module, second data proxy module, second NAT module, second MP policy module, MP protocol server module, second MP and the first Two-channel management module, as shown in Table 2.
表2Table 2
Figure PCTCN2021099852-appb-000003
Figure PCTCN2021099852-appb-000003
Figure PCTCN2021099852-appb-000004
Figure PCTCN2021099852-appb-000004
第二SDK包括:业务层、控制层、协议层以及链路层。其中,路由服务模块位于业务层,代理信息模块、第二数据代理模块、第二NAT模块、第二MP策略模块和第二通道管理模块位于控制层,MP协议server模块位于协议层,第二MP位于链路层。The second SDK includes: a business layer, a control layer, a protocol layer and a link layer. The routing service module is located at the business layer, the proxy information module, the second data proxy module, the second NAT module, the second MP policy module and the second channel management module are located at the control layer, the MP protocol server module is located at the protocol layer, and the second MP at the link layer.
本申请中,移动设备100安装有服务应用,如N个应用(application,APP),N个应用中的任意一个应用对应于M个应用服务器300中的一个应用服务器300,N为正整数。其中,每个应用,即通过安装第三方开发的程序来扩展移动设备100的应用功能,如即时聊天、语音通话、视频通话、输入法、信息浏览、观看视频、来电助手或者玩游戏等应用。一般情况下,不同类型的应用,本申请可以设置不同的网络需求。例如,即时通讯应用A与视频应用B的应用类型不同,即时通讯应用A与视频应用B的网络需求不同。其中,本申请根据每个业务自身的网络需求可预先配置有对应的业务的网络参数,如表3所示。另外,本申请不限于采用表格的形式来存储业务的网络参数。In the present application, the mobile device 100 is installed with service applications, such as N applications (application, APP), any one of the N applications corresponds to one application server 300 of the M application servers 300, and N is a positive integer. Among them, each application, that is, by installing a program developed by a third party, expands the application functions of the mobile device 100, such as applications such as instant chat, voice call, video call, input method, information browsing, watching video, calling assistant or playing games. In general, for different types of applications, this application can set different network requirements. For example, instant messaging application A and video application B have different application types, and instant messaging application A and video application B have different network requirements. Wherein, the present application may be pre-configured with network parameters of the corresponding service according to the network requirements of each service, as shown in Table 3. In addition, the present application is not limited to storing network parameters of services in the form of a table.
表3业务的网络参数Table 3 Network parameters of services
Figure PCTCN2021099852-appb-000005
Figure PCTCN2021099852-appb-000005
其中,MP的协议为MP所支持的协议,包括如MPTCP或者MPUDP等协议类型。一般情况下,MP中的每个传输通道所采用的协议相同。The protocol of the MP is a protocol supported by the MP, including protocol types such as MPTCP or MPUDP. In general, the protocol adopted by each transmission channel in the MP is the same.
本申请中,MPTCP是基于请求评论(request for Comments,RFC)标准定义MP协议扩展支持下述三种MP的模式类型。In this application, MPTCP defines the MP protocol extension based on the request for Comments (RFC) standard to support the following three MP mode types.
模式一:聚合模式Mode 1: Aggregation Mode
发起MPTCP时,移动设备100将建立一条聚合MPTCP的链路,包括两条子流,即Wi-Fi网络子流(即第一传输通道)和LTE网络子流(即第二传输通道)。在Wi-Fi网络和LTE网络都正常的情况下,移动设备100根据MP策略,以及Wi-Fi网络和LTE网络的传输能力,将上传数据拆分并分别分配到第一传输通道和第二传输通道上传输数据包,以获得Wi-Fi网络和LTE网络的双倍带宽。When initiating MPTCP, the mobile device 100 will establish a link that aggregates MPTCP, including two subflows, namely the Wi-Fi network subflow (ie the first transmission channel) and the LTE network subflow (ie the second transmission channel). In the case that both the Wi-Fi network and the LTE network are normal, the mobile device 100 splits the upload data according to the MP policy and the transmission capabilities of the Wi-Fi network and the LTE network and allocates them to the first transmission channel and the second transmission respectively. Data packets are transmitted over the channel for double the bandwidth of Wi-Fi and LTE networks.
模式二:冗余模式Mode 2: Redundant Mode
发起MPTCP时,移动设备100将建立一条冗余MPTCP的链路,包括两条子流,即Wi-Fi网络子流(即第一传输通道)和LTE网络子流(即第二传输通道)。在Wi-Fi网络和LTE网络都正常的情况下,移动设备100将上传数据复制两份,分别在第一传输通道和第二传输 通道上同时传输,使得上传数据经由任意一条传输通道均到达路由设备200,路由设备200在第一传输通道和第二传输通道上同时接收上传数据,采用先到先用,后到丢弃的原则以获得较低的时延以及端到端“零”丢包的体验。When initiating MPTCP, the mobile device 100 will establish a redundant MPTCP link, including two sub-streams, namely the Wi-Fi network sub-flow (ie the first transmission channel) and the LTE network sub-flow (ie the second transmission channel). When both the Wi-Fi network and the LTE network are normal, the mobile device 100 copies the uploaded data in two copies, and transmits them simultaneously on the first transmission channel and the second transmission channel respectively, so that the uploaded data reaches the route via any transmission channel. The device 200, the routing device 200 receives the upload data on the first transmission channel and the second transmission channel at the same time, and adopts the principle of first-come-first-use, last-to-discard to obtain lower latency and end-to-end "zero" packet loss. experience.
模式三:主备模式Mode 3: Active-standby mode
发起MPTCP时,移动设备100将建立一条主备MPTCP的链路,包括主用Wi-Fi网络子流的链路和备用LTE网络子流共两条。在Wi-Fi网络和LTE网络均正常的情况下,移动设备100将使用主用Wi-Fi网络子流传输数据。在Wi-Fi网络发生故障的情况下,移动设备100将自动切换到LTE网络子流上传输数据,以确保网络可用性。When initiating MPTCP, the mobile device 100 will establish an active and standby MPTCP link, including a total of two links of the active Wi-Fi network sub-flow and the standby LTE network sub-flow. When both the Wi-Fi network and the LTE network are normal, the mobile device 100 will use the primary Wi-Fi network substream to transmit data. In the event of a Wi-Fi network failure, the mobile device 100 will automatically switch to the LTE network sub-stream to transmit data to ensure network availability.
需要说明的是,主备模式可适用于移动设备100与路由设备200通过MP进行通信(简称MP通信)发生异常的场景,移动设备100可以自动切换到能够正常传输数据的传输通道上,确保数据传输的稳定性。It should be noted that the active-standby mode can be applied to the scenario where the communication between the mobile device 100 and the routing device 200 through MP (referred to as MP communication) occurs abnormally, and the mobile device 100 can automatically switch to the transmission channel that can transmit data normally to ensure that data Transmission stability.
本申请中,MPUDP是一个承载在UDP上的协议隧道,目前提供主备模式和冗余模式,来获得低时延、高可靠的网络体验。In this application, MPUDP is a protocol tunnel carried over UDP. Currently, an active-standby mode and a redundant mode are provided to obtain a low-latency and highly reliable network experience.
其中,MPUDP的主备模式、冗余模式的具体实现过程可分别参见MPTCP的主备模式、冗余模式的具体内容,此处不做赘述。另外,MPUDP与MPTCP的不同之处在于:MPUDP下,在移动设备100向路由设备200发送一个数据包之后,移动设备100需要在接收到路由设备200发送的响应之后才可向路由设备200发送下一个数据包。For the specific implementation process of the active-standby mode and the redundant mode of MPUDP, please refer to the specific contents of the active-standby mode and the redundant mode of MPTCP, which will not be repeated here. In addition, the difference between MPUDP and MPTCP is: under MPUDP, after the mobile device 100 sends a data packet to the routing device 200, the mobile device 100 needs to receive the response sent by the routing device 200 before sending the next packet to the routing device 200. a packet.
另外,本申请中,路由设备200还可以停止通过MP与移动设备100进行通信。In addition, in this application, the routing device 200 may also stop communicating with the mobile device 100 through the MP.
下面,对路由设备200停止MP通信的多种可行的实现方式进行举例。In the following, various feasible implementation manners for the routing device 200 to stop the MP communication are given as examples.
在一种可行的实现方式中,若路由设备200的第二NAT模块检测到路由设备200的网关700的IP地址和端口信息错误时,路由设备200的第二NAT模块可以向路由设备200的第二MP策略模块模块发送对应的指令,使得路由设备200的第二MP策略模块模块释放应用的业务相关的MP资源,如应用的业务的IP五元组等,从而路由设备200可以停止通过MP中的第一传输通道和第二传输通道与移动设备100进行通信。In a feasible implementation manner, if the second NAT module of the routing device 200 detects that the IP address and port information of the gateway 700 of the routing device 200 are incorrect, the second NAT module of the routing device 200 can report to the second NAT module of the routing device 200 The second MP policy module module sends a corresponding instruction, so that the second MP policy module module of the routing device 200 releases the MP resources related to the applied service, such as the IP quintuple of the applied service, so that the routing device 200 can stop passing through the MP The first transmission channel and the second transmission channel communicate with the mobile device 100.
其中,IP五元组,即IP三元组+源IP(即移动设备100的IP地址)+源端口(即移动设备100的端口信息)。IP三元组可以包括:应用的业务类型、目的IP(即应用服务器300的IP地址)以及目的端口(即应用服务器300的端口信息)。The IP quintuple is IP triplet+source IP (that is, the IP address of the mobile device 100)+source port (that is, the port information of the mobile device 100). The IP triplet may include: the service type of the application, the destination IP (that is, the IP address of the application server 300 ), and the destination port (that is, the port information of the application server 300 ).
在另一种可行的实现方式中,若路由设备200的MP协议server模块检测到MP中的任意一个传输通道异常或者中断时,路由设备200的MP协议server模块可以向路由设备200的第二MP策略模块模块发送指示指令,使得路由设备200的第二MP策略模块模块释放应用的业务相关的MP资源,从而路由设备200可以停止通过MP中的第一传输通道和第二传输通道与移动设备100进行通信。In another feasible implementation manner, if the MP protocol server module of the routing device 200 detects that any transmission channel in the MP is abnormal or interrupted, the MP protocol server module of the routing device 200 can send a message to the second MP of the routing device 200 The policy module module sends an instruction instruction, so that the second MP policy module module of the routing device 200 releases the MP resources related to the applied service, so that the routing device 200 can stop communicating with the mobile device 100 through the first transmission channel and the second transmission channel in the MP. to communicate.
在另一种可行的实现方式中,若路由设备200的第二数据代理模块检测到经过预设时长后MP中每个传输通道上没有应用的业务对应的数据包时,路由设备200的第二数据代理模块可以向路由设备200的第二MP策略模块模块发送指示指令,使得路由设备200的第二MP策略模块模块释放应用的业务相关的MP资源,从而路由设备200可以停止通过MP中的第一传输通道和第二传输通道与移动设备100进行通信。其中,本申请对预设时长的具体数值不做限定,可根据实际情况进行设置。In another feasible implementation manner, if the second data proxy module of the routing device 200 detects a data packet corresponding to a service that is not applied on each transmission channel in the MP after a preset time period, the second data proxy module of the routing device 200 The data proxy module can send an instruction instruction to the second MP policy module module of the routing device 200, so that the second MP policy module module of the routing device 200 releases the MP resources related to the applied service, so that the routing device 200 can stop passing the first MP resource in the MP. A transmission channel and a second transmission channel communicate with the mobile device 100 . The specific value of the preset duration is not limited in this application, and can be set according to the actual situation.
在另一种可行的实现方式中,若路由设备200的MP协议server模块接收到移动设备100 的MP协议client模块发送的用于表示停止通过MP进行通信的消息时,路由设备200的MP协议server模块可以向路由设备200的第二MP策略模块模块发送指示指令,使得路由设备200的第二MP策略模块模块释放应用的业务相关的MP资源,从而路由设备200可以停止通过MP中的第一传输通道和第二传输通道与移动设备100进行通信。In another feasible implementation manner, if the MP protocol server module of the routing device 200 receives a message sent by the MP protocol client module of the mobile device 100 to indicate that communication through MP is stopped, the MP protocol server module of the routing device 200 The module can send an instruction instruction to the second MP policy module module of the routing device 200, so that the second MP policy module module of the routing device 200 releases the MP resources related to the applied service, so that the routing device 200 can stop passing the first transmission in the MP. The channel and the second transmission channel communicate with the mobile device 100 .
综上,本申请不限于上述几种可能的实现方式来实现路由设备200与移动设备100通过MP停止进行通信。另外,移动设备100也可以通过上述可能的实现方式停止通过MP与路由设备200进行通信。To sum up, the present application is not limited to the above several possible implementation manners to realize that the routing device 200 and the mobile device 100 stop communicating through the MP. In addition, the mobile device 100 may also stop communicating with the routing device 200 through the MP through the above possible implementation manners.
基于前述描述,结合图6,以图2所示实施例的通信系统中的移动设备100、路由设备200和M个应用服务器300为执行主体,对本申请的通信方法的具体实现过程进行详细说明。图6中,移动设备100与路由设备200通过Wi-Fi网络400建立第一传输通道。Based on the foregoing description and with reference to FIG. 6 , the specific implementation process of the communication method of the present application is described in detail by taking the mobile device 100 , the routing device 200 and the M application servers 300 in the communication system of the embodiment shown in FIG. 2 as execution subjects. In FIG. 6 , the mobile device 100 and the routing device 200 establish a first transmission channel through the Wi-Fi network 400 .
图6为本申请实施例提供的一种通信方法的信令流程图。如图6所示,本申请的通信方法可以包括:FIG. 6 is a signaling flowchart of a communication method provided by an embodiment of the present application. As shown in Figure 6, the communication method of the present application may include:
S101、在移动设备检测到移动设备占据Wi-Fi网络的带宽小于预设的第一阈值后,和/或,在移动设备检测到移动设备通过Wi-Fi网络传输的时延大于预设的第二阈值后,移动设备与路由设备通过蜂窝网络建立第二传输通道。S101. After the mobile device detects that the bandwidth occupied by the mobile device on the Wi-Fi network is less than a preset first threshold, and/or after the mobile device detects that the transmission delay of the mobile device through the Wi-Fi network is greater than a preset first threshold After two thresholds, the mobile device and the routing device establish a second transmission channel through the cellular network.
本申请中,移动设备100可以预先设置各个类型的业务的网络参数,如表3。针对N个应用中的任意一个应用,在移动设备100检测到移动设备100占据Wi-Fi网络400的带宽小于预设的第一阈值后,和/或,在移动设备100检测到移动设备100通过Wi-Fi网络400传输的时延大于预设的第二阈值后,移动设备100可以确定当前Wi-Fi网络400无法满足该应用的业务需求。因此,移动设备100与路由设备200可以通过蜂窝网络500建立第二传输通道,从而通过第一传输通道和第二传输通道及时为该应用实现相应的业务提供一种效率更好的双路传输方式。In this application, the mobile device 100 may preset network parameters of various types of services, as shown in Table 3. For any one of the N applications, after the mobile device 100 detects that the bandwidth occupied by the mobile device 100 of the Wi-Fi network 400 is less than the preset first threshold, and/or, after the mobile device 100 detects that the mobile device 100 has passed the After the transmission delay of the Wi-Fi network 400 is greater than the preset second threshold, the mobile device 100 may determine that the current Wi-Fi network 400 cannot meet the service requirements of the application. Therefore, the mobile device 100 and the routing device 200 can establish a second transmission channel through the cellular network 500, thereby providing a more efficient two-way transmission method for the application to realize the corresponding service in time through the first transmission channel and the second transmission channel .
其中,移动设备100与路由设备200建立第二传输通道的具体实现过程可以包括如下步骤:The specific implementation process of establishing the second transmission channel between the mobile device 100 and the routing device 200 may include the following steps:
步骤1:在应用的运行过程中,移动设备100可以判断应用的业务是否能够通过MP进行通信。Step 1: During the running process of the application, the mobile device 100 can determine whether the service of the application can be communicated through the MP.
在一些实施例中,移动设备100通过Wi-Fi网络400连接路由设备200上网。在应用的运行过程中,移动设备100的SA模块可以识别应用的业务类型,并在确定白名单中包含应用的业务类型时,移动设备100的SA模块可以确定应用的业务能够通过MP进行通信。反之,移动设备100的SA模块可以确定应用的业务无法通过MP进行通信。In some embodiments, the mobile device 100 connects to the routing device 200 via the Wi-Fi network 400 to access the Internet. During the running process of the application, the SA module of the mobile device 100 can identify the service type of the application, and when determining the service type of the application included in the whitelist, the SA module of the mobile device 100 can determine that the service of the application can communicate through the MP. Conversely, the SA module of the mobile device 100 may determine that the application's service cannot be communicated through the MP.
步骤2:移动设备100在确定应用的业务能够通过MP进行通信时,判断MP是否已启动。Step 2: The mobile device 100 determines whether the MP has been activated when it is determined that the service of the application can be communicated through the MP.
在一些实施例中,移动设备100的SA模块在确定应用的业务能够通过MP进行通信时,可以通知移动设备100的第一MP策略模块。移动设备100的第一MP策略模块可以调用移动设备100的第一通道管理模块查看MP中的每个传输通道的网络能力。移动设备100的第一MP策略模块基于为应用的业务提供服务的传输通道的网络能力,判断MP是否已启动。In some embodiments, the SA module of the mobile device 100 may notify the first MP policy module of the mobile device 100 when determining that the service of the application can communicate through the MP. The first MP policy module of the mobile device 100 may call the first channel management module of the mobile device 100 to check the network capability of each transmission channel in the MP. The first MP policy module of the mobile device 100 determines whether the MP has been activated based on the network capability of the transmission channel serving the service of the application.
若MP启动,则移动设备100与路由设备200无需建立第二传输通道,移动设备100可以执行S102。If the MP is activated, the mobile device 100 and the routing device 200 do not need to establish a second transmission channel, and the mobile device 100 may execute S102.
若MP未启动,则针对N个应用中的任意一个应用,移动设备100判断移动设备100占据 Wi-Fi网络400的带宽是否小于预设的第一阈值后,或者,移动设备100通过Wi-Fi网络400传输的时延是否大于预设的第二阈值。从而,在移动设备100检测到移动设备100占据Wi-Fi网络400的带宽小于预设的第一阈值后,和/或,在移动设备100检测到移动设备100通过Wi-Fi网络400传输的时延大于预设的第二阈值后,移动设备100与路由设备200建立第二传输通道。另外,移动设备100还可以判断如移动设备100是否处于启动状态、移动设备100支持的业务协议类型是否包含MP的预置协议类型等条件。If the MP is not activated, for any one of the N applications, after the mobile device 100 determines whether the bandwidth occupied by the mobile device 100 of the Wi-Fi network 400 is less than the preset first threshold, or the mobile device 100 passes the Wi-Fi Whether the transmission delay of the network 400 is greater than the preset second threshold. Therefore, after the mobile device 100 detects that the bandwidth occupied by the mobile device 100 of the Wi-Fi network 400 is less than the preset first threshold, and/or when the mobile device 100 detects that the mobile device 100 transmits through the Wi-Fi network 400 After the delay is greater than the preset second threshold, the mobile device 100 and the routing device 200 establish a second transmission channel. In addition, the mobile device 100 can also determine conditions such as whether the mobile device 100 is in an activated state, and whether the service protocol type supported by the mobile device 100 includes the preset protocol type of the MP.
在另一些实施例中,移动设备100的第一MP策略模块从SA模块中基于应用的业务,获取IP五元组、应用的业务的预置网络参数(如带宽、时延、链路数量等需求)、移动设备100的MP能力信息等参数,并向移动设备100的第一数据代理模块通知基于应用的业务的IP五元组的数据包重路由,即通过MP进行传输,使得移动设备100的第一数据代理模块基于应用的业务的IP五元组将对应的数据包引流到移动设备100的MP协议client模块。In other embodiments, the first MP policy module of the mobile device 100 obtains the IP quintuple and preset network parameters (such as bandwidth, delay, number of links, etc.) of the application service from the SA module based on the application service. requirements), the MP capability information of the mobile device 100 and other parameters, and notify the first data proxy module of the mobile device 100 to reroute the data packets of the IP quintuple of the application-based service, that is, to transmit through the MP, so that the mobile device 100 The first data proxy module diverts the corresponding data packets to the MP protocol client module of the mobile device 100 based on the IP quintuple of the service of the application.
其中,应用的业务的预置网络参数,用于表示移动设备100针对不同业务预先配置的网络Qos需求,如带宽、时延、链路数量等需求,请参见表2中的网络参数。例如,业务的预设带宽门限,用于表示在移动设备100通过MP与路由设备200进行通信时对应的各个业务的带宽范围,如最大带宽值或者最小带宽值等。业务的预设时延门限,用于表示在移动设备100通过MP与路由设备200进行通信时对应的各个业务的时延范围,如最大时延值或者最小时延值等。The preset network parameters of the applied service are used to represent the network QoS requirements preconfigured by the mobile device 100 for different services, such as requirements such as bandwidth, delay, number of links, etc. Please refer to the network parameters in Table 2. For example, the preset bandwidth threshold of the service is used to indicate the corresponding bandwidth range of each service when the mobile device 100 communicates with the routing device 200 through the MP, such as a maximum bandwidth value or a minimum bandwidth value. The preset delay threshold of the service is used to indicate the delay range of each service when the mobile device 100 communicates with the routing device 200 through the MP, such as the maximum delay value or the minimum delay value.
其中,移动设备100的MP能力信息可以包括但不限于:移动设备100的MP支持状态、MP能力集、工作状态等参数。移动设备100的MP支持状态,用于表示移动设备100是否支持MP。移动设备100的MP能力集,用于表示移动设备100具备的MP能力。移动设备100的MP能力集可以包括但不限于:MP的协议类型、MP的模式类型、MP中的每个传输通道的网络类型以及传输通道数量(如每个传输通道的网络类型和每个网络类型的传输通道数量)。移动设备100的工作状态,用于表示移动设备100是启动MP或是停止启动MP。The MP capability information of the mobile device 100 may include, but is not limited to, parameters such as MP support state, MP capability set, and working state of the mobile device 100 . The MP support status of the mobile device 100 is used to indicate whether the mobile device 100 supports MP. The MP capability set of the mobile device 100 is used to indicate the MP capability possessed by the mobile device 100 . The MP capability set of the mobile device 100 may include, but is not limited to, the protocol type of the MP, the mode type of the MP, the network type of each transport channel in the MP, and the number of transport channels (such as the network type of each transport channel and the network type of each transport channel). type of transmission channels). The working state of the mobile device 100 is used to indicate whether the mobile device 100 starts the MP or stops the MP.
需要说明的是,在移动设备100检测到移动设备100占据Wi-Fi网络400的带宽大于或等于预设的第一阈值后,和/或,在移动设备100检测到移动设备100通过Wi-Fi网络400传输的时延小于或等于预设的第二阈值后,移动设备100可以确定当前Wi-Fi网络400能够满足该应用的业务需求。因此,移动设备100将上传数据经由第一传输通道传输至路由设备200,且路由设备200将请求响应经由第一传输通道传输至移动设备100。It should be noted that, after the mobile device 100 detects that the bandwidth of the Wi-Fi network 400 occupied by the mobile device 100 is greater than or equal to the preset first threshold, and/or, after the mobile device 100 detects that the mobile device 100 uses the Wi-Fi network After the transmission delay of the network 400 is less than or equal to the preset second threshold, the mobile device 100 may determine that the current Wi-Fi network 400 can meet the service requirements of the application. Therefore, the mobile device 100 transmits the upload data to the routing device 200 via the first transmission channel, and the routing device 200 transmits the request response to the mobile device 100 via the first transmission channel.
S102、移动设备将上传数据拆分为第一数据和第二数据,并将第一数据经由第一传输通道传输至路由设备,将第二数据经由第二传输通道传输至路由设备。其中,上传数据为要被传输至M个应用服务器中的第P个应用服务器的数据,P为大于等于1,且小于等于M的正整数。S102. The mobile device splits the uploaded data into first data and second data, transmits the first data to the routing device via the first transmission channel, and transmits the second data to the routing device via the second transmission channel. The uploaded data is data to be transmitted to the Pth application server among the M application servers, and P is a positive integer greater than or equal to 1 and less than or equal to M.
本申请中,移动设备100基于应用的业务的MP策略,可以将上传数据拆分为第一数据和第二数据,并将第一数据经由第一传输通道传输至路由设备200,将第二数据经由第二传输通道传输至路由设备200。In this application, the mobile device 100 can split the uploaded data into first data and second data based on the MP policy of the applied service, and transmit the first data to the routing device 200 via the first transmission channel, and the second data It is transmitted to the routing device 200 via the second transmission channel.
其中,本申请对上传数据、第一数据和第二数据的具体实现方式不做限定。例如,上传数据中的各个数据包可以采用包头+包体的格式,也可以采用包头+包体+包尾的格式。Wherein, the present application does not limit the specific implementation manners of the uploaded data, the first data and the second data. For example, each data packet in the uploaded data may be in the format of packet header + packet body, or may be in the format of packet header + packet body + packet tail.
在一些实施例中,移动设备100的第一数据代理模块启动基于应用的业务的IP五元组的数据包通过MP的传输,从而移动设备100的第一数据代理模块根据MP的模式类型和MP的 协议类型,将上传数据拆分为第一数据和第二数据,并将第一数据和第二数据传输给移动设备100的MP协议client模块。移动设备100的MP协议client模块经由第一传输通道将第一数据重路由到路由设备200的Wi-Fi AP,并经由第二传输通道将第二数据重路由到路由设备200的WAN接口4,使得路由设备200的MP协议server模块接收到第一数据和第二数据。路由设备200的MP协议server模块再将第一数据和第二数据发送给路由设备200的第二数据代理模块。In some embodiments, the first data proxy module of the mobile device 100 initiates the transmission of the IP quintuple data packets of the application-based service through the MP, so that the first data proxy module of the mobile device 100 according to the mode type of the MP and the MP of the protocol type, the upload data is split into first data and second data, and the first data and second data are transmitted to the MP protocol client module of the mobile device 100. The MP protocol client module of the mobile device 100 reroutes the first data to the Wi-Fi AP of the routing device 200 via the first transmission channel, and reroutes the second data to the WAN interface 4 of the routing device 200 via the second transmission channel, The MP protocol server module of the routing device 200 receives the first data and the second data. The MP protocol server module of the routing device 200 then sends the first data and the second data to the second data proxy module of the routing device 200 .
另外,上传数据的拆分方式还可以基于MP的协议类型进行适应地配置。In addition, the split mode of the uploaded data can also be configured adaptively based on the protocol type of the MP.
下面,以MP包括通过Wi-Fi网络400建立的第一传输通道和通过LTE网络建立的第二传输通道,MP的协议类型为MPTCP为例,对移动设备100通过MP向路由设备200发送第一数据和第二数据的具体实现过程进行举例。In the following, taking the MP including the first transmission channel established through the Wi-Fi network 400 and the second transmission channel established through the LTE network, and the protocol type of the MP being MPTCP as an example, the mobile device 100 sends the first transmission channel to the routing device 200 through the MP. The specific implementation process of the data and the second data is given as an example.
在MP的模式类型为聚合模式时,移动设备100可以将上传数据划分为第一数据和第二数据。When the mode type of the MP is the aggregation mode, the mobile device 100 may divide the uploaded data into the first data and the second data.
针对第一传输通道上的第一数据,移动设备100可以在第一数据中的每个数据包的包头中添加每个数据包对应的编号。其中,编号用于移动设备100或路由设备200对MP上的数据包进行排序,得到完整的数据。编号可以占用一个或者多个比特,本申请对此不做限定。For the first data on the first transmission channel, the mobile device 100 may add a number corresponding to each data packet in the packet header of each data packet in the first data. The number is used for the mobile device 100 or the routing device 200 to sort the data packets on the MP to obtain complete data. The number may occupy one or more bits, which is not limited in this application.
针对第二传输通道上的第二数据,移动设备100可以在第二数据中的每个数据包的包头中添加路由设备200的WAN接口4的IP地址和端口信息以及每个数据包对应的编号,或者,移动设备100可以在第二数据中的每个数据包的包头中添加路由设备200的网关700的IP地址和端口信息以及每个数据包对应的编号。For the second data on the second transmission channel, the mobile device 100 may add the IP address and port information of the WAN interface 4 of the routing device 200 and the number corresponding to each data packet in the header of each data packet in the second data Or, the mobile device 100 may add the IP address and port information of the gateway 700 of the routing device 200 and the number corresponding to each data packet in the header of each data packet in the second data.
需要说明的是,在MP的模式类型为冗余模式时,移动设备100无需将上传数据进行拆分,可以在第一传输通道和第二传输通道上均传输上传数据。其中,第一传输通道和第二传输通道上的数据包的格式可分别参见在MP的模式类型为聚合模式时第一传输通道和第二传输通道上的数据包的格式前述描述,此处不做赘述。It should be noted that when the mode type of the MP is the redundant mode, the mobile device 100 does not need to split the upload data, and can transmit the upload data on both the first transmission channel and the second transmission channel. For the formats of the data packets on the first transmission channel and the second transmission channel, please refer to the foregoing description of the format of the data packets on the first transmission channel and the second transmission channel when the mode type of the MP is the aggregation mode. Do repeat.
S103、在路由设备接收到第一数据和第二数据后,路由设备将第一数据和第二数据组合为上传数据。S103. After the routing device receives the first data and the second data, the routing device combines the first data and the second data into upload data.
本申请中,路由设备200根据应用的业务的MP策略,可以对第一传输通道上的第一数据进行解包处理,并对第二传输通道上的第二数据进行解包处理,再按照编号大小,将解包后的数据进行排序处理,组合得到上传数据。In the present application, the routing device 200 can perform unpacking processing on the first data on the first transmission channel, and perform unpacking processing on the second data on the second transmission channel according to the MP policy of the applied service. size, sort the unpacked data, and combine to get the uploaded data.
在一些实施例中,路由设备200的第二数据代理模块根据MP数据表项(如MP的模式类型和MP的协议类型等)中的第一应用的业务类型、移动设备100的MP能力集以及MP的通信策略等参数,可以将第一传输通道上的第一数据进行解包处理,并对第二传输通道上的第二数据进行解包处理,再按照编号大小,将解包后的数据包进行排序处理,组合得到上传数据。In some embodiments, the second data proxy module of the routing device 200 is based on the service type of the first application in the MP data entry (such as the mode type of the MP and the protocol type of the MP, etc.), the MP capability set of the mobile device 100, and the parameters such as the communication strategy of the MP, the first data on the first transmission channel can be unpacked, the second data on the second transmission channel can be unpacked, and the unpacked data can be unpacked according to the size of the number. The packets are sorted and combined to obtain the uploaded data.
S104、路由设备将上传数据经由路由设备与M个应用服务器中的第P个应用服务器之间的连接,传输至M个应用服务器中的第P个应用服务器。S104: The routing device transmits the uploaded data to the P-th application server in the M application servers via the connection between the routing device and the P-th application server in the M application servers.
本申请,路由设备200基于应用的业务类型,从M个应用服务器300中确定与该应用对应的第P个应用服务器300。路由设备200经由路由设备200与M个应用服务器300中的第P个应用服务器300之间的连接,将上传数据传输至M个应用服务器300中的第P个应用服务器300。In this application, the routing device 200 determines the P-th application server 300 corresponding to the application from the M application servers 300 based on the service type of the application. The routing device 200 transmits the upload data to the P-th application server 300 of the M application servers 300 via the connection between the routing device 200 and the P-th application server 300 of the M application servers 300 .
在一些实施例中,路由设备200的第二数据代理模块将上传数据转发给路由设备200的MP协议server模块。路由设备200的MP协议server模块通过路由设备200的WAN接口4转发给应用服务器300。In some embodiments, the second data proxy module of the routing device 200 forwards the uploaded data to the MP protocol server module of the routing device 200 . The MP protocol server module of the routing device 200 forwards it to the application server 300 through the WAN interface 4 of the routing device 200 .
需要说明的是,此处提及的路由设备200的WAN接口4与移动设备100经由第二传输通道向路由设备200发送上传数据时对应的路由设备200的WAN接口4可以相同,也可以不同,本申请对此不做限定。It should be noted that the WAN interface 4 of the routing device 200 mentioned here may be the same as or different from the WAN interface 4 of the routing device 200 when the mobile device 100 sends upload data to the routing device 200 via the second transmission channel. This application does not limit this.
综上,本申请在路由设备与移动设备之间实现Wi-Fi网络和移动互联网的双路传输方式,将路由设备作为移动设备与应用服务器之间业务实现的桥梁,及时将移动设备的数据传输给业务服务器,解决了相关技术中需要所有应用服务器具备数据拆分和数据聚合的苛刻要求,方便不同类型的业务的推广,降低了推行成本,还有利于提升数据传输的效率,满足移动设备的大吞吐率的业务需求,为用户带来了高带宽且低时延的通信体验。To sum up, the present application implements a dual transmission mode of Wi-Fi network and mobile Internet between the routing device and the mobile device, uses the routing device as a bridge for service realization between the mobile device and the application server, and transmits the data of the mobile device in time. For business servers, it solves the strict requirements of data splitting and data aggregation in related technologies for all application servers, facilitates the promotion of different types of services, reduces implementation costs, and is also conducive to improving the efficiency of data transmission to meet the needs of mobile devices. The high-throughput service requirements bring users a high-bandwidth and low-latency communication experience.
需要说明的是,步骤S105-S107为可选地。若M个应用服务器中的第P个应用服务器有数据需要向移动设备100返回数据,则本申请可执行步骤S105-S107。It should be noted that steps S105-S107 are optional. If the P th application server among the M application servers has data and needs to return data to the mobile device 100, the present application may perform steps S105-S107.
S105、M个应用服务器中的第P个应用服务器将下载数据经由路由设备与M个应用服务器中的第P个应用服务器之间的连接,传输至路由设备。其中,下载数据为要被传输至移动设备的数据。S105: The P th application server among the M application servers transmits the download data to the routing device via the connection between the routing device and the P th application server among the M application servers. The download data is the data to be transmitted to the mobile device.
本申请中,第P个应用服务器300根据上传数据,确定移动设备100所请求的应用的业务需求。从而,第P个应用服务器300可以向路由设备200发送下载数据,以便借助路由设备200向移动设备100转发下载数据。In this application, the P-th application server 300 determines the service requirements of the application requested by the mobile device 100 according to the uploaded data. Thus, the P-th application server 300 can send the download data to the routing device 200 so as to forward the download data to the mobile device 100 by means of the routing device 200 .
其中,本申请对下载数据的具体实现方式不做限定。例如,下载数据中的各个数据包可以采用包头+包体的格式,也可以采用包头+包体+包尾的格式。Wherein, the present application does not limit the specific implementation manner of downloading data. For example, each data packet in the downloaded data may be in the format of packet header+packet body, or may be in the format of packet header+packet body+packet tail.
在一些实施例中,路由设备200的MP协议server模块通过路由设备200的WAN接口4接收到第P个应用服务器300发送的下载数据。In some embodiments, the MP protocol server module of the routing device 200 receives the download data sent by the P-th application server 300 through the WAN interface 4 of the routing device 200 .
S106、路由设备将下载数据拆分为第三数据和第四数据,并将第三数据经由第一传输通道传输至移动设备,将第四数据经由第二传输通道传输至移动设备。S106: The routing device splits the downloaded data into third data and fourth data, transmits the third data to the mobile device via the first transmission channel, and transmits the fourth data to the mobile device via the second transmission channel.
本申请中,路由设备200基于应用的业务的MP策略,将下载数据拆分为第三数据和第四数据,并将第三数据经由第一传输通道传输至移动设备100,将第四数据经由第二传输通道传输至移动设备100。其中,本申请对第三数据和第四数据的具体实现方式不做限定。In this application, the routing device 200 splits the download data into third data and fourth data based on the MP policy of the applied service, transmits the third data to the mobile device 100 via the first transmission channel, and transmits the fourth data to the mobile device 100 via the first transmission channel. The second transmission channel is transmitted to the mobile device 100 . Wherein, the present application does not limit the specific implementation manners of the third data and the fourth data.
在一些实施例中,路由设备200的第二数据代理模块启动基于应用的业务的IP五元组的数据包通过MP的传输,从而路由设备200的第二数据代理模块基于业务的IP五元组,查询MP数据表项,确定出MP的协议类型和MP的模式类型。路由设备200的第二数据代理模块根据MP的模式类型和MP的协议类型,将下载数据拆分为第三数据和第四数据,并将第三数据和第四数据经由第二传输通道传输给路由设备200的MP协议server模块。路由设备200的MP协议server模块经由第一传输通道将第三数据重路由到移动设备100的与Wi-Fi网络400对应的WAN接口1,并经由第二传输通道将第四数据重路由到移动设备100与蜂窝网络500对应的的WAN接口2,使得移动设备100的MP协议client模块接收到第三数据和第四数据。移动设备100的MP协议client模块再将第三数据和第四数据发送给移动设备100的第一数据代理模块。In some embodiments, the second data proxy module of the routing device 200 initiates transmission of the data packets of the IP quintuple of the application-based service through the MP, so that the second data proxy module of the routing device 200 is based on the IP quintuple of the service. , query the MP data entry to determine the MP protocol type and MP mode type. The second data proxy module of the routing device 200 splits the downloaded data into the third data and the fourth data according to the mode type of the MP and the protocol type of the MP, and transmits the third data and the fourth data to the third data and the fourth data via the second transmission channel. The MP protocol server module of the routing device 200. The MP protocol server module of the routing device 200 reroutes the third data to the WAN interface 1 of the mobile device 100 corresponding to the Wi-Fi network 400 via the first transmission channel, and reroutes the fourth data to the mobile device 100 via the second transmission channel The device 100 corresponds to the WAN interface 2 of the cellular network 500, so that the MP protocol client module of the mobile device 100 receives the third data and the fourth data. The MP protocol client module of the mobile device 100 then sends the third data and the fourth data to the first data proxy module of the mobile device 100 .
MP的协议类型和MP的模式类型不同,路由设备200向移动设备100传输下载数据的方 式不同。一般情况下,S106中路由设备200向移动设备100发送下载数据的方式与S102中移动设备100向路由设备200发送请数据的方式相同。The protocol type of the MP and the mode type of the MP are different, and the way the routing device 200 transmits the download data to the mobile device 100 is different. Generally, the manner in which the routing device 200 sends the download data to the mobile device 100 in S106 is the same as the manner in which the mobile device 100 sends the request data to the routing device 200 in S102.
下面,以MP包括Wi-Fi网络400建立的第一传输通道和通过LTE网络建立的第二传输通道,MP的协议类型为MPTCP为例,对路由设备200通过MP向移动设备100发送第三数据和第四数据的具体实现过程进行举例。In the following, taking the MP including the first transmission channel established by the Wi-Fi network 400 and the second transmission channel established through the LTE network, and the protocol type of the MP being MPTCP as an example, the routing device 200 sends the third data to the mobile device 100 through the MP The specific implementation process of the fourth data is given as an example.
在MP的模式类型为聚合模式时,路由设备200可以将下载数据划分为第三数据和第四数据。其中,第三数据和第四数据的数据分配包情况、数据包格式均可参见前述描述,此处不做赘述。When the mode type of the MP is the aggregation mode, the routing device 200 may divide the download data into third data and fourth data. Wherein, for the data distribution packet situation and data packet format of the third data and the fourth data, reference may be made to the foregoing description, which will not be repeated here.
针对第一传输通道上的第三数据,路由设备200可以在第三数据中的每个数据包的包头中添加每个数据包对应的编号。For the third data on the first transmission channel, the routing device 200 may add a number corresponding to each data packet in the packet header of each data packet in the third data.
针对第二传输通道上的第四数据,路由设备200可以在第四数据中的每个数据包的包头中添加移动设备100的与蜂窝网络500对应的WAN接口2的IP地址和端口信息以及每个数据包对应的编号,或者,路由设备200可以在第四数据中的每个数据包的包头中添加移动设备100的网关600的IP地址和端口信息以及每个数据包对应的编号。For the fourth data on the second transmission channel, the routing device 200 may add the IP address and port information of the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 and the information of each data packet in the header of each data packet in the fourth data The number corresponding to each data packet, or the routing device 200 may add the IP address and port information of the gateway 600 of the mobile device 100 and the number corresponding to each data packet in the header of each data packet in the fourth data.
需要说明的是,在MP的模式类型为冗余模式时,路由设备200无需将下载数据进行拆分,可以在第一传输通道和第二传输通道上均传输下载数据。其中,第一传输通道和第二传输通道上的数据包的格式可分别参见在MP的模式类型为聚合模式时第一传输通道和第二传输通道上的数据包的格式前述描述,此处不做赘述。It should be noted that, when the mode type of the MP is the redundant mode, the routing device 200 does not need to split the download data, and can transmit the download data on both the first transmission channel and the second transmission channel. For the formats of the data packets on the first transmission channel and the second transmission channel, please refer to the foregoing description of the format of the data packets on the first transmission channel and the second transmission channel when the mode type of the MP is the aggregation mode. Do repeat.
S107、在移动设备接收到第三数据和第四数据后,移动设备将第三数据和第四数据组合为下载数据,并基于下载数据,实现与M个应用服务器中的第P个应用服务器对应的应用的业务。S107, after the mobile device receives the third data and the fourth data, the mobile device combines the third data and the fourth data into download data, and based on the download data, realizes the correspondence with the Pth application server in the M application servers application business.
本申请中,移动设备100根据应用的业务的MP策略,可以对第一传输通道上的第三数据进行解包处理,并对第二传输通道上的第四数据进行解包处理,再按照编号大小,将解包后的数据进行排序处理,组合得到下载数据。In the present application, according to the MP policy of the applied service, the mobile device 100 can perform unpacking processing on the third data on the first transmission channel, and perform unpacking processing on the fourth data on the second transmission channel. size, sort the unpacked data, and combine to get the download data.
在一些实施例中,移动设备100的第一数据代理模块基于下载数据实现应用的业务。例如,手机上视频应用实现视频播放。In some embodiments, the first data agent module of the mobile device 100 implements the service of the application based on the downloaded data. For example, a video application on a mobile phone implements video playback.
本申请提供的通信方法,通过移动设备与路由设备通过Wi-Fi网络建立第一传输通道,移动设备与路由设备通过蜂窝网络建立第二传输通道。移动设备将上传数据拆分为第一数据和第二数据,且经由第一传输通道将第一数据传输至路由设备,经由第二传输通道将第二数据传输至路由设备。路由设备将第一数据和第二数据组合成上传数据,并通过路由设备与应用服务器之间的连接,将上传数据传输至应用服务器。应用服务器基于上传数据,得到下载数据,并通过应用服务器与路由设备之间的连接,将下载数据传输至路由设备。路由设备将下载数据拆分为第三数据和第四数据,且经由第一传输通道将第三数据传输至移动设备,经由第二传输通道将第四数据传输至移动设备。移动设备将第三数据和第四数据组合成下载数据,并基于下载数据实现与应用服务器对应的应用的业务。本申请在路由设备与移动设备之间实现Wi-Fi网络和移动互联网的双路传输方式,将路由设备作为移动设备与应用服务器之间业务实现的桥梁,实现了移动设备与应用服务器之间的数据传输,解决了相关技术中需要所有应用服务器具备数据拆分和数据聚合的苛刻要求,方便不同类型的业务的推广,降低了推行成本,还有利于提升数据传输的效率,满足移动设备的大吞 吐率的业务需求,为用户带来了高带宽且低时延的通信体验。In the communication method provided by the present application, a first transmission channel is established by a mobile device and a routing device through a Wi-Fi network, and a second transmission channel is established by the mobile device and the routing device through a cellular network. The mobile device splits the upload data into first data and second data, and transmits the first data to the routing device via the first transmission channel, and transmits the second data to the routing device via the second transmission channel. The routing device combines the first data and the second data into uploading data, and transmits the uploading data to the application server through the connection between the routing device and the application server. The application server obtains the download data based on the upload data, and transmits the download data to the routing device through the connection between the application server and the routing device. The routing device splits the download data into third data and fourth data, and transmits the third data to the mobile device via the first transmission channel, and transmits the fourth data to the mobile device via the second transmission channel. The mobile device combines the third data and the fourth data into download data, and implements the service of the application corresponding to the application server based on the download data. The present application realizes the dual transmission mode of Wi-Fi network and mobile Internet between the routing device and the mobile device, uses the routing device as a bridge for service realization between the mobile device and the application server, and realizes the connection between the mobile device and the application server. Data transmission solves the demanding requirements of data splitting and data aggregation for all application servers in related technologies, facilitates the promotion of different types of services, reduces implementation costs, and is also conducive to improving the efficiency of data transmission to meet the needs of large mobile devices. The service requirements of throughput rate bring users a high-bandwidth and low-latency communication experience.
基于前述描述,结合图7,以图2所示实施例的通信系统中的移动设备100和路由设备200为执行主体,对本申请中S101的在移动设备检测到移动设备占据Wi-Fi网络的带宽小于预设的第一阈值后,和/或,在移动设备检测到移动设备通过Wi-Fi网络传输的时延大于预设的第二阈值后,移动设备与路由设备通过蜂窝网络建立第二传输通道具体实现过程进行详细说明。Based on the foregoing description and in conjunction with FIG. 7 , taking the mobile device 100 and the routing device 200 in the communication system of the embodiment shown in FIG. 2 as the execution subjects, in S101 of the present application, when the mobile device detects that the mobile device occupies the bandwidth of the Wi-Fi network After being less than the preset first threshold, and/or after the mobile device detects that the delay of the mobile device transmission through the Wi-Fi network is greater than the preset second threshold, the mobile device and the routing device establish a second transmission through the cellular network. The specific implementation process of the channel is described in detail.
图7为本申请实施例提供的一种通信方法的信令流程图。如图7所示,本申请的通信方法可以包括:FIG. 7 is a signaling flowchart of a communication method provided by an embodiment of the present application. As shown in Figure 7, the communication method of the present application may include:
S201、在移动设备检测到移动设备占据Wi-Fi网络的带宽小于预设的第一阈值后,和/或,在移动设备检测到移动设备通过Wi-Fi网络传输的时延大于预设的第二阈值后,移动设备经由第一传输通道向路由设备发送第一请求。其中,第一请求为询问路由设备是否具有多路传输数据的能力的请求。第一请求中携带有应用的业务的预置网络参数和移动设备的MP能力信息。S201. After the mobile device detects that the bandwidth occupied by the mobile device on the Wi-Fi network is less than a preset first threshold, and/or when the mobile device detects that the transmission delay of the mobile device through the Wi-Fi network is greater than a preset first threshold After two thresholds, the mobile device sends the first request to the routing device via the first transmission channel. The first request is a request for inquiring whether the routing device has the capability of multiplexing data. The first request carries preset network parameters of the service of the application and MP capability information of the mobile device.
S202、在路由设备经由第一传输通道接收到移动设备的第一请求,以及确定路由设备具有多路传输数据的能力后,路由设备经由第一传输通道向移动设备发送第一响应。其中,第一响应为针对第一请求的响应,用于表明路由设备具有多路传输数据的能力。S202. After the routing device receives the first request of the mobile device via the first transmission channel and determines that the routing device has the capability of multiplexing data, the routing device sends a first response to the mobile device via the first transmission channel. The first response is a response to the first request, and is used to indicate that the routing device has the capability of multiplexing data.
本申请中,在移动设备100检测到移动设备100占据Wi-Fi网络400的带宽小于预设的第一阈值后,和/或,在移动设备100检测到移动设备100通过Wi-Fi网络400传输的时延大于预设的第二阈值后,移动设备100可以确定需要启动MP。In this application, after the mobile device 100 detects that the bandwidth occupied by the mobile device 100 of the Wi-Fi network 400 is less than the preset first threshold, and/or, after the mobile device 100 detects that the mobile device 100 transmits data through the Wi-Fi network 400 After the delay is greater than the preset second threshold, the mobile device 100 may determine that the MP needs to be activated.
在移动设备100启动MP之后,移动设备100可以向路由设备200发送第一请求,使得路由设备200从第一请求中获取应用的业务的预置网络参数和移动设备100的MP能力信息。从而,路由设备200可以判断出路由设备200的实际网络情况(如路由设备200的WAN接口4的带宽、时延等参数的网络Qos情况)是否能够满足应用的业务的预置网络参数,且路由设备200还可以判断出路由设备200的MP能力信息是否匹配移动设备100的MP能力信息,即MP的协议类型是否满足,MP的模式类型是否满足,以及MP的传输通道数量是否满足等。After the mobile device 100 starts MP, the mobile device 100 may send a first request to the routing device 200, so that the routing device 200 obtains preset network parameters of the application service and MP capability information of the mobile device 100 from the first request. Therefore, the routing device 200 can determine whether the actual network conditions of the routing device 200 (such as the network QoS of parameters such as bandwidth and delay of the WAN interface 4 of the routing device 200) can satisfy the preset network parameters of the application service, and the routing The device 200 can also determine whether the MP capability information of the routing device 200 matches the MP capability information of the mobile device 100, that is, whether the protocol type of the MP is satisfied, whether the mode type of the MP is satisfied, and whether the number of transmission channels of the MP is satisfied, etc.
其中,路由设备200的MP能力信息可以包括但不限于:路由设备200的MP支持状态、MP能力集、工作状态等。路由设备200的MP支持状态,用于表示路由设备200是否支持MP。路由设备200的MP能力集,用于表示路由设备200具备的MP能力。路由设备200的MP能力集可以包括但不限于:MP的协议类型、MP的模式类型、MP中的每个传输通道的网络类型以及传输通道数量。路由设备200的工作状态,用于表示路由设备200是启动MP或是停止启动MP。Wherein, the MP capability information of the routing device 200 may include, but is not limited to: MP support status, MP capability set, working status, and the like of the routing device 200 . The MP support status of the routing device 200 is used to indicate whether the routing device 200 supports MP. The MP capability set of the routing device 200 is used to indicate the MP capabilities possessed by the routing device 200 . The MP capability set of the routing device 200 may include, but is not limited to, the protocol type of the MP, the mode type of the MP, the network type of each transmission channel in the MP, and the number of transmission channels. The working status of the routing device 200 is used to indicate whether the routing device 200 starts the MP or stops starting the MP.
从而,路由设备200可以判断出路由设备200是否具有多路传输数据的能力,方便移动设备100确定路由设备200是否支持MP。在路由设备200具有多路传输数据的能力时,路由设备200向移动设备100发送第一响应。Therefore, the routing device 200 can determine whether the routing device 200 has the capability of multiplexing data, which facilitates the mobile device 100 to determine whether the routing device 200 supports MP. When routing device 200 has the capability to multiplex data, routing device 200 sends a first response to mobile device 100 .
在一些实施例中,移动设备100的第一MP策略中心模块在启动MP之后,可以调用移动设备100的MP协议client模块向路由设备200的MP协议server模块发送第一请求。从而,移动设备100可以通过第一请求向路由设备200询问路由设备200是否支持MP。In some embodiments, after starting the MP, the first MP policy center module of the mobile device 100 may call the MP protocol client module of the mobile device 100 to send the first request to the MP protocol server module of the routing device 200 . Thus, the mobile device 100 may inquire the routing device 200 whether the routing device 200 supports MP through the first request.
路由设备200的MP协议server模块向路由设备200的第二MP策略中心模块转发第一请求。路由设备200的第二MP策略中心模块从路由设备200的代理信息模块获取路由设备200 的MP能力信息,并从路由设备200的第二连接管理模块从路由设备200的WAN接口4获取路由设备200的第一传输通道的实际网络Qos情况。从而,路由设备200的第二MP策略中心模块可以判断路由设备200的MP的协议类型是否满足、MP的模式类型是否满足、路由设备200的第一传输通道的实际网络Qos情况(如时延、带宽等参数)是否满足等,来判断路由设备200是否支持MP。The MP protocol server module of the routing device 200 forwards the first request to the second MP policy center module of the routing device 200 . The second MP policy center module of the routing device 200 obtains the MP capability information of the routing device 200 from the proxy information module of the routing device 200, and obtains the routing device 200 from the WAN interface 4 of the routing device 200 from the second connection management module of the routing device 200 The actual network QoS of the first transmission channel. Therefore, the second MP policy center module of the routing device 200 can determine whether the protocol type of the MP of the routing device 200 is satisfied, whether the mode type of the MP is satisfied, and the actual network QoS of the first transmission channel of the routing device 200 (such as delay, parameters such as bandwidth) are satisfied, etc., to determine whether the routing device 200 supports MP.
从而,在路由设备200确定路由设备200具有多路传输数据的能力时,路由设备200的第二MP策略模块驱动路由设备200的MP协议server模块向移动设备100的MP协议client模块发送第一响应,移动设备100的MP协议client模块将第一响应转发给第一MP策略模块。Therefore, when the routing device 200 determines that the routing device 200 has the capability of multiplexing data, the second MP policy module of the routing device 200 drives the MP protocol server module of the routing device 200 to send the first response to the MP protocol client module of the mobile device 100 , the MP protocol client module of the mobile device 100 forwards the first response to the first MP policy module.
需要说明的是,第一响应也可以不携带路由设备200的路由设备200的WAN接口4的IP地址和端口信息,路由设备200可以将路由设备200的WAN接口4的IP地址和端口信息传输到云端服务器800,使得移动设备100通过账号绑定等方式从云端服务器800中,可以获取路由设备200的WAN接口4的IP地址和端口信息。It should be noted that the first response may not carry the IP address and port information of the WAN interface 4 of the routing device 200 of the routing device 200, and the routing device 200 may transmit the IP address and port information of the WAN interface 4 of the routing device 200 to The cloud server 800 enables the mobile device 100 to obtain the IP address and port information of the WAN interface 4 of the routing device 200 from the cloud server 800 by means of account binding or the like.
S203、在移动设备确定路由设备具有多路传输数据的能力后,移动设备通过蜂窝网络向路由设备发送第二请求。其中,第二请求为对移动设备的与蜂窝网络对应的WAN接口与路由设备的WAN接口之间的传输通道进行因特网包探索器(packet internet groper,PING)探测的请求。S203. After the mobile device determines that the routing device has the capability of multiplexing data, the mobile device sends a second request to the routing device through the cellular network. Wherein, the second request is a request for performing Internet packet explorer (packet internet groper, PING) detection on the transmission channel between the WAN interface corresponding to the cellular network and the WAN interface of the routing device.
由于MP中的每个传输通道的网络能力会受到运营商互联网、移动设备100、路由设备200及外界环境等各种因素的影响。因此,移动设备100可以对路由设备200的WAN接口4的IP地址和端口信息进行PING探测,判断出移动设备100是否能够通过蜂窝网络500经由路由设备200的WAN接口4与路由设备200进行通信,从而确定第二传输通道可以相互传输数据,确保了数据包的有效传输,使得移动设备100能够顺利通过MP与路由设备200进行通信。Because the network capability of each transmission channel in the MP will be affected by various factors such as the operator's Internet, the mobile device 100, the routing device 200, and the external environment. Therefore, the mobile device 100 can perform PING detection on the IP address and port information of the WAN interface 4 of the routing device 200 to determine whether the mobile device 100 can communicate with the routing device 200 via the WAN interface 4 of the routing device 200 through the cellular network 500, Therefore, it is determined that the second transmission channel can transmit data to each other, which ensures the effective transmission of data packets, so that the mobile device 100 can smoothly communicate with the routing device 200 through the MP.
在一些实施例中,移动设备100的第一MP策略模块调用移动设备100的第一通道管理模块对路由设备200的WAN接口4的IP地址和端口信息发起PING探测。In some embodiments, the first MP policy module of the mobile device 100 invokes the first channel management module of the mobile device 100 to initiate a PING probe for the IP address and port information of the WAN interface 4 of the routing device 200 .
S204、移动设备判断在预设时长内通过蜂窝网络是否接收到路由设备的第二响应,第二响应为针对第二请求的响应。S204. The mobile device determines whether a second response from the routing device is received through the cellular network within a preset time period, where the second response is a response to the second request.
若移动设备100在预设时长内通过蜂窝网络500没有接收到路由设备200的第二响应,则移动设备100确定通过蜂窝网络500对路由设备200的WAN接口4的IP地址和端口信息进行PING探测失败,从而移动设备100便可执行步骤S2051-S2052。If the mobile device 100 does not receive the second response from the routing device 200 through the cellular network 500 within a preset period of time, the mobile device 100 determines to perform PING detection on the IP address and port information of the WAN interface 4 of the routing device 200 through the cellular network 500 If it fails, the mobile device 100 can execute steps S2051-S2052.
若移动设备100在预设时长内通过蜂窝网络500接收到路由设备200的第二响应,则移动设备100确定通过蜂窝网络500对路由设备200的WAN接口4的IP地址和端口信息进行PING探测成功,从而移动设备100便可执行步骤S206。If the mobile device 100 receives the second response from the routing device 200 through the cellular network 500 within the preset time period, the mobile device 100 determines that the PING detection of the IP address and port information of the WAN interface 4 of the routing device 200 through the cellular network 500 is successful. , so that the mobile device 100 can execute step S206.
需要说明的是,S203为可选的步骤,即一般情况下,移动设备100的蜂窝网络500对路由设备200的WAN接口4的IP地址和端口信息进行PING探测通常会失败,因此,移动设备100可以直接执行S2051-S2052。It should be noted that S203 is an optional step, that is, in general, the cellular network 500 of the mobile device 100 will fail to perform PING detection on the IP address and port information of the WAN interface 4 of the routing device 200. Therefore, the mobile device 100 S2051-S2052 can be directly executed.
基于前述描述,移动设备100可以采用如下多种实现方式,获取到路由设备200的WAN接口4的IP地址和端口信息。Based on the foregoing description, the mobile device 100 may adopt the following multiple implementation manners to obtain the IP address and port information of the WAN interface 4 of the routing device 200 .
一种可行的实现方式中,由于移动设备100已经通过Wi-Fi网络400接入路由设备200,因此,移动设备100可以通过Wi-Fi网络400向路由设备200请求路由设备200的WAN接口4的IP地址和端口信息,使得路由设备200向移动设备100发送路由设备200的WAN接口4的IP 地址和端口信息。In a feasible implementation manner, since the mobile device 100 has accessed the routing device 200 through the Wi-Fi network 400, the mobile device 100 may request the routing device 200 through the Wi-Fi network 400 for the WAN interface 4 of the routing device 200. The IP address and port information enables the routing device 200 to send the IP address and port information of the WAN interface 4 of the routing device 200 to the mobile device 100 .
另一种可行的实现方式中,移动设备100通过应用(Application,App)和/或网页,与路由设备200采用相同账号登录云端服务器800,以便从云端服务器800中获取路由设备200的WAN接口4的IP地址和端口信息。In another feasible implementation manner, the mobile device 100 uses the same account as the routing device 200 to log in to the cloud server 800 through an application (Application, App) and/or a web page, so as to obtain the WAN interface 4 of the routing device 200 from the cloud server 800 . IP address and port information.
其中,云端服务器800可以作为移动设备100与路由设备200的信息交互中枢。云端服务器800可以存储路由设备200的绑定信息,如路由设备200的ID、路由设备200的类型(如路由器或CPE)、路由设备200的MP能力信息、路由设备200的WAN接口4的IP地址和端口信息、查询功能等。通常,路由设备200可以事先向云端服务器800上传路由设备200的绑定信息。另外,在路由设备200的绑定信息中的任意一个发生变化时,路由设备200可以向云端服务器800同步更新对应的信息。The cloud server 800 may serve as an information exchange center between the mobile device 100 and the routing device 200 . The cloud server 800 can store the binding information of the routing device 200, such as the ID of the routing device 200, the type of the routing device 200 (such as router or CPE), the MP capability information of the routing device 200, and the IP address of the WAN interface 4 of the routing device 200. and port information, query functions, etc. Generally, the routing device 200 may upload the binding information of the routing device 200 to the cloud server 800 in advance. In addition, when any one of the binding information of the routing device 200 changes, the routing device 200 may update the corresponding information to the cloud server 800 synchronously.
例如,在手机通过Wi-Fi网络400连接上路由器时,用户可以通过APP或网页,实现手机与路由器的绑定,使得云端服务器800向手机提供路由器的绑定信息。For example, when the mobile phone is connected to the router through the Wi-Fi network 400, the user can bind the mobile phone and the router through an APP or a web page, so that the cloud server 800 provides the binding information of the router to the mobile phone.
另外,云端服务器800还可以向移动设备100提供查询接口,以便从查询接口中查询到路由设备200是否支持MP等。且云端服务器800还可以将检测到的应用的业务情况(如时延、带宽或卡顿率等体验指标)传输给移动设备100,使得移动设备100呈现应用的业务情况。在一些实施例中,移动设备100还可以显示MP中的每个传输通道的质量情况、MP中不同网络类型的使用流量等参数。In addition, the cloud server 800 may also provide a query interface to the mobile device 100, so as to query whether the routing device 200 supports MP and the like from the query interface. In addition, the cloud server 800 may also transmit the detected service conditions of the application (eg, experience indicators such as delay, bandwidth, or freezing rate) to the mobile device 100, so that the mobile device 100 presents the service conditions of the application. In some embodiments, the mobile device 100 may also display parameters such as the quality of each transmission channel in the MP, the usage traffic of different network types in the MP, and the like.
另一种可行的实现方式中,移动设备100利用近场通信(Near Field Communication,NFC)技术,通过碰一碰路由设备200,以获取路由设备200的WAN接口4的IP地址和端口信息。In another feasible implementation manner, the mobile device 100 uses the Near Field Communication (Near Field Communication, NFC) technology to obtain the IP address and port information of the WAN interface 4 of the routing device 200 by touching the routing device 200.
另一种可行的实现方式中,移动设备100可以扫描路由设备200的二维码,能够获得路由设备200的WAN接口4的IP地址和端口信息。In another feasible implementation manner, the mobile device 100 can scan the two-dimensional code of the routing device 200 to obtain the IP address and port information of the WAN interface 4 of the routing device 200 .
需要说明的是,本申请不限于上述四种可行的实现方式使得移动设备100可以获取路由设备200的WAN接口4的IP地址和端口信息。It should be noted that the present application is not limited to the above four feasible implementation manners so that the mobile device 100 can obtain the IP address and port information of the WAN interface 4 of the routing device 200 .
S2051、移动设备基于NAT穿越,获取移动设备的网关的IP地址和端口信息,并经由第一传输通道向路由设备发送移动设备的网关的IP地址和端口信息。路由设备基于NAT穿越,获取路由设备的网关的IP地址和端口信息,并经由第一传输通道向移动设备发送路由设备的网关的IP地址和端口信息。S2051 , the mobile device acquires the IP address and port information of the gateway of the mobile device based on NAT traversal, and sends the IP address and port information of the gateway of the mobile device to the routing device via the first transmission channel. The routing device acquires the IP address and port information of the gateway of the routing device based on NAT traversal, and sends the IP address and port information of the gateway of the routing device to the mobile device via the first transmission channel.
若移动设备100在预设时长内没有通过蜂窝网络500接收到路由设备200的第二响应,则移动设备100可以确定移动设备100基于移动设备100的WAN接口4的IP地址和端口信息,无法经由第二传输通道与路由设备200进行通信,且路由设备200是无法感知移动设备100是否发送第二请求。If the mobile device 100 does not receive the second response from the routing device 200 through the cellular network 500 within a preset period of time, the mobile device 100 may determine that the mobile device 100 cannot access the mobile device 100 based on the IP address and port information of the WAN interface 4 of the mobile device 100 The second transmission channel communicates with the routing device 200, and the routing device 200 cannot sense whether the mobile device 100 sends the second request.
因此,移动设备100可以利用NAT穿越技术,经由移动设备100的网关600向云端服务器800发送NAT穿越数据,使得云端服务器800获取到移动设备100的网关600的IP地址和端口信息。云端服务器800经由移动设备100的网关600,向移动设备100发送移动设备100的网关600的IP地址和端口信息。从而,移动设备100通过Wi-Fi网络400,经由第一传输通道向路由设备200发送移动设备100的网关600的IP地址和端口信息。Therefore, the mobile device 100 can use the NAT traversal technology to send NAT traversal data to the cloud server 800 via the gateway 600 of the mobile device 100, so that the cloud server 800 obtains the IP address and port information of the gateway 600 of the mobile device 100. The cloud server 800 sends the IP address and port information of the gateway 600 of the mobile device 100 to the mobile device 100 via the gateway 600 of the mobile device 100 . Therefore, the mobile device 100 sends the IP address and port information of the gateway 600 of the mobile device 100 to the routing device 200 through the Wi-Fi network 400 via the first transmission channel.
在一些实施例中,移动设备100的第一MP策略模块驱动移动设备100的第一NAT模块与云端服务器800完成NAT穿越,且移动设备100的第一NAT模块会在NAT穿越成功时存储 移动设备100的网关600的IP地址和端口信息。从而,移动设备100的第一MP策略模块从移动设备100的第一NAT模块中调用移动设备100的网关600的IP地址和端口信息,并驱动移动设备100的MP协议client模块向路由设备200的MP协议server模块发送移动设备100的网关600的IP地址和端口信息。In some embodiments, the first MP policy module of the mobile device 100 drives the first NAT module of the mobile device 100 to complete NAT traversal with the cloud server 800, and the first NAT module of the mobile device 100 will store the mobile device when the NAT traversal is successful. IP address and port information of gateway 600 of 100. Therefore, the first MP policy module of the mobile device 100 calls the IP address and port information of the gateway 600 of the mobile device 100 from the first NAT module of the mobile device 100, and drives the MP protocol client module of the mobile device 100 to the routing device 200 The MP protocol server module sends the IP address and port information of the gateway 600 of the mobile device 100 .
在移动设备100获取移动设备100的网关600的IP地址和端口信息的同时,移动设备100通过Wi-Fi网络400,经由第一传输通道向路由设备200发起NAT穿越请求,使得路由设备200从云端服务器800获取到路由设备200的网关700的IP地址和端口信息。When the mobile device 100 acquires the IP address and port information of the gateway 600 of the mobile device 100, the mobile device 100 initiates a NAT traversal request to the routing device 200 through the Wi-Fi network 400 via the first transmission channel, so that the routing device 200 can send a NAT traversal request to the routing device 200 from the cloud. The server 800 acquires the IP address and port information of the gateway 700 of the routing device 200 .
路由设备200可以利用NAT穿越技术,经由路由设备200的网关700向云端服务器800发送NAT穿越数据,使得云端服务器800获取到路由设备200的网关700的IP地址和端口信息。云端服务器800经由路由设备200的网关700,向路由设备200发送路由设备200的网关700的IP地址和端口信息。从而,路由设备200通过Wi-Fi网络400,经由第一传输通道向移动设备100发送路由设备200的网关700的IP地址和端口信息。The routing device 200 can use the NAT traversal technology to send NAT traversal data to the cloud server 800 via the gateway 700 of the routing device 200 , so that the cloud server 800 obtains the IP address and port information of the gateway 700 of the routing device 200 . The cloud server 800 sends the IP address and port information of the gateway 700 of the routing device 200 to the routing device 200 via the gateway 700 of the routing device 200 . Thus, the routing device 200 sends the IP address and port information of the gateway 700 of the routing device 200 to the mobile device 100 through the Wi-Fi network 400 via the first transmission channel.
在一些实施例中,移动设备100的第一MP策略模块驱动移动设备100的MP协议client模块发起NAT穿越请求,移动设备100的MP协议client模块便向路由设备200的MP协议server模块发送NAT穿越请求。路由设备200的MP协议server模块将NAT穿越请求转发给路由设备200的第二MP策略模块。In some embodiments, the first MP policy module of the mobile device 100 drives the MP protocol client module of the mobile device 100 to initiate a NAT traversal request, and the MP protocol client module of the mobile device 100 sends a NAT traversal request to the MP protocol server module of the routing device 200 ask. The MP protocol server module of the routing device 200 forwards the NAT traversal request to the second MP policy module of the routing device 200 .
路由设备200的第二MP策略模块驱动路由设备200的第二NAT模块与云端服务器800完成NAT穿越,且路由设备200的第二NAT模块会在NAT穿越成功时存储路由设备200的网关700的IP地址和端口信息。从而,路由设备200的第二MP策略模块从路由设备200的第二NAT模块中调用路由设备200的网关700的IP地址和端口信息,并驱动路由设备200的MP协议server模块向移动设备100的MP协议client模块发送路由设备200的网关700的IP地址和端口信息。The second MP policy module of the routing device 200 drives the second NAT module of the routing device 200 to complete NAT traversal with the cloud server 800, and the second NAT module of the routing device 200 will store the IP address of the gateway 700 of the routing device 200 when the NAT traversal is successful address and port information. Therefore, the second MP policy module of the routing device 200 calls the IP address and port information of the gateway 700 of the routing device 200 from the second NAT module of the routing device 200, and drives the MP protocol server module of the routing device 200 to the mobile device 100 The MP protocol client module sends the IP address and port information of the gateway 700 of the routing device 200 .
S2052、移动设备100和路由设备200确定基于移动设备100的网关600的IP地址和端口信息、路由设备200的网关700的IP地址和端口信息以及路由设备200的WAN接口4的IP地址和端口信息,经由第二传输通道传输数据。S2052 , the mobile device 100 and the routing device 200 determine the IP address and port information based on the gateway 600 of the mobile device 100 , the IP address and port information of the gateway 700 of the routing device 200 , and the IP address and port information of the WAN interface 4 of the routing device 200 , transmit data via the second transmission channel.
基于前述描述,移动设备100和路由设备200均可以获取到移动设备100的网关600的IP地址和端口信息,路由设备200的网关700的IP地址和端口信息,以及路由设备200的WAN接口4的IP地址和端口信息。Based on the foregoing description, both the mobile device 100 and the routing device 200 can obtain the IP address and port information of the gateway 600 of the mobile device 100, the IP address and port information of the gateway 700 of the routing device 200, and the information of the WAN interface 4 of the routing device 200. IP address and port information.
从而,移动设备100可以确定基于移动设备100的网关600的IP地址和端口信息、路由设备200的网关700的IP地址和端口信息以及路由设备200的WAN接口4的IP地址和端口信息,可以从移动设备100的与蜂窝网络500对应的WAN接口2,经由移动设备100的网关600、运营商互联网以及路由设备200的网关700,将数据从路由设备200的WAN接口4传输至路由设备200。Thus, the mobile device 100 can determine based on the IP address and port information of the gateway 600 of the mobile device 100, the IP address and port information of the gateway 700 of the routing device 200, and the IP address and port information of the WAN interface 4 of the routing device 200, which can be obtained from The WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 transmits data from the WAN interface 4 of the routing device 200 to the routing device 200 via the gateway 600 of the mobile device 100 , the carrier Internet, and the gateway 700 of the routing device 200 .
路由设备200可以确定基于移动设备100的网关600的IP地址和端口信息、路由设备200的网关700的IP地址和端口信息以及路由设备200的WAN接口4的IP地址和端口信息,可以从路由设备200的WAN接口4,经由路由设备200的网关700、运营商互联网以及移动设备100的网关600,将数据从移动设备100的与蜂窝网络500对应的WAN接口2传输至移动设备100。The routing device 200 can determine the IP address and port information based on the gateway 600 of the mobile device 100, the IP address and port information of the gateway 700 of the routing device 200, and the IP address and port information of the WAN interface 4 of the routing device 200, which can be obtained from the routing device. WAN interface 4 of 200 transmits data from WAN interface 2 of mobile device 100 corresponding to cellular network 500 to mobile device 100 via gateway 700 of routing device 200 , the carrier Internet, and gateway 600 of mobile device 100 .
S206、移动设备100和路由设备200确定基于路由设备200的WAN接口4的IP地址和端口信息,经由第二传输通道传输数据。S206 , the mobile device 100 and the routing device 200 determine to transmit data via the second transmission channel based on the IP address and port information of the WAN interface 4 of the routing device 200 .
若移动设备100在预设时长内通过蜂窝网络500接收到路由设备200的第二响应,则移动设备100可以确定基于路由设备200的WAN接口4的IP地址和端口信息,能够经由第二传输通道与路由设备200进行通信。且由于路由设备200接收到第二请求才会向移动设备100发送第二响应,因此,路由设备200可以确定基于路由设备200的WAN接口4的IP地址和端口信息,能够经由第二传输通道与移动设备100进行通信。If the mobile device 100 receives the second response from the routing device 200 through the cellular network 500 within a preset period of time, the mobile device 100 can determine the IP address and port information of the WAN interface 4 of the routing device 200 based on the second transmission channel. Communicate with routing device 200 . And because the routing device 200 only sends the second response to the mobile device 100 after receiving the second request, the routing device 200 can determine the IP address and port information based on the WAN interface 4 of the routing device 200, and can communicate with the mobile device 100 via the second transmission channel. The mobile device 100 communicates.
从而,移动设备100可以确定基于路由设备200的WAN接口4的IP地址和端口信息,可以从移动设备100的与蜂窝网络500对应的WAN接口2,经由移动设备100的网关600、运营商互联网以及路由设备200的网关700,将数据从路由设备200的WAN接口4传输至路由设备200。Thus, the mobile device 100 can determine the IP address and port information based on the WAN interface 4 of the routing device 200 from the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500, via the gateway 600 of the mobile device 100, the carrier Internet and The gateway 700 of the routing device 200 transmits data from the WAN interface 4 of the routing device 200 to the routing device 200 .
路由设备200可以确定基于路由设备200的WAN接口4的IP地址和端口信息,可以从路由设备200的WAN接口4,经由路由设备200的网关700、运营商互联网以及移动设备100的网关600,将数据从移动设备100的与蜂窝网络500对应的WAN接口2传输至移动设备100。The routing device 200 can determine the IP address and port information based on the WAN interface 4 of the routing device 200 , and can transfer the data from the WAN interface 4 of the routing device 200 , via the gateway 700 of the routing device 200 , the carrier Internet, and the gateway 600 of the mobile device 100 . Data is transmitted to the mobile device 100 from the WAN interface 2 of the mobile device 100 corresponding to the cellular network 500 .
本申请中,移动设备100和路由设备200在确定第二传输通道可以相互传输数据后,可以判断移动设备100与路由设备200之间的MP是否已建立,即第二传输通道是否已建立。In this application, after determining that the second transmission channel can transmit data to each other, the mobile device 100 and the routing device 200 can determine whether the MP between the mobile device 100 and the routing device 200 has been established, that is, whether the second transmission channel has been established.
若第二传输通道未建立,则移动设备100执行步骤S207-S208,再执行S102-S107。If the second transmission channel is not established, the mobile device 100 executes steps S207-S208, and then executes S102-S107.
若第二传输通道已建立,则移动设备100可以直接利用已建立的第一传输通道和第二传输通道,便可直接执行S102-S107。If the second transmission channel has been established, the mobile device 100 can directly use the established first transmission channel and the second transmission channel, and can directly execute S102-S107.
S207、移动设备通过蜂窝网络向路由设备发送第三请求。其中,第三请求为通过蜂窝网络建立第二传输通道的请求。S207. The mobile device sends a third request to the routing device through the cellular network. The third request is a request for establishing a second transmission channel through the cellular network.
本申请中,移动设备100通过蜂窝网络500,经由第二传输通道向路由设备200发送第三请求,实现向路由设备200请求建立第二传输通道的目的。In the present application, the mobile device 100 sends a third request to the routing device 200 through the cellular network 500 via the second transmission channel, so as to achieve the purpose of requesting the routing device 200 to establish the second transmission channel.
在一些实施例中,移动设备100的第一MP策略模块驱动移动设备100的MP协议client模块发送第三请求,移动设备100的MP协议client模块向路由设备200的MP协议server模块发送第三请求。In some embodiments, the first MP policy module of the mobile device 100 drives the MP protocol client module of the mobile device 100 to send the third request, and the MP protocol client module of the mobile device 100 sends the third request to the MP protocol server module of the routing device 200 .
其中,本申请对第三请求的具体实现方式不做限定。另外,第三请求还可以包括:移动设备100的网关600的IP地址和端口信息Wherein, the present application does not limit the specific implementation manner of the third request. In addition, the third request may further include: IP address and port information of the gateway 600 of the mobile device 100
在一些实施例中,在移动设备100的MP协议client模块从路由设备200的MP协议server模块接收到路由设备200的网关700的IP地址和端口信息时,移动设备100的第一MP策略模块驱动移动设备100的MP协议client模块发送第三请求,移动设备100的MP协议client模块向路由设备200的MP协议server模块发送第三请求。In some embodiments, when the MP protocol client module of the mobile device 100 receives the IP address and port information of the gateway 700 of the routing device 200 from the MP protocol server module of the routing device 200, the first MP policy module of the mobile device 100 drives the The MP protocol client module of the mobile device 100 sends the third request, and the MP protocol client module of the mobile device 100 sends the third request to the MP protocol server module of the routing device 200 .
其中,本申请对第三请求的具体表示方式不做限定。例如,第三请求中携带有IP五元组、应用的业务的预置网络参数(如带宽、时延、链路数量等需求)、移动设备100的MP能力信息、MP的通信策略等参数。Wherein, this application does not limit the specific representation of the third request. For example, the third request carries parameters such as IP quintuple, preset network parameters of the application service (such as bandwidth, delay, number of links, etc.), MP capability information of the mobile device 100, and MP communication strategy.
其中,MP策略为移动设备100与路由设备200通过MP进行通信的策略。MP策略,用于指示MP中的每个传输通道的网络类型和传输通道数量、MP中的每个传输通道的数据包分配情况(如每个传输通道上数据包的传输量)及MP中的每个传输通道的数据格式(如每个传输通道上采用的封装包头的形式)等。The MP policy is a policy for the mobile device 100 and the routing device 200 to communicate through MP. The MP policy is used to indicate the network type and the number of transmission channels of each transmission channel in the MP, the data packet allocation of each transmission channel in the MP (such as the transmission volume of data packets on each transmission channel), and the number of transmission channels in the MP. The data format of each transmission channel (for example, the form of the encapsulation header used on each transmission channel), etc.
其中,MP中的每个传输通道的网络类型和传输通道数量综合考虑了业务的网络需求、 移动设备100的MP能力信息及路由设备200的MP能力信息等各种因素。另外,一般情况下,相比于蜂窝网络500而言,移动设备100会优先选择在Wi-Fi网络400的传输通道上传输数据,以节省用户的蜂窝流量,有利于提升用户的使用体验。The network type and the number of transmission channels of each transmission channel in the MP comprehensively consider various factors such as network requirements of the service, MP capability information of the mobile device 100 and MP capability information of the routing device 200 . In addition, in general, compared to the cellular network 500, the mobile device 100 will preferentially transmit data on the transmission channel of the Wi-Fi network 400, so as to save the cellular traffic of the user and improve the user experience.
其中,数据包分配情况可以基于MP的协议类型、MP的模式类型以及MP中的每个传输通道的传输能力等因素进行配置,从而确保数据包的传输速率。例如,在MP的协议类型为聚合模式时,若蜂窝网络500与Wi-Fi网络400的传输能力指数比是1:2,则移动设备100可以在第二传输通道上传输的数据包与在第一传输通道上传输的数据包的数量比是1:2。The data packet allocation situation may be configured based on factors such as the protocol type of the MP, the mode type of the MP, and the transmission capability of each transmission channel in the MP, so as to ensure the transmission rate of the data packets. For example, when the protocol type of the MP is the aggregation mode, if the ratio of the transmission capability index of the cellular network 500 to the Wi-Fi network 400 is 1:2, the mobile device 100 can transmit the data packets on the second transmission channel with the data packets on the first transmission channel. The ratio of the number of packets transmitted on a transmission channel is 1:2.
另外,传输能力指数比可以为带宽比,也可以为时延比,本申请对此不做限定。一般情况下,移动设备100常常选择在第一传输通道上传输较多的数据包,在第二传输通道上传输较少的数据包,能够节省用户的蜂窝流量,有利于提升用户的使用体验。In addition, the transmission capability index ratio may be a bandwidth ratio or a delay ratio, which is not limited in this application. In general, the mobile device 100 often chooses to transmit more data packets on the first transmission channel and transmit fewer data packets on the second transmission channel, which can save the user's cellular traffic and help improve the user's experience.
其中,数据包格式可以依据第二传输通道来确定,能够确保数据包传输的准确性和安全性。在移动设备100与路由设备200通过Wi-Fi网络400传输数据时,移动设备100与路由设备200之间无需要借助NAT穿越技术,便可相互传输数据。在移动设备100与路由设备200通过蜂窝网络500传输数据时,移动设备100与路由设备200之间大概率需要借助NAT穿越技术,才可相互传输数据。因此,本申请可以将第一传输通道上的数据包格式设置的比第二传输通道上的数据包格式简单些,以便节省数据包的传输量,有利于提高数据包的传输速率。The data packet format can be determined according to the second transmission channel, which can ensure the accuracy and security of data packet transmission. When the mobile device 100 and the routing device 200 transmit data through the Wi-Fi network 400 , the mobile device 100 and the routing device 200 can transmit data to each other without using the NAT traversal technology. When the mobile device 100 and the routing device 200 transmit data through the cellular network 500 , the mobile device 100 and the routing device 200 may need to use the NAT traversal technology to transmit data to each other. Therefore, the present application can set the format of the data packets on the first transmission channel to be simpler than the format of the data packets on the second transmission channel, so as to save the transmission volume of the data packets and improve the transmission rate of the data packets.
需要说明的是,MP的通信策略不限于上述实现方式。It should be noted that, the communication strategy of the MP is not limited to the above implementation manner.
S208、路由设备响应于第三请求,通过蜂窝网络向移动设备发送第三响应。其中,第三响应用于表明路由设备已与移动设备通过蜂窝网络建立第二传输通道。S208. In response to the third request, the routing device sends a third response to the mobile device through the cellular network. The third response is used to indicate that the routing device has established the second transmission channel with the mobile device through the cellular network.
本申请中,路由设备200从第三请求中可以得到应用的业务类型、移动设备100的MP能力集以及MP的通信策略等参数。路由设备200基于应用的业务类型、移动设备100的MP能力集以及MP的通信策略等参数,建立MP数据表项,从而建立移动设备100与路由设备200之间的MP,即建立第二传输通道。由此,路由设备200在建立好第二传输通道时,可以通过蜂窝网络500,经由第二传输通道向移动设备100发送第三响应,使得移动设备100能够及时获知路由设备200已建立第二传输通道。In this application, the routing device 200 can obtain parameters such as the service type of the application, the MP capability set of the mobile device 100, and the communication strategy of the MP from the third request. The routing device 200 establishes an MP data entry based on parameters such as the service type of the application, the MP capability set of the mobile device 100 and the communication strategy of the MP, thereby establishing the MP between the mobile device 100 and the routing device 200, that is, establishing the second transmission channel . Therefore, when the second transmission channel is established, the routing device 200 can send the third response to the mobile device 100 through the cellular network 500 via the second transmission channel, so that the mobile device 100 can know in time that the routing device 200 has established the second transmission aisle.
其中,MP数据表项中包括:应用的业务类型(可采用IP五元组等表示形式,即IP三元组+源IP(即移动设备100的IP地址)+源端口(即移动设备100的端口信息))、移动设备100的MP能力集以及MP的通信策略等参数。另外,本申请对第三响应的具体实现方式不做限定。Wherein, the MP data table entry includes: the service type of the application (which can be represented in the form of an IP quintuple, that is, an IP triplet + source IP (that is, the IP address of the mobile device 100 ) + source port (that is, the mobile device 100’s IP address) port information)), the MP capability set of the mobile device 100, the MP communication strategy and other parameters. In addition, the present application does not limit the specific implementation manner of the third response.
在一些实施例中,路由设备200的MP协议server模块基于第三请求建立MP数据表项,从而建立MP,即建立第二传输通道。其中,MP数据表项可以存储在路由设备200的第二MP策略模块中。在路由设备200的第二MP策略模块建立好MP时,路由设备200的第二MP策略模块便会启动MP,并通知路由设备200的第二数据代理模基于应用的业务的IP五元组的数据包重路由,即通过MP进行通信,使得路由设备200的第二数据代理模块基于应用的业务的IP五元组将对应的数据包引流到路由设备200的MP协议server模块。In some embodiments, the MP protocol server module of the routing device 200 establishes the MP data entry based on the third request, thereby establishing the MP, that is, establishing the second transmission channel. The MP data entry may be stored in the second MP policy module of the routing device 200 . When the second MP policy module of the routing device 200 has established the MP, the second MP policy module of the routing device 200 will start the MP, and notify the second data proxy mode of the routing device 200 based on the IP quintuple of the application service. Data packet rerouting, that is, communication is performed through MP, so that the second data proxy module of the routing device 200 diverts the corresponding data packet to the MP protocol server module of the routing device 200 based on the IP quintuple of the application service.
综上,移动设备100和路由设备200便建立好第二传输通道,从而方便执行后续操作。To sum up, the mobile device 100 and the routing device 200 have established the second transmission channel, thereby facilitating subsequent operations.
示例性的,本申请还提供一种移动设备。图8为本申请实施例提供的一种移动设备的结构示意图。本申请的移动设备10用于实现上述任一方法实施例中对应于移动设备的硬 件和/或软件的操作。如图8所示,本申请的移动设备10与至少一个路由设备通过Wi-Fi网络建立第一传输通道,移动设备安装有N个应用,N个应用中的任意一个应用对应于M个应用服务器中的一个应用服务器,M和N均为正整数。本申请的移动设备10可以包括:处理模块11和发送模块12。Exemplarily, the present application also provides a mobile device. FIG. 8 is a schematic structural diagram of a mobile device according to an embodiment of the present application. The mobile device 10 of the present application is used to implement operations corresponding to the hardware and/or software of the mobile device in any of the foregoing method embodiments. As shown in FIG. 8 , the mobile device 10 of the present application and at least one routing device establish a first transmission channel through a Wi-Fi network, the mobile device is installed with N applications, and any one of the N applications corresponds to M application servers An application server in , where M and N are positive integers. The mobile device 10 of the present application may include: a processing module 11 and a sending module 12 .
处理模块11,用于在移动设备检测到移动设备占据Wi-Fi网络的带宽小于预设的第一阈值后,和/或,在移动设备检测到移动设备通过Wi-Fi网络传输的时延大于预设的第二阈值后,与路由设备通过蜂窝网络建立第二传输通道。The processing module 11 is configured to, after the mobile device detects that the bandwidth occupied by the mobile device on the Wi-Fi network is less than the preset first threshold, and/or when the mobile device detects that the delay of the mobile device transmission through the Wi-Fi network is greater than After the preset second threshold, a second transmission channel is established with the routing device through the cellular network.
处理模块11,还用于将上传数据拆分为第一数据和第二数据。The processing module 11 is further configured to split the uploaded data into first data and second data.
发送模块12,用于将第一数据经由第一传输通道传输至路由设备,将第二数据经由第二传输通道传输至路由设备。上传数据为要被传输至M个应用服务器中的第P个应用服务器的数据。P为大于等于1,且小于等于M的正整数。The sending module 12 is configured to transmit the first data to the routing device via the first transmission channel, and transmit the second data to the routing device via the second transmission channel. The upload data is the data to be transmitted to the Pth application server among the M application servers. P is a positive integer greater than or equal to 1 and less than or equal to M.
继续结合图8,本申请的移动设备10还可以包括:接收模块13。Continuing with reference to FIG. 8 , the mobile device 10 of the present application may further include: a receiving module 13 .
在一些实施例中,接收模块13,用于经由第一传输通道接收到路由设备的第三数据,并经由第二传输通道接收到路由设备的第四数据,第三数据和第四数据为路由设备拆分下载数据得到的,下载数据为路由设备经由路由设备与M个应用服务器中的第P个应用服务器之间的连接,从M个应用服务器中的第P个应用服务接收到的,下载数据为要被传输至移动设备的数据。In some embodiments, the receiving module 13 is configured to receive the third data of the routing device via the first transmission channel, and receive the fourth data of the routing device via the second transmission channel, where the third data and the fourth data are routing The download data is obtained by the device splitting the download data, and the download data is the connection between the routing device and the P-th application server in the M application servers, and is received from the P-th application service in the M application servers. Download Data is the data to be transferred to the mobile device.
处理模块11,还用于在接收模块13接收到第三数据和第四数据后,将第三数据和第四数据组合为下载数据。并基于下载数据,实现与M个应用服务器中的第P个应用服务器对应的应用的业务。The processing module 11 is further configured to combine the third data and the fourth data into download data after the receiving module 13 receives the third data and the fourth data. And based on the downloaded data, the service of the application corresponding to the Pth application server in the M application servers is implemented.
在一些实施例中,在移动设备与路由设备通过蜂窝网络建立第二传输通道之前,发送模块12,还用于在确定路由设备具有多路传输数据的能力后,通过蜂窝网络向路由设备发送第二请求,第二请求为对移动设备的与蜂窝网络对应的WAN接口与路由设备的WAN接口之间的传输通道进行PING探测的请求。In some embodiments, before the mobile device and the routing device establish the second transmission channel through the cellular network, the sending module 12 is further configured to send the first transmission channel to the routing device through the cellular network after determining that the routing device has the capability of multiplexing data The second request is a request for performing PING detection on the transmission channel between the WAN interface corresponding to the cellular network of the mobile device and the WAN interface of the routing device.
在一些实施例中,在预设时长内没有通过蜂窝网络接收到路由设备的第二响应后时,处理模块11,具体用于基于NAT穿越,获取移动设备的网关的IP地址和端口信息,以及路由设备的网关的IP地址和端口信息,第二响应为针对第二请求的响应。并确定基于所述移动设备的网关的IP地址和端口信息、路由设备的网关的IP地址和端口信息以及路由设备的WAN接口的IP地址和端口信息,经由所述第二传输通道传输数据。In some embodiments, after the second response from the routing device is not received through the cellular network within a preset time period, the processing module 11 is specifically configured to obtain the IP address and port information of the gateway of the mobile device based on NAT traversal, and IP address and port information of the gateway of the routing device, and the second response is a response to the second request. And determine based on the IP address and port information of the gateway of the mobile device, the IP address and port information of the gateway of the routing device, and the IP address and port information of the WAN interface of the routing device, and transmit data via the second transmission channel.
在一些实施例中,处理模块11,具体还用于在预设时长内通过蜂窝网络接收到路由设备的第二响应时,确定基于路由设备的WAN接口的IP地址和端口信息,经由所述第二传输通道传输数据。In some embodiments, the processing module 11 is further configured to determine the IP address and port information based on the WAN interface of the routing device when the second response of the routing device is received through the cellular network within a preset time period, and the Two transmission channels transmit data.
在一些实施例中,处理模块11,具体还用于通过蜂窝网络向路由设备发送第三请求,第三请求为通过蜂窝网络建立第二传输通道的请求。并通过蜂窝网络接收到路由设备的第三响应,第三响应用于表明路由设备已与移动设备通过蜂窝网络建立第二传输通道。In some embodiments, the processing module 11 is further configured to send a third request to the routing device through the cellular network, where the third request is a request to establish a second transmission channel through the cellular network. And a third response from the routing device is received through the cellular network, where the third response is used to indicate that the routing device has established a second transmission channel with the mobile device through the cellular network.
在一些实施例中,处理模块11,具体还用于经由第一传输通道向路由设备发送第一请求,第一请求为询问路由设备是否具有多路传输数据的能力的请求。在经由第一传输通道接收到路由设备的第一响应后,确定路由设备具有多路传输数据的能力。第一响应为针对第一请求的响应,用于表明路由设备具有多路传输数据的能力。In some embodiments, the processing module 11 is further configured to send a first request to the routing device via the first transmission channel, where the first request is a request for inquiring whether the routing device has the capability of multiplexing data. After receiving the first response from the routing device via the first transmission channel, it is determined that the routing device has the capability of multiplexing data. The first response is a response to the first request, and is used to indicate that the routing device has the capability of multiplexing data.
在一种可能的设计中,第一请求还携带有路由设备的WAN接口的IP地址和端口信息。In a possible design, the first request also carries the IP address and port information of the WAN interface of the routing device.
在一些实施例中,移动设备适配有第一SDK,第一SDK用于支持移动设备与路由设备同时建立第一传输通道和第二传输通道。In some embodiments, the mobile device is adapted with a first SDK, and the first SDK is used to support the mobile device and the routing device to establish the first transmission channel and the second transmission channel at the same time.
示例性的,本申请还提供一种路由设备。图9为本申请实施例提供的一种路由设备的结构示意图。本申请的路由设备200用于实现上述任一方法实施例中对应于路由设备的硬件和/或软件的操作。如图9所示,本申请的路由设备20与至少一个移动设备通过Wi-Fi网络建立第一传输通道,路由设备分别与M个应用服务器通过有线网络各自建立M条连接。M个应用服务器中的任意一个应用服务器对应于移动设备安装的N个应用中的一个应用,M和N均为正整数。本申请的路由设备20可以包括:处理模块21、接收模块22和发送模块23。Exemplarily, the present application also provides a routing device. FIG. 9 is a schematic structural diagram of a routing device according to an embodiment of the present application. The routing device 200 of the present application is used to implement operations corresponding to the hardware and/or software of the routing device in any of the foregoing method embodiments. As shown in FIG. 9 , the routing device 20 of the present application establishes a first transmission channel with at least one mobile device through a Wi-Fi network, and the routing device respectively establishes M connections with M application servers through wired networks. Any one of the M application servers corresponds to one application among the N applications installed on the mobile device, and both M and N are positive integers. The routing device 20 of the present application may include: a processing module 21 , a receiving module 22 and a sending module 23 .
处理模块21,用于与移动设备通过蜂窝网络建立第二传输通道。The processing module 21 is configured to establish a second transmission channel with the mobile device through the cellular network.
处理模块21,还用于在接收模块22经由第一传输通道接收到移动设备的第一数据,以及经由第二传输通道接收到移动设备的第二数据后,将第一数据和第二数据组合为上传数据。上传数据为要被传输至M个应用服务器中的第P个应用服务器的数据。P为大于等于1,且小于等于M的正整数。The processing module 21 is further configured to combine the first data and the second data after the receiving module 22 receives the first data of the mobile device via the first transmission channel and receives the second data of the mobile device via the second transmission channel for uploading data. The upload data is the data to be transmitted to the Pth application server among the M application servers. P is a positive integer greater than or equal to 1 and less than or equal to M.
发送模块23,用于将上传数据经由路由设备与M个应用服务器中的第P个应用服务器之间的连接,传输至M个应用服务器中的第P个应用服务器。The sending module 23 is configured to transmit the uploaded data to the P th application server among the M application servers via the connection between the routing device and the P th application server among the M application servers.
在一些实施例中,接收模块22,用于经由路由设备与M个应用服务器中的第P个应用服务器之间的连接,接收到M个应用服务器中的第P个应用服务器的下载数据。下载数据为要被传输至移动设备的数据。In some embodiments, the receiving module 22 is configured to receive the download data of the Pth application server among the M application servers via the connection between the routing device and the Pth application server among the M application servers. Download data is the data to be transferred to the mobile device.
处理模块21,还用于将下载数据拆分为第三数据和第四数据。The processing module 21 is further configured to split the downloaded data into third data and fourth data.
发送模块23,还用于将第三数据经由第一传输通道传输至移动设备,将第四数据经由第二传输通道传输至移动设备,使得移动设备将第三数据和第四数据组合为下载数据。并基于下载数据,实现与M个应用服务器中的第P个应用服务器对应的应用的业务。The sending module 23 is further configured to transmit the third data to the mobile device via the first transmission channel, and transmit the fourth data to the mobile device via the second transmission channel, so that the mobile device combines the third data and the fourth data into download data . And based on the downloaded data, the service of the application corresponding to the Pth application server in the M application servers is implemented.
在一些实施例中,在移动设备与路由设备通过蜂窝网络建立第二传输通道之前,接收模块22,还用于通过蜂窝网络接收到移动设备的第二请求,第二请求为对移动设备的与蜂窝网络对应的WAN接口与路由设备的WAN接口之间的传输通道进行PING探测的请求。In some embodiments, before the mobile device and the routing device establish the second transmission channel through the cellular network, the receiving module 22 is further configured to receive, through the cellular network, a second request from the mobile device, where the second request is an The transmission channel between the WAN interface corresponding to the cellular network and the WAN interface of the routing device performs a PING detection request.
处理模块21,具体用于在预设时长内通过蜂窝网络没有向移动设备传输第二响应时,基于NAT穿越,获取移动设备的网关的IP地址和端口信息,以及路由设备的网关的IP地址和端口信息,第二响应为针对第二请求的响应。并确定基于所述移动设备的网关的IP地址和端口信息、路由设备的网关的IP地址和端口信息以及路由设备的WAN接口的IP地址和端口信息,经由所述第二传输通道传输数据。The processing module 21 is specifically configured to obtain, based on NAT traversal, the IP address and port information of the gateway of the mobile device, and the IP address and port information of the gateway of the routing device when the second response is not transmitted to the mobile device through the cellular network within a preset time period. Port information, and the second response is a response to the second request. And determine based on the IP address and port information of the gateway of the mobile device, the IP address and port information of the gateway of the routing device, and the IP address and port information of the WAN interface of the routing device, and transmit data via the second transmission channel.
在一些实施例中,处理模块21,具体还用于在预设时长内通过蜂窝网络向移动设备传输第二响应时,确定基于路由设备的WAN接口的IP地址和端口信息,经由所述第二传输通道传输数据。In some embodiments, the processing module 21 is further configured to determine the IP address and port information based on the WAN interface of the routing device when the second response is transmitted to the mobile device through the cellular network within a preset period of time, and the second response is sent via the second response. The transmission channel transmits data.
在一些实施例中,处理模块21,具体还用于通过蜂窝网络接收到移动设备的第三请求,第三请求为通过蜂窝网络建立第二传输通道的请求。并响应于第三请求,通过蜂窝网络向移动设备发送第三响应,第三响应用于表明路由设备已与移动设备通过蜂窝网络建立第二传输通道。In some embodiments, the processing module 21 is further configured to receive a third request from the mobile device through the cellular network, where the third request is a request to establish a second transmission channel through the cellular network. In response to the third request, a third response is sent to the mobile device through the cellular network, where the third response is used to indicate that the routing device has established a second transmission channel with the mobile device through the cellular network.
在一些实施例中,处理模块21,具体还用于在通过蜂窝网络接收到移动设备的第二请求之前,经由第一传输通道接收到移动设备的第一请求,第一请求为询问路由设备是否具有多路传输数据的能力的请求。并在路由设备确定路由设备具有多路传输数据的能力后,经由第一传输通道向移动设备发送第一响应。第一响应为针对第一请求的响应,用于表明路由设备具有多路传输数据的能力。In some embodiments, the processing module 21 is further configured to receive the first request of the mobile device through the first transmission channel before receiving the second request of the mobile device through the cellular network, where the first request is to ask the routing device whether A request with the ability to multiplex data. And after the routing device determines that the routing device has the capability of multiplexing data, it sends a first response to the mobile device via the first transmission channel. The first response is a response to the first request, and is used to indicate that the routing device has the capability of multiplexing data.
在一种可能的设计中,第一请求还携带有路由设备的WAN接口的IP地址和端口信息。In a possible design, the first request also carries the IP address and port information of the WAN interface of the routing device.
在一些实施例中,路由设备适配有第二SDK,第二SDK用于支持路由设备与移动设备同时建立第一传输通道和第二传输通道。有线网络为光纤网络。In some embodiments, the routing device is adapted with a second SDK, and the second SDK is used to support the routing device and the mobile device to establish the first transmission channel and the second transmission channel at the same time. The wired network is an optical fiber network.
本申请还提供一种可读存储介质,可读存储介质中存储有执行指令,当移动设备的至少一个处理器执行该执行指令时,移动设备执行上述方法实施例中的通信方法。The present application further provides a readable storage medium, where an execution instruction is stored in the readable storage medium, and when at least one processor of the mobile device executes the execution instruction, the mobile device executes the communication method in the foregoing method embodiment.
本申请还提供一种可读存储介质,可读存储介质中存储有执行指令,当路由设备的至少一个处理器执行该执行指令时,路由设备执行上述方法实施例中的通信方法。The present application further provides a readable storage medium, where an execution instruction is stored in the readable storage medium, and when at least one processor of the routing device executes the execution instruction, the routing device executes the communication method in the above method embodiment.
本申请还提供一种程序产品,该程序产品包括执行指令,该执行指令存储在可读存储介质中。移动设备的至少一个处理器可以从可读存储介质读取该执行指令,至少一个处理器执行该执行指令使得移动设备实施上述方法实施例中的通信方法。The present application also provides a program product including execution instructions stored in a readable storage medium. At least one processor of the mobile device can read the execution instruction from the readable storage medium, and the at least one processor executes the execution instruction to cause the mobile device to implement the communication method in the above method embodiment.
本申请还提供一种程序产品,该程序产品包括执行指令,该执行指令存储在可读存储介质中。路由设备的至少一个处理器可以从可读存储介质读取该执行指令,至少一个处理器执行该执行指令使得路由设备实施上述方法实施例中的通信方法。The present application also provides a program product including execution instructions stored in a readable storage medium. At least one processor of the routing device can read the execution instruction from the readable storage medium, and the execution of the execution instruction by the at least one processor causes the routing device to implement the communication method in the above method embodiment.
本申请还提供一种芯片,所述芯片与存储器相连,或者所述芯片上集成有存储器,当所述存储器中存储的软件程序被执行时,实现上述方法实施例中的通信方法。The present application further provides a chip, where the chip is connected to a memory, or a memory is integrated on the chip, and when a software program stored in the memory is executed, the communication method in the above method embodiment is implemented.
本领域普通技术人员可以理解:在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。Those of ordinary skill in the art can understand that: in the above-mentioned embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer program instructions, when loaded and executed on a computer, result in whole or in part of the processes or functions described herein. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), and the like.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present application. Scope.

Claims (27)

  1. 一种移动设备,所述移动设备与一个路由设备通过Wi-Fi网络建立第一传输通道,所述第一传输通道至少包括一条传输通道,所述移动设备安装有N个应用,所述N个应用中的任意一个应用对应于M个应用服务器中的一个应用服务器,M和N均为正整数;所述移动设备包括:A mobile device, the mobile device and a routing device establish a first transmission channel through a Wi-Fi network, the first transmission channel includes at least one transmission channel, the mobile device is installed with N applications, the N applications Any application in the application corresponds to an application server in the M application servers, and M and N are both positive integers; the mobile device includes:
    一个或多个处理器;one or more processors;
    存储器;memory;
    以及一个或多个计算机程序,其中所述一个或多个计算机程序存储在所述存储器上,当所述计算机程序被所述一个或多个处理器执行时,使得所述移动设备执行以下步骤:and one or more computer programs, wherein the one or more computer programs are stored on the memory and, when executed by the one or more processors, cause the mobile device to perform the following steps:
    在检测到所述第一传输通道的带宽小于预设的第一阈值后,和/或,在检测到所述第一传输通道的时延大于预设的第二阈值后,After detecting that the bandwidth of the first transmission channel is smaller than the preset first threshold, and/or after detecting that the delay of the first transmission channel is greater than the preset second threshold,
    所述移动设备通过所述第一传输通道向所述路由设备发送第一请求,所述第一请求为询问所述路由设备是否具有多路传输数据能力的请求;sending, by the mobile device, a first request to the routing device through the first transmission channel, where the first request is a request for inquiring whether the routing device has the capability of multiplexing data;
    在所述移动设备通过所述第一传输通道接收到所述路由设备的第一响应后,所述移动设备确定所述路由设备具有多路传输数据能力;所述第一响应为针对第一请求的响应,用于表明所述路由设备具有多路传输数据能力;After the mobile device receives the first response from the routing device through the first transmission channel, the mobile device determines that the routing device has the ability to multiplex data; the first response is for the first request The response is used to indicate that the routing device has the ability to multiplex data;
    在通过所述第一传输通道接收到所述路由设备发送的第一响应后,所述移动设备与所述路由设备通过蜂窝网络建立第二传输通道;所述第二传输通道至少包括一条传输通道。After receiving the first response sent by the routing device through the first transmission channel, the mobile device and the routing device establish a second transmission channel through the cellular network; the second transmission channel includes at least one transmission channel .
  2. 根据权利要求1所述的移动设备,其特征在于,所述移动设备与所述路由设备通过蜂窝网络建立第二传输通道,包括:The mobile device according to claim 1, wherein the mobile device and the routing device establish a second transmission channel through a cellular network, comprising:
    在第一预设时长内通过所述蜂窝网络未接收到所述路由设备发送的响应消息;The response message sent by the routing device is not received through the cellular network within a first preset time period;
    所述移动设备通过NAT穿越,获取第一网关信息,并通过第一传输通道向所述路由设备发送第一网关信息;且所述移动设备通过第一传输通道接收所述路由设备发送的第二网关信息;所述移动设备基于所述第一网关信息和所述第二网关信息,与所述路由设备通过蜂窝网络建立第二传输通道。The mobile device obtains the first gateway information through NAT traversal, and sends the first gateway information to the routing device through the first transmission channel; and the mobile device receives the second gateway information sent by the routing device through the first transmission channel. Gateway information; the mobile device establishes a second transmission channel with the routing device through the cellular network based on the first gateway information and the second gateway information.
  3. 根据权利要求1或2所述的移动设备,其特征在于,在所述移动设备与所述路由设备通过蜂窝网络建立第二传输通道后,所述移动设备还执行:The mobile device according to claim 1 or 2, wherein after the mobile device and the routing device establish a second transmission channel through a cellular network, the mobile device further executes:
    所述移动设备将上传数据拆分为第一数据和第二数据,并将所述第一数据通过第一传输通道传输至所述路由设备,将所述第二数据通过所述第二传输通道传输至所述路由设备;The mobile device splits the upload data into first data and second data, transmits the first data to the routing device through a first transmission channel, and transmits the second data through the second transmission channel transmitted to the routing device;
    其中,所述上传数据为所述移动设备要传输至所述M个应用服务器中的第P个应用服务器的数据;P为大于等于1,且小于等于M的正整数。The uploaded data is data to be transmitted by the mobile device to the Pth application server among the M application servers; P is a positive integer greater than or equal to 1 and less than or equal to M.
  4. 根据权利要求1-3中任意一项所述的移动设备,其特征在于,在所述移动设备与所述路由设备通过蜂窝网络建立第二传输通道后,所述移动设备还执行:The mobile device according to any one of claims 1-3, wherein after the mobile device and the routing device establish a second transmission channel through a cellular network, the mobile device further executes:
    所述移动设备向所述路由设备发送多路传输请求,所述多路传输请求用于告知所述路由设备在向所述移动设备传输数据时,通过第一传输通道和第二传输通道传输数据;The mobile device sends a multiplexing request to the routing device, where the multiplexing request is used to inform the routing device to transmit data through the first transmission channel and the second transmission channel when transmitting data to the mobile device ;
    所述多路传输请求通过所述第一传输通道和所述第二传输通道中的至少一个传输通道传输。The multiplexing request is transmitted through at least one of the first transmission channel and the second transmission channel.
  5. 根据权利要求4所述的移动设备,其特征在于,在所述移动设备向所述路由设备发送多路传输请求后,所述移动设备还执行:The mobile device according to claim 4, wherein after the mobile device sends a multiplexing request to the routing device, the mobile device further executes:
    在通过所述第一传输通道和所述第二传输通道分别接收到第三数据和第四数据后,所述移动设备将所述第三数据和所述第四数据组合为下载数据;所述下载数据为所述移动设备要从所述M个应用服务器中的第P个应用服务器接收的数据。After receiving the third data and the fourth data through the first transmission channel and the second transmission channel, respectively, the mobile device combines the third data and the fourth data into download data; the The download data is data to be received by the mobile device from the Pth application server among the M application servers.
  6. 根据权利要求1-5中任意一项所述的移动设备,其特征在于,所述第一网关信息包括所述移动设备的网关的IP地址和端口信息;所述第二网关信息包括所述路由设备的网关的IP地址和端口信息;所述移动设备适配有第一SDK,所述第一SDK用于支持所述移动设备与所述路由设备同时建立所述第一传输通道和所述第二传输通道;所述第一传输通道包括多个传输通道;所述第二传输通道包括多个传输通道。The mobile device according to any one of claims 1-5, wherein the first gateway information includes IP address and port information of a gateway of the mobile device; the second gateway information includes the route IP address and port information of the gateway of the device; the mobile device is adapted with a first SDK, and the first SDK is used to support the mobile device and the routing device to establish the first transmission channel and the first transmission channel at the same time. Two transmission channels; the first transmission channel includes multiple transmission channels; the second transmission channel includes multiple transmission channels.
  7. 一种通信方法,应用于移动设备,所述移动设备与一个路由设备通过Wi-Fi网络建立第一传输通道,所述第一传输通道至少包括一条传输通道,所述移动设备安装有N个应用,所述N个应用中的任意一个应用对应于M个应用服务器中的一个应用服务器,M和N均为正整数;其特征在于,所述方法包括:A communication method is applied to a mobile device, the mobile device and a routing device establish a first transmission channel through a Wi-Fi network, the first transmission channel includes at least one transmission channel, and N applications are installed on the mobile device , any one application in the N applications corresponds to an application server in the M application servers, and M and N are both positive integers; it is characterized in that, the method includes:
    在检测到所述第一传输通道的带宽小于预设的第一阈值后,和/或,在检测到所述第一传输通道的时延大于预设的第二阈值后,After detecting that the bandwidth of the first transmission channel is smaller than the preset first threshold, and/or after detecting that the delay of the first transmission channel is greater than the preset second threshold,
    所述移动设备通过所述第一传输通道向所述路由设备发送第一请求,所述第一请求为询问所述路由设备是否具有多路传输数据的能力的请求;sending, by the mobile device, a first request to the routing device through the first transmission channel, where the first request is a request for inquiring whether the routing device has the capability of multiplexing data;
    在所述移动设备通过所述第一传输通道接收到所述路由设备的第一响应后,所述移动设备确定所述路由设备具有多路传输数据的能力;所述第一响应为针对第一请求的响应,用于表明所述路由设备具有多路传输数据的能力;After the mobile device receives the first response from the routing device through the first transmission channel, the mobile device determines that the routing device has the ability to multiplex data; the first response is for the first response A response to the request, which is used to indicate that the routing device has the ability to multiplex data;
    在通过所述第一传输通道接收到所述路由设备发送的第一响应后,所述移动设备与所述路由设备通过蜂窝网络建立第二传输通道;所述第二传输通道至少包括一条传输通道。After receiving the first response sent by the routing device through the first transmission channel, the mobile device and the routing device establish a second transmission channel through the cellular network; the second transmission channel includes at least one transmission channel .
  8. 根据权利要求7所述的方法,其特征在于,所述移动设备与所述路由设备通过蜂窝网络建立第二传输通道,包括:The method according to claim 7, wherein establishing a second transmission channel between the mobile device and the routing device through a cellular network, comprising:
    所述移动设备通过所述蜂窝网络向所述路由设备发送PING探测请求;The mobile device sends a PING probe request to the routing device through the cellular network;
    在第一预设时长内通过所述蜂窝网络未接收到所述路由设备发送的响应消息;The response message sent by the routing device is not received through the cellular network within a first preset time period;
    所述移动设备通过NAT穿越,获取第一网关信息,并通过第一传输通道向所述路由设备发送第一网关信息;且所述移动设备通过第一传输通道接收所述路由设备发送的第二网关信息;所述移动设备基于所述第一网关信息和所述第二网关信息,与所述路由设备通过蜂窝网络建立第二传输通道。The mobile device obtains the first gateway information through NAT traversal, and sends the first gateway information to the routing device through the first transmission channel; and the mobile device receives the second gateway information sent by the routing device through the first transmission channel. Gateway information; the mobile device establishes a second transmission channel with the routing device through the cellular network based on the first gateway information and the second gateway information.
  9. 根据权利要求7或8所述的方法,其特征在于,在所述移动设备与所述路由设备通过蜂窝网络建立第二传输通道后,所述方法还包括:The method according to claim 7 or 8, wherein after the mobile device and the routing device establish a second transmission channel through a cellular network, the method further comprises:
    所述移动设备将上传数据拆分为第一数据和第二数据,并将所述第一数据通过第一传输通道传输至所述路由设备,将所述第二数据通过所述第二传输通道传输至所述路由设备;The mobile device splits the upload data into first data and second data, transmits the first data to the routing device through a first transmission channel, and transmits the second data through the second transmission channel transmitted to the routing device;
    其中,所述上传数据为所述移动设备要传输至所述M个应用服务器中的第P个应用服务器的数据;P为大于等于1,且小于等于M的正整数。The uploaded data is data to be transmitted by the mobile device to the Pth application server among the M application servers; P is a positive integer greater than or equal to 1 and less than or equal to M.
  10. 根据权利要求7-9中任意一项所述的方法,其特征在于,在所述移动设备与所述路由设备通过蜂窝网络建立第二传输通道后,所述方法还包括:The method according to any one of claims 7-9, wherein after the mobile device and the routing device establish a second transmission channel through a cellular network, the method further comprises:
    所述移动设备向所述路由设备发送多路传输请求,所述多路传输请求用于告知所述路由设备在向所述移动设备传输数据时,通过第一传输通道和第二传输通道传输数据;The mobile device sends a multiplexing request to the routing device, where the multiplexing request is used to inform the routing device to transmit data through the first transmission channel and the second transmission channel when transmitting data to the mobile device ;
    所述多路传输请求通过所述第一传输通道和所述第二传输通道中的至少一个传输通道传输。The multiplexing request is transmitted through at least one of the first transmission channel and the second transmission channel.
  11. 根据权利要求10所述的方法,其特征在于,在所述移动设备向所述路由设备发送多路传输请求后,所述方法还包括:The method according to claim 10, wherein after the mobile device sends a multiplexing request to the routing device, the method further comprises:
    在通过所述第一传输通道和所述第二传输通道分别接收到第三数据和第四数据后,所述移动设备将所述第三数据和所述第四数据组合为下载数据;所述下载数据为所述移动设备要从所述M个应用服务器中的第P个应用服务器接收的数据。After receiving the third data and the fourth data through the first transmission channel and the second transmission channel, respectively, the mobile device combines the third data and the fourth data into download data; the The download data is data to be received by the mobile device from the Pth application server among the M application servers.
  12. 根据权利要求7-11中任意一项所述的方法,其特征在于,所述第一网关信息包括所述移动设备的网关的IP地址和端口信息;所述第二网关信息包括所述路由设备的网关的IP地址和端口信息;所述移动设备适配有第一SDK,所述第一SDK用于支持所述移动设备与所述路由设备同时建立所述第一传输通道和所述第二传输通道;所述第一传输通道包括多个传输通道;所述第二传输通道包括多个传输通道。The method according to any one of claims 7-11, wherein the first gateway information includes IP address and port information of a gateway of the mobile device; the second gateway information includes the routing device IP address and port information of the gateway; the mobile device is adapted with a first SDK, and the first SDK is used to support the mobile device and the routing device to establish the first transmission channel and the second transmission channel at the same time. transmission channel; the first transmission channel includes multiple transmission channels; the second transmission channel includes multiple transmission channels.
  13. 一种路由设备,所述路由设备与至少一个移动设备通过Wi-Fi网络建立第一传输通道,所述路由设备与所述M个应用服务器中的第P个应用服务器通过有线网络建立第P条传输通道;所述M个应用服务器中的任意一个应用服务器对应于所述移动设备安装的N个应用中的一个应用,M和N均为正整数,P为小于等于M的正整数;所述路由设备包括:A routing device, the routing device and at least one mobile device establish a first transmission channel through a Wi-Fi network, and the routing device and the Pth application server in the M application servers establish a Pth transmission channel through a wired network A transmission channel; any one of the M application servers corresponds to one of the N applications installed on the mobile device, M and N are both positive integers, and P is a positive integer less than or equal to M; the Routing equipment includes:
    一个或多个处理器;one or more processors;
    存储器;memory;
    以及一个或多个计算机程序,其中所述一个或多个计算机程序存储在所述存储器上,当所述计算机程序被所述一个或多个处理器执行时,使得所述路由设备执行以下步骤:and one or more computer programs, wherein the one or more computer programs are stored on the memory and, when executed by the one or more processors, cause the routing device to perform the following steps:
    通过所述第一传输通道接收到所述移动设备的第一请求,所述第一请求为所述移动设备询问所述路由设备是否具有多路传输数据能力的请求;receiving a first request from the mobile device through the first transmission channel, where the first request is a request from the mobile device to inquire whether the routing device has the ability to multiplex data;
    响应于所述第一请求,通过所述第一传输通道向所述移动设备发送第一响应;所述第一响应为针对第一请求的响应,用于表明所述路由设备具有多路传输数据能力;In response to the first request, send a first response to the mobile device through the first transmission channel; the first response is a response to the first request and is used to indicate that the routing device has multiplexed data ability;
    在通过所述第一传输通道向所述移动设备发送第一响应后,所述路由设备与所述移动设备通过蜂窝网络建立第二传输通道;所述第二传输通道至少包括一条传输通道。After sending the first response to the mobile device through the first transmission channel, the routing device and the mobile device establish a second transmission channel through the cellular network; the second transmission channel includes at least one transmission channel.
  14. 根据权利要求13所述的路由设备,其特征在于,所述路由设备与所述移动设备通过蜂窝网络建立第二传输通道,包括:The routing device according to claim 13, wherein the routing device and the mobile device establish a second transmission channel through a cellular network, comprising:
    在第二预设时长内通过所述蜂窝网络未接收到所述移动设备发送的PING探测请求;The PING probe request sent by the mobile device is not received through the cellular network within a second preset time period;
    所述路由设备通过NAT穿越,获取第二网关信息,并通过第一传输通道向所述移动设备发送第二网关信息;且所述路由设备通过第一传输通道接收所述移动设备发送的第一网关信息;所述路由设备基于所述第一网关信息和所述第二网关信息,与所述移动设备通过蜂窝网络建立第二传输通道。The routing device obtains the second gateway information through NAT traversal, and sends the second gateway information to the mobile device through the first transmission channel; and the routing device receives the first transmission channel sent by the mobile device through the first transmission channel. gateway information; the routing device establishes a second transmission channel with the mobile device through the cellular network based on the first gateway information and the second gateway information.
  15. 根据权利要求13或14所述的路由设备,其特征在于,在所述路由设备与所述移动设备通过蜂窝网络建立第二传输通道后,所述路由设备还执行:The routing device according to claim 13 or 14, wherein after the routing device and the mobile device establish a second transmission channel through a cellular network, the routing device further executes:
    在通过第一传输通道接收到所述移动设备发送的第一数据,以及通过第二传输通道接收到所述移动设备发送的第二数据后,所述路由设备将所述第一数据和所述第二数据组合为上传数据,并将所述上传数据通过第P条传输通道,传输至所述第P个应用服务器。After receiving the first data sent by the mobile device through the first transmission channel and the second data sent by the mobile device through the second transmission channel, the routing device combines the first data with the The second data combination is upload data, and the upload data is transmitted to the Pth application server through the Pth transmission channel.
  16. 根据权利要求13-15中任意一项所述的路由设备,其特征在于,在所述路由设备与所述移动设备通过蜂窝网络建立第二传输通道后,所述路由设备还执行:The routing device according to any one of claims 13-15, wherein after the routing device and the mobile device establish a second transmission channel through a cellular network, the routing device further executes:
    接收所述移动设备发送的多路传输请求,所述多路传输请求用于告知所述路由设备在向所述移动设备传输数据时,通过第一传输通道和第二传输通道传输数据;receiving a multiplexing request sent by the mobile device, where the multiplexing request is used to inform the routing device to transmit data through the first transmission channel and the second transmission channel when transmitting data to the mobile device;
    所述多路传输请求通过所述第一传输通道和所述第二传输通道中的至少一个传输通道传输。The multiplexing request is transmitted through at least one of the first transmission channel and the second transmission channel.
  17. 根据权利要求16所述的路由设备,其特征在于,在接收到所述移动设备发送的多路传输请求后,所述路由设备还执行:The routing device according to claim 16, wherein after receiving the multiplexing request sent by the mobile device, the routing device further executes:
    在通过所述第P条传输通道接收到下载数据后,所述路由设备将所述下载数据拆分为第三数据和第四数据,并将所述第三数据通过所述第一传输通道向所述移动设备传输,还将所述第四数据通过所述第二传输通道向所述移动设备传输;所述下载数据为所述第P个应用服务器要发送给所述移动设备的数据。After receiving the download data through the P-th transmission channel, the routing device splits the download data into third data and fourth data, and sends the third data to the third data through the first transmission channel The mobile device transmits, and also transmits the fourth data to the mobile device through the second transmission channel; the downloaded data is the data to be sent by the Pth application server to the mobile device.
  18. 根据权利要求13-17中任意一项所述的路由设备,其特征在于,所述第一网关信息包括所述移动设备的网关的IP地址和端口信息;所述第二网关信息包括所述路由设备的网关的IP地址和端口信息;所述路由设备适配有第二SDK,所述第二SDK用于支持所述路由设备与所述移动设备同时建立所述第一传输通道和所述第二传输通道;所述有线网络为光纤网络;所述第一传输通道包括多个传输通道;所述第二传输通道包括多个传输通道。The routing device according to any one of claims 13-17, wherein the first gateway information includes IP address and port information of a gateway of the mobile device; the second gateway information includes the routing IP address and port information of the gateway of the device; the routing device is adapted with a second SDK, and the second SDK is used to support the routing device and the mobile device to establish the first transmission channel and the first transmission channel at the same time. Two transmission channels; the wired network is an optical fiber network; the first transmission channel includes multiple transmission channels; the second transmission channel includes multiple transmission channels.
  19. 一种通信方法,应用于一个路由设备,所述路由设备与至少一个移动设备通过Wi-Fi网络建立第一传输通道,所述路由设备与所述M个应用服务器中的第P个应用服务器通过有线网络建立第P条传输通道;所述M个应用服务器中的任意一个应用服务器对应于所述移动设备安装的N个应用中的一个应用,M和N均为正整数;其特征在于,所述方法包括:A communication method, applied to a routing device, the routing device and at least one mobile device establish a first transmission channel through a Wi-Fi network, the routing device and the Pth application server in the M application servers pass through The wired network establishes the Pth transmission channel; any one of the M application servers corresponds to one of the N applications installed on the mobile device, and M and N are both positive integers; The methods described include:
    通过所述第一传输通道接收到所述移动设备的第一请求,所述第一请求为所述移动设备询问所述路由设备是否具有多路传输数据能力的请求;receiving a first request from the mobile device through the first transmission channel, where the first request is a request from the mobile device to inquire whether the routing device has the ability to multiplex data;
    响应于所述第一请求,通过所述第一传输通道向所述移动设备发送第一响应;所述第一响应为针对第一请求的响应,用于表明所述路由设备具有多路传输数据能力;In response to the first request, send a first response to the mobile device through the first transmission channel; the first response is a response to the first request and is used to indicate that the routing device has multiplexed data ability;
    在通过所述第一传输通道向所述移动设备发送第一响应后,所述路由设备与所述移动设备通过蜂窝网络建立第二传输通道;所述第二传输通道至少包括一条传输通道。After sending the first response to the mobile device through the first transmission channel, the routing device and the mobile device establish a second transmission channel through the cellular network; the second transmission channel includes at least one transmission channel.
  20. 根据权利要求19所述的方法,其特征在于,所述路由设备与所述移动设备通过蜂窝网络建立第二传输通道,包括:The method according to claim 19, wherein the routing device and the mobile device establish a second transmission channel through a cellular network, comprising:
    在第二预设时长内通过所述蜂窝网络未接收到所述移动设备发送的PING探测请求;The PING probe request sent by the mobile device is not received through the cellular network within a second preset time period;
    所述路由设备通过NAT穿越,获取第二网关信息,并通过第一传输通道向所述移动设备发送第二网关信息;且所述路由设备通过第一传输通道接收所述移动设备发送的第一网关信息;所述路由设备基于所述第一网关信息和所述第二网关信息,与所述移动设备通过蜂窝网络建立第二传输通道。The routing device obtains the second gateway information through NAT traversal, and sends the second gateway information to the mobile device through the first transmission channel; and the routing device receives the first transmission channel sent by the mobile device through the first transmission channel. gateway information; the routing device establishes a second transmission channel with the mobile device through the cellular network based on the first gateway information and the second gateway information.
  21. 根据权利要求19或20所述的方法,其特征在于,在所述路由设备与所述移动设备通过蜂窝网络建立第二传输通道后,所述方法还包括:The method according to claim 19 or 20, wherein after the routing device and the mobile device establish a second transmission channel through a cellular network, the method further comprises:
    在通过第一传输通道接收到所述移动设备发送的第一数据,以及通过第二传输通道接收到所述移动设备发送的第二数据后,所述路由设备将所述第一数据和所述第二数据组合 为上传数据,并将所述上传数据通过第P条传输通道,传输至所述第P个应用服务器。After receiving the first data sent by the mobile device through the first transmission channel and the second data sent by the mobile device through the second transmission channel, the routing device combines the first data with the The second data combination is upload data, and the upload data is transmitted to the Pth application server through the Pth transmission channel.
  22. 根据权利要求19-21中任意一项所述的方法,其特征在于,在所述路由设备与所述移动设备通过蜂窝网络建立第二传输通道后,所述方法还包括:The method according to any one of claims 19-21, wherein after the routing device and the mobile device establish a second transmission channel through a cellular network, the method further comprises:
    接收所述移动设备发送的多路传输请求,所述多路传输请求用于告知所述路由设备在向所述移动设备传输数据时,通过第一传输通道和第二传输通道传输数据;receiving a multiplexing request sent by the mobile device, where the multiplexing request is used to inform the routing device to transmit data through the first transmission channel and the second transmission channel when transmitting data to the mobile device;
    所述多路传输请求通过所述第一传输通道和所述第二传输通道中的至少一个传输通道传输。The multiplexing request is transmitted through at least one of the first transmission channel and the second transmission channel.
  23. 根据权利要求22所述的方法,其特征在于,在接收到所述移动设备发送的多路传输请求后,所述方法还包括:The method according to claim 22, wherein after receiving the multiplex transmission request sent by the mobile device, the method further comprises:
    在通过所述第P条传输通道接收到下载数据后,所述路由设备将所述下载数据拆分为第三数据和第四数据,并将所述第三数据通过所述第一传输通道向所述移动设备传输,还将所述第四数据通过所述第二传输通道向所述移动设备传输;所述下载数据为所述第P个应用服务器要发送给所述移动设备的数据。After receiving the download data through the P-th transmission channel, the routing device splits the download data into third data and fourth data, and sends the third data to the third data through the first transmission channel The mobile device transmits, and also transmits the fourth data to the mobile device through the second transmission channel; the downloaded data is the data to be sent by the Pth application server to the mobile device.
  24. 根据权利要求19-23中任意一项所述的方法,其特征在于,所述第一网关信息包括所述移动设备的网关的IP地址和端口信息;所述第二网关信息包括所述路由设备的网关的IP地址和端口信息;所述路由设备适配有第二SDK,所述第二SDK用于支持所述路由设备与所述移动设备同时建立所述第一传输通道和所述第二传输通道;所述有线网络为光纤网络;所述第一传输通道包括多个传输通道;所述第二传输通道包括多个传输通道。The method according to any one of claims 19-23, wherein the first gateway information includes IP address and port information of a gateway of the mobile device; the second gateway information includes the routing device IP address and port information of the gateway; the routing device is adapted with a second SDK, and the second SDK is used to support the routing device and the mobile device to simultaneously establish the first transmission channel and the second SDK. a transmission channel; the wired network is an optical fiber network; the first transmission channel includes a plurality of transmission channels; the second transmission channel includes a plurality of transmission channels.
  25. 一种计算机可读存储介质,包括计算机程序,其特征在于,当所述计算机程序在移动设备上运行时,使得所述移动设备执行如权利要求7-12中任意一项所述的通信方法。A computer-readable storage medium comprising a computer program, characterized in that, when the computer program is run on a mobile device, the mobile device is caused to execute the communication method according to any one of claims 7-12.
  26. 一种计算机可读存储介质,包括计算机程序,其特征在于,当所述计算机程序在路由设备上运行时,使得所述路由设备执行如权利要求19-23中任意一项所述的通信方法。A computer-readable storage medium comprising a computer program, characterized in that, when the computer program is executed on a routing device, the routing device is caused to execute the communication method according to any one of claims 19-23.
  27. 一种程序产品,其特征在于,所述程序产品包括计算机程序,所述计算机程序存储在可读存储介质中,通信装置的至少一个处理器可以从所述可读存储介质读取所述计算机程序,所述至少一个处理器执行所述计算机程序使得通信装置实施如权利要求7-12任意一项所述的方法或者如权利要求19-24任意一项所述的方法。A program product, characterized in that the program product comprises a computer program, the computer program is stored in a readable storage medium, and at least one processor of a communication device can read the computer program from the readable storage medium , the at least one processor executing the computer program causes the communication device to implement the method according to any one of claims 7-12 or the method according to any one of claims 19-24.
PCT/CN2021/099852 2020-06-30 2021-06-11 Communication method, mobile device and routing device WO2022001639A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010617746.2A CN113872862B (en) 2020-06-30 2020-06-30 Communication method, mobile device and routing device
CN202010617746.2 2020-06-30

Publications (1)

Publication Number Publication Date
WO2022001639A1 true WO2022001639A1 (en) 2022-01-06

Family

ID=78981679

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/099852 WO2022001639A1 (en) 2020-06-30 2021-06-11 Communication method, mobile device and routing device

Country Status (2)

Country Link
CN (1) CN113872862B (en)
WO (1) WO2022001639A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114900388A (en) * 2022-05-11 2022-08-12 深圳绿米联创科技有限公司 Device control method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101715209A (en) * 2009-11-11 2010-05-26 中兴通讯股份有限公司 Method and system for multilink transmission data
CN108322708A (en) * 2018-02-12 2018-07-24 福州大学 Real-time video transmission system and method based on multi-channel parallel transmission technology
JP2020048057A (en) * 2018-09-19 2020-03-26 Necプラットフォームズ株式会社 Communication device, communication line selection method and program

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101720107B (en) * 2009-03-23 2013-05-29 上海通琅信息技术有限公司 Multi-way integrated communication system and method for wireless multimedia transmission
WO2013153442A1 (en) * 2012-04-13 2013-10-17 Dejero Labs Inc. A system and method for transmission of data from a wireless mobile device over a multipath wireless router
WO2011153415A1 (en) * 2010-06-04 2011-12-08 Interdigital Patent Holdings, Inc. Mptcp and mobil ip interworking
EP2882148A1 (en) * 2013-12-09 2015-06-10 Université Catholique De Louvain Establishing a data transfer connection
WO2015155132A1 (en) * 2014-04-11 2015-10-15 Alcatel Lucent Downlink wifi channel aggregation through a tunneling
WO2015180097A1 (en) * 2014-05-29 2015-12-03 华为技术有限公司 Method and device for controlling load transmission
US10244580B2 (en) * 2014-10-16 2019-03-26 Nokia Of America Corporation Methods and devices for providing application services to users in communications network
US9871723B2 (en) * 2015-02-09 2018-01-16 Telefonaktiebolaget Lm Ericsson (Publ) Method and device for handling multi path connections
US10594596B2 (en) * 2015-03-30 2020-03-17 British Telecommunications Public Limited Company Data transmission
US10069719B2 (en) * 2015-06-16 2018-09-04 Samsung Electronics Co., Ltd. Method and apparatus for multipath media delivery
CN105490948A (en) * 2015-12-28 2016-04-13 传线网络科技(上海)有限公司 Method and system for data packet distribution
CN105827253B (en) * 2016-03-30 2017-08-15 维沃移动通信有限公司 A kind of rf signal reception device and mobile terminal
CN107277861A (en) * 2017-06-27 2017-10-20 广州坚和网络科技有限公司 A kind of distributed cut-in method of mobile whole network
CN207977975U (en) * 2018-03-28 2018-10-16 青岛乾元通数码科技有限公司 A kind of wireless multi-link aggregated routers of 4G
CN112153758B (en) * 2018-04-10 2021-10-15 华为技术有限公司 Communication method and communication device
CN115426693A (en) * 2018-08-02 2022-12-02 华为技术有限公司 Network switching method, electronic equipment and chip subsystem

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101715209A (en) * 2009-11-11 2010-05-26 中兴通讯股份有限公司 Method and system for multilink transmission data
CN108322708A (en) * 2018-02-12 2018-07-24 福州大学 Real-time video transmission system and method based on multi-channel parallel transmission technology
JP2020048057A (en) * 2018-09-19 2020-03-26 Necプラットフォームズ株式会社 Communication device, communication line selection method and program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
P SEITE ORANGE , A YEGIN ACTILITY , S GUNDAVELLI CISCO: "Internet Engineering Task Force (IETF)", MOBILE ACCESS GATEWAY (MAG) MULTIPATH OPTIONS, 31 January 2018 (2018-01-31), pages 1 - 15, XP055883611, ISSN: 2070-1721 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114900388A (en) * 2022-05-11 2022-08-12 深圳绿米联创科技有限公司 Device control method, device and storage medium
CN114900388B (en) * 2022-05-11 2023-11-07 深圳绿米联创科技有限公司 Equipment control method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113872862B (en) 2022-12-06
CN113872862A (en) 2021-12-31

Similar Documents

Publication Publication Date Title
US11277313B2 (en) Data transmission method and corresponding device
US10813154B2 (en) Enabling interface aggregation of mobile broadband network interfaces
JP5882353B2 (en) Method and system for multi-connection in a file system session
WO2022100264A1 (en) Data transmission method and apparatus, storage medium and electronic device
WO2021121308A1 (en) Multipath transmission method and device
US11356294B2 (en) Packet processing method and device
WO2012034387A1 (en) Method and apparatus for wireless hot spot shared access
US20230074838A1 (en) Methods and apparatuses for enabling multi-host multipath secure transport with quic
JP2011526135A (en) Method and apparatus for managing data services in a multiprocessor computing environment
US10367893B1 (en) Method and apparatus of performing peer-to-peer communication establishment
KR102083273B1 (en) Apparatus and method for dynamically configuring Cloud-RAN
WO2022100255A1 (en) Network switching method and apparatus, storage medium, and electronic device
WO2018195829A1 (en) Redirection method, control plane network element, aggregation user plane network element, content server and terminal device
US9661550B2 (en) Communication apparatus, communication method, and communication system
WO2021134446A1 (en) Information processing method, communication device and communication system
WO2022001639A1 (en) Communication method, mobile device and routing device
WO2022143508A1 (en) Method for transmitting data in near field, device and system
WO2015074537A1 (en) Method and apparatus for controlling communication protocol in smart tv device
WO2020147019A1 (en) Apparatus and method of performing a group communication
US20170163737A1 (en) Wireless station and method for managing a multi-band session in wi-fi direct services
WO2022100211A1 (en) Data processing method and apparatus, storage medium, terminal, and network access point device
Bronzino et al. In-network compute extensions for rate-adaptive content delivery in mobile networks
TWI701925B (en) Method for providing network service through edge computing
WO2022057827A1 (en) Aggregation configuration method and apparatus, and terminal
WO2023056832A1 (en) Communication method and related product

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21834423

Country of ref document: EP

Kind code of ref document: A1