A network adaptive switching method and system

By obtaining network environment attribute information and detecting network environment status, and dynamically switching network protocols, the problem of network transmission solutions lacking adaptability in the prior art is solved, and effective response of network quality changes to data transmission efficiency is achieved.

CN119788764APending Publication Date: 2025-04-08BEIJING BAIGEFEICHI TECH LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411673215.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-21
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

Existing network transmission solutions lack the ability to dynamically adapt to network quality changes and cannot effectively deal with data transmission problems when dedicated network quality is degraded, bandwidth saturated or abnormal.

Method used

By obtaining network environment attribute information, detecting the network environment status, and dynamically switching the network protocol according to preset switching rules, switching from the private network protocol to the public network protocol to adapt to changes in network quality.

Benefits of technology

The dynamic response to network quality changes is achieved, the impact of network quality changes on data transmission efficiency is reduced, and the negative impact of dedicated line bandwidth saturation on data transmission is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119788764A_ABST
    Figure CN119788764A_ABST
Patent Text Reader

Abstract

The present application provides a network adaptive switching method and system, which is applied to a server, and the server includes at least two network protocols, and the method includes: obtaining network environment attribute information of the network; based on the network environment attribute information, detecting the network environment of the network according to a preset network status detection rule, and obtaining the network environment status information of the network; based on the network environment status information, switching the network protocol according to a preset network adaptive switching rule. By dynamically adaptively switching the network protocol by real-time monitoring of network quality, part of the private network traffic is diverted to the public network to reduce the impact of the saturation of the private network and dedicated line broadband on data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer network technology, and in particular to a network adaptive switching method and system. Background Art

[0002] This section is intended to provide a background or context to the embodiments of the application that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.

[0003] In cross-cloud and cross-region network transmission, network quality is affected by many factors and has the problem of poor stability.

[0004] Existing network transmission solutions lack the ability to dynamically adapt to changes in network quality. When the quality of the dedicated line network deteriorates, there is a lack of an effective protocol degradation mechanism. When the dedicated line bandwidth is saturated or abnormal, there is no mechanism to automatically divert to other network paths.

[0005] Based on this, the present application urgently needs to propose a network adaptive switching method and system that can solve the above technical problems. Summary of the invention

[0006] Multiple aspects of the present application provide a network adaptive switching method and system for dynamically adapting to changes in the network environment to ensure the stability of the network environment and network quality.

[0007] In one aspect of the present application, a network adaptive switching method is provided, which is applied to a server, wherein the server includes at least two network protocols, and the method includes:

[0008] Obtain network environment attribute information of the network;

[0009] Based on the network environment attribute information, the network environment of the network is detected according to a preset network status detection rule to obtain the network environment status information of the network;

[0010] Based on the network environment status information, the network protocol is switched according to a preset network adaptive switching rule.

[0011] Furthermore, obtaining network environment attribute information of the network includes: responding to a data stream transfer request, obtaining the number of data stream timeout retransmissions, the data stream transfer time of the data stream, and the data stream traffic of the data stream; responding to a TCP detection signal, obtaining the TCP detection time.

[0012] Furthermore, based on the network environment attribute information, the network environment of the network is detected according to preset network status detection rules, and the network environment status information of the network is obtained, including: when at most two network environment attribute information among the number of data stream timeout retransmissions, the data stream transfer time, the data stream traffic and the TCP detection time do not meet the preset conditions, the network environment status information is determined to be abnormal.

[0013] Furthermore, based on the network environment attribute information, the network environment of the network is detected according to preset network status detection rules, and the network environment status information of the network is obtained, including: when at least three of the network environment attribute information of the data stream timeout retransmission times, the data stream transfer time, the data stream traffic and the TCP detection time do not meet the preset conditions, the network environment status information is determined to be severely abnormal.

[0014] Furthermore, the method also includes: if the number of data stream timeout retransmission times is greater than a preset timeout retransmission threshold, then it is determined that the data stream timeout retransmission times does not meet the preset conditions; if the data stream transfer time is greater than a preset transfer time threshold, then it is determined that the data stream transfer time does not meet the preset conditions; if the data stream traffic is greater than a preset traffic threshold, then it is determined that the data stream traffic does not meet the preset conditions; if the TCP detection time is greater than a preset detection time threshold, then it is determined that the TCP detection time does not meet the preset conditions.

