技术领域Technical field
本申请属于数据技术领域,尤其涉及一种数据传输方法、装置、存储介质、终端及网络接入点设备。This application belongs to the field of data technology, and in particular relates to a data transmission method, device, storage medium, terminal and network access point equipment.
背景技术Background technique
随着技术的发展,终端安装的各类应用越来越多,同时用户对应用的体验要求也越来越高,应用运行过程中对数据传输的实时性要求高。然而,相关技术中,数据传输效率较低。With the development of technology, more and more types of applications are installed on terminals. At the same time, users have higher and higher requirements for application experience, and high real-time requirements for data transmission during application operation. However, in related technologies, data transmission efficiency is low.
发明内容Contents of the invention
本申请实施例提供一种数据传输的方法、装置、存储介质、终端及网络接入点设备,可以提升数据传输效率。Embodiments of the present application provide a data transmission method, device, storage medium, terminal and network access point equipment, which can improve data transmission efficiency.
第一方面,本申请实施例提供一种数据传输方法,应用于网络接入点设备,所述方法包括:In a first aspect, embodiments of the present application provide a data transmission method, which is applied to network access point equipment. The method includes:
接收终端发送的用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息;Receive first request information for obtaining basic data and second request information for obtaining differential data sent by the terminal;
若检测到所述网络接入点设备已缓存所述基础数据,则向服务器发送所述第二请求信息;If it is detected that the network access point device has cached the basic data, then send the second request information to the server;
接收所述服务器返回的对应所述第二请求信息的差分数据;Receive differential data corresponding to the second request information returned by the server;
将所述基础数据和所述差分数据发送至所述终端。Send the basic data and the differential data to the terminal.
第二方面,本申请实施例提供一种数据传输方法,应用于终端,所述方法包括:In a second aspect, embodiments of the present application provide a data transmission method, which is applied to terminals. The method includes:
将数据请求信息拆分成用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息;Split the data request information into first request information for obtaining basic data and second request information for obtaining differential data;
发送所述第一请求信息和所述第二请求信息至所述网络接入点设备;Send the first request information and the second request information to the network access point device;
接收所述网络接入点设备返回的对应所述第一请求信息的基础数据和对应所述第二请求信息的差分数据。Receive basic data corresponding to the first request information and differential data corresponding to the second request information returned by the network access point device.
第三方面,本申请实施例还提供一种数据传输装置,应用于网络接入点设备,所述装置包括:In a third aspect, embodiments of the present application also provide a data transmission device, which is applied to network access point equipment. The device includes:
第一接收模块,用于接收终端发送的用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息;A first receiving module configured to receive first request information for obtaining basic data and second request information for obtaining differential data sent by the terminal;
第一发送模块,用于若检测到所述网络接入点设备已缓存所述基础数据,则向服务器发送所述第二请求信息;A first sending module, configured to send the second request information to the server if it is detected that the network access point device has cached the basic data;
第二接收模块,用于接收所述服务器返回的对应所述第二请求信息的差分数据;a second receiving module, configured to receive differential data corresponding to the second request information returned by the server;
第二发送模块,用于将所述基础数据和所述差分数据发送至所述终端。The second sending module is used to send the basic data and the differential data to the terminal.
第四方面,本申请实施例还提供一种数据传输装置,应用于终端,所述装置包括:In a fourth aspect, embodiments of the present application also provide a data transmission device, which is applied to a terminal. The device includes:
拆分模块,用于将数据请求信息拆分成用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息;A splitting module used to split the data request information into first request information for obtaining basic data and second request information for obtaining differential data;
第三发送模块,用于发送所述第一请求信息和所述第二请求信息至所述网络接入点设备;A third sending module, configured to send the first request information and the second request information to the network access point device;
第三接收模块,用于接收所述网络接入点设备返回的对应所述第一请求信息的基础数据和对应所述第二请求信息的差分数据。The third receiving module is configured to receive the basic data corresponding to the first request information and the differential data corresponding to the second request information returned by the network access point device.
第五方面,本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如本申请任一实施例提供的数据传输方法。In a fifth aspect, embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored. When the computer program is run on a computer, the computer is caused to execute the method provided by any embodiment of the present application. Data transfer method.
第六方面,本申请实施例还提供一种终端,包括处理器和存储器,所述存储器有计算机程序,所述处理器通过调用所述计算机程序,用于执行如本申请任一实施例提供的数据传输方法。In a sixth aspect, an embodiment of the present application further provides a terminal, including a processor and a memory. The memory has a computer program. The processor invokes the computer program to execute the method provided in any embodiment of the present application. Data transfer method.
第七方面,本申请实施例提供的数据传输系统,包括网络接入点设备和终端,其特征在于,所述网络接入点设备包括第三方面所述的数据传输装置;所述终端包括第四方面所述的数据传输装置。In a seventh aspect, the data transmission system provided by the embodiment of the present application includes a network access point device and a terminal, characterized in that the network access point device includes the data transmission device described in the third aspect; and the terminal includes the third aspect. The data transmission device described in the four aspects.
本申请实施例中,网络接入点设备接收终端发送的用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息;检测所述网络接入点设备中是否已缓存所述基础数据;若所述网络接入点设备已缓存所述基础数据,则向服务器发送所述第二请求信息;接收所述服务器返回的对应所述第二请求信息的差分数据;将所述基础数据和所述差分数据发送至所述终端。本申请实施例中终端将数据请求信息分别拆分为用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息发送给网络接入点设备,其中基础数据是指通用的可适用于多个终端的数据,差分数据是指只适用于单个终端的数据,网络接入点设备只需要在服务器加载一次通用的基础数据,当终端需要时可以发送给多个所需的终端,不需要重复下载,减少了网络接入点设备所需下载的冗余数据量,而且由于差分数据与基础数据分离传输,差分数据的数据量也相对较小,从而网络接入点设备也可以快速从服务器端下载差分数据并及时传输给所需的终端,从而可以提升基础数据和差分数据的传输效率;特别是当多个终端同时连接一个网络接入点设备,且正在运行同一应用时,可以更加明显提升基础数据和差分数据的传输效率。In the embodiment of the present application, the network access point device receives the first request information for obtaining basic data and the second request information for obtaining differential data sent by the terminal; and detects whether all the information has been cached in the network access point device. the basic data; if the network access point device has cached the basic data, send the second request information to the server; receive the differential data corresponding to the second request information returned by the server; transfer the The basic data and the differential data are sent to the terminal. In the embodiment of this application, the terminal splits the data request information into first request information for obtaining basic data and second request information for obtaining differential data and sends them to the network access point device, where the basic data refers to general Data that can be applied to multiple terminals. Differential data refers to data that is only applicable to a single terminal. The network access point device only needs to load the common basic data once on the server. When the terminal needs it, it can be sent to multiple required terminals. , no need to download repeatedly, reducing the amount of redundant data that the network access point device needs to download, and because the differential data and the basic data are transmitted separately, the amount of differential data is relatively small, so the network access point device can also Quickly download differential data from the server and transmit it to the required terminal in a timely manner, thereby improving the transmission efficiency of basic data and differential data; especially when multiple terminals are connected to a network access point device at the same time and are running the same application, The transmission efficiency of basic data and differential data can be more significantly improved.
附图说明Description of drawings
下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其有益效果显而易见。The technical solutions and beneficial effects of the present application will be apparent through a detailed description of the specific embodiments of the present application in conjunction with the accompanying drawings.
图1为本申请实施例提供的数据传输方法的第一种流程示意图。Figure 1 is a schematic flowchart of a first data transmission method provided by an embodiment of the present application.
图2为本申请实施例提供的数据传输方法的第二种流程示意图。FIG. 2 is a schematic flowchart of the second data transmission method provided by an embodiment of the present application.
图3为本申请实施例提供的数据传输方法的第三种流程示意图。Figure 3 is a third flow diagram of a data transmission method provided by an embodiment of the present application.
图4为本申请实施例提供的数据传输方法中网络接入点设备与终端交互场景示意图。Figure 4 is a schematic diagram of an interaction scenario between a network access point device and a terminal in the data transmission method provided by the embodiment of the present application.
图5为本申请实施例提供的数据传输装置的第一种结构示意图。Figure 5 is a first structural schematic diagram of a data transmission device provided by an embodiment of the present application.
图6为本申请实施例提供的数据传输装置的第二种结构示意图。Figure 6 is a second structural schematic diagram of a data transmission device provided by an embodiment of the present application.
图7为本申请实施例提供的数据传输装置的第三种结构示意图。Figure 7 is a third structural schematic diagram of a data transmission device provided by an embodiment of the present application.
图8为本申请实施例提供的网络接入点设备的结构示意图。Figure 8 is a schematic structural diagram of a network access point device provided by an embodiment of the present application.
图9为本申请实施例提供的终端的第一种结构示意图。Figure 9 is a first structural schematic diagram of a terminal provided by an embodiment of the present application.
图10为本申请实施例提供的终端的第二种结构示意图。Figure 10 is a second structural schematic diagram of a terminal provided by an embodiment of the present application.
图11为本申请实施例提供的数据传输系统的结构示意图。Figure 11 is a schematic structural diagram of a data transmission system provided by an embodiment of the present application.
具体实施方式Detailed ways
请参照图示,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Please refer to the figures, in which the same component symbols represent the same components, and the principles of the present application are exemplified by implementation in a suitable computing environment. The following description is based on the illustrated specific embodiments of the present application, and should not be regarded as limiting other specific embodiments of the present application that are not described in detail here.
请参阅图1,图1是本申请实施例提供的数据传输方法的第一种流程示意图。本申请实施例提供一种数据传输方法,应用于网络接入点设备。该可以包括以下步骤:Please refer to Figure 1. Figure 1 is a schematic flow chart of a first data transmission method provided by an embodiment of the present application. The embodiment of the present application provides a data transmission method, which is applied to a network access point device. This can include the following steps:
在101中,接收终端发送的用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息。In 101, receive first request information for obtaining basic data and second request information for obtaining differential data sent by the terminal.
随着技术的发展,终端安装的各类应用越来越多,同时用户对应用的体验要求也越来越高,应用运行过程中对数据传输的实时性要求高。然而,相关技术中,数据传输效率较低。With the development of technology, more and more types of applications are installed on terminals. At the same time, users have higher and higher requirements for application experience, and high real-time requirements for data transmission during application operation. However, in related technologies, data transmission efficiency is low.
本申请实施例中,终端在应用运行过程中将数据请求信息分别拆分为用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息。In the embodiment of the present application, the terminal separates the data request information into first request information for obtaining basic data and second request information for obtaining differential data during the application running process.
其中,针对具体的一个游戏应用,基础数据是指通用的可适用于多个终端的数据,比如,基础数据可以是指游戏的部分图片、声音、升级包、jar包、库文件、TCP层数据共公部分,UDP层数据共公部分等;差分数据是指只适用于单个终端的数据,比如个人身份信息、游戏角色的参数信息、对于用户操作的响应信息等。Among them, for a specific game application, basic data refers to general data that can be applied to multiple terminals. For example, basic data can refer to some pictures, sounds, upgrade packages, jar packages, library files, and TCP layer data of the game. Public part, UDP layer data public part, etc.; differential data refers to data that is only applicable to a single terminal, such as personal identity information, game character parameter information, response information to user operations, etc.
网络接入点设备接收终端发送的用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息,其中,网络接入点设备比如可以为路由器设备等。The network access point device receives the first request information for obtaining basic data and the second request information for obtaining differential data sent by the terminal, where the network access point device may be, for example, a router device.
需要说明的是,在应用实际运行过程中,数据请求信息可以只包括用于获取基础数据的第一请求信息,也可以只包含用于获取差分数据的第二请求信息;也就是说应用运行过程中,终端在一些数据请求中,可以只请求获取基础数据,或者可以只请求差分数据。当终端只请求获取基础数据,可以请求的差分数据为空,当终端只请求获取差分数据,可以认为请求的基础数据为空。It should be noted that during the actual running process of the application, the data request information may only include the first request information used to obtain basic data, or may only include the second request information used to obtain differential data; that is to say, during the application running process In some data requests, the terminal can only request basic data, or can only request differential data. When the terminal only requests basic data, the requested differential data is empty. When the terminal only requests differential data, the requested basic data can be considered empty.
在102中,若检测到网络接入点设备已缓存基础数据,则向服务器发送第二请求信息。In 102, if it is detected that the network access point device has cached basic data, second request information is sent to the server.
在本申请实施例中,网络接入点设备接收到终端发送的用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息之后,网络接入点设备会检测是否已缓存该终端请求的基础数据,若检测到已经有该基础数据,则不需要再向服务器发送用于获取该基础数据的第一请求信息,只需要向服务器发送第二请求信息用于获取差分数据。In this embodiment of the present application, after the network access point device receives the first request information for obtaining basic data and the second request information for obtaining differential data sent by the terminal, the network access point device will detect whether it has been cached If the basic data requested by the terminal is detected to already exist, it does not need to send the first request information to the server to obtain the basic data, and only needs to send the second request information to the server to obtain the differential data.
在一种实施方式中,网络接入点设备可以在第一次加载基础数据后,存储该基础数据。比如当网络接入点设备第一次接收到终端1发送的用于获取基础数据A的请求信息1时,发送对应的请求信息1至服务器,并接收到服务器返回的基础数据A,网络接入点设备可以对该基础数据A进行存储。那么当该网络接入点设备再次接收到终端2发送的也用于获取基础数据A的请求信息2时,该网络接入点设备已经具有该基础数据A了,因此不需要再次发送对应的请求信息2至服务器了,网络接入点设备不需要重新再次加载基础数据A,从而减少了网络接入点设备所需下载的冗余的基础数据A。In one implementation, the network access point device may store the basic data after loading the basic data for the first time. For example, when the network access point device receives the request information 1 sent by the terminal 1 for the first time to obtain the basic data A, it sends the corresponding request information 1 to the server, and receives the basic data A returned by the server. The network access The point device can store the basic data A. Then when the network access point device receives the request information 2 sent by the terminal 2 for obtaining the basic data A again, the network access point device already has the basic data A, so there is no need to send the corresponding request again. After the information 2 is sent to the server, the network access point device does not need to reload the basic data A, thereby reducing the redundant basic data A that the network access point device needs to download.
在一种实施方式中,网络接入点设备也可以基于各终端对应用的使用情况,或者云端大数据分析,确定一些终端经常运行或者用户可能喜欢的应用,比如一些游戏应用,在网络接入点设备较为空闲时,预先向服务器进行申请并加载这些应用的基础数据,并存储在网络接入点设备的内存中。那么当一个或多个终端在运行这些应用时,网络接入点设备接收到终端发送的用于获取基础数据的请求信息时,由于网络接入点设备已缓存有这些应用对应的基础数据,因此不再需要向服务器发送这些基础数据的请求信息,也不需要下载这些基础数据,从而在应用运行过程中减少了网络接入点设备所需下载的大部分或者全部的基础数据。In one implementation, the network access point device can also determine applications that some terminals often run or that users may like, such as some game applications, based on the usage of applications by each terminal or cloud big data analysis. When the point device is relatively idle, it applies to the server in advance and loads the basic data of these applications, and stores them in the memory of the network access point device. Then when one or more terminals are running these applications and the network access point device receives the request information sent by the terminals to obtain basic data, since the network access point device has cached the basic data corresponding to these applications, It is no longer necessary to send request information for these basic data to the server, nor to download these basic data, thus reducing most or all of the basic data that the network access point device needs to download during application running.
在103中,接收服务器返回的对应第二请求信息的差分数据。In 103, differential data corresponding to the second request information returned by the server is received.
由于网络接入点设备已经有该第一请求信息对应的基础数据,因此不需要再向服务器发送第一请求信息。而差分数据只适用于满足单个终端在游戏运行中的需要,网络接入点设备不会对差分数据进行保存,因此当网络接入点设备接收到终端发送的用于获取差分数据的第二请求信息时,网络接入点设备会向服务器发送第二请求信息,并接收服务器返回的对应第二请求信息的差分数据。Since the network access point device already has basic data corresponding to the first request information, there is no need to send the first request information to the server. The differential data is only suitable for meeting the needs of a single terminal during game operation. The network access point device will not save the differential data. Therefore, when the network access point device receives the second request for obtaining differential data sent by the terminal, When receiving the information, the network access point device will send the second request information to the server, and receive the differential data corresponding to the second request information returned by the server.
在104中,将基础数据和差分数据发送至终端。In 104, the base data and differential data are sent to the terminal.
网络接入点设备可以等接收到服务器返回的差分数据后,再和已缓存的基础数据一起及时发送给所需终端,从而终端接收到请求的数据以正常运行。The network access point device can wait for receiving the differential data returned by the server, and then send it to the required terminal in time together with the cached basic data, so that the terminal receives the requested data and operates normally.
在另外一种实施例中,网络接入点设备还可以将已缓存的基础数据及时发送给所需终端,当接收到服务器返回的差分数据后,再及时将差分数据发送给所需终端,从而终端接收到请求的数据以正常运行。In another embodiment, the network access point device can also send the cached basic data to the required terminal in a timely manner. After receiving the differential data returned by the server, the network access point device can then send the differential data to the required terminal in a timely manner, thereby The terminal receives the requested data to function normally.
本申请实施例中可以多个终端连接同一个网络接入点设备运行同一个应用。比如,终端1、终端2同时连接一个网络接入点设备运行同一个游戏,游戏运行过程中,网络接入点设备可以接收到终端1发送的用于获取基础数据A的请求信息1和用于获取差分数据B的请求信息2,以及端2发送的用于获取基础数据A的请求信息3和用于获取差分数据C的请求信息4。In this embodiment of the present application, multiple terminals can connect to the same network access point device to run the same application. For example, terminal 1 and terminal 2 are connected to a network access point device at the same time to run the same game. During the running of the game, the network access point device can receive the request information 1 sent by terminal 1 for obtaining basic data A and the request information for obtaining basic data A. Request information 2 for obtaining differential data B, and request information 3 for obtaining basic data A and request information 4 for obtaining differential data C sent by terminal 2.
若该网络接入点设备检测到已缓存终端1、终端2请求获取的基础数据A时,网络接入点设备可以直接将已缓存的基础数据A分别发送给终端1和终端2,不需要从服务器端请求并接收该基础数据A,只需要从服务器请求并接收差分数据B和差分数据C,再将接收到的差分数据B发送给终端1和将差分数据C发送终端2。If the network access point device detects that the basic data A requested by Terminal 1 and Terminal 2 has been cached, the network access point device can directly send the cached basic data A to Terminal 1 and Terminal 2 respectively, without the need for To request and receive the basic data A, the server only needs to request and receive differential data B and differential data C from the server, and then send the received differential data B to terminal 1 and differential data C to terminal 2.
需要说明的是,网络接入点设备也可以等接收到差分数据后,再与基础数据一起发送给所需的终端。It should be noted that the network access point device can also wait to receive the differential data and then send it together with the basic data to the required terminal.
可以理解的是,当多个终端同时连接一个网络接入点设备运行同一个应用时,网络接入点设备所需发送和接收的数据包较多,若网络接入点设备接收到多个终端发送的请求信息不区分是用于获取基础数据还是用于获取差分数据,也即网络接入点设备每次接收到的数据请求信息所请求获取的数据都既包含基础数据也包含差分数据,导致网络接入点设备每次都需要向服务器申请并加载多个终端所需的全部数据,重复冗余地下载该应用对应的基础数据,从而网络接入点设备所需下载的数据包数据量很大,需要发送给终端的数据包的数据量也很大,导致应用运行过程中数据的传输效率较低,应用运行过程中响应较慢,影响了用户体验。It can be understood that when multiple terminals are connected to a network access point device at the same time to run the same application, the network access point device needs to send and receive more data packets. If the network access point device receives multiple terminals, the network access point device needs to send and receive more data packets. The request information sent does not distinguish whether it is used to obtain basic data or to obtain differential data. That is, the data requested by the data request information received by the network access point device contains both basic data and differential data, resulting in The network access point device needs to apply to the server and load all the data required by multiple terminals every time, and repeatedly and redundantly download the basic data corresponding to the application. Therefore, the amount of data packets that the network access point device needs to download is very large. Large, the amount of data in the data packets that need to be sent to the terminal is also very large, resulting in low data transmission efficiency during application running, slow response during application running, and affecting the user experience.
而本申请中终端将数据请求信息分别拆分为用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息,再发送给网络接入点设备,网络接入点设备只需要在服务器加载一次通用的基础数据,不需要重复下载,减少了游戏运行过程中网络接入点设备所需下载的数据量,当终端需要时可及时发送基础数据给多个所需的终端,提升了基础数据的传输效率,而且由于差分数据与基础数据分离传输,差分数据的数据量也相对较小,从而网络接入点设备也可以快速从服务器端下载差分数据并及时传输给所需的终端,从而也提升差分数据的传输效率;特别是当多个终端同时连接一个网络接入点设备,且正在运行同一时,网络接入点设备可以减少大量的该应用对应的基础数据的重复下载,因此可以更加明显提升基础数据和差分数据的传输效率,减少或消除多终端使用同一网络接入点设备同时运行同一应用时发生的卡顿现象,提升了用户的使用体验。In this application, the terminal separates the data request information into the first request information for obtaining basic data and the second request information for obtaining differential data, and then sends it to the network access point device. The network access point device only Common basic data needs to be loaded once on the server without repeated downloading, which reduces the amount of data that needs to be downloaded by the network access point device during game operation. When the terminal needs it, basic data can be sent to multiple required terminals in a timely manner. The transmission efficiency of basic data is improved, and since the differential data and basic data are transmitted separately, the amount of differential data is relatively small, so the network access point device can quickly download the differential data from the server and transmit it to the required device in a timely manner. terminals, thereby also improving the transmission efficiency of differential data; especially when multiple terminals are connected to a network access point device at the same time and are running the same network access point device, the network access point device can reduce a large amount of repeated downloading of the basic data corresponding to the application. , Therefore, the transmission efficiency of basic data and differential data can be more significantly improved, and the lag phenomenon that occurs when multiple terminals use the same network access point device to run the same application at the same time can be reduced or eliminated, thereby improving the user experience.
请参阅图2,图2为本申请实施例提供的数据传输方法的第二种流程示意图。该数据传输方法可以应用于网络接入点设备。Please refer to Figure 2. Figure 2 is a schematic flow chart of the second data transmission method provided by an embodiment of the present application. This data transmission method can be applied to network access point devices.
在201中,转发多个终端发送的多个数据请求信息,所述多个终端由所述网络接入点设备提供网络接入服务。In 201, multiple data request information sent by multiple terminals are forwarded, and the multiple terminals are provided with network access services by the network access point device.
在本申请实施例中,网络接入点设备可以同时连接多个终端,多个终端可以由同一个网络接入点设备提供网络接入服务,网络接入点设备可以接收到多个终端分别发送的多个数据请求信息,网络接入点设备可以转发多个终端发送的数据请求信息至服务器。其中,网络接入点设备可以是路由器设备等。In the embodiment of this application, the network access point device can connect to multiple terminals at the same time, multiple terminals can be provided with network access services by the same network access point device, and the network access point device can receive the messages sent by multiple terminals respectively. Multiple data request information, the network access point device can forward the data request information sent by multiple terminals to the server. Among them, the network access point device may be a router device or the like.
在202中,若多个数据请求信息中的每个数据请求信息均包含对第一应用的数据请求信息,则转发服务器发送的拆分确定信息至多个终端,所述拆分确定信息用于通知多个终端分别将对第一应用的数据请求信息拆分为第一请求信息和第二请求信息。In 202, if each data request information in the plurality of data request information includes data request information for the first application, forward the split determination information sent by the server to multiple terminals, and the split determination information is used to notify Multiple terminals respectively split the data request information for the first application into first request information and second request information.
当同一个网络接入点设备接收到多个终端分别发送的数据请求信息时,发送这些数据请求信息至服务器,服务器判断这些数据请求信息是否是由同一个网络接入点发送的针对同一应用的数据请求信息,若是,则发送的拆分确定信息至多个终端,可以理解的是,若是,则说明连接同一个网络接入点设备的多个终端正在运行同一个应用,对于多个终端而言,有部分数据是通用的基础数据,还有部分数据是适用于单个终端的差分数据,比如当多个终端正在运行同一个游戏,基础数据比如游戏中的部分图片、声音、升级包、jar包、库文件、TCP层数据共公部分,UDP层数据共公部分、场景信息、地图信息等,差分数据比如个人身份信息、游戏角色的参数信息、对于用户操作的响应信息等。When the same network access point device receives data request information sent by multiple terminals, it sends the data request information to the server. The server determines whether the data request information is sent by the same network access point for the same application. Data request information, if yes, then the split determination information is sent to multiple terminals. It can be understood that if yes, it means that multiple terminals connected to the same network access point device are running the same application. For multiple terminals , some data are universal basic data, and some data are differential data applicable to a single terminal. For example, when multiple terminals are running the same game, basic data such as some pictures, sounds, upgrade packages, and jar packages in the game , library files, public parts of TCP layer data, public parts of UDP layer data, scene information, map information, etc., differential data such as personal identity information, game character parameter information, response information to user operations, etc.
连接同一个网络接入点设备的多个终端运行同一个应用时,服务器可以发送拆分确定信息至多个终端,拆分确定信息用于通知多个终端分别将对应该应用的数据请求信息拆分为用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息。When multiple terminals connected to the same network access point device run the same application, the server can send split determination information to multiple terminals. The split determination information is used to notify multiple terminals to split the data request information of the corresponding application. It is the first request information used to obtain basic data and the second request information used to obtain differential data.
在一种实施例中,终端接收到服务器发送的拆分确认信息,可以返回一个握手确定信息至服务器,终端也可以默认同意,无需再返回握手确定信息,直接将数据请求信息拆分为获取基础数据的第一请求信息和用于获取差分数据的第二请求信息。In one embodiment, when the terminal receives the split confirmation information sent by the server, it can return a handshake confirmation information to the server. The terminal can also agree by default without returning the handshake confirmation information and directly split the data request information into acquisition basis. First request information for data and second request information for obtaining differential data.
在一种实施例中,转发服务器发送的拆分确定信息至多个终端之后还包括:In one embodiment, after forwarding the splitting determination information sent by the server to multiple terminals, the method further includes:
优先处理具有标记的第一请求信息和第二请求信息,并优先处理第一请求信息对应的基础数据和第二请求信息对应的差分数据,第一请求信息和第二请求信息的标记是由终端标注的。The first request information and the second request information with the mark are processed with priority, and the basic data corresponding to the first request information and the differential data corresponding to the second request information are processed with priority. The marks of the first request information and the second request information are determined by the terminal. marked.
比如,游戏对数据的传输实时性要求高,终端可以在发送请求信息前,对游戏应用的请求信息标注标记,对非游戏应用的请求信息不做标注,以便让网络接入点设备根据标记调整发送顺序。具体的,网络接入点设备在发送请求信息前,会检测未发送的多个请求信息是否具有标记,若检测到有标记的请求信息,则会优先发送。同样的,在网络接入点设备接收到对应请求信息返回的数据时,也会检测数据对应的请求信息是否具有标记,若有则优先发送该请求信息对应的数据。网络接入点设备会优先发送具有标记的应用的请求信息至服务器,还会优先发送从服务器返回的对应应用的数据至终端,从而提高一些重要或者对数据传输实时性要求高的应用,比如游戏应用的响应速度,不会因为一些其他应用(如视频应用)造成游戏应用数据传输的延迟或卡顿等。For example, games have high requirements for real-time data transmission. The terminal can mark the request information of the game application before sending the request information, and leave the request information of the non-game application unmarked, so that the network access point device can adjust according to the mark. Send order. Specifically, before sending the request information, the network access point device will detect whether the multiple unsent request information has tags. If it detects the tag request information, it will send it first. Similarly, when the network access point device receives the data returned by the corresponding request information, it will also detect whether the request information corresponding to the data has a tag, and if so, the data corresponding to the request information will be sent first. The network access point device will give priority to sending the request information of the tagged application to the server, and will also give priority to sending the data of the corresponding application returned from the server to the terminal, thus improving some important applications or those with high real-time requirements for data transmission, such as games. The response speed of the application will not cause delays or freezes in the data transmission of game applications due to other applications (such as video applications).
在203中,接收终端发送的用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息。In 203, receive the first request information for obtaining basic data and the second request information for obtaining differential data sent by the terminal.
本申请实施例中,终端在游戏运行过程中可以按照预设的协议将数据请求信息分别拆分为用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息。In the embodiment of the present application, during the game running process, the terminal can split the data request information into first request information for obtaining basic data and second request information for obtaining differential data according to a preset protocol.
比如,针对具体的一个游戏应用,基础信息是指通用的可适用于多个终端的数据,比如,基础数据可以是指游戏的部分图片、声音、升级包、jar包、库文件、TCP层数据共公部分,UDP层数据共公部分等;差分数据是指只适用于单个终端的数据,比如个人身份信息、游戏角色的参数信息、对于用户操作的响应信息等。For example, for a specific game application, basic information refers to general data that can be applied to multiple terminals. For example, basic data can refer to some pictures, sounds, upgrade packages, jar packages, library files, and TCP layer data of the game. Public part, UDP layer data public part, etc.; differential data refers to data that is only applicable to a single terminal, such as personal identity information, game character parameter information, response information to user operations, etc.
网络接入点设备接收终端发送的用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息,其中,网络接入点设备比如可以为路由器设备等。The network access point device receives the first request information for obtaining basic data and the second request information for obtaining differential data sent by the terminal, where the network access point device may be, for example, a router device.
需要说明的是,在应用实际运行过程中,数据请求信息可以只包括用于获取基础数据的第一请求信息,也可以只包含用于获取差分数据的第二请求信息;也就是说应用运行过程中,终端在一些数据请求中,可以只请求获取基础数据,或者可以只请求差分数据。当终端只请求获取基础数据,可以请求的差分数据为空,当终端只请求获取差分数据,可以认为请求的基础数据为空。It should be noted that during the actual running process of the application, the data request information may only include the first request information used to obtain basic data, or may only include the second request information used to obtain differential data; that is to say, during the application running process In some data requests, the terminal can only request basic data, or can only request differential data. When the terminal only requests basic data, the requested differential data is empty. When the terminal only requests differential data, the requested basic data can be considered empty.
在204中,若检测到网络接入点设备已缓存基础数据,则向服务器发送第二请求信息。In 204, if it is detected that the network access point device has cached basic data, second request information is sent to the server.
在本申请实施例中,网络接入点设备接收到终端发送的用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息之后,网络接入点设备会检测是否已存有该终端请求的基础数据,若检测到已经有该基础数据,则不需要再向服务器发送用于获取该基础数据的第一请求信息,只需要向服务器发送第二请求信息用于获取差分数据。In this embodiment of the present application, after the network access point device receives the first request information for obtaining basic data and the second request information for obtaining differential data sent by the terminal, the network access point device will detect whether there is There is basic data requested by the terminal. If it is detected that the basic data already exists, there is no need to send the first request information to the server to obtain the basic data. You only need to send the second request information to the server to obtain the differential data. .
在一种实施方式中,网络接入点设备可以在第一次加载基础数据后,存储该基础数据。比如当网络接入点设备第一次接收到终端1发送的用于获取基础数据A的请求信息1时,发送对应的请求信息1至服务器,并接收到服务器返回的基础数据A,网络接入点设备可以对该基础数据A进行存储。那么当该网络接入点设备再次接收到终端2发送的也用于获取基础数据A的请求信息2时,该网络接入点设备已经具有该基础数据A了,因此不需要再次发送对应的请求信息2至服务器了,网络接入点设备不需要重新再次加载基础数据A,从而减少了网络接入点设备所需下载的冗余的基础数据A。In one implementation, the network access point device may store the basic data after loading the basic data for the first time. For example, when the network access point device receives the request information 1 sent by the terminal 1 for the first time to obtain the basic data A, it sends the corresponding request information 1 to the server, and receives the basic data A returned by the server. The network access The point device can store the basic data A. Then when the network access point device receives the request information 2 sent by the terminal 2 for obtaining the basic data A again, the network access point device already has the basic data A, so there is no need to send the corresponding request again. After the information 2 is sent to the server, the network access point device does not need to reload the basic data A, thereby reducing the redundant basic data A that the network access point device needs to download.
在一种实施方式中,网络接入点设备也可以基于各终端对应用的使用情况,或者云端大数据分析,确定一些终端经常运行或者用户可能喜欢的应用,比如一些游戏应用,在网络接入点设备较为空闲时,预先向服务器进行申请并加载这些应用的基础数据,并存储在网络接入点设备的内存中。那么当一个或多个终端在运行这些应用时,网络接入点设备接收到终端发送的用于获取基础数据的请求信息时,由于网络接入点设备已保存有这些应用对应的基础数据,因此不再需要向服务器发送这些基础数据的请求信息,也不需要下载这些基础数据,从而在应用运行过程中减少了网络接入点设备所需下载的大部分或者全部的基础数据。In one implementation, the network access point device can also determine applications that some terminals often run or that users may like, such as some game applications, based on the usage of applications by each terminal or cloud big data analysis. When the point device is relatively idle, it applies to the server in advance and loads the basic data of these applications, and stores them in the memory of the network access point device. Then when one or more terminals are running these applications and the network access point device receives the request information sent by the terminal to obtain basic data, since the network access point device has saved the basic data corresponding to these applications, It is no longer necessary to send request information for these basic data to the server, nor to download these basic data, thus reducing most or all of the basic data that the network access point device needs to download during application running.
在205中,接收服务器返回的对应第二请求信息的差分数据。In 205, receive differential data corresponding to the second request information returned by the server.
由于网络接入点设备已经有第一请求信息对应的基础数据,因此不需要再向服务器发送第一请求信息。但是由于差分数据只适用于满足单个终端在游戏运行中的需要,网络接入点设备不会对差分数据进行保存,因此当网络接入点设备接收到终端发送的用于获取差分数据的第二请求信息时,网络接入点设备会向服务器发送第二请求信息,并接收服务器返回的对应第二请求信息的差分数据。Since the network access point device already has basic data corresponding to the first request information, there is no need to send the first request information to the server. However, since the differential data is only suitable for meeting the needs of a single terminal during game operation, the network access point device will not save the differential data. Therefore, when the network access point device receives the second message sent by the terminal to obtain the differential data, When requesting information, the network access point device will send the second request information to the server, and receive differential data corresponding to the second request information returned by the server.
网络接入点设备可以接收多个终端分别发送的用于获取不同差分数据的第二请求信息,发送这些第二请求信息至服务器,并接收从服务器返回的对应这些第二请求信息的差分数据。The network access point device may receive second request information for obtaining different differential data sent by multiple terminals respectively, send the second request information to the server, and receive differential data corresponding to the second request information returned from the server.
在206中,将基础数据和差分数据发送至终端。In 206, the basic data and differential data are sent to the terminal.
网络接入点设备可以等接收到服务器返回的差分数据后,再和已缓存的基础数据一起及时发送给所需终端,从而终端接收到请求的数据以正常运行。The network access point device can wait for receiving the differential data returned by the server, and then send it to the required terminal in time together with the cached basic data, so that the terminal receives the requested data and operates normally.
在另外一种实施例中,网络接入点设备还可以将已缓存的基础数据及时发送给所需终端,当接收到服务器返回的差分数据后,再及时将差分数据及时发送给所需终端,从而终端接收到请求的数据以正常运行。In another embodiment, the network access point device can also send the cached basic data to the required terminal in a timely manner. After receiving the differential data returned by the server, the network access point device can then send the differential data to the required terminal in a timely manner. Thus the terminal receives the requested data to function normally.
在207中,若网络接入点设备没有缓存基础数据,则向服务器发送第一请求信息和第二请求信息。In 207, if the network access point device does not cache basic data, it sends the first request information and the second request information to the server.
在本申请实施例中,当网络接入点设备接收到终端发送的用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息之后,网络接入点设备会检测是否已缓存该终端请求的基础数据,若检测到没有缓存该基础数据,则该网络接入点设备需要向服务器发送用于获取基础数据的第一请求信息以及用于获取差分数据的第二请求信息。In this embodiment of the present application, after the network access point device receives the first request information for obtaining basic data and the second request information for obtaining differential data sent by the terminal, the network access point device will detect whether Cache the basic data requested by the terminal. If it is detected that the basic data is not cached, the network access point device needs to send the first request information for obtaining the basic data and the second request information for obtaining the differential data to the server.
在208中,接收服务器返回的对应第一请求信息的基础数据和对应第二请求信息的差分数据。In 208, receive the basic data corresponding to the first request information and the differential data corresponding to the second request information returned by the server.
网络接入点设备向服务器发送用于获取基础数据的第一请求信息以及用于获取差分数据的第二请求信息之后,接收服务器返回的对应第一请求信息的基础数据和对应第二请求信息的差分数据。After the network access point device sends the first request information for obtaining basic data and the second request information for obtaining differential data to the server, it receives the basic data corresponding to the first request information and the basic data corresponding to the second request information returned by the server. Differential data.
在209中,将基础数据和差分数据发送至终端,并存储基础数据。In 209, the basic data and differential data are sent to the terminal, and the basic data is stored.
网络接入点设备可以分别将接收到的基础数据和差分数据及时发送给对应终端,以使终端的应用可以正常运行。The network access point device can send the received basic data and differential data to the corresponding terminal in time, so that the terminal application can run normally.
而且网络接入点设备可以存储所接收的基础数据,当网络接入点设备存储了该基础数据之后,当网络接入点设备再次接收到其他终端发送的也用于获取该基础数据的请求信息时,该网络接入点设备已经具有该基础数据了,不需要再次发送对应的请求信息至服务器了,也不需要再次接收基础数据,从而减少了网络接入点设备所需下载的冗余的基础数据,也可以更加及时的将已缓存的基础数据发送给所需的终端,提升数据传输的效率。Moreover, the network access point device can store the received basic data. After the network access point device stores the basic data, when the network access point device again receives request information sent by other terminals for obtaining the basic data, At that time, the network access point device already has the basic data, and does not need to send the corresponding request information to the server again, nor does it need to receive the basic data again, thereby reducing the redundant data that the network access point device needs to download. Basic data can also be sent to the required terminals in a more timely manner, improving the efficiency of data transmission.
在210中,当网络接入点设备的存储空间不足时,删除存储空间中存储时间最久且未使用的基础数据。In 210, when the storage space of the network access point device is insufficient, the oldest unused basic data stored in the storage space is deleted.
网络接入点设备接收到基础数据之后,可以使用链表进行管理,当网络接入点设备接收到较多的基础数据并进行存储后,占用了较多的网络接入点设备内存的存储空间,本申请实施例中当存储空间小于或等于预设的阈值时,可以对链表中的基础数据进行管理,比如可以使用页面置换算法对链表中的基础数据进行管理,以删除内存中存储的存储时间最久且未使用的基础数据,释放网络接入点设备内存的存储空间,从而可以接收更多应用当前所需的基础数据,保证当前应用的正常运行,从而解决了网络接入点设备内存的存储空间不足的问题。After the network access point device receives the basic data, it can be managed using a linked list. When the network access point device receives more basic data and stores it, it takes up more storage space in the memory of the network access point device. In the embodiment of the present application, when the storage space is less than or equal to the preset threshold, the basic data in the linked list can be managed. For example, the page replacement algorithm can be used to manage the basic data in the linked list to delete the storage time stored in the memory. The longest and unused basic data releases the storage space of the network access point device memory, so that more basic data currently required by the application can be received, ensuring the normal operation of the current application, thus solving the problem of the network access point device memory. Insufficient storage space problem.
本申请实施例中可以多个终端连接同一个网络接入点设备运行同一个应用。比如,终端1、终端2同时连接一个网络接入点设备运行同一个游戏,游戏运行过程中,网络接入点设备可以接收到终端1发送的用于获取基础数据A的请求信息1和用于获取差分数据B的请求信息2,以及端2发送的用于获取基础数据A的请求信息3和用于获取差分数据C的请求信息4。In this embodiment of the present application, multiple terminals can connect to the same network access point device to run the same application. For example, terminal 1 and terminal 2 are connected to a network access point device at the same time to run the same game. During the running of the game, the network access point device can receive the request information 1 sent by terminal 1 for obtaining basic data A and the request information for obtaining basic data A. Request information 2 for obtaining differential data B, and request information 3 for obtaining basic data A and request information 4 for obtaining differential data C sent by terminal 2.
若该网络接入点设备检测到已缓存终端1、终端2请求获取的基础数据A时,网络接入点设备可以直接将已缓存的基础数据A分别发送给终端1和终端2,不需要从服务器端请求并接收该基础数据A,只需要从服务器请求并接收差分数据B和差分数据C,再将接收到的差分数据B发送给终端1和将差分数据C发送终端2。If the network access point device detects that the basic data A requested by Terminal 1 and Terminal 2 has been cached, the network access point device can directly send the cached basic data A to Terminal 1 and Terminal 2 respectively, without the need for To request and receive the basic data A, the server only needs to request and receive differential data B and differential data C from the server, and then send the received differential data B to terminal 1 and differential data C to terminal 2.
若该网络接入点设备检测到没有终端1、终端2请求获取的基础数据A时,网络接入点设备需要从服务器请求并接收一次基础数据A,并对基础数据A进行存储,以及需要从服务器请求并接收差分数据B和差分数据C,将接收到的基础数据A、差分数据B发送给终端1,将基础数据A、差分数据C发送终端2。If the network access point device detects that there is no basic data A requested by terminal 1 or terminal 2, the network access point device needs to request and receive basic data A from the server once, store the basic data A, and need to obtain the basic data A from the server. The server requests and receives differential data B and differential data C, sends the received basic data A and differential data B to terminal 1, and sends basic data A and differential data C to terminal 2.
可以理解的是,当多个终端同时连接一个网络接入点设备运行同一个应用时,网络接入点设备所需发送和接收的数据包较多,若网络接入点设备接收到多个终端发送的请求信息不区分是用于获取基础数据还是用于获取差分数据,也即网络接入点设备每次接收到的请求信息所请求获取的数据都既包含基础数据也包含差分数据,导致网络接入点设备每次都需要向服务器申请并加载多个终端所需的全部数据,重复冗余地下载该应用对应的基础数据,从而网络接入点设备所需下载的数据包数据量很大,需要发送给终端的数据包的数据量也很大,导致应用运行过程中数据的传输效率较低,应用运行过程中响应较慢,影响了用户体验。It can be understood that when multiple terminals are connected to a network access point device at the same time to run the same application, the network access point device needs to send and receive more data packets. If the network access point device receives multiple terminals, the network access point device needs to send and receive more data packets. The request information sent does not distinguish whether it is used to obtain basic data or to obtain differential data. That is, the data requested for each request information received by the network access point device contains both basic data and differential data, causing the network The access point device needs to apply to the server and load all the data required by multiple terminals every time, and repeatedly and redundantly download the basic data corresponding to the application. As a result, the network access point device needs to download a large amount of data packets. , the data volume of the data packets that need to be sent to the terminal is also very large, resulting in low data transmission efficiency during application running, slow response during application running, and affecting the user experience.
而本申请中终端将数据请求信息分别拆分为用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息,再发送给网络接入点设备,网络接入点设备只需要在服务器加载一次通用的基础数据,不需要重复下载,减少了应用运行过程中网络接入点设备所需下载的数据量,且当终端需要时即可及时发送基础数据给多个所需的终端,提升了基础数据的传输效率,而且由于差分数据与基础数据分离传输,差分数据的数据量也相对较小,从而网络接入点设备也可以快速从服务器端下载差分数据并及时传输给所需的终端,从而也提升差分数据的传输效率;特别是当多个终端同时连接一个网络接入点设备,且正在运行同一个应用时,网络接入点设备可以减少大量的该应用对应的基础数据的重复下载,因此可以更加明显提升基础数据和差分数据的传输效率,减少或消除多终端使用同一网络接入点设备同时运行同一应用时发生的卡顿现象,提升了用户的使用体验。In this application, the terminal separates the data request information into the first request information for obtaining basic data and the second request information for obtaining differential data, and then sends it to the network access point device. The network access point device only Common basic data needs to be loaded once on the server without repeated downloading, which reduces the amount of data that needs to be downloaded by the network access point device during application operation, and when the terminal needs it, the basic data can be sent to multiple required devices in a timely manner. The terminal improves the transmission efficiency of basic data, and because the differential data and basic data are transmitted separately, the amount of differential data is relatively small, so the network access point device can quickly download the differential data from the server and transmit it to all users in a timely manner. Required terminals, thereby also improving the transmission efficiency of differential data; especially when multiple terminals are connected to a network access point device at the same time and are running the same application, the network access point device can reduce a large number of basic data corresponding to the application. Repeated downloading of data can significantly improve the transmission efficiency of basic data and differential data, reduce or eliminate the lag that occurs when multiple terminals use the same network access point device to run the same application at the same time, and improve the user experience.
请参阅图3,图3为本申请实施例提供的数据传输方法的第三种流程示意图。该数据传输方法可以应用于终端。Please refer to Figure 3, which is a third flow diagram of a data transmission method provided by an embodiment of the present application. This data transmission method can be applied to terminals.
在301中,发送数据请求信息至网络接入点设备。In 301, data request information is sent to the network access point device.
终端在连接网络接入点设备运行应用时,会发送数据请求信息至网络接入点设备,网络接入点设备可以转发数据请求信息至服务器以获取终端所需的数据。When the terminal connects to the network access point device to run the application, it will send data request information to the network access point device, and the network access point device can forward the data request information to the server to obtain the data required by the terminal.
在302中,若终端和其它终端发送至同一网络接入点设备的多个数据请求信息中的每个数据请求信息均包含对第一应用的数据请求信息,则接收网络接入点设备发送的拆分确定信息。In 302, if each of the multiple data request information sent by the terminal and other terminals to the same network access point device includes data request information for the first application, receive the data request information sent by the network access point device. Split OK information.
可以理解的是,多个终端可以连接同一个网络接入点设备运行同一个应用,多个终端分别发送数据请求信息至网络接入点设备,网络接入点设备发送这些数据请求信息至服务器,服务器判断这些数据请求信息中是否是由同一个网络接入点发送的针对同一应用的数据请求信息,若是,则发送的拆分确定信息至多个终端,可以理解的是,若是,则说明连接同一个网络接入点设备的多个终端正在运行同一个应用,对于多个终端而言,有部分数据是通用的基础数据,还有部分数据是适用于单个终端的差分数据,比如,多个终端正在运行同一个游戏,基础数据比如游戏的部分图片、声音、升级包、jar包、库文件、TCP层数据共公部分,UDP层数据共公部分、场景信息、地图信息等,差分数据比如个人身份信息、游戏角色的参数信息、对于用户操作的响应信息等。It can be understood that multiple terminals can connect to the same network access point device to run the same application. Multiple terminals send data request information to the network access point device respectively, and the network access point device sends these data request information to the server. The server determines whether these data request messages are data request messages for the same application sent by the same network access point. If so, the splitting determination information is sent to multiple terminals. It is understandable that if so, it means that the connection is the same. Multiple terminals of a network access point device are running the same application. For multiple terminals, some data are common basic data, and some data are differential data applicable to a single terminal. For example, multiple terminals The same game is running, basic data such as some of the game's pictures, sounds, upgrade packages, jar packages, library files, public parts of TCP layer data, public parts of UDP layer data, scene information, map information, etc., differential data such as personal data Identity information, game character parameter information, response information to user operations, etc.
连接同一个网络接入点设备的多个终端运行同一个应用时,服务器可以发送拆分确定信息至多个终端,拆分确定信息用于通知多个终端分别将对应该应用的数据请求信息拆分为用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息。When multiple terminals connected to the same network access point device run the same application, the server can send split determination information to multiple terminals. The split determination information is used to notify multiple terminals to split the data request information of the corresponding application. It is the first request information used to obtain basic data and the second request information used to obtain differential data.
在一种实施例中,终端接收到服务器发送的拆分确认信息,可以返回一个握手确定信息至服务器,终端也可以默认同意,无需再返回握手确定信息,直接将数据请求信息拆分为获取基础数据的第一请求信息和用于获取差分数据的第二请求信息。In one embodiment, when the terminal receives the split confirmation information sent by the server, it can return a handshake confirmation information to the server. The terminal can also agree by default without returning the handshake confirmation information and directly split the data request information into acquisition basis. First request information for data and second request information for obtaining differential data.
在303中,根据拆分确定信息,将第一应用的数据请求信息拆分成用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息。In 303, according to the split determination information, the data request information of the first application is split into first request information for obtaining basic data and second request information for obtaining differential data.
本申请实施例中,终端在用于运行过程中可以按照预设的协议将数据请求信息分别拆分为用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息。In the embodiment of the present application, during operation, the terminal may split the data request information into first request information for obtaining basic data and second request information for obtaining differential data according to a preset protocol.
需要说明的是,在应用实际运行过程中,数据请求信息可以只包括用于获取基础数据的第一请求信息,也可以只包含用于获取差分数据的第二请求信息;也就是说应用运行过程中,终端在一些数据请求中,可以只请求获取基础数据,或者可以只请求差分数据。当终端只请求获取基础数据,可以请求的差分数据为空,当终端只请求获取差分数据,可以认为请求的基础数据为空。It should be noted that during the actual running process of the application, the data request information may only include the first request information used to obtain basic data, or may only include the second request information used to obtain differential data; that is to say, during the application running process In some data requests, the terminal can only request basic data, or can only request differential data. When the terminal only requests basic data, the requested differential data is empty. When the terminal only requests differential data, the requested basic data can be considered empty.
在304中,发送第一请求信息和第二请求信息至网络接入点设备。In 304, the first request information and the second request information are sent to the network access point device.
终端发送用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息网络接入点设备,其中,网络接入点设备比如可以为路由器设备等。The terminal sends first request information for obtaining basic data and second request information for obtaining differential data to a network access point device, where the network access point device may be, for example, a router device.
若该网络接入点设备检测到已缓存终端请求的基础数据,则只需要转发第二请求信息至服务器,以申请并接收终端所需的差分数据。If the network access point device detects that the basic data requested by the terminal has been cached, it only needs to forward the second request information to the server to apply for and receive the differential data required by the terminal.
若该网络接入点设备检测到没有终端请求的基础数据,则需要转发第一请求信息和第二请求信息至服务器,以申请并接收终端所需的基础数据以及差分数据。If the network access point device detects that there is no basic data requested by the terminal, it needs to forward the first request information and the second request information to the server to apply for and receive the basic data and differential data required by the terminal.
在305中,接收网络接入点设备返回的对应第一请求信息的基础数据和对应第二请求信息的差分数据。In 305, basic data corresponding to the first request information and differential data corresponding to the second request information returned by the network access point device are received.
终端接收网络接入点设备返回的对应第一请求信息的基础数据和对应第二请求信息的差分数据,从而终端的应用可以正常运行。The terminal receives the basic data corresponding to the first request information and the differential data corresponding to the second request information returned by the network access point device, so that the application of the terminal can run normally.
具体的,若网络接入点设备检测到已缓存终端请求的基础数据,网络接入点设备可以等接收到服务器返回的差分数据后,再和已缓存的基础数据一起及时发送给所需终端,从而终端的应用可以正常运行。Specifically, if the network access point device detects that the basic data requested by the terminal has been cached, the network access point device can wait for receiving the differential data returned by the server, and then send it to the required terminal in time together with the cached basic data. As a result, terminal applications can run normally.
在另外一种实施例中,若网络接入点设备检测到已缓存终端请求的基础数据,则可以将已缓存的基础数据及时发送给所需终端,当接收到服务器返回的差分数据后,再及时将差分数据及时发送给所需终端,从而终端的应用可以正常运行。In another embodiment, if the network access point device detects that the basic data requested by the terminal has been cached, the cached basic data can be sent to the required terminal in time, and after receiving the differential data returned by the server, The differential data is sent to the required terminal in a timely manner so that the terminal application can run normally.
若网络接入点设备没有检测到终端请求的基础数据,则需要转发第一请求信息和第二请求信息至服务器,当接收到服务器返回对应的基础数据以及差分数据后,及时将基础数据以及差分数据及时发送给所需终端,从而终端的游戏可以正常运行。If the network access point device does not detect the basic data requested by the terminal, it needs to forward the first request information and the second request information to the server. After receiving the corresponding basic data and differential data returned by the server, the basic data and differential data will be transmitted in a timely manner. The data is sent to the required terminal in time, so that the game on the terminal can run normally.
请参阅图4,图4为本申请实施例提供的数据传输方法中网络接入点设备与终端交互场景示意图。Please refer to Figure 4. Figure 4 is a schematic diagram of an interaction scenario between a network access point device and a terminal in the data transmission method provided by an embodiment of the present application.
多个终端可以同时连接同一个网络接入点设备运行同一个应用,网络接入点设备可以接收到多个终端分别发送的数据请求信息,网络接入点设备可以转发多个终端发送的数据请求信息至服务器。其中,网络接入点设备可以是路由器设备等。比如终端1和终端2同时连接一个网络接入点设备运行同一个游戏1,游戏1在运行过程中,终端1发送数据请求信息a,终端2发送数据请求信息b。Multiple terminals can connect to the same network access point device at the same time to run the same application. The network access point device can receive data request information sent by multiple terminals respectively. The network access point device can forward data requests sent by multiple terminals. information to the server. Among them, the network access point device may be a router device or the like. For example, terminal 1 and terminal 2 are connected to a network access point device at the same time to run the same game 1. During the running of game 1, terminal 1 sends data request information a, and terminal 2 sends data request information b.
当同一个网络接入点设备接收到多个终端分别发送的数据请求信息时,发送这些数据请求信息至服务器,服务器判断这些数据请求信息是否是由同一个网络接入点发送的针对同一应用的数据请求信息,若是,则发送的拆分确定信息至多个终端,可以理解的是,若是,则说明连接同一个网络接入点设备的多个终端正在运行同一个应用,对于多个终端而言,有部分数据是通用的基础数据,还有部分数据是适用于单个终端的差分数据。比如,终端1和终端2连接同一网络接入点设备,且发送的数据请求信息为同一游戏A的数据请求信息,则服务器发送拆分确定信息至网络接入点设备,由网络接入点设备分别转发拆分确定信息至终端1和终端2。When the same network access point device receives data request information sent by multiple terminals, it sends the data request information to the server. The server determines whether the data request information is sent by the same network access point for the same application. Data request information, if yes, then the split determination information is sent to multiple terminals. It can be understood that if yes, it means that multiple terminals connected to the same network access point device are running the same application. For multiple terminals , some data are universal basic data, and some data are differential data applicable to a single terminal. For example, terminal 1 and terminal 2 are connected to the same network access point device, and the data request information sent is the data request information of the same game A, then the server sends the split determination information to the network access point device, and the network access point device The splitting determination information is forwarded to terminal 1 and terminal 2 respectively.
终端接收到服务器发送的拆分确认信息,可以返回一个握手确定信息至服务器,终端也可以默认同意,无需再返回握手确定信息,直接将数据请求信息拆分为获取基础数据的第一请求信息和用于获取差分数据的第二请求信息。When the terminal receives the split confirmation information sent by the server, it can return a handshake confirmation information to the server. The terminal can also agree by default without returning the handshake confirmation information and directly split the data request information into the first request information for obtaining basic data and Second request information for obtaining differential data.
终端发送用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息网络接入点设备。比如,终端1发送用于获取基础数据A的请求信息1和用于获取差分数据B的请求信息2至网络接入点设备,终端2发送用于获取基础数据A的请求信息3和用于获取差分数据C的请求信息4至网络接入点设备。The terminal sends first request information for obtaining basic data and second request information for obtaining differential data to the network access point device. For example, terminal 1 sends request information 1 for obtaining basic data A and request information 2 for obtaining differential data B to the network access point device, and terminal 2 sends request information 3 for obtaining basic data A and request information 3 for obtaining differential data B. The request information 4 of differential data C is sent to the network access point device.
网络接入点设备会检测是否已存有该终端请求的基础数据,若检测到已经有该基础数据,则不需要再向服务器发送用于获取该基础数据的第一请求信息,只需要向服务器发送第二请求信息用于获取差分数据。比如,网络接入点设备检测到具有终端1和终端2请求获取的基础数据A,只需要发送终端1用于获取差分数据B的请求信息2、终端2用于获取差分数据C的请求信息4至服务器。则可以直接分别发送基础数据A至终端1和终端2.The network access point device will detect whether the basic data requested by the terminal already exists. If it detects that the basic data already exists, there is no need to send the first request information to the server to obtain the basic data. It only needs to send the first request information to the server. Send second request information for obtaining differential data. For example, if the network access point device detects that there is basic data A requested by terminal 1 and terminal 2, it only needs to send request information 2 for terminal 1 to obtain differential data B, and request information 4 for terminal 2 to obtain differential data C. to the server. Then you can directly send basic data A to terminal 1 and terminal 2 respectively.
网络接入点设备接收服务器返回的对应第二请求信息的差分数据后,将基础数据和差分数据发送给所需的终端。比如,网络接入点设备接收服务器返回的差分数据B,将差分数据B和基础数据A发送至终端1,接收服务器返回的差分数据C,将差分数据C和基础数据A发送至终端2。After receiving the differential data corresponding to the second request information returned by the server, the network access point device sends the basic data and differential data to the required terminal. For example, the network access point device receives differential data B returned by the server, sends differential data B and basic data A to terminal 1, receives differential data C returned by the server, and sends differential data C and basic data A to terminal 2.
在一种实施例中,若网络接入点设备没有基础数据,则向服务器发送第一请求信息和第二请求信息。比如终端1发送用于获取基础数据D的请求信息5和用于获取差分数据E的请求信息6,若网络接入点设备检测到没有基础数据D,则发送请求信息5和请求信息6至服务器。In one embodiment, if the network access point device does not have basic data, it sends the first request information and the second request information to the server. For example, terminal 1 sends request information 5 for obtaining basic data D and request information 6 for obtaining differential data E. If the network access point device detects that there is no basic data D, it sends request information 5 and request information 6 to the server. .
网络接入点设备接收服务器返回的对应第一请求信息的基础数据和第二请求信息的差分数据,并发送给所需的终端。比如网络接入点设备接收请求信息5对应的基础数据D和请求信息6对应的差分数据E,并将基础数据D和差分数据E发送给终端1。The network access point device receives the basic data corresponding to the first request information and the differential data of the second request information returned by the server, and sends them to the required terminal. For example, the network access point device receives the basic data D corresponding to the request information 5 and the differential data E corresponding to the request information 6, and sends the basic data D and the differential data E to the terminal 1.
网络接入点设备还可以存储所接收的基础数据D,当络接入点设备再次接收到其他终端发送的也用于获取该基础数据D的请求信息时,不需要再次发送对应的请求信息至服务器了,也不需要再次接收基础数据D,可以直接将基础数据D发送给所需的终端。The network access point device can also store the received basic data D. When the network access point device again receives the request information sent by other terminals to obtain the basic data D, it does not need to send the corresponding request information again to The server does not need to receive the basic data D again, and can directly send the basic data D to the required terminal.
因此网络接入点设备只需要在服务器加载一次通用的基础数据并进行存储,不需要重复下载,减少了应用运行过程中网络接入点设备所需下载的数据量,且当终端需要时即可及时发送基础数据给多个所需的终端,提升了基础数据的传输效率,而且由于差分数据与基础数据分离传输,差分数据的数据量也相对较小,从而网络接入点设备也可以快速从服务器端下载差分数据并及时传输给所需的终端,从而也提升差分数据的传输效率;特别是当多个终端同时连接一个网络接入点设备,且正在运行同一应用时,网络接入点设备可以减少大量的该应用对应的基础数据的重复下载,因此可以更加明显提升基础数据和差分数据的传输效率,减少或消除多终端使用同一网络接入点设备同时运行同一应用时发生的卡顿现象,提升了用户的使用体验。Therefore, the network access point device only needs to load common basic data once on the server and store it, and does not need to download it repeatedly, which reduces the amount of data that the network access point device needs to download during application operation, and can be used when the terminal needs it. Send basic data to multiple required terminals in a timely manner, which improves the transmission efficiency of basic data. Moreover, since differential data and basic data are transmitted separately, the amount of differential data is relatively small, so the network access point device can also quickly transfer data from the differential data to the basic data. The server downloads the differential data and transmits it to the required terminal in time, thereby improving the transmission efficiency of differential data; especially when multiple terminals are connected to a network access point device at the same time and are running the same application, the network access point device It can reduce the repeated downloading of a large amount of basic data corresponding to the application, so it can more significantly improve the transmission efficiency of basic data and differential data, and reduce or eliminate the lagging phenomenon that occurs when multiple terminals use the same network access point device to run the same application at the same time. , improving the user experience.
请参阅图5至图6,图5为本申请实施例提供的数据传输装置的第一种结构示意图,图6为本申请实施例提供的数据传输装置的第二种结构示意图。其中该数据传输装置400应用于网络接入点设备,该数据传输装置400包括第一接收模块401、第一发送模块402、第二接收模块403以及第二发送模块404,如下:Please refer to FIGS. 5 to 6 . FIG. 5 is a first structural schematic diagram of a data transmission device provided by an embodiment of the present application. FIG. 6 is a second structural schematic diagram of a data transmission device provided by an embodiment of the present application. The data transmission device 400 is applied to network access point equipment. The data transmission device 400 includes a first receiving module 401, a first sending module 402, a second receiving module 403 and a second sending module 404, as follows:
第一接收模块401,用于接收终端发送的用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息。The first receiving module 401 is configured to receive first request information for obtaining basic data and second request information for obtaining differential data sent by the terminal.
第一发送模块402,用于若检测到网络接入点设备已缓存基础数据,则向服务器发送第二请求信息。The first sending module 402 is configured to send second request information to the server if it is detected that the network access point device has cached basic data.
第二接收模块403,用于接收服务器返回的对应第二请求信息的差分数据。The second receiving module 403 is configured to receive differential data corresponding to the second request information returned by the server.
第二发送模块404,用于将基础数据和差分数据发送至终端。The second sending module 404 is used to send basic data and differential data to the terminal.
在一种实施方式中,第一发送模块402可以用于:转发多个终端发送的多个数据请求信息,多个终端由网络接入点设备提供网络接入服务;In one implementation, the first sending module 402 may be used to: forward multiple data request information sent by multiple terminals, and the multiple terminals are provided with network access services by network access point devices;
若多个数据请求信息中的每个数据请求信息均包含对第一应用的数据请求信息,则转发服务器发送的拆分确定信息至多个终端,所述拆分确定信息用于通知多个终端分别将对第一应用的数据请求信息拆分为第一请求信息和第二请求信息。If each data request information in the plurality of data request information includes data request information for the first application, the split determination information sent by the server is forwarded to multiple terminals, and the split determination information is used to notify the multiple terminals respectively. The data request information for the first application is split into first request information and second request information.
在一种实施方式中,数据传输装置400还包括处理模块405,处理模块406可以用于:优先处理具有标记的第一请求信息和第二请求信息,并优先处理第一请求信息对应的基础数据和第二请求信息对应的差分数据,第一请求信息和第二请求信息的标记是由终端标注的。In one implementation, the data transmission device 400 also includes a processing module 405. The processing module 406 can be configured to: prioritize processing of the first request information and the second request information with tags, and prioritize processing of the basic data corresponding to the first request information. The differential data corresponding to the second request information, the marks of the first request information and the second request information are marked by the terminal.
在一种实施方式中,第一发送模块401可以用于:接收服务器返回的对应第一请求信息的基础数据和对应第二请求信息的差分数据;In one implementation, the first sending module 401 may be configured to: receive basic data corresponding to the first request information and differential data corresponding to the second request information returned by the server;
第一发送模块402可以用于:将基础数据和差分数据发送至终端。The first sending module 402 may be used to send basic data and differential data to the terminal.
数据传输装置400还包括存储模块406,存储模块406用于:存储基础数据The data transmission device 400 also includes a storage module 406, which is used to: store basic data
在一种实施方式中,存储模块406可以用于:当网络接入点设备的存储空间不足时,删除存储空间中存储时间最久且未使用的基础数据。In one implementation, the storage module 406 may be used to: when the storage space of the network access point device is insufficient, delete the oldest unused basic data in the storage space.
请参阅图7,图7为本申请实施例提供的数据传输装置的第三种结构示意图。其中该数据传输装置500应用于终端,该数据传输装置500包括拆分模块501、第三发送模块502以及第三接收模块503,如下:Please refer to FIG. 7 , which is a third structural schematic diagram of a data transmission device provided by an embodiment of the present application. The data transmission device 500 is applied to a terminal. The data transmission device 500 includes a splitting module 501, a third sending module 502 and a third receiving module 503, as follows:
拆分模块501,用于将数据请求信息拆分成用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息。Splitting module 501 is used to split the data request information into first request information for obtaining basic data and second request information for obtaining differential data.
第三发送模块502,用于发送第一请求信息和第二请求信息至网络接入点设备。The third sending module 502 is used to send the first request information and the second request information to the network access point device.
第三接收模块503,用于接收网络接入点设备返回的对应第一请求信息的基础数据和对应第二请求信息的差分数据。The third receiving module 503 is configured to receive basic data corresponding to the first request information and differential data corresponding to the second request information returned by the network access point device.
本申请实施例提供一种计算机可读的存储介质,其上存储有计算机程序,当计算机程序在计算机上执行时,使得计算机执行如本实施例提供的数据传输方法中的流程。An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed on a computer, it causes the computer to execute the process in the data transmission method provided by this embodiment.
本申请实施例还提供一种网络接入点设备。网络接入点设备可以是路由器。请参阅图8,图8为本申请实施例提供的网络接入点设备的结构示意图。网络接入点设备600包括处理器601和存储器602。其中,处理器601与存储器602电性连接。An embodiment of the present application also provides a network access point device. The network access point device can be a router. Please refer to Figure 8, which is a schematic structural diagram of a network access point device provided by an embodiment of the present application. Network access point device 600 includes processor 601 and memory 602. Among them, the processor 601 is electrically connected to the memory 602.
处理器601是网络接入点设备600的控制中心,利用各种接口和线路连接整个网络接入点设备的各个部分,通过运行或调用存储在存储器602内的计算机程序,以及调用存储在存储器602内的数据,执行网络接入点设备的各种功能和处理数据,从而对网络接入点设备进行整体监控。The processor 601 is the control center of the network access point device 600, using various interfaces and lines to connect various parts of the entire network access point device, by running or calling the computer program stored in the memory 602, and calling the computer program stored in the memory 602. The data in the network access point device is used to perform various functions of the network access point device and process data, thereby overall monitoring the network access point device.
存储器602可用于存储计算机程序和数据。存储器602存储的计算机程序中包含有可在处理器中执行的指令。计算机程序可以组成各种功能模块。处理器601通过调用存储在存储器602的计算机程序,从而执行各种功能应用以及数据处理。Memory 602 may be used to store computer programs and data. The computer program stored in memory 602 contains instructions that can be executed in the processor. Computer programs can be composed of various functional modules. The processor 601 executes various functional applications and data processing by calling computer programs stored in the memory 602 .
在本实施例中,网络接入点设备600中的处理器601会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器602中,并由处理器601来运行存储在存储器602中的计算机程序,从而实现功能:In this embodiment, the processor 601 in the network access point device 600 will follow the following steps to load instructions corresponding to the processes of one or more computer programs into the memory 602, and the processor 601 will run the stored instructions. A computer program in memory 602 to perform the functions:
一种数据传输方法,应用于网络接入点设备,其特征在于,方法包括:A data transmission method, applied to network access point equipment, characterized in that the method includes:
接收终端发送的用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息;Receive first request information for obtaining basic data and second request information for obtaining differential data sent by the terminal;
若检测到网络接入点设备已缓存基础数据,则向服务器发送第二请求信息;If it is detected that the network access point device has cached basic data, then the second request information is sent to the server;
接收服务器返回的对应第二请求信息的差分数据;Receive differential data corresponding to the second request information returned by the server;
将基础数据和差分数据发送至终端。Send basic data and differential data to the terminal.
在一种实施方式中,处理器601在接收终端发送的用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息之前,可以执行:转发多个终端发送的多个数据请求信息,多个终端由网络接入点设备提供网络接入服务;In one implementation, before receiving the first request information for obtaining basic data and the second request information for obtaining differential data sent by the terminal, the processor 601 may perform: forwarding multiple data sent by multiple terminals. Requesting information, multiple terminals are provided with network access services by network access point devices;
若多个数据请求信息中的每个数据请求信息均包含对第一应用的数据请求信息,则转发服务器发送的拆分确定信息至多个终端,拆分确定信息用于通知多个终端分别将对第一应用的数据请求信息拆分为第一请求信息和第二请求信息。If each data request information in the plurality of data request information includes data request information for the first application, then the split determination information sent by the server is forwarded to multiple terminals, and the split determination information is used to notify the multiple terminals to respectively The data request information of the first application is split into first request information and second request information.
在一种实施方式中,处理器601在转发服务器发送的拆分确定信息至多个终端之后,可以执行:优先处理具有标记的第一请求信息和第二请求信息,并优先处理第一请求信息对应的基础数据和第二请求信息对应的差分数据,第一请求信息和第二请求信息的标记是由终端标注的。In one implementation, after forwarding the splitting determination information sent by the server to multiple terminals, the processor 601 may perform: priority processing of the first request information and the second request information with tags, and priority processing of the first request information corresponding to The differential data corresponding to the basic data and the second request information, and the marks of the first request information and the second request information are marked by the terminal.
在一种实施方式中,处理器601可以执行:若网络接入点设备没有缓存基础数据,则向服务器发送第一请求信息和第二请求信息;In one implementation, the processor 601 can execute: if the network access point device does not cache basic data, send the first request information and the second request information to the server;
接收服务器返回的对应第一请求信息的基础数据和对应第二请求信息的差分数据;Receive basic data corresponding to the first request information and differential data corresponding to the second request information returned by the server;
将基础数据和差分数据发送至终端,并存储基础数据。Send basic data and differential data to the terminal, and store the basic data.
在一种实施方式中,处理器601在存储基础数据之后,可以执行:当网络接入点设备的存储空间不足时,删除存储空间中存储时间最久且未使用的基础数据。In one implementation, after storing the basic data, the processor 601 may execute: when the storage space of the network access point device is insufficient, delete the oldest and unused basic data in the storage space.
本申请实施例还提供一种终端。终端可以是智能手机、平板电脑等设备。请参阅图9,图9为本申请实施例提供的终端的第一种结构示意图。终端700包括处理器701和存储器702。其中,处理器701与存储器702电性连接。An embodiment of the present application also provides a terminal. The terminal can be a smartphone, tablet, or other device. Please refer to Figure 9, which is a first structural schematic diagram of a terminal provided by an embodiment of the present application. The terminal 700 includes a processor 701 and a memory 702. Among them, the processor 701 is electrically connected to the memory 702.
处理器701是终端700的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或调用存储在存储器702内的计算机程序,以及调用存储在存储器702内的数据,执行终端的各种功能和处理数据,从而对终端进行整体监控。The processor 701 is the control center of the terminal 700. It uses various interfaces and lines to connect various parts of the entire terminal. It executes various functions of the terminal by running or calling computer programs stored in the memory 702 and calling data stored in the memory 702. functions and process data to monitor the terminal as a whole.
存储器702可用于存储计算机程序和数据。存储器702存储的计算机程序中包含有可在处理器中执行的指令。计算机程序可以组成各种功能模块。处理器701通过调用存储在存储器702的计算机程序,从而执行各种功能应用以及数据处理。Memory 702 may be used to store computer programs and data. The computer program stored in memory 702 contains instructions that can be executed in the processor. Computer programs can be composed of various functional modules. The processor 701 executes various functional applications and data processing by calling the computer program stored in the memory 702 .
在本实施例中,终端700中的处理器701会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器702中,并由处理器701来运行存储在存储器702中的计算机程序,从而实现各种功能:In this embodiment, the processor 701 in the terminal 700 will follow the following steps to load instructions corresponding to the processes of one or more computer programs into the memory 702, and the processor 701 will run the instructions stored in the memory 702. computer program to achieve various functions:
将数据请求信息拆分成用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息;Split the data request information into first request information for obtaining basic data and second request information for obtaining differential data;
发送第一请求信息和第二请求信息至网络接入点设备;Send the first request information and the second request information to the network access point device;
接收网络接入点设备返回的对应第一请求信息的基础数据和对应第二请求信息的差分数据。Receive basic data corresponding to the first request information and differential data corresponding to the second request information returned by the network access point device.
在一种实施方式中,处理器701在将数据请求信息拆分成用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息之前,可以执行:发送数据请求信息至网络接入点设备;In one implementation, before the processor 701 splits the data request information into first request information for obtaining basic data and second request information for obtaining differential data, the processor 701 may perform: sending the data request information to the network access point devices;
若终端和其它终端发送至同一网络接入点设备的多个数据请求信息中的每个数据请求信息均包含对第一应用的数据请求信息,则接收网络接入点设备发送的拆分确定信息;If each of the multiple data request information sent by the terminal and other terminals to the same network access point device includes data request information for the first application, receive the split determination information sent by the network access point device. ;
根据拆分确定信息,将第一应用的数据请求信息拆分为第一请求信息和第二请求信息。According to the splitting determination information, the data request information of the first application is split into first request information and second request information.
请参阅图10,图10为本申请实施例提供的终端的第二种结构示意图。终端700还包括:射频电路703、显示屏704、控制电路705、输入单元706、音频电路707、传感器708以及电源709。其中,处理器701分别与射频电路703、显示屏707、控制电路705、输入单元706、音频电路707、传感器708以及电源709电性连接。Please refer to Figure 10, which is a second structural schematic diagram of a terminal provided by an embodiment of the present application. The terminal 700 also includes: a radio frequency circuit 703, a display screen 704, a control circuit 705, an input unit 706, an audio circuit 707, a sensor 708 and a power supply 709. Among them, the processor 701 is electrically connected to the radio frequency circuit 703, the display screen 707, the control circuit 705, the input unit 706, the audio circuit 707, the sensor 708 and the power supply 709 respectively.
射频电路703用于收发射频信号,以通过无线通信与网络设备或其他终端进行通信。The radio frequency circuit 703 is used to transmit and receive radio frequency signals to communicate with network equipment or other terminals through wireless communication.
显示屏707可用于显示由用户输入的信息或提供给用户的信息以及终端的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。The display screen 707 can be used to display information input by the user or information provided to the user as well as various graphical user interfaces of the terminal. These graphical user interfaces can be composed of images, text, icons, videos, and any combination thereof.
控制电路705与显示屏704电性连接,用于控制显示屏704显示信息。The control circuit 705 is electrically connected to the display screen 704 and is used to control the display screen 704 to display information.
输入单元706可用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。其中,输入单元706可以包括指纹识别模组。The input unit 706 may be used to receive inputted numbers, character information, or user characteristic information (such as fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 706 may include a fingerprint recognition module.
音频电路707可通过扬声器、传声器提供用户与终端之间的音频接口。其中,音频电路707包括麦克风。麦克风与处理器701电性连接。麦克风用于接收用户输入的语音信息。The audio circuit 707 can provide an audio interface between the user and the terminal through speakers and microphones. Among them, the audio circuit 707 includes a microphone. The microphone is electrically connected to the processor 701. The microphone is used to receive voice information input by the user.
传感器708用于采集外部环境信息。传感器708可以包括环境亮度传感器、加速度传感器、陀螺仪等传感器中的一种或多种。Sensor 708 is used to collect external environment information. The sensor 708 may include one or more sensors such as an ambient brightness sensor, an acceleration sensor, and a gyroscope.
电源709用于给终端700的各个部件供电。在一些实施方式中,电源709可以通过电源管理系统与处理器701逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power supply 709 is used to power various components of the terminal 700. In some embodiments, the power supply 709 can be logically connected to the processor 701 through a power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system.
虽然图中未示出,终端700还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in the figure, the terminal 700 may also include a camera, a Bluetooth module, etc., which will not be described again here.
请参阅图11,图11为本申请实施例提供的数据系统的结构示意图。Please refer to Figure 11, which is a schematic structural diagram of a data system provided by an embodiment of the present application.
具体而言,该数据传输系统800,包括:网络接入点设备600以及终端700。Specifically, the data transmission system 800 includes: a network access point device 600 and a terminal 700.
该网络接入点设备600,用于接收终端发送的用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息;若检测到网络接入点设备已缓存基础数据,则向服务器发送第二请求信息;接收服务器返回的对应第二请求信息的差分数据;将基础数据和差分数据发送至终端。The network access point device 600 is configured to receive the first request information for obtaining basic data and the second request information for obtaining differential data sent by the terminal; if it is detected that the network access point device has cached the basic data, then Send the second request information to the server; receive the differential data corresponding to the second request information returned by the server; and send the basic data and differential data to the terminal.
该终端700,用于将数据请求信息拆分成用于获取基础数据的第一请求信息和用于获取差分数据的第二请求信息;发送第一请求信息和第二请求信息至网络接入点设备;接收网络接入点设备返回的对应第一请求信息的基础数据和对应第二请求信息的差分数据。The terminal 700 is used to split the data request information into first request information for obtaining basic data and second request information for obtaining differential data; send the first request information and the second request information to the network access point Device; receiving basic data corresponding to the first request information and differential data corresponding to the second request information returned by the network access point device.
由于该网络接入点设备600以及终端700可以执行本申请实施例所提供的任一种数据传输方法,其具体实现过程详见上述数据传输方法实施例,此处不再赘述。Since the network access point device 600 and the terminal 700 can perform any data transmission method provided by the embodiments of the present application, the specific implementation process can be found in the above-mentioned data transmission method embodiments, and will not be described again here.
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过计算机程序来指令相关的硬件来完成,计算机程序可以存储于计算机可读存储介质中,存储介质可以包括但不限于:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. The storage medium may include but is not limited to: read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
此外,本申请中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是某些实施例还包括没有列出的步骤或模块,或某些实施例还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。In addition, the terms “first”, “second”, “third”, etc. in this application are used to distinguish different objects, rather than describing a specific sequence. Furthermore, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include unlisted steps or modules, or some embodiments Other steps or modules inherent to such processes, methods, products or devices are also included.
以上对本申请实施例所提供的数据传输方法、装置、存储介质及终端进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本申请的限制。The above has introduced in detail the data transmission method, device, storage medium and terminal provided by the embodiments of the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core ideas; at the same time, for those skilled in the art, based on the application of Thoughts, there may be changes in the specific implementation and scope of application. In summary, the content of this specification should not be understood as a limitation of the present application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011270080.4ACN112333787B (en) | 2020-11-13 | 2020-11-13 | Data transmission method, device, storage medium, terminal and network access point equipment |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011270080.4ACN112333787B (en) | 2020-11-13 | 2020-11-13 | Data transmission method, device, storage medium, terminal and network access point equipment |
| Publication Number | Publication Date |
|---|---|
| CN112333787A CN112333787A (en) | 2021-02-05 |
| CN112333787Btrue CN112333787B (en) | 2023-09-12 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011270080.4AActiveCN112333787B (en) | 2020-11-13 | 2020-11-13 | Data transmission method, device, storage medium, terminal and network access point equipment |
| Country | Link |
|---|---|
| CN (1) | CN112333787B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1184575A (en)* | 1996-02-15 | 1998-06-10 | 国际商业机器公司 | differential communication system |
| JP2003030082A (en)* | 2001-07-11 | 2003-01-31 | Toshiba Corp | Information processing apparatus and data communication system |
| CN103200219A (en)* | 2013-02-05 | 2013-07-10 | 北京小米科技有限责任公司 | Data package updating method, device, terminal equipment and server |
| CN105827580A (en)* | 2015-01-09 | 2016-08-03 | 阿里巴巴集团控股有限公司 | Page access method, device and system |
| CN108509172A (en)* | 2018-04-13 | 2018-09-07 | 平安普惠企业管理有限公司 | Data transmission method, device, system and the computer storage media of simultaneous display |
| CN108920606A (en)* | 2018-06-28 | 2018-11-30 | 腾讯大地通途(北京)科技有限公司 | map data processing method, device, terminal device and storage medium |
| CN109939436A (en)* | 2019-03-20 | 2019-06-28 | 网易(杭州)网络有限公司 | Game video-recording and playback method, apparatus, computer storage medium and electronic equipment |
| CN110166543A (en)* | 2019-05-16 | 2019-08-23 | 腾讯科技(深圳)有限公司 | Applied program processing method, device and computer equipment |
| CN110413827A (en)* | 2019-07-25 | 2019-11-05 | 上海掌门科技有限公司 | A method and device for providing target image information |
| CN110780887A (en)* | 2019-09-23 | 2020-02-11 | 连尚(新昌)网络科技有限公司 | A method and device for providing an application installation package |
| CN111526028A (en)* | 2019-02-01 | 2020-08-11 | 阿里巴巴集团控股有限公司 | Data processing method, device and equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8347286B2 (en)* | 2007-07-16 | 2013-01-01 | International Business Machines Corporation | Method, system and program product for managing download requests received to download files from a server |
| CN103593466B (en)* | 2013-11-26 | 2017-08-04 | 优视科技有限公司 | Web page loading method and client and server |
| CN109992291A (en)* | 2018-01-02 | 2019-07-09 | 中兴通讯股份有限公司 | A kind of method for updating terminal software, device, system and storage medium |
| CN111800781A (en)* | 2020-06-18 | 2020-10-20 | 联想(北京)有限公司 | Data processing method and terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1184575A (en)* | 1996-02-15 | 1998-06-10 | 国际商业机器公司 | differential communication system |
| JP2003030082A (en)* | 2001-07-11 | 2003-01-31 | Toshiba Corp | Information processing apparatus and data communication system |
| CN103200219A (en)* | 2013-02-05 | 2013-07-10 | 北京小米科技有限责任公司 | Data package updating method, device, terminal equipment and server |
| CN105827580A (en)* | 2015-01-09 | 2016-08-03 | 阿里巴巴集团控股有限公司 | Page access method, device and system |
| CN108509172A (en)* | 2018-04-13 | 2018-09-07 | 平安普惠企业管理有限公司 | Data transmission method, device, system and the computer storage media of simultaneous display |
| CN108920606A (en)* | 2018-06-28 | 2018-11-30 | 腾讯大地通途(北京)科技有限公司 | map data processing method, device, terminal device and storage medium |
| CN111526028A (en)* | 2019-02-01 | 2020-08-11 | 阿里巴巴集团控股有限公司 | Data processing method, device and equipment |
| CN109939436A (en)* | 2019-03-20 | 2019-06-28 | 网易(杭州)网络有限公司 | Game video-recording and playback method, apparatus, computer storage medium and electronic equipment |
| CN110166543A (en)* | 2019-05-16 | 2019-08-23 | 腾讯科技(深圳)有限公司 | Applied program processing method, device and computer equipment |
| CN110413827A (en)* | 2019-07-25 | 2019-11-05 | 上海掌门科技有限公司 | A method and device for providing target image information |
| CN110780887A (en)* | 2019-09-23 | 2020-02-11 | 连尚(新昌)网络科技有限公司 | A method and device for providing an application installation package |
| Title |
|---|
| 一种大规模网络数据缓存方法的改进;余光华;《西安工程大学学报》;20160831(第04期);全文* |
| Publication number | Publication date |
|---|---|
| CN112333787A (en) | 2021-02-05 |
| Publication | Publication Date | Title |
|---|---|---|
| EP3531290B1 (en) | Data backup method, apparatus, electronic device, storage medium, and system | |
| CN106357808B (en) | Data synchronization method and device | |
| CN109309696B (en) | Folder transmission method, sender, receiver, and storage medium | |
| CN106534281A (en) | A data request response method, device and system | |
| CN107562539A (en) | Applied program processing method and device, computer equipment, storage medium | |
| CN107204989A (en) | Ad blocking method, terminal, server and storage medium | |
| CN107943505A (en) | Application upgrade management method and device, storage medium and electronic equipment | |
| CN112333114B (en) | Data transmission method, device, storage medium, terminal and network access point equipment | |
| CN106357814B (en) | A file processing method, proxy server and client | |
| US10938773B2 (en) | Method and apparatus for synchronizing contact information and medium | |
| CN106502833A (en) | Data back up method and device | |
| CN107918529A (en) | Image processing method and apparatus, computer device, computer-readable storage medium | |
| WO2025119109A1 (en) | Data processing method and system for cluster nodes, and device and storage medium | |
| CN111935255B (en) | Information processing method, device and storage medium | |
| CN107168648A (en) | File storage method, device and terminal | |
| CN112333787B (en) | Data transmission method, device, storage medium, terminal and network access point equipment | |
| CN114679436B (en) | A session management method, server and computer-readable storage medium | |
| CN117648291A (en) | File export method and device and computer equipment | |
| CN114726849B (en) | File transmission method, device, server and computer readable storage medium | |
| CN115576942A (en) | Data processing method, device, equipment and storage medium | |
| CN117435363A (en) | Inter-process communication methods, systems, devices, electronic devices and media | |
| CN115809269A (en) | A business data query method, device, computer equipment and storage medium | |
| CN113037816B (en) | Communication method, storage medium and related equipment | |
| CN115952194A (en) | Service data cache processing method, device, computer equipment and storage medium | |
| CN116980851A (en) | Method and device for sharing subroutines between locomotives, electronic equipment and storage medium |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |