WO2020134949A1 - Procédé et appareil d'émission de demandes de session, dispositif électronique et support de stockage - Google Patents
Procédé et appareil d'émission de demandes de session, dispositif électronique et support de stockage Download PDFInfo
- Publication number
- WO2020134949A1 WO2020134949A1 PCT/CN2019/123391 CN2019123391W WO2020134949A1 WO 2020134949 A1 WO2020134949 A1 WO 2020134949A1 CN 2019123391 W CN2019123391 W CN 2019123391W WO 2020134949 A1 WO2020134949 A1 WO 2020134949A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- sessions
- session
- sending
- maximum number
- idle
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 238000012545 processing Methods 0.000 claims description 29
- 238000012790 confirmation Methods 0.000 claims description 11
- 238000001514 detection method Methods 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 4
- 238000002716 delivery method Methods 0.000 claims 1
- 230000005540 biological transmission Effects 0.000 description 11
- 230000006870 function Effects 0.000 description 11
- 230000008569 process Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
Definitions
- the present application relates to the field of communication technologies, and in particular, to a method, device, electronic device, and storage medium for sending session requests.
- the client may need to call multiple interfaces of the server to display a functional interface to display it. Therefore, the client needs to send multiple session requests corresponding to the above interfaces to the server, which causes the display of the client's functional interface to be completed The required time increases, so there is an urgent need for a way to increase the efficiency of the client to the server.
- This application refers to a method, device, electronic device, and storage medium for sending a session request, which are used to solve the technical problem that the number of sessions corresponding to the business function request in the related art causes the server to respond slowly, which affects the service quality of the business function.
- An embodiment of the present application provides a method for sending a session request, including the following steps: detecting whether the number of sessions to be sent by the client is greater than the current maximum number of sending sessions, where the current maximum number of sending sessions is less than or equal to The maximum number of sending sessions that can be carried by the client; when the number of sessions to be sent is greater than the current maximum number of sending sessions, add the excess sessions greater than the current maximum number of sending sessions to the waiting sending queue to wait; send the pending Sending non-excess sessions in the session, and detecting whether an idle session occurs; when the idle session is detected, and it is determined that the number of sessions of the idle session is less than the number of excess sessions of the excess session, the excess session After merging, a merge session is generated, and the merge session is sent through the idle session.
- the session request sending method of the embodiment of the present application detects whether the number of sessions to be sent by the client is greater than the current maximum number of sending sessions, where the current maximum number of sending sessions is less than or equal to the maximum number of client-bearable sending sessions, when the number of sessions to be sent is greater than the current When the maximum number of sending sessions, add the excess sessions greater than the current maximum number of sending sessions to the waiting sending queue to wait, and then, send non-redundant sessions, and detect whether there is an idle session, when an idle session is detected, and determine the number of idle sessions After the number of redundant sessions is less than the redundant sessions, the redundant sessions are merged to generate a merged session, and the merged session is sent through the idle session.
- the sessions to be sent can be merged based on the current idle session, which improves the efficiency of session sending, and the current maximum number of sending sessions is less than the maximum bearable sending session. Sessions are merged, which improves the collision rate of merged sessions and further improves the efficiency of session sending.
- the method for sending a session request further includes the following additional technical features:
- before the detecting whether the number of sessions to be sent by the client is greater than the current maximum number of sending sessions it includes: acquiring the excess of the excess sessions in the queue waiting to be sent Number of sessions; when the number of excess sessions is less than or equal to the first threshold, the current maximum number of sending sessions is reduced to the first value.
- the method further includes: when the number of redundant sessions is greater than a second threshold, calculating a difference between the number of redundant sessions and the first threshold, and determining the difference A corresponding session growth value, and summing the session growth value and the first value to obtain a second value, wherein the second threshold is greater than the first threshold; when the second value is less than or equal to the When the maximum number of bearable sending sessions is set, the current maximum number of sending sessions is set to the second value; when the second value is greater than the maximum number of bearable sending sessions, the current maximum number of sending sessions is set The maximum number of bearable sending sessions.
- the sending of the non-excessive session in the session to be sent and detecting whether an idle session occurs includes sending the non-excessive session and detecting whether it is received The session receives a confirmation message.
- the merging the redundant sessions to generate a merge session, and sending the merge session through the idle session includes: : Detect whether the number of redundant sessions of the redundant sessions is greater than a preset number; when the number of redundant sessions is greater than the preset number, merge the preset number of redundant sessions into a combined session; The one-way merge session is sent through the idle session, and the remaining excess sessions in the number of excess sessions are left in the sending queue to continue to wait.
- the method further includes: when the number of redundant sessions is not greater than the preset number At this time, all the redundant sessions are merged into a merged session, and the merged session is sent through the idle session.
- An embodiment of another aspect of the present application provides a session request sending apparatus, including: a detection module, configured to detect whether the number of sessions to be sent by a client is greater than the current maximum number of sending sessions, where the current maximum sending session The number is less than or equal to the maximum number of bearable sending sessions of the client; the session waiting processing module is used to: when the number of sessions to be sent is greater than the current maximum sending session number, the excess session will be greater than the current maximum sending session number Join the waiting to send queue to wait; the session sending processing module is used to send the non-excessive sessions in the session to be sent, and detects whether there is an idle session; the session sending processing module is also used to detect when the After an idle session, and determining that the number of sessions of the idle session is less than the number of redundant sessions of the redundant session, merge the redundant sessions to generate a merged session, and send the merged session through the idle session.
- a detection module configured to detect whether the number of sessions to be sent by a client is greater than the current maximum number of sending
- the session request sending device of the embodiment of the present application detects whether the number of sessions to be sent by the client is greater than the current maximum number of sending sessions, where the current maximum number of sending sessions is less than or equal to the maximum number of client-bearable sending sessions, when the number of sessions to be sent is greater than the current When the maximum number of sending sessions, add the excess sessions greater than the current maximum number of sending sessions to the waiting sending queue to wait, and then, send non-redundant sessions, and detect whether there is an idle session, when an idle session is detected, and determine the number of idle sessions After the number of redundant sessions is less than the redundant sessions, the redundant sessions are merged to generate a merged session, and the merged session is sent through the idle session.
- the sessions to be sent can be merged based on the current idle session, which improves the session sending efficiency, and when the current maximum number of sent sessions is less than the maximum bearable send session, the session merge is improved
- the collision rate further improves the efficiency of session transmission.
- the apparatus for sending a session request further includes the following additional technical features:
- the method further includes: an obtaining module, configured to obtain the number of unnecessary sessions of the redundant sessions waiting in the sending queue; a sending window setting module, configured to use when the number of redundant sessions is less than When it is equal to the first threshold, the current maximum number of sending sessions is reduced to the first value.
- the sending window setting module is further configured to: when the number of redundant sessions is greater than a second threshold, calculate the difference between the number of redundant sessions and the first threshold Value, determine the session growth value corresponding to the difference, and sum the session growth value and the first value to obtain a second value, where the second threshold is greater than the first threshold; when When the second value is less than or equal to the maximum number of bearable sending sessions, the current maximum number of sending sessions is set to the second value; when the second value is greater than the maximum number of bearable sending sessions, the The current maximum number of sending sessions is set to the maximum number of bearable sending sessions.
- the session sending processing module is further configured to send the non-redundant session and detect whether a session reception confirmation message is received.
- the session sending processing module when there is one idle session, includes: a detection unit, configured to detect whether the number of redundant sessions of the redundant sessions is greater than a preset number Merging unit, for merging the preset number of surplus sessions into a merged session when the number of surplus sessions is greater than the preset number; session waiting processing unit, for merging the one session The session is sent through the idle session, and the remaining excess sessions in the number of excess sessions are left in the sending queue to continue to wait.
- the merging unit is further configured to: when the number of redundant sessions is not greater than the preset number, merge all the redundant sessions into a combined session And send the one-way merged session through the idle session.
- An embodiment of another aspect of the present application provides an electronic device, including a processor and a memory; wherein, the processor runs an executable program code corresponding to the executable program code by reading the executable program code stored in the memory A program for implementing the method for sending a session request as described in the above embodiment.
- Another embodiment of the present application provides a non-transitory computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the session request sending method as described in the above embodiment is implemented.
- FIG. 1 is a flowchart of a session request sending method according to an embodiment of the present application
- FIG. 2 is a schematic diagram of an application scenario of a method for sending a session request according to an embodiment of the present application
- FIG. 3 is a schematic diagram of an application scenario of a method for sending a session request according to another embodiment of the present application
- FIG. 4 is a schematic structural diagram of an apparatus for sending a session request according to an embodiment of the present application
- FIG. 5 is a schematic structural diagram of a device for sending a session request according to another embodiment of the present application.
- FIG. 6 is a schematic structural diagram of a session request sending apparatus according to yet another embodiment of the present application.
- FIG. 7 shows a block diagram of an exemplary electronic device suitable for implementing embodiments of the present application.
- the session request sending method, apparatus, electronic device, and storage medium of embodiments of the present application are described below with reference to the drawings.
- the execution body of the session request sending method according to the embodiment of the present application is applicable to any client that sends a session request to a server.
- this application proposes a method of combining and sending session requests, and in this method, dynamic adjustment is used to send The size of the window of the session request improves the collision rate of the session merge and greatly improves the efficiency of session sending.
- FIG. 1 is a flowchart of a session request sending method according to an embodiment of the present application. As shown in FIG. 1, the method includes:
- Step 101 Detect whether the number of sessions to be sent by the client is greater than the current maximum number of sending sessions, where the current maximum number of sending sessions is less than or equal to the maximum number of bearable sending sessions of the client.
- the maximum number of bearable sending sessions is limited by the client's traffic and processing capabilities. Within the range of the client's traffic and processor capacity, the maximum number of sendable sessions is the maximum bearable sending session number.
- the current maximum number of sending sessions can be understood as the width of the window from which the current client sends a session request to the server.
- the maximum number of sending sessions is less than the maximum number of bearable sending sessions, the number of sending sessions will increase due to the narrowing of the sending window. In this way, the collision rate of the session merger can be improved, and the efficiency of session transmission can be further improved.
- the width of the current maximum number of sending sessions can also be dynamically adjusted based on the sliding window mechanism.
- the first value can be understood as the minimum value of the number of sent sessions according to the comprehensive consideration of the client's processing capability and sending efficiency.
- the current maximum number of sending sessions is 8, when the first value is 5, when the number of excess sessions detected is less than 3, in order to avoid waste of resources, etc., the current maximum sending can be sent The number of sessions is reduced to 5.
- the difference between the number of excess sessions and the first threshold is calculated, the session growth value corresponding to the difference is determined, and the session growth value is summed with the first value to obtain
- the second value that is, when the number of excess sessions gradually increases, dynamically increases the width of the sending window based on the first value, to avoid more sessions to be sent, resulting in lower efficiency of sending sessions.
- the session growth value corresponding to the difference can be calibrated according to the experimental data, for example, a quarter of the difference is the corresponding session growth value, and for example, the numerical range corresponding to the difference determines the session growth corresponding to the numerical range
- the difference can be positive or negative. When the difference is negative, the transmission window can be reduced, which is also applicable.
- the width of the sending window when increasing the width of the sending window, the width of the sending window must not exceed the maximum number of bearable sending sessions.
- the current maximum number of sending sessions is set It is the second value.
- the second value is greater than the maximum number of bearable sending sessions, the current maximum number of sending sessions is set to the maximum number of bearable sending sessions.
- the second threshold is greater than the first threshold, thereby avoiding unnecessary widening of the transmission window caused by the number of excess sessions being less than the first value.
- the current maximum number of sending sessions is 7
- the maximum number of bearable sending sessions is 9, and the first value is 5, when it is detected that the number of excess sessions is 12 greater than 4, in order to improve the session Sending efficiency, etc.
- calculate the difference between the number of excess sessions and the first threshold the difference is 8
- determine the session growth corresponding to the difference is 3
- the second value is less than the maximum number of bearable sending sessions 9, so the current maximum number of sending sessions is adjusted to 9.
- Step 102 When the number of sessions to be sent is greater than the current maximum number of sending sessions, add the excess sessions that are greater than the current maximum number of sending sessions to the waiting sending queue to wait.
- Step 103 Send a non-redundant session among the sessions to be sent, and detect whether an idle session occurs.
- the server receives the confirmation message of the session feedback for the transmitted session feedback, thereby determining the timing of sending the waiting session based on the confirmation of the idle session, avoiding session blocking, and ensuring the order of sending the session.
- Step 104 when an idle session is detected and it is determined that the number of idle sessions is less than the number of redundant sessions, the redundant sessions are merged to generate a merged session, and the merged session is sent through the idle session.
- the redundant sessions may be merged to generate a merged session, and the merged session is sent through the idle session.
- the maximum number of merged sessions can also be set according to the processing capabilities of the client, etc., to ensure that the number of redundant sessions merged into a merged session is not greater than the maximum number of merged sessions.
- redundant sessions can be merged according to the number of idle sessions.
- a session reception confirmation message when a session reception confirmation message is received, it indicates that there is currently one idle session, thereby detecting redundant sessions
- the number is greater than the preset number, and the preset number is the maximum number of merged sessions mentioned above.
- the preset number of excess sessions is merged into One-way merge session, send the one-way merge session through the idle session, and leave the rest of the excess sessions in the sending queue to continue to wait.
- the excess sessions 7, 8, 9, 10, 11 and 12 are greater than the preset number 3 corresponding to the maximum number of mergeable sessions, thus, The extra sessions 7-9 are merged into a merged session for transmission, and sessions 10-12 continue to wait for the next idle session.
- more than one session reception confirmation message may be received at the same time.
- the excess sessions can be randomly assigned based on the number of idle sessions. The number of sending idle sessions corresponding to the sessions and the number of merged sessions in the merged session. Of course, the number of merged sessions cannot exceed the preset number.
- the excess sessions 7, 8, 9, 10, and 11 are greater than the preset number 3 corresponding to the maximum number of mergeable sessions.
- the session request sending method detects whether the number of sessions to be sent by the client is greater than the current maximum number of sending sessions, where the current maximum number of sending sessions is less than or equal to the maximum number of client-bearable sending sessions when the session is to be sent
- the number is greater than the current maximum number of sending sessions
- the redundant sessions are merged to generate a merged session, and the merged session is sent through the idle session.
- the sessions to be sent can be merged based on the current idle session, which improves the session sending efficiency, and when the current maximum number of sent sessions is less than the maximum bearable send session, the session merge is improved
- the collision rate further improves the efficiency of session transmission.
- an embodiment of the present application proposes a device for sending a session request.
- the session request sending apparatus includes: a detection module 10, a session waiting processing module 20, and a session sending processing module 30, wherein,
- the detection module 10 is configured to detect whether the number of sessions to be sent by the client is greater than the current maximum number of sending sessions, where the current maximum number of sending sessions is less than or equal to the maximum number of bearable sending sessions of the client.
- the session waiting processing module 20 is configured to add an excess session greater than the current maximum sending session number to the waiting sending queue to wait when the number of sessions to be sent is greater than the current maximum sending session number.
- the session sending processing module 30 is used to send non-redundant sessions in the session to be sent, and detect whether there is an idle session.
- the session sending processing module 30 is also used to detect the idle session and determine that the number of idle sessions is less than the number of redundant sessions, merge the redundant sessions to generate a merged session, and send the merged session through the idle session.
- the session sending processing module 30 is also used to send non-redundant sessions and detect whether a session reception confirmation message is received.
- the device further includes: an acquisition module 40 and a transmission window setting module 50, wherein,
- the obtaining module 40 is used to obtain the number of extra sessions waiting for the extra sessions in the sending queue.
- the sending window setting module 50 is configured to reduce the current maximum number of sending sessions to the first value when the number of excess sessions is less than or equal to the first threshold.
- the sending window setting module 50 is also used to:
- the difference between the number of excess sessions and the first threshold is calculated, the session growth value corresponding to the difference is determined, and the second value is obtained by summing the session growth value and the first value, where, The second threshold is greater than the first threshold;
- the current maximum number of sending sessions is set to the second value
- the current maximum number of sending sessions is set to the maximum number of bearable sending sessions.
- the session sending and processing module 30 when there is one idle session, the session sending and processing module 30 further includes a detection unit 31, a merging unit 32, and a session waiting process Unit 33, where,
- the detection unit 31 is configured to detect whether the number of redundant sessions is greater than a preset number.
- the merging unit 32 is configured to merge the preset number of surplus sessions into a merged session when the number of surplus sessions is greater than the preset number.
- the session waiting processing unit 33 is configured to send the one-way merged session through the idle session, and leave the remaining excess sessions in the number of excess sessions in the sending queue to continue to wait.
- the merging unit 32 is also used to:
- the session request sending device of the embodiment of the present application detects whether the number of sessions to be sent by the client is greater than the current maximum number of sending sessions, where the current maximum number of sending sessions is less than or equal to the maximum number of client-bearable sending sessions when the session is to be sent When the number is greater than the current maximum number of sending sessions, add the excess sessions greater than the current maximum number of sending sessions to the waiting sending queue to wait, and then, send non-redundant sessions, and detect whether there is an idle session, when an idle session is detected, and determine the idle session After the number of sessions is less than the number of redundant sessions, the redundant sessions are merged to generate a merged session, and the merged session is sent through the idle session.
- the sessions to be sent can be merged based on the current idle session, which improves the session sending efficiency, and when the current maximum number of sent sessions is less than the maximum bearable send session, the session merge is improved
- the collision rate further improves the efficiency of session transmission.
- the embodiments of the present application also provide an electronic device, including a processor and a memory;
- the processor runs the program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the session request sending method as described in the above embodiment.
- FIG. 7 shows a block diagram of an exemplary electronic device suitable for implementing embodiments of the present application.
- the electronic device 12 shown in FIG. 7 is only an example, and should not bring any limitation to the functions and use scope of the embodiments of the present application.
- the electronic device 12 is represented in the form of a general-purpose computing device.
- the components of the electronic device 12 may include, but are not limited to, one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).
- the bus 18 represents one or more of several types of bus structures, including a memory bus or a memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures.
- these architectures include but are not limited to Industry Standard Architecture (Industry Standard Architecture; hereinafter referred to as ISA) bus, Micro Channel Architecture (Micro Channel Architecture (hereinafter referred to as MAC) bus, enhanced ISA bus, video electronics Standard Association (Video Electronics Standards Association; hereinafter referred to as: VESA) local bus and peripheral component interconnection (Peripheral Component Interconnection; hereinafter referred to as: PCI) bus.
- Industry Standard Architecture Industry Standard Architecture
- MAC Micro Channel Architecture
- VESA Video Electronics Standards Association
- PCI peripheral component interconnection
- the electronic device 12 typically includes a variety of computer system readable media. These media may be any available media that can be accessed by the electronic device 12, including volatile and nonvolatile media, removable and non-removable media.
- the memory 28 may include a computer system readable medium in the form of volatile memory, such as random access memory (Random Access Memory; hereinafter referred to as RAM) 30 and/or cache memory 32.
- RAM random access memory
- the electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media.
- the storage system 34 may be used to read and write non-removable, non-volatile magnetic media (not shown in FIG. 7 and is commonly referred to as a "hard disk drive").
- a disk drive for reading and writing to a removable non-volatile disk for example, "floppy disk"
- a removable non-volatile optical disk for example: compact disk read-only memory (Compact) Disc Read Only Memory (hereinafter referred to as CD-ROM), digital multi-function read-only disc (Digital Video Disc Read Only (hereinafter referred to as DVD-ROM) or other optical media) read and write optical disc drive.
- CD-ROM compact disk read-only memory
- DVD-ROM digital multi-function read-only disc
- each drive can be connected to the bus 18 via one or more data media interfaces.
- the memory 28 may include at least one program product having a set (eg, at least one) of program modules, which are configured to perform the functions of the embodiments of the present application.
- a program/utility tool 40 having a set of (at least one) program modules 42 may be stored in, for example, the memory 28.
- Such program modules 42 include but are not limited to an operating system, one or more application programs, other program modules, and program data Each of these examples or some combination may include the implementation of a network environment.
- the program module 42 generally performs the functions and/or methods in the embodiments described in this application.
- the electronic device 12 may also communicate with one or more external devices 14 (eg, keyboard, pointing device, display 24, etc.), and may also communicate with one or more devices that enable a user to interact with the electronic device 12, and/or with This enables the electronic device 12 to communicate with any device (such as a network card, modem, etc.) that communicates with one or more other computing devices. This communication can be performed through an input/output (I/O) interface 22.
- the electronic device 12 can also be connected to one or more networks (such as a local area network (Local Area Network; hereinafter referred to as LAN), wide area network (Wide Area Network; hereinafter referred to as WAN) and/or a public network such as the Internet through the network adapter 20 ) Communication.
- networks such as a local area network (Local Area Network; hereinafter referred to as LAN), wide area network (Wide Area Network; hereinafter referred to as WAN) and/or a public network such as the Internet through the network adapter 20
- the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be understood that although not shown in the figure, other hardware and/or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive And data backup storage system.
- the processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, to implement the method mentioned in the foregoing embodiment.
- the present application also proposes a non-transitory computer storage medium.
- the storage medium is used to store an application program, and the application program is used to execute the session request sending method of the embodiment of the present application at runtime, wherein the session request sending method includes:
- the redundant sessions are merged to generate a merged session, and the merged session is passed through the idle session Send it.
- the storage medium of the embodiment of the present application detects whether the number of sessions to be sent by the client is greater than the current maximum number of sending sessions, where the current maximum number of sending sessions is less than or equal to the maximum number of client-bearable sending sessions, when the number of sessions to be sent is greater than the current maximum sending When the number of sessions, add the excess sessions greater than the current maximum number of sending sessions to the waiting queue, and then send non-redundant sessions, and detect whether there are idle sessions. When an idle session is detected, and determine that the number of idle sessions is less than the excess After the number of redundant sessions of the session, the redundant sessions are merged to generate a merged session, and the merged session is sent through the idle session.
- the sessions to be sent can be merged based on the current idle session, which improves the session sending efficiency, and when the current maximum number of sent sessions is less than the maximum bearable send session, the session merge is improved
- the collision rate further improves the efficiency of session transmission.
- the present application also proposes an application program, wherein the application program is used to execute the session request sending method of the embodiment of the present application at runtime, wherein the session request sending method includes:
- the redundant sessions are merged to generate a merged session, and the merged session is passed through the idle session Send it.
- the application in the embodiment of the present application detects whether the number of sessions to be sent by the client is greater than the current maximum number of sending sessions, where the current maximum number of sending sessions is less than or equal to the maximum number of client-bearable sending sessions, when the number of sessions to be sent is greater than the current maximum sending When the number of sessions, add the excess sessions greater than the current maximum number of sending sessions to the waiting queue, and then send non-redundant sessions, and detect whether there are idle sessions. When an idle session is detected, and determine that the number of idle sessions is less than the excess After the number of redundant sessions of the session, the redundant sessions are merged to generate a merged session, and the merged session is sent through the idle session.
- the sessions to be sent can be merged based on the current idle session, which improves the session sending efficiency, and when the current maximum number of sent sessions is less than the maximum bearable send session, the session merge is improved
- the collision rate further improves the efficiency of session transmission.
- the description is relatively simple.
- the related parts refer to the description of the method embodiments.
- each part of the present application may be implemented by hardware, software, firmware, or a combination thereof.
- multiple steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system.
- a logic gate circuit for implementing a logic function on a data signal
- PGA programmable gate arrays
- FPGA field programmable gate arrays
- the disclosed device may be implemented in other ways.
- the device embodiments described above are schematic.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or integrated To another system, or some features can be ignored, or not implemented.
- the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be 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.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or software function unit.
- the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
- the technical solution of the present application may be essentially or part of the contribution to the existing technology or all or part of the technical solution may be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application.
- the aforementioned storage media include: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program code .
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
La présente invention concerne un procédé et un appareil d'émission de demandes de session, un dispositif électronique et un support de stockage. Le procédé comporte les étapes consistant à: détecter si le nombre de sessions à émettre par un client est supérieur au nombre maximal de sessions actuellement émises; si le nombre de sessions à émettre est supérieur au nombre maximal de sessions actuellement émises, ajouter des sessions supplémentaires dans une file d'attente d'émission; émettre les sessions non supplémentaires, et détecter s'il existe des sessions inactives; lorsque des sessions inactives sont détectées, et qu'il est déterminé que le nombre des sessions inactives est inférieur au nombre des sessions supplémentaires, combiner les sessions supplémentaires pour générer une session combinée, et émettre la session combinée au moyen d'une session inactive. Ainsi, lorsqu'il existe une pluralité de demandes de session, les sessions à émettre peuvent être combinées sur la base de la situation de sessions inactives actuelles, ce qui améliore le rendement d'émission de sessions; et lorsque le nombre maximal de sessions actuellement émises est inférieur au nombre maximal de sessions d'émission admissibles, les sessions sont combinées et émises, ce qui améliore le taux de collisions de la combinaison de sessions, et améliore davantage le rendement d'émission de sessions.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811639677.4A CN109743386B (zh) | 2018-12-29 | 2018-12-29 | 会话请求发送方法、装置、电子设备和存储介质 |
CN201811639677.4 | 2018-12-29 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020134949A1 true WO2020134949A1 (fr) | 2020-07-02 |
Family
ID=66362451
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/123391 WO2020134949A1 (fr) | 2018-12-29 | 2019-12-05 | Procédé et appareil d'émission de demandes de session, dispositif électronique et support de stockage |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109743386B (fr) |
WO (1) | WO2020134949A1 (fr) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113068177A (zh) * | 2021-03-23 | 2021-07-02 | 中国联合网络通信集团有限公司 | 数据传输控制方法、装置及终端设备 |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109743386B (zh) * | 2018-12-29 | 2021-11-02 | 卓米私人有限公司 | 会话请求发送方法、装置、电子设备和存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101188556A (zh) * | 2007-10-16 | 2008-05-28 | 武汉烽火网络有限责任公司 | 共享存储交换结构中基于滑动窗口的高效组播转发方法 |
US20160285711A1 (en) * | 2014-11-03 | 2016-09-29 | Google Inc. | Data Flow Windowing and Triggering |
CN106657197A (zh) * | 2015-11-02 | 2017-05-10 | 腾讯科技(深圳)有限公司 | 文件上传的方法和装置 |
CN109743386A (zh) * | 2018-12-29 | 2019-05-10 | 乐蜜有限公司 | 会话请求发送方法、装置、电子设备和存储介质 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7526552B2 (en) * | 2005-08-25 | 2009-04-28 | International Business Machines Corporation | Stable, minimal skew resource flow control technique in large scale enterprise storage systems |
CN103379040B (zh) * | 2012-04-24 | 2016-08-31 | 阿里巴巴集团控股有限公司 | 一种高并发系统中控制并发数的装置和方法 |
CN105516262B (zh) * | 2015-11-27 | 2019-01-25 | 深圳市酷士多网络科技有限公司 | 应用程序远程操控方法及系统 |
CN107463563B (zh) * | 2016-06-02 | 2020-12-08 | 腾讯科技(深圳)有限公司 | 一种浏览器的信息服务处理方法及装置 |
CN108073580A (zh) * | 2016-11-08 | 2018-05-25 | 北京国双科技有限公司 | 一种基于页面并发请求的处理方法及装置 |
-
2018
- 2018-12-29 CN CN201811639677.4A patent/CN109743386B/zh active Active
-
2019
- 2019-12-05 WO PCT/CN2019/123391 patent/WO2020134949A1/fr active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101188556A (zh) * | 2007-10-16 | 2008-05-28 | 武汉烽火网络有限责任公司 | 共享存储交换结构中基于滑动窗口的高效组播转发方法 |
US20160285711A1 (en) * | 2014-11-03 | 2016-09-29 | Google Inc. | Data Flow Windowing and Triggering |
CN106657197A (zh) * | 2015-11-02 | 2017-05-10 | 腾讯科技(深圳)有限公司 | 文件上传的方法和装置 |
CN109743386A (zh) * | 2018-12-29 | 2019-05-10 | 乐蜜有限公司 | 会话请求发送方法、装置、电子设备和存储介质 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113068177A (zh) * | 2021-03-23 | 2021-07-02 | 中国联合网络通信集团有限公司 | 数据传输控制方法、装置及终端设备 |
CN113068177B (zh) * | 2021-03-23 | 2023-01-10 | 中国联合网络通信集团有限公司 | 数据传输控制方法、装置及终端设备 |
Also Published As
Publication number | Publication date |
---|---|
CN109743386A (zh) | 2019-05-10 |
CN109743386B (zh) | 2021-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10764132B2 (en) | Scale-out association method and apparatus, and system | |
WO2019128535A1 (fr) | Procédé et dispositif de gestion de messages, et support de stockage | |
WO2020199792A1 (fr) | Procédé et appareil de communication, support lisible par ordinateur et dispositif électronique | |
JP5710779B2 (ja) | 非同期仮想マシン複製 | |
EP3577952A1 (fr) | Procédé et système de sélection d'une fonction de gestion d'accès et de mobilité dans un environnement de réseau d'accès | |
WO2021057128A1 (fr) | Procédé et dispositif de communication à base de nf et support de stockage | |
WO2019228340A1 (fr) | Procédé et appareil d'optimisation de programme, terminal et support de stockage | |
WO2019047843A1 (fr) | Procédé et dispositif de transmission de demande de traitement de données | |
WO2019232927A1 (fr) | Procédé et appareil de régulation de flux de suppression de données distribuées, dispositif électronique, et support de stockage | |
WO2021017771A1 (fr) | Procédé de traitement de demande de service et dispositif associé | |
WO2020134949A1 (fr) | Procédé et appareil d'émission de demandes de session, dispositif électronique et support de stockage | |
WO2021000696A1 (fr) | Procédé et dispositif d'ajout d'ami | |
WO2022257425A1 (fr) | Procédé et appareil de commande de vitesse de transmission, dispositif électronique et support de stockage lisible | |
WO2021184551A1 (fr) | Procédé et appareil de communication basés sur une pluralité de réseaux, dispositif électronique et support de stockage | |
WO2021238404A1 (fr) | Procédé et appareil de commutation de carte de données, terminal et support de stockage | |
CN112333282B (zh) | 一种基于混合云的服务提供方法、装置、介质及电子设备 | |
WO2023035670A1 (fr) | Procédé et appareil de commande pour la communication entre des conteneurs | |
WO2019047708A1 (fr) | Procédé de configuration de ressource et produit associé | |
KR20210083222A (ko) | 음성 데이터 처리 방법, 장치, 기기 및 저장매체 | |
JP2017215966A (ja) | 記憶デバイスにおける性能変動を制限するための技術 | |
US9448827B1 (en) | Stub domain for request servicing | |
WO2019136821A1 (fr) | Procédé de sélection de réseau et appareil de terminal, dispositif informatique et support de stockage | |
WO2021012795A1 (fr) | Procédé et appareil de planification de nœud de réseau, dispositif électronique et support d'informations | |
WO2021148047A1 (fr) | Procédé et système pour traiter des csi de cellule non de desserte, dispositif électronique, et support | |
CN110620721A (zh) | 一种网关设备、应用方法和业务系统 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19905102 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19905102 Country of ref document: EP Kind code of ref document: A1 |