A data transmission method, apparatus and device
Patent Information
- Application Number
- CN202310066403.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-16
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2043-01-16
Smart Images

Figure CN116156564B_ABST
Abstract
Description
Technical Field
[0001] This application relates to a data transmission method, apparatus, and device. Background Technology
[0002] With the development of technology and the times, the demand for data transmission is increasing due to the widespread use of electronic devices. Therefore, improving data transmission efficiency is an inevitable technical problem that must be addressed. Summary of the Invention
[0003] In view of the problems in related technologies, this application provides a data transmission method, apparatus and device.
[0004] The technical solution of this application embodiment is implemented as follows:
[0005] This application provides a data transmission method applied to an electronic device. The electronic device operates a first system and a second system capable of communicating with each other. A first network is used to support data transmission in the first system, and a second network is used to support data transmission in the second system. The method includes:
[0006] The first system receives a data transmission request;
[0007] In response to the data transmission request, one or more of the load information of the second system and the load information of the second network are obtained;
[0008] Based on one or more of the load information of the second system and the load information of the second network, a data transmission method is determined, wherein the data transmission method includes transmitting data through one or more of the first network and the second network. In some embodiments, the method further includes: determining the amount of data to be transmitted based on the data transmission request;
[0009] If the data volume meets the first preset data volume range, the data transmission method is determined based on one or more of the load information of the second system and the load information of the second network; if the data volume meets the second preset data volume range, the data is transmitted through the first network.
[0010] In some embodiments, obtaining the load information of the second system includes: obtaining the operating status of at least one of the hardware used to support the operation of the second system; and determining the load information of the second system based on the operating status.
[0011] In some embodiments, if the data transmission mode is determined based on the load information of the second system, the method includes: if the load information of the second system is less than a first load threshold, determining the data transmission mode includes transmitting data through the first network and the second network.
[0012] In some embodiments, if data is transmitted through the first network and the second network, the method further includes: determining a data transmission allocation strategy based on one or more of the load information of the first system and the load information of the second system and the load information of the first network and the load information of the second network; and transmitting data through the first network and the second network based on the data transmission allocation strategy.
[0013] In some embodiments, the method further includes: determining the number of data transmission tasks of the first system based on the load information of the first system; if the number of tasks is greater than a preset number of tasks, determining a data transmission mode based on one or more of the load information of the second system and the load information of the second network; if the number of tasks is less than or equal to the preset number of tasks, transmitting data through the first network; or, obtaining that the first system is in a working state; if the working state of the first system satisfies a first preset state, determining a data transmission mode based on one or more of the load information of the second system and the load information of the second network; if the working state of the first system satisfies a second preset state, transmitting data through the first network.
[0014] In some embodiments, if data is transmitted via a second network, the method further includes: determining storage address information of the data to be transmitted based on the data transmission request; and sending the storage address information to the second system so that the second system transmits the data to be transmitted via the second network based on the storage address information.
[0015] In some embodiments, the method further includes: obtaining configuration information of the first network through the second system;
[0016] If the data transmission method includes the first network and the second network, the network interfaces of the first network and the second network are merged into a transmission network interface at the application layer, so that the second system can transmit data based on the transmission network interface.
[0017] This application provides a data transmission device, the device comprising:
[0018] The acquisition module is used by the first system to acquire a data transmission request;
[0019] The obtaining module is further configured to, in response to the data transmission request, obtain one or more of the load information of the second system and the load information of the second network.
[0020] The determining module is configured to determine a data transmission method based on one or more of the load information of the second system and the load information of the second network, wherein the data transmission method includes transmitting data through one or more of the first network and the second network.
[0021] In some embodiments, the apparatus further includes: a determining module, configured to determine the amount of data to be transmitted based on the data transmission request; if the amount of data meets a first preset data volume range, determine a data transmission method based on one or more of the load information of the second system and the load information of the second network; if the amount of data meets a second preset data volume range, transmit the data through the first network.
[0022] In some embodiments, the obtaining module is further configured to obtain the operating status of at least one of the hardware used to support the operation of the second system; and determine the load information of the second system based on the operating status.
[0023] In some embodiments, the determining module is further configured to determine that the data transmission method includes transmitting data through the first network and the second network if the load information of the second system is less than a first load threshold.
[0024] In some embodiments, if data is transmitted through the first network and the second network, the transmission module is further configured to determine a data transmission allocation strategy based on one or more of the load information of the first system and the load information of the second system and the load information of the first network and the load information of the second network; and transmit data through the first network and the second network based on the data transmission allocation strategy.
[0025] In some embodiments, the transmission module is further configured to determine the number of data transmission tasks of the first system based on the load information of the first system; if the number of tasks is greater than a preset number of tasks, determine the data transmission method based on one or more of the load information of the second system and the load information of the second network; if the number of tasks is less than or equal to the preset number of tasks, transmit data through the first network.
[0026] Alternatively, the transmission module is further configured to obtain that the first system is in a working state; if the working state of the first system meets a first preset state, determine the data transmission mode according to one or more of the load information of the second system and the load information of the second network; if the working state of the first system meets a second preset state, transmit data through the first network.
[0027] In some embodiments, if data is transmitted via a second network, the transmission module is further configured to determine storage address information of the data to be transmitted based on the data transmission request; and send the storage address information to the second system so that the second system transmits the data to be transmitted via the second network based on the storage address information.
[0028] In some embodiments, the apparatus further includes: a merging module, configured to obtain configuration information of the first network through the second system; if the data transmission method includes the first network and the second network, merging the network interfaces of the first network and the second network into a transmission network interface at the application layer, so that the second system transmits data based on the transmission network interface.
[0029] This application provides a data transmission device, including: a memory for storing executable instructions; and a processor for implementing the data transmission method described above when executing the executable instructions stored in the memory.
[0030] This application provides a computer-readable storage medium storing executable instructions, which, when executed by a processor, implement the above-described data transmission method.
[0031] This application provides a computer program product, which includes executable instructions stored in a computer-readable storage medium; when the controller of a control device reads the executable instructions from the computer-readable storage medium and executes the executable instructions, the above-described data transmission method is implemented. Attached Figure Description
[0032] Figure 1 This is a schematic diagram of the structure of a data transmission system provided in an embodiment of this application;
[0033] Figure 2 This is a schematic diagram of another data transmission system provided in an embodiment of this application;
[0034] Figure 3 This is a schematic flowchart of a data transmission method provided in an embodiment of this application;
[0035] Figure 4 This is another schematic flowchart of the data transmission method provided in the embodiments of this application;
[0036] Figure 5 This is a schematic diagram of the configuration interface provided in the embodiments of this application;
[0037] Figure 6 This is a schematic diagram of the data transmission framework provided in an embodiment of this application;
[0038] Figure 7 This is a network load diagram provided in an embodiment of this application;
[0039] Figure 8 This is a schematic diagram of the composition structure of the data transmission device provided in the embodiments of this application;
[0040] Figure 9 This is a schematic diagram of the composition structure of the data transmission device provided in the embodiments of this application. Detailed Implementation
[0041] Exemplary embodiments of the present application will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be implemented in various forms and should not be limited to the specific embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope of the disclosure of the present application to those skilled in the art.
[0042] In the following description, numerous specific details are set forth in order to provide a more thorough understanding of this application. However, it will be apparent to those skilled in the art that this application can be practiced without one or more of these details. In other instances, to avoid confusion with this application, some technical features well-known in the art have not been described; that is, not all features of actual embodiments are described herein, nor are well-known functions and structures described in detail.
[0043] In some embodiments, related technologies address the issue of low transmission efficiency by updating the data transmission module on the PC host. However, this method requires continuous upgrades and updates to the data transmission module, consuming significant development resources and inevitably causing interruptions in data access for existing users during the upgrade and update process, severely impacting the user experience.
[0044] To address the related technical problems, embodiments of this application provide a data transmission method. First, a first system receives a data transmission request. Then, in response to the data transmission request, it obtains one or more of the load information of a second system and the load information of a second network. Finally, based on one or more of the load information of the second system and the load information of the second network, a data transmission mode is determined. The data transmission mode includes transmitting data through one or more of the first network and the second network. This allows users to selectively choose one or more of the first network and the second network for data transmission based on the determined data transmission mode, thereby expanding data transmission capabilities, improving data transmission efficiency, and enhancing the user experience to a certain extent.
[0045] The following describes exemplary applications of the data transmission device according to embodiments of this application. The data transmission device provided in this application can be implemented as various types of terminals such as laptops, tablets, desktop computers, and mobile devices. In another implementation, the data transmission device provided in this application can also be implemented as a server. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. The terminal and the server can be directly or indirectly connected through wired or wireless communication, which is not limited in this application embodiment. The following will describe exemplary applications when the data transmission device is implemented as a server.
[0046] See Figure 1 This application provides a data transmission system. Figure 1 This is a schematic diagram of the structure of a data transmission system provided in an embodiment of this application, such as... Figure 1 As shown. The data transmission system 10 provided in this application embodiment includes: a terminal 110 that interacts with the first system, a first system 120, a second system 130, and a network 140 (including, etc. Figure 1 The system comprises a first network 141 supporting data transmission for a first system 120, a second network 142 supporting data transmission for a second system 120, and a server 150. Terminal 110 sends a data transmission request to the first system 120 via the first network 141. The first system 120 receives the data transmission request. In response to the request, the server 150 obtains one or more of the load information of the second system 130 and the second network 142. Based on these information, the server determines a data transmission method, which may involve transmitting data via one or more of the first network 141 and the second network 142. After determining the data transmission method, the server 150 transmits the data to be transmitted to the first system 120 via the first network 141 and to the second system 130 via the second network 142, thereby completing the data transmission task.
[0047] See Figure 2 This application provides a data transmission system. Figure 2 A schematic diagram of another data transmission system provided in this application embodiment is shown below. Figure 2As shown. The data transmission system 20 provided in this application embodiment includes: a terminal 210 that interacts with a host, a first system 221, a second system 222, and a network 230 (including, etc. Figure 2 The system includes a first network 231 supporting data transmission for the first system and a second network 232 supporting data transmission for the second system. Both the first and second systems run on the host 220. The terminal 210 sends a data transmission request to the first system 221 via the first network 231. The first system 221 receives the data transmission request. The host 220 responds to the request by obtaining one or more of the load information from the second system 222 and the second network 232. Then, based on the load information from the second system 222 and the second network 232, it determines the data transmission method, which includes transmitting data via one or more of the first network 231 and the second network 232. After determining the data transmission method, the host 220 transmits the data to be transmitted to the first system 221 via the first network 231 and to the second system 222 via the second network 232, thereby realizing the data transmission task.
[0048] Taking a NAS-PC device as an example, it is an electronic device where a separate NAS board is plugged into the motherboard of a PC personal computer, and it has its own power supply, network, and system. The NAS-PC device can provide data transmission services to clients through a dedicated Ethernet interface. When multiple clients are simultaneously transmitting large amounts of data, access capacity is limited by the NAS-PC's network interface. The network interface on the PC motherboard cannot be used by the NAS-PC.
[0049] The embodiments of this application can be applied to the following scenarios:
[0050] The first system in the above embodiments is a system deployed on a host PC (i.e., a personal computer), and the second system in the above embodiments is a system deployed on a network-attached storage (NAS). Of course, the first system can be any of the following operating systems: Windows, Mac OS, Linux, UNIX, DOS, etc., and the second system can also be any of the following: Windows, Mac OS, Linux, UNIX, pure DOS, etc. This application does not specifically limit this. Correspondingly, for example, the first network can be a PC network running on a Windows system, and the second network can be a NAS Card network running on a Linux system. The NAS card can be plugged into the PC motherboard to form a complete data transmission hardware, which can improve data transmission capabilities and achieve cross-system network sharing when facing large amounts of accessed data. Firstly, in the PC's configuration interface, the user can configure the host network to be used as both a NAS Card network and a PC network extension. When the host PC receives a data transmission request from the terminal, the server can respond to the data transmission request by obtaining one or more of the load information of the Linux system and the NAS Card network. Then, based on one or more of the load information of the Linux system and the NAS Card network, the server determines the data transmission method, which may include transmitting data through one or more of the PC network and the NAS Card network.
[0051] In some embodiments, the server may also have cloud storage, in which the load information of the second system and the load information of the second network can be stored.
[0052] In some embodiments, the data transmission method provided in this application can also be implemented in an electronic device, which includes a first system, a second system, a first network supporting data transmission of the first system, and a second network supporting data transmission of the second system. During data transmission, when the first system in the electronic device receives a data transmission request, the electronic device responds to the data transmission request by obtaining one or more of the load information of the second system and the load information of the second network. Finally, based on one or more of the load information of the second system and the load information of the second network, a data transmission mode is determined, which includes transmitting data through one or more of the first network and the second network.
[0053] This application provides a data transmission method, see [link to relevant documentation] Figure 3 , Figure 3 This is a flowchart illustrating a data transmission method provided in an embodiment of this application, such as... Figure 3As shown, the data transmission method provided in this application embodiment can be implemented through steps S301 to S304:
[0054] Step S301: The first system receives a data transmission request.
[0055] In some embodiments, the first system may be a system that comes with the PC host, such as any one of Windows, Mac OS, Linux, UNIX, pure DOS, etc. Of course, the first system may also be other operating systems that can run on the PC host, and this application embodiment does not specifically limit this.
[0056] In some embodiments, during data transmission, both the first system and the second system have specific data transmission applications. These specific data transmission applications may include: the data transmission application of the first system and the data transmission application of the second system. These data transmission applications are used to receive / send data transmission requests, receive / send network configuration information, receive / send storage address information of data to be transmitted, and receive / send data to be transmitted, etc.
[0057] In some embodiments, the data transmission request may carry one or more of the following: the current transmission task, the data to be transmitted, and the storage address information of the data to be transmitted. The data transmission request is used to request the first system to perform data transmission for the current transmission task. For example, the data transmission request may be a request to transmit a cloud drive image; the data transmission request may be a request to transmit a cloud drive video; the data transmission request may be a request to transmit text information. That is, the data transmission request can be any type of transmission request, and this embodiment does not specifically limit it.
[0058] Step S302: In response to the data transmission request, obtain one or more of the load information of the second system and the load information of the second network.
[0059] In some embodiments, the second system may be a system deployed on a NAS-PC device, such as any one of the following: Windows operating system, Mac OS system, Linux system, UNIX system, pure DOS system, etc. Of course, the second system may also be other operating systems that can run on a PC host, and this application embodiment does not specifically limit this.
[0060] In some embodiments, load information refers to the operating status information of an electronic device for a second system and a second network. Load information may include, but is not specifically limited to, central processing unit (CPU) utilization, graphics processing unit (GPU) utilization, memory utilization, and network bandwidth utilization. In practical applications, load information can be collected through a file system, and can be collected at preset time intervals.
[0061] In some embodiments, the load information of the second system can be determined by the CPU utilization, memory utilization, and GPU utilization of the second system. The load information of the second network can be determined by the current network transmission speed of the second system.
[0062] Step S303: Determine the data transmission method based on one or more of the load information of the second system and the load information of the second network. The data transmission method includes transmitting data through one or more of the first network and the second network.
[0063] In some embodiments, the server may determine the data transmission method based on the load information of the second system; or based on the load information of the second network; or based on the load information of the second system and the load information of the second network.
[0064] Correspondingly, the data transmission method can be through the first network; or through the second network; or through a combination of the first and second networks.
[0065] In some embodiments, the first system and the second system can interact to transmit data via a network interface, and the hardware supporting the operation of the first system and the hardware supporting the operation of the second system are set on a motherboard.
[0066] In this embodiment of the application, after determining the data transmission method, the server can perform data transmission based on the determined data transmission method.
[0067] The method described in this application can be applied to at least the following scenarios: If a first system receives a data transmission request, the server can respond to the request by obtaining one or more of the load information of the second system and the load information of the second network; then, based on the load information of the second system and the load information of the second network, a data transmission method can be determined, wherein the data transmission method includes transmitting data through one or more of the first network and the second network. In this way, a user can enable an electronic device to transmit data between the first network and the second network based on the determined data transmission method.
[0068] The data transmission method provided in this application is applied to an electronic device. The electronic device operates a first system and a second system capable of communicating with each other. A first network supports data transmission in the first system, and a second network supports data transmission in the second system. First, the first system receives a data transmission request. Then, in response to the data transmission request, it obtains one or more of the load information of the second system and the load information of the second network. Finally, based on one or more of the load information of the second system and the load information of the second network, a data transmission mode is determined. The data transmission mode includes transmitting data through one or more of the first network and the second network. This allows users to selectively choose one or more of the first network and the second network for data transmission based on a determined data transmission mode, thereby expanding data transmission capabilities, improving data transmission efficiency, and enhancing the user experience to a certain extent.
[0069] Based on the foregoing embodiments, Figure 4 This is another flowchart illustrating the data transmission method provided in this application embodiment, such as... Figure 4 As shown, the data transmission method provided in this application embodiment can be implemented through steps S401 to S403:
[0070] Step S401: Determine the amount of data to be transmitted based on the data transmission request.
[0071] In some embodiments, the amount of data to be transmitted refers to the size of the data to be transmitted.
[0072] Step S402: If the data volume meets the first preset data volume range, determine the data transmission method based on one or more of the load information of the second system and the load information of the second network.
[0073] In some embodiments, the first preset data volume range refers to the upper limit of the data volume range that the first system can transmit. For example, the first preset data volume range can be 100Mb / s-1000Mb / s.
[0074] In this embodiment, the server can determine the size of the data to be transmitted based on the data transmission task carried in the data transmission request. If the data size meets a first preset data size range, the server can determine the data transmission method based on one or more of the load information of the second system and the load information of the second network. That is, if the data size meets the first preset data size range, the data is transmitted through the first network and the second network.
[0075] Step S403: If the data volume meets the second preset data volume range, the data is transmitted through the first network.
[0076] In some embodiments, the second preset data volume range refers to the lower limit of the data volume range that the first system can transmit. For example, the second preset data volume range can be 10Mb / s-100Mb / s.
[0077] In this embodiment of the application, the server can determine the size of the data to be transmitted based on the data transmission task carried in the data transmission request. If the data size meets the second preset data size range, the data is transmitted through the first network.
[0078] In some embodiments, obtaining the load information of the second system in step S302 above can be achieved in the following ways:
[0079] First, the operating status of at least one of the hardware components used to support the operation of the second system is obtained. Second, based on the operating status, the load information of the second system is determined.
[0080] In some embodiments, the operating state can be determined by at least one of the following: CPU utilization, GPU utilization, memory utilization, and network bandwidth utilization.
[0081] In this embodiment, the server can obtain one of the CPU utilization, GPU utilization, memory utilization, and network bandwidth utilization of the second system, and then determine the load information of the second system based on the operating status of the second system.
[0082] In some embodiments, determining the data transmission method based on the load information of the second system in step S303 above can be achieved in the following ways:
[0083] If the load information of the second system is less than the first load threshold, the data transmission method is determined to include transmitting data through the first network and the second network.
[0084] In some embodiments, the data transmission via the first network and the second network in step S303 above can be achieved in the following ways:
[0085] First, a data transmission allocation strategy is determined based on one or more of the load information of the first system and the second system, and the load information of the first network and the second network. Second, based on the data transmission allocation strategy, data is transmitted through the first network and the second network.
[0086] In some embodiments, the data transmission allocation strategy refers to the data transmission ratio between the first network and the second network. In practical applications, the data transmission ratio can be any ratio such as 1:1, 1:2, 1:3, etc. That is to say, data transmission tasks can be allocated to the first network and the second network according to the data transmission ratio for data transmission.
[0087] In some embodiments, the server may also determine the number of data transmission tasks of the first system based on the load information of the first system; if the number of tasks is greater than the preset number of tasks, the data transmission method shall be determined based on one or more of the load information of the second system and the load information of the second network; if the number of tasks is less than or equal to the preset number of tasks, the data shall be transmitted through the first network.
[0088] In some embodiments, the server can obtain that the first system is in a working state; if the working state of the first system meets a first preset state, the server determines the data transmission method based on one or more of the load information of the second system and the load information of the second network; if the working state of the first system meets a second preset state, the server transmits data through the first network.
[0089] In some embodiments, if data is transmitted via a second network, the server can determine the storage address information of the data to be transmitted based on the data transmission request. Here, the storage address information refers to the target address information of the data to be transmitted. The server then sends the storage address information to the second system, so that the second system transmits the data to be transmitted via the second network based on the storage address information.
[0090] In some embodiments, a configuration interface allows a user to configure a first network for use by a second system extension and to determine the data transmission method. For ease of understanding, embodiments of this application provide a configuration interface. Figure 5 This is a schematic diagram of the configuration interface provided in the embodiments of this application, such as... Figure 5 As shown in the figure, the first system local network card channel is opened 501, the second network is used preferentially 502, and the first / second network is used in a balanced manner 503.
[0091] In some embodiments, the server can obtain configuration information of the first network through the second system. If the data transmission method includes the first network and the second network, the network interfaces of the first network and the second network are merged into a transport network interface at the application layer, so that the second system can transmit data based on the transport network interface.
[0092] This application provides a data transmission framework. Figure 6 This is a schematic diagram of the data transmission framework provided in the embodiments of this application, as shown below. Figure 6 As shown in the figure, the second system 601, the first system 602, and multiple clients (client A 603, client B 604, client N 605), load control module 606, file service module 607, network transmission module 1 608, data storage module 609, application module 610, system status module 611, and network transmission module 2 612 are shown respectively.
[0093] The load control module 606 is used to allocate data transmission tasks based on the data transmission allocation strategy.
[0094] The file service module 607 is used to receive data transmission requests and divide data transmission tasks into multiple data transmission tasks.
[0095] Network transmission module 608 is used to transmit data transmission tasks assigned to the second system.
[0096] Data storage module 609 is used to store data that has been transmitted to the second system.
[0097] Application module 610 is used to send data transmission requests to the first system.
[0098] System status module 611 is used to determine the operating status of the first system.
[0099] Network transmission module 2 612 is used to transmit data transmission tasks allocated to the first system.
[0100] This application provides a network load diagram. Figure 7 This is a network load diagram provided in an embodiment of this application, such as... Figure 7 As shown in the figure, the network card speed of the first system is 701 and the network card speed of the second system is 702.
[0101] Figure 8 This is a schematic diagram of the composition structure of the data transmission device provided in the embodiments of this application, as shown below. Figure 8As shown, the processing device 800 includes: an obtaining module 801, configured to obtain a data transmission request from the first system; the obtaining module 801 is further configured to obtain, in response to the data transmission request, one or more of the load information of the second system and the load information of the second network; and a determining module 802, configured to determine a data transmission mode based on one or more of the load information of the second system and the load information of the second network, wherein the data transmission mode includes transmitting data through one or more of the first network and the second network.
[0102] In some embodiments, the apparatus further includes: a determining module, configured to determine the amount of data to be transmitted based on the data transmission request; if the amount of data meets a first preset data volume range, determine a data transmission method based on one or more of the load information of the second system and the load information of the second network; if the amount of data meets a second preset data volume range, transmit the data through the first network.
[0103] In some embodiments, the obtaining module is further configured to obtain the operating status of at least one of the hardware used to support the operation of the second system; and determine the load information of the second system based on the operating status.
[0104] In some embodiments, the determining module is further configured to determine that the data transmission method includes transmitting data through the first network and the second network if the load information of the second system is less than a first load threshold.
[0105] In some embodiments, if data is transmitted through the first network and the second network, the transmission module is further configured to determine a data transmission allocation strategy based on one or more of the load information of the first system and the load information of the second system and the load information of the first network and the load information of the second network; and transmit data through the first network and the second network based on the data transmission allocation strategy.
[0106] In some embodiments, the transmission module is further configured to determine the number of data transmission tasks of the first system based on the load information of the first system; if the number of tasks is greater than a preset number of tasks, determine the data transmission method based on one or more of the load information of the second system and the load information of the second network; if the number of tasks is less than or equal to the preset number of tasks, transmit data through the first network.
[0107] Alternatively, the transmission module is further configured to obtain that the first system is in a working state; if the working state of the first system meets a first preset state, determine the data transmission mode according to one or more of the load information of the second system and the load information of the second network; if the working state of the first system meets a second preset state, transmit data through the first network.
[0108] In some embodiments, if data is transmitted via a second network, the transmission module is further configured to determine storage address information of the data to be transmitted based on the data transmission request; and send the storage address information to the second system so that the second system transmits the data to be transmitted via the second network based on the storage address information.
[0109] In some embodiments, the apparatus further includes: a merging module, configured to obtain configuration information of the first network through the second system; if the data transmission method includes the first network and the second network, merging the network interfaces of the first network and the second network into a transmission network interface at the application layer, so that the second system transmits data based on the transmission network interface.
[0110] It should be noted that the description of the apparatus in this application embodiment is similar to the description of the method embodiment described above, and has similar beneficial effects as the method embodiment; therefore, it will not be repeated. For technical details not disclosed in this apparatus embodiment, please refer to the description of the method embodiment of this application for understanding.
[0111] It should be noted that, in the embodiments of this application, if the above-described data transmission method is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to the related technology, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a terminal to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.
[0112] Correspondingly, embodiments of this application provide a data transmission device. Figure 9 This is a schematic diagram of the composition structure of the data transmission device provided in the embodiments of this application, as shown below. Figure 9As shown, the data transmission device 900 includes at least a processor 901 and a computer-readable storage medium 902 configured to store executable instructions, wherein the processor 901 typically controls the overall operation of the data transmission device. The computer-readable storage medium 902 is configured to store instructions and applications executable by the processor 901, and may also cache data to be processed or processed by various modules in the processor 901 and the data transmission device 900, and may be implemented using flash memory or random access memory (RAM).
[0113] This application provides a storage medium storing executable instructions. When these executable instructions are executed by a processor, they cause the processor to perform the method provided in this application, for example... Figure 2 The method shown.
[0114] In some embodiments, the storage medium may be a computer-readable storage medium, such as a ferromagnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), flash memory, magnetic surface memory, optical disc, or a compact disk-read-only memory (CD-ROM); or it may be a device that includes one or any combination of the above-mentioned memories.
[0115] In some embodiments, executable instructions may take the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a standalone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0116] As an example, executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file containing other programs or data, for example, in one or more scripts within a Hypertext Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple collaborating files (e.g., files storing one or more modules, subroutines, or code sections). As an example, executable instructions may be deployed to execute on a single electronic device, or on multiple electronic devices located in one location, or on multiple electronic devices distributed across multiple locations and interconnected via a communication network.
[0117] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.
[0118] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0119] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components may be combined, or integrated into another system, or some features may be ignored or not performed.
[0120] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A data transmission method applied to an electronic device, the electronic device operating a first system and a second system capable of communicating with each other, a first network for supporting data transmission of the first system, and a second network for supporting data transmission of the second system; first hardware supporting the operation of the first system and second hardware supporting the operation of the second system are mounted on a motherboard of the electronic device, constituting an integrated data transmission hardware; the method includes: The first system receives a data transmission request; In response to the data transmission request, one or more of the load information of the second system and the load information of the second network are obtained; the load information of the second system is determined based on the operating status of the hardware supporting the operation of the second system; the load information of the second network is determined based on the current network transmission speed of the second system. Based on one or more of the load information of the second system and the load information of the second network, a data transmission method is determined, wherein the data transmission method includes transmitting data through one or more of the first network and the second network. The configuration information of the first network is obtained through the second system; If the data transmission method includes the first network and the second network, the network interfaces of the first network and the second network are merged into a transmission network interface at the application layer, so that the second system can transmit data based on the transmission network interface.
2. The method according to claim 1, further comprising: The amount of data to be transmitted is determined based on the data transmission request. If the data volume meets the first preset data volume range, the data transmission method is determined based on one or more of the load information of the second system and the load information of the second network. If the amount of data meets the second preset data range, the data is transmitted through the first network.
3. The method according to claim 1 or 2, obtaining the load information of the second system, comprising: Obtain the operating status of at least one of the hardware components used to support the operation of the second system; Based on the operating status, the load information of the second system is determined.
4. The method according to claim 1, wherein if the data transmission mode is determined based on the load information of the second system, the method includes: If the load information of the second system is less than the first load threshold, the data transmission method is determined to include data transmission through the first network and the second network.
5. The method according to claim 1 or 4, wherein if data is transmitted through the first network and the second network, the method further comprises: A data transmission allocation strategy is determined based on one or more of the load information of the first system and the load information of the second system, and the load information of the first network and the load information of the second network. Based on the data transmission allocation strategy, data is transmitted through the first network and the second network.
6. The method according to claim 1, further comprising: Based on the load information of the first system, determine the number of data transmission tasks of the first system; If the number of tasks is greater than the preset number of tasks, the data transmission method is determined based on one or more of the load information of the second system and the load information of the second network; if the number of tasks is less than or equal to the preset number of tasks, the data is transmitted through the first network. Alternatively, the system is found to be in a working state; if the working state of the first system meets a first preset state, the data transmission method is determined based on one or more of the load information of the second system and the load information of the second network; if the working state of the first system meets a second preset state, the data is transmitted through the first network.
7. The method of claim 1, wherein if data is transmitted via a second network; the method further comprises: Based on the data transmission request, determine the storage address information of the data to be transmitted; The storage address information is sent to the second system so that the second system can transmit the data to be transmitted through the second network based on the storage address information.
8. A data transmission apparatus, the apparatus comprising: The acquisition module is used by the first system to acquire data transmission requests; The obtaining module is further configured to, in response to the data transmission request, obtain one or more of the load information of the second system and the load information of the second network; the load information of the second system is determined based on the operating status of the hardware supporting the operation of the second system; the load information of the second network is determined based on the current network transmission speed of the second system. The determining module is used to determine the data transmission method based on one or more of the load information of the second system and the load information of the second network, wherein the data transmission method includes transmitting data through one or more of the first network and the second network; The merging module is used to obtain the configuration information of the first network through the second system; if the data transmission method includes the first network and the second network, the network interface of the first network and the network interface of the second network are merged into a transmission network interface at the application layer, so that the second system can transmit data based on the transmission network interface; wherein, the first hardware supporting the operation of the first system and the second hardware supporting the operation of the second system are set on a motherboard of the electronic device, forming an integrated data transmission hardware.
9. A data transmission device, comprising: Memory, used to store executable instructions; A processor, when executing executable instructions stored in the memory, implements the data transmission method according to any one of claims 1 to 7.
Citation Information
Patent Citations
System and method for control of load balancing in heterogeneous network
KR1020130041655A
Network side device, user equipment, and spectrum sharing method thereof
US20160135057A1