CN114039926A - Transmission control protocol determining method and device, readable medium and electronic equipment - Google Patents

Transmission control protocol determining method and device, readable medium and electronic equipment Download PDF

Info

Publication number
CN114039926A
CN114039926A CN202111306950.3A CN202111306950A CN114039926A CN 114039926 A CN114039926 A CN 114039926A CN 202111306950 A CN202111306950 A CN 202111306950A CN 114039926 A CN114039926 A CN 114039926A
Authority
CN
China
Prior art keywords
transmission control
control protocol
priority
network
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111306950.3A
Other languages
Chinese (zh)
Other versions
CN114039926B (en
Inventor
邸卫光
王剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202111306950.3A priority Critical patent/CN114039926B/en
Publication of CN114039926A publication Critical patent/CN114039926A/en
Application granted granted Critical
Publication of CN114039926B publication Critical patent/CN114039926B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/28Flow control; Congestion control in relation to timing considerations
    • H04L47/283Flow control; Congestion control in relation to timing considerations in response to processing delays, e.g. caused by jitter or round trip time [RTT]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure relates to a transmission control protocol determining method, a device, a readable medium and an electronic device, wherein the method comprises the following steps: acquiring network environment information; determining a target priority rule matched with the network environment information from a plurality of priority rules, wherein the priority rules are used for reflecting the priority order of transmission control protocols included in a first transmission control protocol list corresponding to the priority rules, the priority orders of the transmission control protocols in the first transmission control protocol list corresponding to different priority rules are different, and congestion control algorithms of different transmission control protocols in the first transmission control protocol list are different; determining a target transmission control protocol for the terminal equipment based on the target priority rule and the second transmission control protocol list; the second transmission control protocol list includes transmission control protocols supported by the terminal device. The method disclosed by the invention can dynamically adjust the congestion control algorithm and improve the network performance.

Description

Transmission control protocol determining method and device, readable medium and electronic equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for determining a transmission control protocol, a readable medium, and an electronic device.
Background
The Transmission Control Protocol (TCP) is a transport Protocol specifically designed to provide a reliable end-to-end byte stream over an unreliable internet network. TCP congestion control is an algorithm for a transmission control protocol to avoid network congestion, and the network congestion may cause problems such as an increase in transmission delay, an increase in packet loss rate, and a decrease in throughput in a network, and may also cause a network breakdown in a severe case.
Therefore, how to implement efficient congestion control is an urgent technical problem to be solved.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, the present disclosure provides a method for determining a transmission control protocol, including:
acquiring network environment information;
determining a target priority rule matched with the network environment information from a plurality of priority rules, wherein the priority rules are used for reflecting the priority order of transmission control protocols included in a first transmission control protocol list corresponding to the priority rules, the priority orders of the transmission control protocols in the first transmission control protocol list corresponding to different priority rules are different, and congestion control algorithms of different transmission control protocols in the first transmission control protocol list are different;
determining a target transmission control protocol for the terminal equipment based on the target priority rule and the second transmission control protocol list; the second transmission control protocol list includes transmission control protocols supported by the terminal device.
In a second aspect, the present disclosure provides a transmission control protocol determining apparatus, including:
an acquisition module configured to acquire network environment information;
a first determining module configured to determine a target priority rule matching the network environment information from a plurality of priority rules, where the priority rule is used to reflect a priority order of transmission control protocols included in a first transmission control protocol list corresponding to the priority rule, where different priority rules correspond to different priority orders of transmission control protocols in the first transmission control protocol list, and congestion control algorithms of different transmission control protocols in the first transmission control protocol list are different;
a second determining module configured to determine a target transmission control protocol for the terminal device based on the target priority rule and a second transmission control protocol list; the second transmission control protocol list includes transmission control protocols supported by the terminal device.
In a third aspect, the present disclosure provides a computer readable medium having stored thereon a computer program which, when executed by a processing apparatus, performs the steps of the method of the first aspect.
In a fourth aspect, the present disclosure provides an electronic device comprising:
a storage device having one or more computer programs stored thereon;
one or more processing devices for executing the one or more computer programs in the storage device to implement the steps of the method of the first aspect.
By the technical scheme, the target priority rule is determined based on the network environment information, the target transmission control protocol which accords with the current network environment information is selected for the terminal equipment based on the target priority rule and the second transmission control protocol list, the actually used congestion control algorithm can be dynamically adjusted based on different network environment information, and the network performance and the user experience are improved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale. In the drawings:
fig. 1 is a flowchart illustrating a transmission control protocol determining method according to an exemplary embodiment of the present disclosure.
Fig. 2 is a block diagram illustrating a transmission control protocol determining apparatus according to an exemplary embodiment of the present disclosure.
Fig. 3 is a schematic structural diagram of an electronic device shown in accordance with an exemplary embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Before introducing a transmission control protocol determining method provided by the present disclosure, an application scenario related to each embodiment of the present disclosure is first described, and the present disclosure may be applied to a terminal device, for example, an application program of the terminal device, to request a network process to switch a congestion control algorithm.
Fig. 1 is a flowchart illustrating a transmission control protocol determining method according to an exemplary embodiment of the present disclosure. As shown in fig. 1, the method may include the steps of:
in step S11, network environment information is acquired.
In some embodiments, the network environment information may reflect at least network quality and network type. In some embodiments, the network quality may reflect at least the network level, which may reflect the network signal strength. In some embodiments, the network levels may include at least a strong network, a medium network, and a weak network. In some embodiments, the network level may also reflect the network type. For example, the network level may include weak 4G and strong 4G, which may reflect that the network type is 4G.
In some embodiments, the network quality may be analyzed based on network quality data collected by the terminal device (e.g., an application of the terminal device). In some embodiments, the network quality data may include at least http RTT (http Round-Trip Time, http Round-Trip delay) and TCP RTT (TCP Round-Trip Time, TCP Round-Trip delay). The http RTT may refer to a time difference from the start of the transmission of the first byte requested by the terminal device to the reception of the first byte of the http header. TCP RTT may refer to the time difference between the transmission of the first byte of the TCP channel to the reception of the first byte of the terminal device. In some embodiments, the longer the http RTT and TCP RTT are, the worse the characterized network quality.
In some embodiments, the network quality data may be processed based on a network quality analysis algorithm to obtain the network quality. The network quality analysis is a real-time network performance detection and statistics technology, can count network information such as response time, network jitter, packet loss rate and the like, monitors the network in real time, and effectively diagnoses and positions when the network fails.
In some embodiments, the network types may include at least a wireless network and a fixed network. The wireless network may include at least 3G, 4G, 5G, Wifi and bluetooth. The fixed Network may include at least PON (Passive Optical Network), DSL (asymmetric Digital Subscriber Line), RJ45 Network Line, and EOC (Ethernet Over Cable). In some embodiments, the network type may be obtained by calling the associated interface.
In some embodiments, obtaining network environment information may include: and responding to the preset triggering operation of the application program, and acquiring the network environment information from a preset storage area, wherein the preset storage area is used for storing the network environment information obtained by periodic detection. In some embodiments, the preset trigger operation may be specifically set according to actual situations, for example, the preset trigger operation may be initiating a network request.
In some embodiments, in response to the starting of the application, the terminal device (e.g., the application of the terminal device) may periodically collect network quality data, and analyze the network quality data collected in each period to obtain the network quality of the period, so as to implement periodic detection to obtain the network quality. In some embodiments, the preset storage area may be used to store network environment information, i.e., network quality and network type, detected periodically by an application of the terminal device.
In step S12, a target priority rule matching the network environment information is determined from a plurality of priority rules, where the priority rules are used to reflect the priority order of the transmission control protocols included in the first transmission control protocol list corresponding to the priority rule, where different priority rules correspond to different priority orders of the transmission control protocols in the first transmission control protocol list, and congestion control algorithms of different transmission control protocols in the first transmission control protocol list are different.
In some embodiments, the transmission control protocol may include a congestion control algorithm. In some embodiments, the first list of transmission control protocols includes transmission control protocols selected from all congestion control algorithms supported by the operating system of the terminal device. In some embodiments, the operating system of the terminal device may include an Android system and a Linux system.
In some embodiments, all congestion algorithms supported by the operating system of the terminal device may include: bic algorithm, cubic algorithm, htcp algorithm, hybla algorithm, vegas algorithm, westwood algorithm, veno algorithm, reno algorithm, dctcp algorithm, cdg algorithm, bbr algorithm, and bbr2 algorithm. For details of all the aforementioned algorithms, reference may be made to the related art, and details thereof are not repeated here.
In some embodiments, the plurality of priority rules may be predefined. In some embodiments, the priority rules, the network quality, and the network type are in one-to-one correspondence, and for any priority rule, in the first tcp list corresponding to the priority rule, the priority order of each tcp is determined based on the network congestion control effect of the tcp under the network type and the network quality corresponding to the priority rule.
In some embodiments, in the case that the network quality is strong network and the network type is wireless network, the transmission control protocol of the first transmission control protocol list corresponding to the priority rule may include: cdg algorithm, BBR2 algorithm, BBR algorithm, westwood algorithm, veno algorithm, cubic algorithm, bic algorithm, and reno algorithm. Based on the congestion control effect of the transmission control protocols under the conditions of a strong network and a wireless network, the priority of each transmission control protocol in the first transmission control protocol list is cdg algorithm, BBR2 algorithm, BBR algorithm, westwood algorithm, veno algorithm, cubic algorithm, bic algorithm and reno algorithm from high to low in sequence. Therefore, in the case that the network quality is a strong network and the network type is a wireless network, the priority rule is cdg > BBR2> BBR > westwood > veno > cubic > bic > reno.
In some embodiments, in the case that the network quality is a medium network and the network type is a wireless network, the transmission control protocol of the first transmission control protocol list corresponding to the priority rule may include: the BBR2 algorithm, the BBR algorithm, the cdg algorithm, the westwood algorithm, the veno algorithm, the cubic algorithm, the bic algorithm, and the reno algorithm. Based on the congestion control effect of the transmission control protocols under the conditions of a strong network and a wireless network, the priority of each transmission control protocol in the first transmission control protocol list is a BBR2 algorithm, a BBR algorithm, a cdg algorithm, a westwood algorithm, a veno algorithm, a cubic algorithm, a bic algorithm and a reno algorithm from high to low in sequence. Therefore, in the case that the network quality is a medium network and the network type is a wireless network, the priority rule is BBR2> BBR > cdg > westwood > veno > cubic > bic > reno.
In some embodiments, in the case that the network quality is a weak network and the network type is a wireless network, the transmission control protocol of the first transmission control protocol list corresponding to the priority rule may include: the BBR2 algorithm, the BBR algorithm, the cdg algorithm, the westwood algorithm, the veno algorithm, the cubic algorithm, the bic algorithm, and the reno algorithm. Based on the congestion control effect of the transmission control protocols under the conditions of a strong network and a wireless network, the priority of each transmission control protocol in the first transmission control protocol list is a BBR2 algorithm, a BBR algorithm, a cdg algorithm, a westwood algorithm, a veno algorithm, a cubic algorithm, a bic algorithm and a reno algorithm from high to low in sequence. Therefore, in the case that the network quality is strong and the network type is wireless, the priority rule is BBR2> BBR > cdg > westwood > veno > cubic > bic > reno.
In some embodiments, in the case that the network quality is strong network and the network type is fixed network, the transmission control protocol of the first transmission control protocol list corresponding to the priority rule may include: the BBR2 algorithm, the BBR algorithm, the htcp algorithm, the dchtcp algorithm, the cdg algorithm, the veno algorithm, the cubic algorithm, the bic algorithm, the reno algorithm, and the westwood algorithm. Based on the congestion control effect of the transmission control protocols under the conditions of strong networks and fixed networks, the priority of each transmission control protocol in the first transmission control protocol list is sequentially a BBR2 algorithm, a BBR algorithm, an htcp algorithm, a dchtcp algorithm, a cdg algorithm, a veno algorithm, a cubic algorithm, a bic algorithm, a reno algorithm and a westwood algorithm from high to low. Therefore, in the case that the network quality is a strong network and the network type is a fixed network, the priority rule is BBR2> BBR > htcp > dctcp > cdg > veno > cubic > bic > reno > westwood.
In some embodiments, in the case that the network quality is a medium network and the network type is a fixed network, the transmission control protocol of the first transmission control protocol list corresponding to the priority rule may include: the BBR2 algorithm, the BBR algorithm, the htcp algorithm, the dchtcp algorithm, the cdg algorithm, the veno algorithm, the cubic algorithm, the bic algorithm, the reno algorithm, and the westwood algorithm. Based on the congestion control effect of the transmission control protocols under the conditions of medium networks and fixed networks, the priority of each transmission control protocol in the first transmission control protocol list is sequentially a BBR2 algorithm, a BBR algorithm, an htcp algorithm, a dchtcp algorithm, a cdg algorithm, a veno algorithm, a cubic algorithm, a bic algorithm, a reno algorithm and a westwood algorithm from high to low. Therefore, in the case that the network quality is a medium network and the network type is a fixed network, the priority rule is BBR2> BBR > htcp > dctcp > cdg > veno > cubic > bic > reno > westwood.
In some embodiments, in the case that the network quality is a weak network and the network type is a fixed network, the transmission control protocol of the first transmission control protocol list corresponding to the priority rule may include: the BBR2 algorithm, the BBR algorithm, the htcp algorithm, the dchtcp algorithm, the cdg algorithm, the veno algorithm, the cubic algorithm, the bic algorithm, the reno algorithm, and the westwood algorithm. Based on the congestion control effect of the transmission control protocols under the conditions of the weak network and the fixed network, the priority of each transmission control protocol in the first transmission control protocol list is a BBR2 algorithm, a BBR algorithm, an htcp algorithm, a dchtcp algorithm, a cdg algorithm, a veno algorithm, a cubic algorithm, a bic algorithm, a reno algorithm and a westwood algorithm from high to low in sequence. Therefore, in the case that the network quality is a weak network and the network type is a fixed network, the priority rule is BBR2> BBR > htcp > dctcp > cdg > veno > cubic > bic > reno > westwood.
In the embodiment of the disclosure, by presetting a plurality of priority rules, after the network environment information is acquired, the target priority rule matched with the network environment information can be directly selected according to the preset priority rules, and then the target transmission control protocol is determined based on the target priority rule and the second transmission control protocol list, so that the acquired network environment information does not need to be further analyzed, and the efficiency of determining the target transmission control protocol is improved.
In step S13, determining a target transmission control protocol for the terminal device based on the target priority rule and the second transmission control protocol list; the second transmission control protocol list includes transmission control protocols supported by the terminal device.
In some embodiments, the second list of transmission control protocols may include transmission control protocols commonly supported by the operating system and the model of the terminal device. In some embodiments, the model of the terminal device may support different congestion control algorithms. The congestion control algorithm supported by the model of the terminal device may be determined according to factory settings of the device.
In some embodiments, determining the target transmission control protocol for the terminal device based on the target priority rule and the second transmission control protocol list comprises: determining transmission control protocols commonly included in the second transmission control protocol list and the first transmission control protocol list corresponding to the target priority rule as candidate transmission control protocols; and determining the candidate transmission control protocol with the highest priority in the first transmission protocol list as the target transmission control protocol. For example, taking the transmission control protocols in the second transmission control protocol list including the BBR2 algorithm, the BBR algorithm, and the westwood algorithm as an example, if the target priority rule is cdg > BBR2> BBR > westwood > veno > cubic > bic > reno, since the BBR2 algorithm, the BBR algorithm, and the westwood algorithm are included in the first transmission control protocol list corresponding to the target priority rule, the BBR2 algorithm, the BBR algorithm, and the westwood algorithm are candidate transmission control protocols, and at this time, the BBR2 algorithm has the highest priority in the target priority rule, and the BBR2 algorithm is the target transmission control protocol.
In some embodiments, determining the target transmission control protocol for the terminal device based on the target priority rule and the second transmission control protocol list comprises: and under the condition that the second transmission control protocol list does not have the same transmission control protocol as the first transmission control protocol list corresponding to the target priority rule, determining the initial transmission control protocol set by the terminal equipment as the target transmission control protocol. For example, taking the example that the transmission control protocols in the second transmission control protocol list include the htcp algorithm and the dctcp algorithm, if the target priority rule is cdg > BBR2> BBR > westwood > veno > cubic > bic > reno, since the htcp algorithm and the dctcp algorithm are not included in the first transmission control protocol list corresponding to the target priority rule, the initial transmission control protocol set by the terminal device is determined as the target transmission control protocol. For example, if the initial transmission control protocol of the terminal device is the htcp algorithm, the htcp algorithm is the target transmission control protocol.
In some embodiments, a terminal device (e.g., an application of the terminal device) may set a target transmission control protocol for a socket by calling a setsockopt function to enable setting of a congestion control algorithm for the terminal device. socket is an abstraction of an endpoint for two-way communication between application processes on different hosts in a network. A socket is the end of a process's communication over a network and provides a mechanism for application layer processes to exchange data using a network protocol. In terms of the position, the socket uplink application process and the socket downlink network protocol stack are interfaces through which the application program communicates through the network protocol, and are interfaces through which the application program interacts with the network protocol root.
In the embodiment of the present disclosure, since the second transmission control protocol list includes the transmission control protocol that is commonly supported by the operating system and the model of the terminal device, the target transmission control protocol is determined based on the target priority rule and the second transmission control protocol list, so that a congestion control algorithm that is supported based on the network environment information and the model of the terminal device can be implemented, the actually used congestion control algorithm is dynamically adjusted, and the network performance is improved.
Based on the same concept, the present disclosure also provides a transmission control protocol determination apparatus. Fig. 2 is a block diagram illustrating a transmission control protocol determining apparatus according to an exemplary embodiment of the present disclosure, and as shown in fig. 2, the apparatus 200 includes:
an obtaining module 201 configured to obtain network environment information;
a first determining module 202, configured to determine a target priority rule matching the network environment information from a plurality of priority rules, where the priority rule is used to reflect a priority order of transmission control protocols included in a first transmission control protocol list corresponding to the priority rule, where different priority rules correspond to different priority orders of transmission control protocols in the first transmission control protocol list, and congestion control algorithms of different transmission control protocols in the first transmission control protocol list are different;
a second determining module 203 configured to determine a target transmission control protocol for the terminal device based on the target priority rule and the second transmission control protocol list; the second transmission control protocol list includes transmission control protocols supported by the terminal device.
In some embodiments, the second determination module 203 is further configured to:
determining transmission control protocols commonly included in the second transmission control protocol list and the first transmission control protocol list corresponding to the target priority rule as candidate transmission control protocols;
and determining the candidate transmission control protocol with the highest priority in the first transmission protocol list as the target transmission control protocol.
In some embodiments, the second determination module 203 is further configured to:
and under the condition that the second transmission control protocol list does not have the same transmission control protocol as the first transmission control protocol list corresponding to the target priority rule, determining the initial transmission control protocol set by the terminal equipment as the target transmission control protocol.
In some embodiments, the second transmission control protocol list includes transmission control protocols commonly supported by an operating system and a model of the terminal device.
In some embodiments, the network environment information reflects at least network quality and network type.
In some embodiments, the priority rules, the network quality, and the network type are in one-to-one correspondence, and for any priority rule, in the first tcp list corresponding to the priority rule, the priority order of each tcp is determined based on the network congestion control effect of the tcp under the network type and the network quality corresponding to the priority rule.
In some embodiments, the acquisition module 201 is further configured to:
and responding to the preset triggering operation of the application program, and acquiring the network environment information from a preset storage area, wherein the preset storage area is used for storing the network environment information obtained by periodic detection.
Referring now to fig. 3, a schematic diagram of an electronic device (e.g., the terminal device of fig. 1) 300 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 309, or installed from the storage means 308, or installed from the ROM 302. The computer program, when executed by the processing device 301, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some implementations, the clients may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring network environment information; determining a target priority rule matched with the network environment information from a plurality of priority rules, wherein the priority rules are used for reflecting the priority order of transmission control protocols included in a first transmission control protocol list corresponding to the priority rules, the priority orders of the transmission control protocols in the first transmission control protocol list corresponding to different priority rules are different, and congestion control algorithms of different transmission control protocols in the first transmission control protocol list are different; determining a target transmission control protocol for the terminal equipment based on the target priority rule and the second transmission control protocol list; the second transmission control protocol list includes transmission control protocols supported by the terminal device.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. The name of the module does not in some cases constitute a limitation of the module itself, and for example, the acquiring module may also be described as a "module that acquires network environment information".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Example 1 provides a transmission control protocol determination method according to one or more embodiments of the present disclosure, including:
acquiring network environment information;
determining a target priority rule matched with the network environment information from a plurality of priority rules, wherein the priority rules are used for reflecting the priority order of transmission control protocols included in a first transmission control protocol list corresponding to the priority rules, the priority orders of the transmission control protocols in the first transmission control protocol list corresponding to different priority rules are different, and congestion control algorithms of different transmission control protocols in the first transmission control protocol list are different;
determining a target transmission control protocol for the terminal equipment based on the target priority rule and the second transmission control protocol list; the second transmission control protocol list includes transmission control protocols supported by the terminal device.
In accordance with one or more embodiments of the present disclosure, example 2 provides the method of example 1, wherein determining a target transmission control protocol for the terminal device based on the target priority rule and the second transmission control protocol list includes:
determining the transmission control protocols commonly included in the second transmission control protocol list and the first transmission control protocol list corresponding to the target priority rule as candidate transmission control protocols;
determining the candidate transmission control protocol with the highest priority in the first transmission protocol list as the target transmission control protocol.
Example 3 provides the method of example 2, wherein determining a target transmission control protocol for the terminal device based on the target priority rule and the second transmission control protocol list, comprises:
and under the condition that the second transmission control protocol list does not have the same transmission control protocol as the first transmission control protocol list corresponding to the target priority rule, determining the initial transmission control protocol set by the terminal equipment as the target transmission control protocol.
Example 4 provides the method of example 3, wherein the transmission control protocols included in the second transmission control protocol list are transmission control protocols commonly supported by an operating system and a model of the terminal device.
Example 5 provides the method of example 1, the network environment information reflecting at least network quality and network type, in accordance with one or more embodiments of the present disclosure.
Example 6 provides the method of example 5, wherein the priority rules, the network qualities, and the network types are in one-to-one correspondence, and for any one of the priority rules, in the first transmission control protocol list corresponding to the priority rule, a priority order of each of the transmission control protocols is determined based on a network congestion control effect of the transmission control protocol under the network type and the network quality corresponding to the priority rule.
Example 7 provides the method of example 2, wherein obtaining network environment information, in accordance with one or more embodiments of the present disclosure, comprises:
and responding to a preset trigger operation of an application program, and acquiring the network environment information from a preset storage area, wherein the preset storage area is used for storing the network environment information obtained by periodic detection.
Example 8 provides, in accordance with one or more embodiments of the present disclosure, a transmission control protocol determination apparatus, comprising:
an acquisition module configured to acquire network environment information;
a first determining module configured to determine a target priority rule matching the network environment information from a plurality of priority rules, where the priority rule is used to reflect a priority order of transmission control protocols included in a first transmission control protocol list corresponding to the priority rule, where different priority rules correspond to different priority orders of transmission control protocols in the first transmission control protocol list, and congestion control algorithms of different transmission control protocols in the first transmission control protocol list are different;
a second determining module configured to determine a target transmission control protocol for the terminal device based on the target priority rule and a second transmission control protocol list; the second transmission control protocol list includes transmission control protocols supported by the terminal device.
Example 9 provides the apparatus of example 8, the second determination module 203 further configured to:
determining the transmission control protocols commonly included in the second transmission control protocol list and the first transmission control protocol list corresponding to the target priority rule as candidate transmission control protocols;
determining the candidate transmission control protocol with the highest priority in the first transmission protocol list as the target transmission control protocol.
Example 10 provides the apparatus of example 9, the second determination module 203 further configured to:
and under the condition that the second transmission control protocol list does not have the same transmission control protocol as the first transmission control protocol list corresponding to the target priority rule, determining the initial transmission control protocol set by the terminal equipment as the target transmission control protocol.
Example 11 provides the apparatus of example 10, according to one or more embodiments of the present disclosure, where the second transmission control protocol list includes transmission control protocols commonly supported by an operating system and a model of the terminal device.
Example 12 provides the apparatus of example 8, the network environment information reflecting at least network quality and network type, in accordance with one or more embodiments of the present disclosure.
Example 13 provides the apparatus of example 12, wherein the priority rules, the network qualities, and the network types are in one-to-one correspondence, and for any one of the priority rules, in the first transmission control protocol list corresponding to the priority rule, a priority order of each of the transmission control protocols is determined based on a network congestion control effect of the transmission control protocol under the network type and the network quality corresponding to the priority rule.
Example 14 provides the apparatus of example 9, the acquisition module further configured to:
and responding to a preset trigger operation of an application program, and acquiring the network environment information from a preset storage area, wherein the preset storage area is used for storing the network environment information obtained by periodic detection.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims (10)

1. A method for transmission control protocol determination, comprising:
acquiring network environment information;
determining a target priority rule matched with the network environment information from a plurality of priority rules, wherein the priority rules are used for reflecting the priority order of transmission control protocols included in a first transmission control protocol list corresponding to the priority rules, the priority orders of the transmission control protocols in the first transmission control protocol list corresponding to different priority rules are different, and congestion control algorithms of different transmission control protocols in the first transmission control protocol list are different;
determining a target transmission control protocol for the terminal equipment based on the target priority rule and the second transmission control protocol list; the second transmission control protocol list includes transmission control protocols supported by the terminal device.
2. The method of claim 1, wherein determining a target transmission control protocol for a terminal device based on the target priority rule and a second transmission control protocol list comprises:
determining the transmission control protocols commonly included in the second transmission control protocol list and the first transmission control protocol list corresponding to the target priority rule as candidate transmission control protocols;
determining the candidate transmission control protocol with the highest priority in the first transmission protocol list as the target transmission control protocol.
3. The method of claim 2, wherein determining a target transmission control protocol for a terminal device based on the target priority rule and a second transmission control protocol list comprises:
and under the condition that the second transmission control protocol list does not have the same transmission control protocol as the first transmission control protocol list corresponding to the target priority rule, determining the initial transmission control protocol set by the terminal equipment as the target transmission control protocol.
4. The method according to claim 3, wherein the second transmission control protocol list includes transmission control protocols commonly supported by an operating system and a model of the terminal device.
5. The method of claim 1, wherein the network environment information reflects at least network quality and network type.
6. The method of claim 5, wherein the priority rules, the network qualities and the network types are in one-to-one correspondence, and for any one of the priority rules, in the first transmission control protocol list corresponding to the priority rule, the priority order of each of the transmission control protocols is determined based on the network congestion control effect of the transmission control protocol under the network type and the network quality corresponding to the priority rule.
7. The method of claim 2, wherein the obtaining network environment information comprises:
and responding to a preset trigger operation of an application program, and acquiring the network environment information from a preset storage area, wherein the preset storage area is used for storing the network environment information obtained by periodic detection.
8. A transmission control protocol determining apparatus, comprising:
an acquisition module configured to acquire network environment information;
a first determining module configured to determine a target priority rule matching the network environment information from a plurality of priority rules, where the priority rule is used to reflect a priority order of transmission control protocols included in a first transmission control protocol list corresponding to the priority rule, where different priority rules correspond to different priority orders of transmission control protocols in the first transmission control protocol list, and congestion control algorithms of different transmission control protocols in the first transmission control protocol list are different;
a second determining module configured to determine a target transmission control protocol for the terminal device based on the target priority rule and a second transmission control protocol list; the second transmission control protocol list includes transmission control protocols supported by the terminal device.
9. A computer-readable medium, on which a computer program is stored, characterized in that the program, when being executed by processing means, carries out the steps of the method of any one of claims 1 to 7.
10. An electronic device, comprising:
a storage device having one or more computer programs stored thereon;
one or more processing devices for executing the one or more computer programs in the storage device to implement the steps of the method of any one of claims 1-7.
CN202111306950.3A 2021-11-05 2021-11-05 Transmission control protocol determining method and device, readable medium and electronic equipment Active CN114039926B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111306950.3A CN114039926B (en) 2021-11-05 2021-11-05 Transmission control protocol determining method and device, readable medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111306950.3A CN114039926B (en) 2021-11-05 2021-11-05 Transmission control protocol determining method and device, readable medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN114039926A true CN114039926A (en) 2022-02-11
CN114039926B CN114039926B (en) 2023-10-03

Family

ID=80143051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111306950.3A Active CN114039926B (en) 2021-11-05 2021-11-05 Transmission control protocol determining method and device, readable medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114039926B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114884823A (en) * 2022-04-29 2022-08-09 北京有竹居网络技术有限公司 Flow congestion control method and device, computer readable medium and electronic equipment

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070211633A1 (en) * 2006-03-13 2007-09-13 Microsoft Corporation Competitive and considerate congestion control
US20110096665A1 (en) * 2009-10-22 2011-04-28 Motorola, Inc. Methods and apparatus for controlling congestion in a communication network
CN102104908A (en) * 2011-01-18 2011-06-22 华为技术有限公司 Data transmission control method and equipment
CN102546531A (en) * 2010-12-14 2012-07-04 联芯科技有限公司 Data traffic control method and user terminal
US20120176903A1 (en) * 2008-08-28 2012-07-12 Frank Kastenholtz Non-uniform per-packet priority marker for use with adaptive protocols
CN103038652A (en) * 2010-05-25 2013-04-10 海德沃特合作I有限公司 Device-assisted services for protecting network capacity
US20140355623A1 (en) * 2013-06-03 2014-12-04 Futurewei Technologies, Inc. Transmission Control Protocol (TCP) Connection Control Parameter In-Band Signaling
CN105264845A (en) * 2014-05-08 2016-01-20 华为技术有限公司 Data transmission control node, communication system and data transmission management method
US20160094586A1 (en) * 2014-09-25 2016-03-31 Microsoft Corporation Media Session Between Network Endpoints
CN105681265A (en) * 2014-11-20 2016-06-15 华为软件技术有限公司 Unilateral transmission control protocol acceleration method and device
US20160255009A1 (en) * 2015-02-26 2016-09-01 Citrix Systems, Inc. System for bandwidth optimization with traffic priority determination
US20190182170A1 (en) * 2017-12-08 2019-06-13 Reniac, Inc. Systems and methods for congestion control in a network
US20200382991A1 (en) * 2018-01-18 2020-12-03 Samsung Electronics Co., Ltd. Method and an electronic device for dynamically controlling tcp congestion window
CN112422441A (en) * 2020-03-05 2021-02-26 上海哔哩哔哩科技有限公司 Congestion control method and system based on QUIC transmission protocol

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070211633A1 (en) * 2006-03-13 2007-09-13 Microsoft Corporation Competitive and considerate congestion control
US20120176903A1 (en) * 2008-08-28 2012-07-12 Frank Kastenholtz Non-uniform per-packet priority marker for use with adaptive protocols
US20110096665A1 (en) * 2009-10-22 2011-04-28 Motorola, Inc. Methods and apparatus for controlling congestion in a communication network
CN103038652A (en) * 2010-05-25 2013-04-10 海德沃特合作I有限公司 Device-assisted services for protecting network capacity
CN102546531A (en) * 2010-12-14 2012-07-04 联芯科技有限公司 Data traffic control method and user terminal
CN102104908A (en) * 2011-01-18 2011-06-22 华为技术有限公司 Data transmission control method and equipment
US20140355623A1 (en) * 2013-06-03 2014-12-04 Futurewei Technologies, Inc. Transmission Control Protocol (TCP) Connection Control Parameter In-Band Signaling
CN105264845A (en) * 2014-05-08 2016-01-20 华为技术有限公司 Data transmission control node, communication system and data transmission management method
US20160094586A1 (en) * 2014-09-25 2016-03-31 Microsoft Corporation Media Session Between Network Endpoints
CN105681265A (en) * 2014-11-20 2016-06-15 华为软件技术有限公司 Unilateral transmission control protocol acceleration method and device
US20160255009A1 (en) * 2015-02-26 2016-09-01 Citrix Systems, Inc. System for bandwidth optimization with traffic priority determination
US20190182170A1 (en) * 2017-12-08 2019-06-13 Reniac, Inc. Systems and methods for congestion control in a network
US20200382991A1 (en) * 2018-01-18 2020-12-03 Samsung Electronics Co., Ltd. Method and an electronic device for dynamically controlling tcp congestion window
CN112422441A (en) * 2020-03-05 2021-02-26 上海哔哩哔哩科技有限公司 Congestion control method and system based on QUIC transmission protocol

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114884823A (en) * 2022-04-29 2022-08-09 北京有竹居网络技术有限公司 Flow congestion control method and device, computer readable medium and electronic equipment
CN114884823B (en) * 2022-04-29 2024-03-22 北京有竹居网络技术有限公司 Flow congestion control method, device, computer readable medium and electronic equipment

Also Published As

Publication number Publication date
CN114039926B (en) 2023-10-03

Similar Documents

Publication Publication Date Title
US20220394316A1 (en) Message sending method and device, readable medium and electronic device
EP3706371A1 (en) Network quality measurement method and apparatus thereof
CN111294385B (en) Data transmission method and device, readable medium and electronic equipment
CN112039796B (en) Data packet transmission method and device, storage medium and electronic equipment
WO2020026018A1 (en) Method for downloading file, device, apparatus/terminal/ server, and storage medium
CN111930709B (en) Data storage method, apparatus, electronic device, and computer readable medium
CN111432001B (en) Method, apparatus, electronic device and computer readable medium for jumping scenes
CN113992967A (en) Screen projection data transmission method and device, electronic equipment and storage medium
US20210281640A1 (en) Method and apparatus for monitoring global failure in virtual gateway cluster
CN111314439A (en) Data sending method and device and electronic equipment
CN113286280A (en) Audio data processing method and device, electronic equipment and computer readable medium
CN114071544B (en) Network testing method and device and electronic equipment
CN114039926B (en) Transmission control protocol determining method and device, readable medium and electronic equipment
CN112929240A (en) Method, device, terminal and non-transitory storage medium for acquiring communication delay time
WO2023083367A1 (en) Method and apparatus for resuming loading of file in background, and storage medium and electronic device
CN111309497B (en) Information calling method and device, server, terminal and storage medium
CN112804768B (en) Method and device for processing communication connection, terminal and non-transitory storage medium
WO2023169261A1 (en) Data uploading method and apparatus, device, and medium
CN115550464B (en) System monitoring method based on industrial internet cloud platform, electronic equipment and medium
CN111274296B (en) Image data acquisition method and device, terminal and storage medium
CN114745276B (en) Switch bandwidth adjusting method and device, electronic equipment and computer readable medium
CN113535428B (en) Method, device, equipment and medium for processing request message and response message
CN117527648A (en) Bandwidth detection method, device, equipment and storage medium
CN117544575A (en) Network congestion response method, device, equipment and storage medium
CN117459470A (en) Code rate adjusting method, device, electronic equipment, medium and product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant