Data transmission method and device, electronic equipment and storage medium
By obtaining the preset corresponding relationship under the dual-WAN network architecture and selecting the WAN broadband to transmit data based on the relationship, the problem of high-bandwidth services being allocated to low-bandwidth links is solved and the user experience is improved.
Patent Information
- Application Number
- CN202310883010.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-18
- Publication Date
- 2025-01-21
AI Technical Summary
Under the dual WAN network architecture, high bandwidth services have a probability of being allocated to low bandwidth links, resulting in poor user experience.
Before transmitting the data to be transmitted, a preset corresponding relationship is obtained, the wide area network bandwidth corresponding to the data to be transmitted is determined based on the relationship, and the data is transmitted based on the selected broadband.
Through this method, data that does not have a corresponding relationship with WAN broadband streaming is avoided, ensuring high data transmission and improving user experience.
Smart Images

Figure CN119341854A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a data transmission method and device, an electronic device and a storage medium. Background Art
[0002] In the actual application scenarios of dual WAN (Wide Area Network) traffic superposition, users use bandwidths from multiple operators, which are not always the same. On the contrary, the second broadband is pulled because the bandwidth of one link is very low. In this case, when the actual traffic is superimposed, because the current mechanism is divided according to the proportion of the number of connections created, it will lead to the fact that low-latency and high-bandwidth services in actual applications are likely to be allocated to low-bandwidth links, resulting in a poor user experience. Summary of the invention
[0003] The present application provides a data transmission method and device, an electronic device and a storage medium to solve the problem in the prior art that high-bandwidth services are allocated to low-bandwidth links under a dual WAN network architecture.
[0004] In a first aspect, the present application provides a data transmission method, comprising: obtaining data to be transmitted, obtaining a preset correspondence before transmitting the data to be transmitted, determining a wide area network bandwidth corresponding to the data to be transmitted based on the preset correspondence, wherein the number of the wide area network broadbands is multiple and different wide area network broadbands correspond to different bandwidths; and transmitting the data to be transmitted based on the wide area network broadband corresponding to the data to be transmitted.
[0005] In a second aspect, the present application provides a data transmission device, comprising: a processing module, used to obtain data to be transmitted, and before transmitting the data to be transmitted, obtain a preset correspondence relationship, and determine the wide area network bandwidth corresponding to the data to be transmitted based on the preset correspondence relationship; a transmission module, used to transmit the data to be transmitted based on the wide area network bandwidth corresponding to the data to be transmitted.
[0006] In a third aspect, the present application provides an electronic device comprising: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; and at least one memory connected to the at least one bus, wherein the processor is configured to execute the data transmission method described in the first aspect of the present application.
[0007] In a fourth aspect, the present application further provides a computer storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the data transmission method described in the first aspect of the present application.
[0008] The above-mentioned technical scheme provided by the embodiment of the present application has the following advantages compared with the prior art: the method provided by the embodiment of the present application can determine the wide area network bandwidth corresponding to the data to be transmitted based on a preset correspondence before transmitting the data to be transmitted, and transmit the data to be transmitted based on the selected wide area network broadband, thereby avoiding the streaming of data that does not have a corresponding relationship with the wide area network broadband, ensuring the high transmission performance of the data, improving the user experience, and solving the problem in the prior art that high-bandwidth data is allocated to a low-bandwidth link under a dual WAN network architecture. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0010] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0011] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0012] Figure 1 A flowchart of a data transmission method provided in an embodiment of the present application;
[0013] Figure 2 A schematic diagram of load balancing of user-level data provided in an embodiment of the present application;
[0014] Figure 3 A schematic diagram of load balancing of service-level data provided in an embodiment of the present application;
[0015] Figure 4 A schematic diagram of load balancing of port-level data provided in an embodiment of the present application;
[0016] Figure 5 A schematic diagram of the equalization setting provided in an embodiment of the present application;
[0017] Figure 6 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application;
[0018] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0020] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0021] At present, for the dual WAN network architecture, if a user's home has a 100M bandwidth from operator 1 and a 500M bandwidth from operator 2, if the slicing solution is not adopted, assuming that the allocation strategy of the two bandwidths is 1:1, that is, the corresponding bandwidth is used in a 1:1 order according to the service. When the user is preparing to play a game, other users visit a website and are allocated to the 500M link of operator 2. If the user plays the game immediately at this time, the game service will be allocated to the 100M bandwidth of operator 1. Because the game is very sensitive to latency, and bandwidth preemption is very likely to occur on the low-bandwidth link, resulting in excessive latency, which leads to a poor user experience after the dual WAN traffic is superimposed.
[0022] In order to solve the technical problem in the prior art that high-bandwidth services are allocated to low-bandwidth links under a dual WAN network architecture, the present application provides a data transmission method. For dual WANs, the allocation is based on the proportion of the number of connections created. Network slicing can be used to fix specific services or users to a certain link, thereby avoiding being divided into low-bandwidth links when the connection is created. Therefore, it can be ensured that important services can always occupy high-bandwidth links to improve the user's actual network experience.
[0023] Figure 1 A flowchart of a data transmission method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the steps of the method include:
[0024] Step 101, obtaining data to be transmitted, obtaining a preset corresponding relationship before transmitting the data to be transmitted, and determining a wide area network bandwidth corresponding to the data to be transmitted based on the preset corresponding relationship, wherein there are multiple wide area network bandwidths, and different wide area network bandwidths correspond to different bandwidths;
[0025] In an optional implementation manner of an embodiment of the present application, the data types in the embodiment of the present application may include: data divided based on user type, data divided based on service type, and data divided based on port. In a specific example, the data divided based on user type may refer to data corresponding to users of different priorities, such as VIP users and ordinary users, or users may be divided into more users of different priority levels, and specific settings may be made according to actual needs. Data divided based on service type may refer to web services, video services, voice services, etc. Data divided based on ports may refer to different ports, such as LAN1, LAN2, and LAN3, etc.
[0026] In addition, it should be noted that the bandwidths of the multiple WAN broadbands in the embodiment of the present application are different, so that data with high bandwidth requirements can be set to correspond to WAN broadbands with large bandwidths, so that the bandwidths of the multiple WAN broadbands can be fully utilized.
[0027] Step 102: Transmit the data to be transmitted based on the wide area network bandwidth corresponding to the data to be transmitted.
[0028] Through the above steps 101 and 102, before transmitting the data to be transmitted, the WAN bandwidth corresponding to the data to be transmitted can be determined based on the preset corresponding relationship, and the data to be transmitted can be transmitted based on the selected WAN broadband, thereby avoiding the data that does not have a corresponding relationship from being streamed with the WAN broadband, ensuring the high transmission performance of the data, improving the user experience, and solving the problem in the prior art that high-bandwidth data is allocated to a low-bandwidth link under a dual WAN network architecture.
[0029] In an optional implementation manner of the embodiment of the present application, the preset correspondence in the embodiment of the present application is used to characterize that each wide area network broadband corresponds to one or more types of data. Before obtaining the preset correspondence, the method of the embodiment of the present application may further include:
[0030] Step 11, classifying the user equipment corresponding to the data to be transmitted, and obtaining the user equipment type of the user equipment corresponding to the data to be transmitted;
[0031] Step 12: Based on the user equipment type, a preset correspondence relationship between different user equipment types and different wide area network bandwidths is established.
[0032] The user device types involved in the above steps 11 and 12 can be set accordingly according to different application scenarios. For example, in a company environment, users with large bandwidth requirements are set as VIP users, and users with low bandwidth requirements are set as ordinary users, that is, the user device types include VIP users and ordinary users. Among them, VIP users include IT staff or anchors used for live broadcasts, etc., and ordinary users can refer to civilian staff, etc. Based on this, two WAN bandwidths are pulled down in this application scenario, one is 500M and the other is 1000M, then the corresponding relationship between VIP users and 1000M WAN bandwidth is set, and the corresponding relationship between ordinary users and 500M WAN bandwidth is set. In actual use, ordinary users, such as ordinary civilian staff, can only use 500M bandwidth and cannot use 1000M bandwidth, which avoids ordinary users streaming to 1000M to affect the bandwidth usage of VIP users.
[0033] In an optional implementation manner of the embodiment of the present application, the method of determining the wide area network bandwidth corresponding to the data to be transmitted based on the preset corresponding relationship involved in the above step 101 may further include:
[0034] Step 21, determining a user equipment type of a user equipment corresponding to the data to be transmitted;
[0035] Step 22: Determine the wide area network bandwidth corresponding to the user equipment type based on the preset corresponding relationship.
[0036] For the above steps 21 and 22, the above VIP user and the 1000M wide area network bandwidth have a corresponding relationship, and the ordinary user and the 500M wide area network bandwidth have a corresponding relationship. Figure 2 As shown in the figure, high bandwidth represents 1000M and low bandwidth represents 500M. Based on this, by mapping the services of VIP users to high-bandwidth lines, we can avoid being assigned to low-bandwidth scenarios when participating in the dual WAN connection creation. Therefore, VIP services give priority to using high-bandwidth links. At the same time, the services of ordinary users are mapped to low-bandwidth links, thereby reducing the use of high-bandwidth lines by ordinary users' services. At the same time, low-bandwidth links can also ensure the basic network use of ordinary services.
[0037] In an optional implementation manner of the embodiment of the present application, the preset correspondence in the embodiment of the present application is used to characterize that each wide area network broadband corresponds to one or more types of data to be transmitted. Before obtaining the preset correspondence, the method of the embodiment of the present application may further include:
[0038] Step 31, classify the data to be transmitted and obtain the service type;
[0039] Step 32: Based on the service type, a preset correspondence relationship between different service types and different wide area network bandwidths is established.
[0040] The types of services involved in the above steps 31 and 32 can be set accordingly according to actual needs, for example, the types of services are divided into: web services, video services and voice services. Since different wide area network broadbands in the embodiment of the present application have different bandwidths, the corresponding relationship between different wide area network broadbands can be set based on the actual types of services. For example, if the current voice service has a large demand for bandwidth, and the web services and video services have a smaller demand for bandwidth than the voice service. Based on this, if the two wide area network bandwidths currently pulled are 500M and 1000M, the corresponding relationship between the voice service and the 1000M wide area network broadband is set, and the corresponding relationship between the web services and the video services and the 500M wide area network broadband is set. In actual use, the data corresponding to the voice service is transmitted based on the 1000M bandwidth, and the data corresponding to the web services and the video services are transmitted based on the 500M bandwidth. Of course, the above is just an example. In different application scenarios, the demand for bandwidth of each type of service may be different, and the corresponding relationship between the two needs to be set according to actual needs. In addition, in the embodiment of the present application, more than two bandwidths can be set, for example, a web service, a video service, and a voice service each correspond to one bandwidth.
[0041] In an optional implementation manner of the embodiment of the present application, the method of determining the wide area network bandwidth corresponding to the data to be transmitted based on the preset corresponding relationship involved in the above step 101 may further include:
[0042] Step 41, determining the service type of the data to be transmitted;
[0043] Step 42: Determine the wide area network bandwidth corresponding to the service type based on the preset corresponding relationship.
[0044] For the above steps 41 and 42, the above voice service still has a corresponding relationship with the 1000M wide area network bandwidth, and the web service and video service have a corresponding relationship with the 500M wide area network bandwidth, as shown in the following example. Figure 3 As shown in the figure, high bandwidth represents 1000M, low bandwidth represents 500M, and by mapping voice services to high-bandwidth lines, it is possible to avoid being assigned to low-bandwidth scenarios when creating dual WAN connections. At the same time, ordinary services such as web pages and videos can be mapped to low-bandwidth links, thereby reducing the use of high-bandwidth lines by ordinary services, while low-bandwidth links can also ensure the use of basic networks for ordinary services.
[0045] In an optional implementation manner of the embodiment of the present application, the preset correspondence in the embodiment of the present application is used to characterize the data correspondence between each wide area network broadband and one or more local area network ports. Before obtaining the preset correspondence, the method of the embodiment of the present application may further include:
[0046] Step 51, classifying the LAN port for accessing the router through which the data to be transmitted is accessed, and obtaining the LAN port type;
[0047] Step 52: Based on the LAN port type, a preset correspondence between different LAN port types and different WAN bandwidths is established.
[0048] The LAN port types involved in the above steps 51 and 52 can be set accordingly according to actual needs. For example, if the current number of LAN ports is 3, they are LAN1, LAN2, and LAN3 respectively, then the LAN port types include LAN1, LAN2, and LAN3. Since different WAN broadbands in the embodiment of the present application have different bandwidths, the corresponding relationship between the different WAN broadbands can be set based on the actual LAN port types. For example, if the current bandwidth demand of LAN1 is large, and the bandwidth demand of LAN2 and LAN3 is smaller than that of voice services. Based on this, if the two WAN bandwidths currently pulled are 500M and 1000M, the corresponding relationship between LAN1 and the 1000M WAN broadband is set, and the corresponding relationship between LAN2 and LAN3 and the 500M WAN broadband is set respectively. In actual use, the data transmitted by LAN1 is transmitted based on the 1000M bandwidth, and the data corresponding to LAN2 and LAN3 is transmitted based on the 500M bandwidth. Of course, the above is just an example. In different application scenarios, the bandwidth requirements of the services of each LAN port may be different, and the corresponding relationship between the two needs to be set according to actual needs. In addition, in the embodiment of the present application, more than two broadbands can be set, for example, LAN1, LAN2, and LAN3 each correspond to one broadband.
[0049] In an optional implementation manner of the embodiment of the present application, the method of determining the wide area network bandwidth corresponding to the data to be transmitted based on the preset corresponding relationship involved in the above step 101 may further include:
[0050] Step 61, determining the LAN port type of the LAN port to which the data to be transmitted is connected;
[0051] Step 62: Determine the WAN bandwidth corresponding to the LAN port type based on the preset corresponding relationship.
[0052] For the above steps 61 and 62, it is still assumed that there is a corresponding relationship between the above LAN1 and the 1000M wide area network bandwidth, and there is a corresponding relationship between LAN2 and LAN3 and the 500M wide area network bandwidth respectively. Figure 4 As shown in the figure, high bandwidth represents 1000M and low bandwidth represents 500M. By mapping the LAN port to the high-bandwidth line, it is possible to avoid being assigned to the low-bandwidth scenario when creating a dual WAN connection. Therefore, users connected to the LAN1 port will use the high-bandwidth link with high priority. At the same time, other ports can be mapped to the low-bandwidth link to reduce the use of the high-bandwidth line, while the low-bandwidth link can also ensure its basic network use.
[0053] It can be seen that through the embodiment of the present application, negative balancing at different levels such as port level (such as LAN1, LAN2 and LAN3, etc.), user level (VIP users and ordinary users), and service level (voice service, web service and video service) can be achieved. That is, different data can be directly allocated to the corresponding bandwidth link according to the corresponding relationship, so that the services of the same user all go through the same bandwidth link to ensure the network quality of the same user. In addition, in the embodiment of the present application, the combination of service data at different levels such as port level, user level and service level can also be achieved, for example Figure 5 As shown, user A is set to correspond to broadband A (high bandwidth), user B is set to correspond to broadband B (low bandwidth), voice service corresponds to broadband B, game service corresponds to broadband A, and network port 1 corresponds to broadband A. In other words, the same broadband can correspond to one or more different levels of service data, indicating that multiple different levels of service data can share the same broadband, but in the same broadband, the multiple different levels of service data may or may not have priorities with each other, and can be further set as needed, for example, in the same broadband, the priority of user-level data is higher than that of service-level data, and the priority of service-level data is higher than that of port-level data. The above is just an example, and the priorities of different data can be set according to actual needs.
[0054] Corresponding to the above Figure 1 , the embodiment of the present application also provides a data transmission device, such as Figure 6 As shown, including:
[0055] The processing module 602 is used to obtain the data to be transmitted, obtain the preset corresponding relationship before transmitting the data to be transmitted, and determine the wide area network bandwidth corresponding to the data to be transmitted based on the preset corresponding relationship, wherein the number of wide area network broadbands is multiple, and different wide area network broadbands correspond to different bandwidths;
[0056] The transmission module 604 is used to transmit the data to be transmitted based on the wide area network bandwidth corresponding to the data to be transmitted.
[0057] Through the device in the embodiment of the present application, before transmitting the data to be transmitted, the wide area network bandwidth corresponding to the data to be transmitted can be determined based on the preset correspondence, and the data to be transmitted can be transmitted based on the selected wide area network broadband, thereby avoiding the streaming of data that does not have a corresponding relationship and the wide area network broadband, ensuring the high transmission of data, improving the user experience, and solving the problem in the prior art that high-bandwidth data is allocated to low-bandwidth links under the dual WAN network architecture.
[0058] Optionally, the preset correspondence is used to characterize the correspondence between each wide area network broadband and one or more types of data. The device of the embodiment of the present application may also include: a first classification module, used to classify the user equipment corresponding to the data to be transmitted before obtaining the preset correspondence, and obtain the user equipment type of the user equipment corresponding to the data to be transmitted; a first establishment module, used to establish a preset correspondence between different user equipment types and different wide area network broadbands based on the user equipment type.
[0059] Optionally, the processing module 602 of the embodiment of the present application may further include: a first determination unit, used to determine the user equipment type of the user equipment corresponding to the data to be transmitted; and a second determination unit, used to determine the wide area network bandwidth corresponding to the user equipment type based on a preset corresponding relationship.
[0060] Optionally, the preset correspondence is used to characterize the correspondence between each wide area network broadband and one or more types of data. The device of the embodiment of the present application may also include: a second classification module, used to classify the data to be transmitted before obtaining the preset correspondence; and a second establishment module, used to establish a preset correspondence between different service types and different wide area network broadbands.
[0061] Optionally, the processing module 602 of the embodiment of the present application may further include: a third determination unit, used to determine the service type of the data to be transmitted; and a fourth determination unit, used to determine the wide area network bandwidth corresponding to the service type based on a preset corresponding relationship.
[0062] Optionally, the device of the embodiment of the present application may also include: a third classification module, used to classify the LAN port for accessing the router to transmit data before obtaining the preset correspondence, and obtain the LAN port type; a third establishment module, used to establish a preset correspondence between different LAN port types and different WAN bandwidths based on the LAN port type.
[0063] Optionally, the processing module 602 of the embodiment of the present application may further include: a fifth determination unit, used to determine the LAN port type of the LAN port to which the data to be transmitted is connected; and a sixth determination unit, used to determine the WAN bandwidth corresponding to the LAN port type based on a preset correspondence.
[0064] like Figure 7 As shown, an embodiment of the present application provides an electronic device, including a processor 711, a communication interface 712, a memory 713 and a communication bus 714, wherein the processor 711, the communication interface 712, and the memory 713 communicate with each other through the communication bus 714.
[0065] Memory 713, used for storing computer programs;
[0066] In one embodiment of the present application, the processor 711 is used to execute the program stored in the memory 713 to implement the data transmission method provided by any of the aforementioned method embodiments, and the role it plays is similar and will not be repeated here.
[0067] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the data transmission method provided in any of the aforementioned method embodiments are implemented.
[0068] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0069] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0070] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0071] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A data transmission method, characterized in that: include: Acquire data to be transmitted, and before transmitting the data to be transmitted, acquire a preset corresponding relationship, and determine a wide area network bandwidth corresponding to the data to be transmitted based on the preset corresponding relationship, wherein the number of the wide area network bandwidths is multiple, and different wide area network bandwidths correspond to different bandwidths; The data to be transmitted is transmitted based on a wide area network bandwidth corresponding to the data to be transmitted.
2. The method according to claim 1, characterized in that The preset corresponding relationship is used to characterize that each wide area network broadband corresponds to one or more types of data to be transmitted. Before obtaining the preset corresponding relationship, the method further includes: Classifying the user equipment corresponding to the data to be transmitted to obtain the user equipment type of the user equipment corresponding to the data to be transmitted; Based on the user equipment type, the preset correspondence between different user equipment types and different wide area network bandwidths is established.
3. The method according to claim 2, characterized in that The determining, based on a preset corresponding relationship, a wide area network bandwidth corresponding to the data to be transmitted includes: Determine a user equipment type of a user equipment corresponding to the data to be transmitted; Based on the preset corresponding relationship, a wide area network bandwidth corresponding to the user equipment type is determined.
4. The method according to claim 1, characterized in that The preset corresponding relationship is used to characterize that each wide area network broadband corresponds to one or more types of data to be transmitted. Before obtaining the preset corresponding relationship, the method further includes: Classifying the data to be transmitted to obtain a service type; Based on the service type, the preset correspondence between different service types and different wide area network bandwidths is established.
5. The method according to claim 4, characterized in that The determining, based on a preset corresponding relationship, a wide area network bandwidth corresponding to the data to be transmitted includes: Determining the service type of the data to be transmitted; Based on the preset corresponding relationship, a wide area network bandwidth corresponding to the service type is determined.
6. The method according to claim 1, characterized in that The preset corresponding relationship is used to characterize that each wide area network broadband corresponds to one or more local area network ports. Before obtaining the preset corresponding relationship, the method further includes: Classifying the LAN port of the router through which the data to be transmitted is accessed to obtain the LAN port type; Based on the LAN port type, the preset correspondence between different LAN port types and different WAN bandwidths is established.
7. The method according to claim 6, characterized in that The determining, based on a preset corresponding relationship, a wide area network bandwidth corresponding to the data to be transmitted includes: Determine the local area network port type of the local area network port to which the data to be transmitted is connected; Based on the preset corresponding relationship, the wide area network bandwidth corresponding to the local area network port type is determined.
8. A data transmission device, characterized in that: include: A processing module, used for obtaining data to be transmitted, obtaining a preset corresponding relationship before transmitting the data to be transmitted, and determining a wide area network bandwidth corresponding to the data to be transmitted based on the preset corresponding relationship; The transmission module is used to transmit the data to be transmitted based on the wide area network bandwidth corresponding to the data to be transmitted.
9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the data transmission method according to any one of claims 1 to 7 when executing the program stored in the memory.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the data transmission method according to any one of claims 1 to 7 is implemented.