[0015] Furthermore, the method further includes: obtaining the TCP detection time consumption for a preset number of times; and determining the detection time consumption threshold based on the TCP detection time consumption for the preset number of times.

[0016] Furthermore, based on the network environment status information, according to the preset network adaptive switching rules, switching the network protocol includes: when the network environment status information is abnormal, switching a preset proportion of data streams from a private network protocol to a public network protocol until the network environment status information is normal; the network protocol includes a private network protocol and a public network protocol.

[0017] Furthermore, based on the network environment status information, according to preset network adaptive switching rules, switching the network protocol includes: when the network environment status information is severely abnormal, switching the data flow from the private network protocol to the public network protocol until the network environment status information is normal.

[0018] Furthermore, when the network environment status information is abnormal, a preset proportion of data flows is switched from the private network protocol to the public network protocol until the network environment status information is normal, including: if the data flow rate is greater than a preset flow threshold, the preset proportion is determined based on the data flow rate and the flow threshold, and the preset proportion of data flows is switched from the private network protocol to the public network protocol until the network environment status information is normal; otherwise, the time when the network environment status is determined to be abnormal is used as the time node, and all data flows after the time node are switched from the private network protocol to the public network protocol until the network environment status information is normal.

[0019] In another aspect of the present application, a network adaptive switching system is provided, characterized in that the system is applied to a server, the server includes at least two network protocols, and the system includes:

[0020] An acquisition unit, used to acquire network environment attribute information of a network;

[0021] A detection unit, configured to detect the network environment of the network according to a preset network status detection rule based on the network environment attribute information, and obtain the network environment status information;

[0022] A switching unit is used to switch the network protocol based on the network environment status information and according to a preset network adaptive switching rule.

[0023] A network adaptive switching method and system proposed in the present application can dynamically adjust the network protocol according to changes in network quality to reduce the impact of changes in network quality on data transmission efficiency; based on network environment status information, the network protocol is switched according to preset network adaptive switching rules, and the network protocol is dynamically and adaptively switched by real-time monitoring of network quality, and part of the private network traffic is diverted to the public network to reduce the impact of private network and dedicated line bandwidth saturation on data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0025] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0026] Figure 1 A schematic diagram of a flow chart of a network adaptive switching method provided in an embodiment of the present application;

[0027] Figure 2 A schematic diagram of the structure of a network adaptive switching system provided in an embodiment of the present application;

[0028] Figure 3 A schematic diagram of the structure of an electronic device suitable for implementing the solution in the embodiments of the present application;

[0029] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION

[0030] 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 creative work are within the scope of protection of this application.

[0031] In a typical configuration of the present application, the terminal and the equipment of the service network each include one or more processors (CPU), input / output interface, network interface and memory.

[0032] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0033] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer program instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0034] The present invention provides a method for adaptive network switching, which includes:

[0035] Obtain network environment attribute information of the network;

[0036] Based on the network environment attribute information, the network environment of the network is detected according to a preset network status detection rule to obtain the network environment status information of the network;

[0037] Based on the network environment status information, the network protocol is switched according to a preset network adaptive switching rule; wherein the network protocol includes at least two network protocols.

[0038] In actual scenarios, the execution subject of the method can be a user device, or a device formed by integrating a user device and a network device through a network, or an application running on the above device. The user device includes but is not limited to various terminal devices such as computers, mobile phones, tablet computers, smart watches, and bracelets. The network device includes but is not limited to network hosts, single network servers, multiple network server sets, or cloud computing-based computer sets, which can be used to implement some processing functions when setting an alarm. Here, the cloud is composed of a large number of hosts or network servers based on cloud computing, where cloud computing is a type of distributed computing, a virtual computer composed of a group of loosely coupled computer sets.

[0039] Embodiment 1

[0040] Figure 1 The present invention provides a processing flow of a network adaptive switching method provided in an embodiment of the present invention. The method is applied to a server including at least two network protocols. The method includes at least the following processing steps:

[0041] Step S1, obtaining network environment attribute information of the network;

[0042] Step S2: Based on the network environment attribute information, the network environment of the network is detected according to a preset network status detection rule to obtain network environment status information of the network;

[0043] Step S3: Based on the network environment status information, the network protocol is switched according to a preset network adaptive switching rule.

[0044] The network protocol includes a private network protocol and a public network protocol; specifically, the private network protocol may be the HTTP / 2.0 protocol, and the public network protocol may be the HTTP / 1.1 protocol.

[0045] In actual application scenarios, the HTTP / 2.0 protocol is based on the TCP protocol, which multiplexes data streams on a single connection to improve data throughput and performance; however, the use of the HTTP / 2.0 protocol is greatly affected by network quality. When the network quality is poor, the retransmission of the TCP layer will cause the blocking of all multiplexed data streams on the link. The HTTP / 1.1 protocol uses a single-channel method. Although it will reduce throughput and performance, the retransmission of a single TCP link will not affect other links. Based on this, this embodiment proposes a network adaptive switching method to improve the stability and efficiency of network transmission and reduce the risk of HTTP / 2.0 blocking when the network quality is poor.

[0046] In one embodiment, obtaining network environment attribute information of the network includes: responding to a data stream transfer request, obtaining the number of data stream timeout retransmissions, the data stream transfer time of the data stream, and the data stream traffic of the data stream; responding to a TCP detection signal, obtaining the TCP detection time.

[0047] Specifically, by configuring detection tasks and detection channels on the server, the number of data flow timeout retransmissions of the data flow is obtained; by configuring quality detection and judgment on the server, the data flow transfer time and data flow volume of the data flow are obtained.

[0048] In one embodiment, based on the network environment attribute information, the network environment of the network is detected according to preset network status detection rules, and the network environment status information of the network is obtained, including: when at most two network environment attribute information among the number of data stream timeout retransmissions, the data stream transfer time, the data stream traffic and the TCP detection time do not meet the preset conditions, the network environment status information is determined to be abnormal.

[0049] In one of the embodiments, based on the network environment attribute information, the network environment of the network is detected according to preset network status detection rules, and the network environment status information of the network is obtained, including: when at least three of the network environment attribute information of the data stream timeout retransmission times, the data stream transfer time, the data stream traffic and the TCP detection time do not meet the preset conditions, the network environment status information is determined to be severely abnormal.

[0050] Specifically, the network environment is detected in multiple ways and from multiple angles to improve the accuracy of the network environment detection results; the network environment status information is detected by setting preset conditions, and the network environment status information is determined in time without manual supervision. When it is detected that the network environment status information does not meet the preset conditions, the network environment status information is automatically pushed, which simplifies the complexity of operation and maintenance and improves the flexibility and scalability of the system.

[0051] In one embodiment, the method further includes: if the number of data stream timeout retransmission times is greater than a preset timeout retransmission threshold, then it is determined that the data stream timeout retransmission times does not meet the preset conditions; if the data stream transfer time is greater than the preset transfer time threshold, then it is determined that the data stream transfer time does not meet the preset conditions; if the data stream traffic is greater than the preset traffic threshold, then it is determined that the data stream traffic does not meet the preset conditions; if the TCP detection time is greater than the preset detection time threshold, then it is determined that the TCP detection time does not meet the preset conditions.

[0052] Specifically, the status of the network environment is obtained based on preset condition judgment rules, which simplifies the complexity of operation and maintenance and improves the flexibility and scalability of the server; at the same time, by setting up a variety of monitoring methods, the accuracy of network environment status detection is ensured, thereby ensuring the quality of network transmission.

[0053] In one of the embodiments, the method further includes: obtaining the TCP detection time consumption for a preset number of times; and determining the detection time consumption threshold based on the TCP detection time consumption for the preset number of times.

[0054] It should be understood that this application does not limit the size of the preset number of times, and those skilled in the art can make adaptive adjustments according to actual application scenarios. Preferably, determine that the current acquisition of TCP detection time is the nth time; obtain the total TCP detection time from the 1st to the n-1th TCP detection time, and the total number of TCP detection time; determine the quotient of the total TCP detection time and the total number of acquisitions as the detection time threshold.

[0055] In one embodiment, based on the network environment status information and in accordance with preset network adaptive switching rules, switching the network protocol includes: when the network environment status information is abnormal, switching a preset proportion of data streams from a private network protocol to a public network protocol until the network environment status information is normal; the network protocol includes a private network protocol and a public network protocol.

[0056] In one embodiment, based on the network environment status information and in accordance with preset network adaptive switching rules, switching the network protocol includes: when the network environment status information is severely abnormal, switching the data flow from the private network protocol to the public network protocol until the network environment status information is normal.

[0057] Specifically, through the preset network adaptive switching rules, when the bandwidth is saturated or the network environment has serious quality problems, the private network protocol will be switched to the public network protocol to optimize bandwidth utilization and ensure network transmission quality.

[0058] In one embodiment, when the network environment status information is abnormal, a preset proportion of data flows is switched from a private network protocol to a public network protocol until the network environment status information is normal, including: if the data flow rate is greater than a preset flow threshold, the preset proportion is determined based on the data flow rate and the flow threshold, and the preset proportion of data flows is switched from the private network protocol to the public network protocol until the network environment status information is normal; otherwise, the time point when the network environment status is determined to be abnormal is used as the time node, and all data flows after the time node are switched from the private network protocol to the public network protocol until the network environment status information is normal.

[0059] In one embodiment, the method further includes: determining the preset ratio; determining the preset ratio includes: determining the flow ratio of data flow exceeding the preset flow threshold, and determining the flow ratio as the preset ratio. That is, if the data flow exceeds the preset flow threshold by 10%, 10% of the data flow is switched from the private network protocol to the public network protocol until the data flow is no greater than the preset flow threshold.

[0060] In one embodiment, after a preset proportion of data flow is switched from a private network protocol to a public network protocol, the method further comprises: real-time monitoring of the flow ratio of data flow that exceeds a preset flow threshold; adjusting the preset ratio in real time according to the flow ratio, and switching the preset proportion of data flow from the private network protocol to the public network protocol.

[0061] Specifically, if the data flow rate is greater than the preset flow threshold, the data flow whose flow rate exceeds the preset flow threshold is switched from the private network protocol to the public network protocol; if the data flow rate is not greater than the preset flow threshold, the number of data flow timeout retransmissions is greater than the preset timeout retransmission threshold, or the data flow transfer time is greater than the preset transfer time threshold, or the TCP detection time is greater than the preset detection time threshold, then the time when the network status is determined to be abnormal is used as the time node, and all data flows after this time node are switched from the private network protocol to the public network protocol. That is, assuming that the time point when the network status is determined to be abnormal is 21:30, all new incoming data flows after 21:30 will go through the public network protocol.

[0062] Embodiment 2

[0063] Figure 2 A network adaptive switching system provided by an embodiment of the present application is shown, the system is applied to a server, the server includes at least two network protocols, and the system includes:

[0064] An acquisition unit, used to acquire network environment attribute information of a network;

[0065] A detection unit, configured to detect the network environment of the network according to a preset network status detection rule based on the network environment attribute information, and obtain the network environment status information;

[0066] A switching unit is used to switch the network protocol based on the network environment status information and according to a preset network adaptive switching rule.

[0067] Embodiment 3

[0068] Based on the same inventive concept, an electronic device is also provided in an embodiment of the present application, and the method corresponding to the electronic device may be the method for network adaptive switching in the aforementioned embodiment, and its principle of solving the problem is similar to that of the method. The electronic device provided in an embodiment of the present application includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the methods and / or technical solutions of the aforementioned multiple embodiments of the present application.

[0069] The electronic device may be a user device, or a device formed by integrating a user device and a network device through a network, or may be an application running on the above device. The user device includes but is not limited to various terminal devices such as computers, mobile phones, tablet computers, smart watches, and bracelets. The network device includes but is not limited to network hosts, single network servers, multiple network server sets, or cloud computing-based computer sets, which can be used to implement some processing functions when setting an alarm. Here, the cloud is composed of a large number of hosts or network servers based on cloud computing, where cloud computing is a type of distributed computing, a virtual computer composed of a group of loosely coupled computer sets.

[0070] Figure 3 The structure of an electronic device suitable for implementing the method and / or technical solution in the embodiment of the present application is shown, and the device 500 includes a central processing unit (CPU, Central Processing Unit) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM, Read Only Memory) 502 or the program loaded from the storage part 508 to the random access memory (RAM, Random Access Memory) 503. In RAM503, various programs and data required for system operation are also stored. CPU 501, ROM 502 and RAM 503 are connected to each other through a bus 504. An input / output (I / O, Input / Output) interface 505 is also connected to the bus 504.

[0071] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, a touch screen, a microphone, an infrared sensor, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), an LED display, an OLED display, etc., and a speaker, etc.; a storage section 508 including one or more computer-readable media such as a hard disk, an optical disk, a magnetic disk, a semiconductor memory, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet.

[0072] In particular, the methods and / or embodiments in the embodiments of the present application may be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. When the computer program is executed by the central processing unit (CPU) 501, the above functions defined in the method of the present application are executed.

[0073] Embodiment 4

[0074] Another embodiment of the present application further provides a computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the methods and / or technical solutions of any one or more embodiments of the present application described above.

[0075] Specifically, the present embodiment can adopt any combination of one or more computer-readable media. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0076] Computer readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than a computer readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device.

[0077] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0078] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0079] The flow chart or block diagram in the accompanying drawings shows the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated system for hardware that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0080] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0081] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or page components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0082] 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 units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0083] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0084] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

[0085] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

[0086] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in a device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

Claims

1. A network adaptive switching method, characterized in that: Applied to a server, the server includes at least two network protocols, and the method includes: Obtain network environment attribute information of the network; Based on the network environment attribute information, the network environment of the network is detected according to a preset network status detection rule to obtain the network environment status information of the network; Based on the network environment status information, the network protocol is switched according to a preset network adaptive switching rule.

2. The network adaptive switching method according to claim 1, characterized in that: The network environment attribute information obtained includes: In response to the data flow transfer request, obtaining the number of data flow timeout retransmissions of the data flow, the data flow transfer time of the data flow, and the data flow flow of the data flow; In response to the TCP detection signal, the TCP detection time consumption is obtained.

3. The network adaptive switching method according to claim 2, characterized in that: Based on the network environment attribute information, detecting the network environment of the network according to a preset network status detection rule, and obtaining the network environment status information of the network includes: When at most two network environment attribute information among the number of data stream timeout retransmissions, the data stream transfer time, the data stream traffic and the TCP detection time do not meet the preset conditions, the network environment status information is determined to be abnormal.

4. The network adaptive switching method according to claim 2, characterized in that: Based on the network environment attribute information, detecting the network environment of the network according to a preset network status detection rule, and obtaining the network environment status information of the network includes: When at least three network environment attribute information of the data stream timeout retransmission times, the data stream transfer time, the data stream flow and the TCP detection time do not meet the preset conditions, it is determined that the network environment status information is severely abnormal.

5. The network adaptive switching method according to claim 3, characterized in that: The method further comprises: If the number of timeout retransmissions of the data stream is greater than a preset timeout retransmission threshold, it is determined that the number of timeout retransmissions of the data stream does not meet the preset condition; If the data flow transfer time is greater than a preset transfer time threshold, it is determined that the data flow transfer time does not meet the preset condition; If the data flow rate is greater than a preset flow threshold, it is determined that the data flow rate does not meet the preset condition; If the TCP detection time consumption is greater than a preset detection time consumption threshold, it is determined that the TCP detection time consumption does not meet the preset condition.

6. The network adaptive switching method according to claim 5, characterized in that: The method further comprises: Obtain the TCP detection time consumed for a preset number of times; The detection time consumption threshold is determined based on the preset number of TCP detection time consumptions.

7. The network adaptive switching method according to claim 6, characterized in that: Based on the network environment status information, according to a preset network adaptive switching rule, switching the network protocol includes: When the network environment status information is abnormal, a preset proportion of data streams is switched from the private network protocol to the public network protocol until the network environment status information becomes normal; The network protocol includes a private network protocol and a public network protocol.

8. The network adaptive switching method according to claim 7, characterized in that: Based on the network environment status information, according to a preset network adaptive switching rule, switching the network protocol includes: When the network environment status information is severely abnormal, the data flow is switched from the private network protocol to the public network protocol until the network environment status information becomes normal.

9. The network adaptive switching method according to claim 7, characterized in that: When the network environment status information is abnormal, a preset proportion of data streams is switched from a private network protocol to a public network protocol until the network environment status information is normal, including: If the data flow rate is greater than a preset flow threshold, the preset ratio is determined based on the data flow rate and the flow threshold, and the data flow of the preset ratio is switched from the private network protocol to the public network protocol until the network environment status information is normal; On the contrary, the time node is determined to be when the network environment status is abnormal, and all data flows after the time node are switched from the private network protocol to the public network protocol until the network environment status information becomes normal.

10. A network adaptive switching system, characterized in that: The system is applied to a server, the server includes at least two network protocols, and the system includes: An acquisition unit, used to acquire network environment attribute information of a network; A detection unit, configured to detect the network environment of the network according to a preset network status detection rule based on the network environment attribute information, and obtain the network environment status information; A switching unit is used to switch the network protocol based on the network environment status information and according to a preset network adaptive switching rule.