CN110351319A - A kind of request message transmission method, apparatus and transmission device - Google Patents

A kind of request message transmission method, apparatus and transmission device Download PDF

Info

Publication number
CN110351319A
CN110351319A CN201810301185.8A CN201810301185A CN110351319A CN 110351319 A CN110351319 A CN 110351319A CN 201810301185 A CN201810301185 A CN 201810301185A CN 110351319 A CN110351319 A CN 110351319A
Authority
CN
China
Prior art keywords
connection
http
weight
request message
open state
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
CN201810301185.8A
Other languages
Chinese (zh)
Other versions
CN110351319B (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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201810301185.8A priority Critical patent/CN110351319B/en
Publication of CN110351319A publication Critical patent/CN110351319A/en
Application granted granted Critical
Publication of CN110351319B publication Critical patent/CN110351319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/142Managing session states for stateless protocols; Signalling session states; State transitions; Keeping-state mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions

Abstract

The present invention provides a kind of request message transmission method, apparatus and transmission devices, wherein request message transmission method includes: that target connection is determined from established hypertext transfer protocol HTTP/2 connection according to weight;Transfer request message is connected using the target;Wherein, weight represents the probability that HTTP/2 connection is targeted connection.This programme from established hypertext transfer protocol HTTP/2 connection by determining target connection according to weight (weight represents the probability that HTTP/2 connection is targeted connection);Transfer request message is connected using the target;So that the stream ID of concurrent HTTP/2 connection will not run out simultaneously, the accurate delivery request message during multiple connections survival can be realized, while avoiding the connection possible service delay problem of handover operation.

Description

A kind of request message transmission method, apparatus and transmission device
Technical field
The present invention relates to field of communication technology, a kind of request message transmission method, apparatus and transmission device are particularly related to.
Background technique
There is the quantity limitation of stream in hypertext transfer protocol HTTP/2 basic agreement, it is difficult to meet 5G core network signalling need It asks:
(1) HTTP/2 agreement (RFC7540) defines stream: one between client and server An independence in HTTP/2 connection, two-way Frame switch sequence.The characteristics of HTTP flows: a HTTP/2 connection can wrap simultaneously Stream containing a plurality of opening;Stream can be used by the unilateral side client and server, or shared;Stream can be closed by either side;Stream Interior frame is in receiving end sequential processes.
(2) stream ID (mark): being identified with an integer, is distributed when initialization flow by endpoint.Stream ID is one 31 integers, the stream that client is initiated must use odd number stream ID, and stream 0 is used for HTTP/1.1 liter for connecting control message, stream 1 Grade;So the quantity for the stream that can be used is 2 if only one NF is as client between two NF (network functional entity) ^31/2=1073741824.Each HTTP request and response can consume a stream, this stream is turned off after the completion of interaction ?.Stream ID after use cannot reuse, and after client does not have available stream ID, can establish a new connection and use newly Stream.ID number of the stream ID newly enabled centainly than the stream of all openings (enabled stream) is big.It follows that stream ID is incremental It uses.
(3) there is limitation in the quantity of the stream of HTTP/2 connection, it is difficult to meet 5G core network signalling demand: not support at present The multiple HTTP requests of interaction and response on one stream.After stream is closed, stream ID cannot be reused.5GC NF is (in 5G core net Network functional entity) between request and response message amount it is larger, it is assumed that 1000 session/seconds, 1 HTTP/2 connection it is complete Portion can will be used up with odd number stream in 12 days.HTTP/2 connection must be re-established.Rebuilding HTTP/2 connection can bring connection to build Prolong immediately, existing on service delay influences.
In view of the above-mentioned problems, standard there is no solution;There is a kind of existing scheme are as follows: stream ID is waited to use up and close connection After re-establish a HTTP/2 connection may be too late.On NF configure a stream ID thresholding, reach thresholding when, client to Server establishes a new HTTP/2 connection, keeps preparation state, and the stream ID for previous HTTP/2 connection passes after using up Send signaling message.
But this scheme proposition is dynamically to establish the mode of HTTP/2 connection, and the HTTP/2 between NF connects Connecing quantity is dynamic change, needs to define the dynamic relationship of HTTP/2 connection, connection management is complicated, and needs to safeguard stream ID door Limit.Not up to stream ID thresholding when, there are a HTTP/2 connections;Reach stream ID thresholding, but original HTTP/2 connection still has available stream ID, there are two HTTP/2 connections.In addition, also how connection is selected without defining during two connections are survived, and The time point of soft handover.
This results in the transmission that request message can not be accurately realized during multiple connection survivals.
Summary of the invention
The purpose of the present invention is to provide a kind of request message transmission method, apparatus and transmission devices, solve the prior art In multiple connections survival during can not accurate delivery request message the problem of.
In order to solve the above-mentioned technical problem, the embodiment of the present invention provides a kind of request message transmission method, comprising:
According to weight, target connection is determined from established hypertext transfer protocol HTTP/2 connection;
Transfer request message is connected using the target;
Wherein, weight represents the probability that HTTP/2 connection is targeted connection.
Optionally, according to weight, determine that target connects it from established hypertext transfer protocol HTTP/2 connection Before, the request message transmission method further include:
Multiple HTTP/2 connections are created between network functional entity.
Optionally, described the step of multiple HTTP/2 connections are created between network functional entity, includes:
Transport layer between network functional entity establishes multiple transport layer connections;
Application layer on transport layer is based on each transport layer connection creation one being able to use in the open state A HTTP/2 connection, the HTTP/2 connection after creation are in the open state.
Optionally, according to weight, determine that target connects it from established hypertext transfer protocol HTTP/2 connection Before, the request message transmission method further include:
For it is established it is in the open state be currently able to using each HTTP/2 connection weight is set.
Optionally, it is described for it is established it is in the open state be currently able to using each HTTP/2 connection setting weigh Weight step include:
According to it is established it is in the open state be currently able to using HTTP/2 connection quantity or established place In opening state be currently able to using each HTTP/2 connection stream depletion rate, be arranged it is established in the open state Be currently able to using each HTTP/2 connection weight;Wherein, the corresponding power of the stream faster HTTP/2 connection of depletion rate Weight is higher.
Optionally, it is described for it is established it is in the open state be currently able to using each HTTP/2 connection setting weigh Weight step include:
For it is established it is in the open state be currently able to using each HTTP/2 connection be randomly assigned weight.
Optionally, after using target connection transfer request message, the request message transmission method further include:
After the HTTP/2 traffic identifier in target connection is used up, the target connection is closed;
According to weight, from it is in the open state be currently able to using HTTP/2 connection in, determine that next target connects Tap into the transmission of row request message;
Wherein, it is described it is in the open state be currently able to using HTTP/2 connection include established in open shape State be currently able to using HTTP/2 connection in current energy in the open state in addition to pent target connection Other HTTP/2 connections enough used.
Optionally, according to weight, from it is in the open state be currently able to using HTTP/2 connection in, determine next Before a target connection makes requests the transmission of message, the request message transmission method further include:
Update the weight of other HTTP/2 connections;
It is described according to weight, from it is in the open state be currently able to using HTTP/2 connection in, determine next mesh Marking the step of connection makes requests the transmission of message includes:
According to updated weight, from it is in the open state be currently able to using HTTP/2 connection in, determine next A target connection makes requests the transmission of message.
Optionally, after the HTTP/2 traffic identifier in target connection is used up, the request message transmission method is also Include:
Re-establish a transport layer connection;
One HTTP/2 connection of creation is connected based on newly-established transport layer, the HTTP/2 connection after creation is in open shape State;
Wherein, it is described it is in the open state be currently able to using HTTP/2 connection further include based on newly-established transmission It is layer connection creation, in the open state be currently able to using HTTP/2 connection.
Optionally, include: the step of the weight of other HTTP/2 connections described in the update
Before based on the connection one HTTP/2 connection of creation of newly-established transport layer, other described HTTP/2 connections are updated Weight;
After based on the connection one HTTP/2 connection of creation of newly-established transport layer, in the open state current Weight is redistributed in the HTTP/2 connection being able to use;Or
Before based on the connection one HTTP/2 connection of creation of newly-established transport layer, other described HTTP/2 connections are maintained Weight it is constant;
After based on the connection one HTTP/2 connection of creation of newly-established transport layer, in the open state current Weight is redistributed in the HTTP/2 connection being able to use;
Wherein, based on it is the connection creation of newly-established transport layer, in the open state be currently able to using HTTP/2 It is minimum to connect the weight being assigned to.
The embodiment of the invention also provides a kind of request message transmission devices, comprising:
First determining module, for determining mesh from established hypertext transfer protocol HTTP/2 connection according to weight Mark connection;
First transmission module, for connecting transfer request message using the target;
Wherein, weight represents the probability that HTTP/2 connection is targeted connection.
Optionally, the request message transmission device further include:
First creation module, for being determined from established hypertext transfer protocol HTTP/2 connection according to weight Before target connection, multiple HTTP/2 connections are created between network functional entity.
Optionally, first creation module includes:
First setting up submodule establishes multiple transport layer connections for the transport layer between network functional entity;
First creation submodule, is able to use for the application layer on transport layer based on each in the open state Transport layer connection one HTTP/2 connection of creation, the HTTP/2 connection after creation is in the open state.
Optionally, the request message transmission device further include:
First setup module, for being determined from established hypertext transfer protocol HTTP/2 connection according to weight Before target connection, for it is established it is in the open state be currently able to using each HTTP/2 connection setting weight.
Optionally, first setup module includes:
First setting submodule, for according to it is established it is in the open state be currently able to using HTTP/2 connection Quantity or it is established it is in the open state be currently able to using each HTTP/2 connection stream depletion rate, setting is Establish it is in the open state be currently able to using each HTTP/2 connection weight;Wherein, stream depletion rate is faster The corresponding weight of HTTP/2 connection is higher.
Optionally, first setup module includes:
First distribution sub module, for for it is established it is in the open state be currently able to using each HTTP/2 connect It connects and is randomly assigned weight.
Optionally, the request message transmission device further include:
First processing module is used for after using target connection transfer request message, in target connection After HTTP/2 traffic identifier is used up, the target connection is closed;
Second processing module, for according to weight, from it is in the open state be currently able to using HTTP/2 connection in, Determine that next target connection makes requests the transmission of message;
Wherein, it is described it is in the open state be currently able to using HTTP/2 connection include established in open shape State be currently able to using HTTP/2 connection in current energy in the open state in addition to pent target connection Other HTTP/2 connections enough used.
Optionally, the request message transmission device further include:
First update module, for according to weight, from it is in the open state be currently able to using HTTP/2 connection In, before determining that next target connection makes requests the transmission of message, update the weight of other HTTP/2 connections;
The Second processing module includes:
First processing submodule, for according to updated weight, from it is in the open state be currently able to using In HTTP/2 connection, determine that next target connection makes requests the transmission of message.
Optionally, the request message transmission device further include:
First rebuilds module, for re-establishing one after the HTTP/2 traffic identifier in target connection is used up Transport layer connection;
Second creation module, for creating a HTTP/2 connection based on the connection of newly-established transport layer, after creation HTTP/2 connection is in the open state;
Wherein, it is described it is in the open state be currently able to using HTTP/2 connection further include based on newly-established transmission It is layer connection creation, in the open state be currently able to using HTTP/2 connection.
Optionally, first update module includes:
First updates submodule, is used for before based on the connection one HTTP/2 connection of creation of newly-established transport layer, more The weight of new other HTTP/2 connections;
Second distribution sub module is used for after based on the connection one HTTP/2 connection of creation of newly-established transport layer, needle To it is in the open state be currently able to using HTTP/2 connection redistribute weight;Or
Second processing submodule, for tieing up before based on the connection one HTTP/2 connection of creation of newly-established transport layer The weight for holding other HTTP/2 connections is constant;
Third distribution sub module is used for after based on the connection one HTTP/2 connection of creation of newly-established transport layer, needle To it is in the open state be currently able to using HTTP/2 connection redistribute weight;
Wherein, based on it is the connection creation of newly-established transport layer, in the open state be currently able to using HTTP/2 It is minimum to connect the weight being assigned to.
The embodiment of the invention also provides a kind of transmission device, including memory, processor and it is stored in the memory Computer program that is upper and can running on the processor;The processor realizes that above-mentioned request disappears when executing described program Cease transmission method.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, the journey The step in above-mentioned request message transmission method is realized when sequence is executed by processor.
The advantageous effects of the above technical solutions of the present invention are as follows:
In above scheme, the request message transmission method is by the way that according to weight, (weight represents HTTP/2 connection and is determined For the probability of target connection), target connection is determined from established hypertext transfer protocol HTTP/2 connection;Utilize the mesh Mark connection transfer request message;So that the stream ID of concurrent HTTP/2 connection will not run out simultaneously, can be realized in multiple connections Accurate delivery request message during survival, while avoiding the connection possible service delay problem of handover operation.
Detailed description of the invention
Fig. 1 is the request message transmission method flow schematic diagram of the embodiment of the present invention;
Fig. 2 is the request message transmission apparatus structure schematic diagram of the embodiment of the present invention;
Fig. 3 is the transmission device structural schematic diagram of the embodiment of the present invention.
Specific embodiment
To keep the technical problem to be solved in the present invention, technical solution and advantage clearer, below in conjunction with attached drawing and tool Body embodiment is described in detail.
The present invention in view of the prior art in multiple connections survival during can not accurate delivery request message the problem of, mention For a kind of request message transmission method, as shown in Figure 1, comprising:
Step 11: according to weight, target connection is determined from established hypertext transfer protocol HTTP/2 connection;
Step 12: connecting transfer request message using the target;
Wherein, weight represents the probability that HTTP/2 connection is targeted connection.
The request message transmission method provided in an embodiment of the present invention is by the way that according to weight, (weight represents HTTP/2 connection It is targeted the probability of connection), target connection is determined from established hypertext transfer protocol HTTP/2 connection;It utilizes The target connects transfer request message;So that the stream ID of concurrent HTTP/2 connection will not run out simultaneously, can be realized more Accurate delivery request message during a connection survival, while avoiding the connection possible service delay problem of handover operation.
Wherein, according to weight, before determining target connection in established hypertext transfer protocol HTTP/2 connection, The request message transmission method further include: multiple HTTP/2 connections are created between network functional entity.
Specifically, described the step of creating multiple HTTP/2 connections between network functional entity includes: in network function Transport layer between entity establishes multiple transport layers (such as transmission control protocol TCP) connection;Application layer on transport layer Based on each transport layer connection one HTTP/2 connection of creation being able to use in the open state, the HTTP/2 after creation connects It connects in the open state.
Wherein, transport layer connection includes TCP connection, but is not limited to TCP connection, may also include the foundation of other transport layer protocols Connection.
Further, according to weight, target connection is determined from established hypertext transfer protocol HTTP/2 connection Before, the request message transmission method further include: for it is established it is in the open state be currently able to using it is each Weight is arranged in HTTP/2 connection.
For for it is established it is in the open state be currently able to using each HTTP/2 connection the behaviour of weight is set Make, the embodiment of the present invention provides following two specific example, but is not limited thereto:
The first, it is described for it is established it is in the open state be currently able to using each HTTP/2 connection setting weigh The step of weight include: according to it is established it is in the open state be currently able to using HTTP/2 connection quantity or have been established It is in the open state be currently able to using each HTTP/2 connection stream depletion rate, be arranged established in opening State be currently able to using each HTTP/2 connection weight;Wherein, the faster HTTP/2 connection of stream depletion rate corresponds to Weight it is higher.
Second, it is described for it is established it is in the open state be currently able to using each HTTP/2 connection setting weigh The step of weight include: for it is established it is in the open state be currently able to using each HTTP/2 connection be randomly assigned to weigh Weight.
In the embodiment of the present invention, after using target connection transfer request message, the request message transmission method is also It include: to close the target connection after the HTTP/2 traffic identifier in target connection is used up;According to weight, from being in Opening state be currently able to using HTTP/2 connection in, determine that the connection of next target makes requests the transmission of message;Its In, it is described it is in the open state be currently able to using HTTP/2 connection include established current energy in the open state Its for being currently able to use in the open state in the HTTP/2 connection enough used in addition to the pent target connection His HTTP/2 connection.
Further, according to weight, from it is in the open state be currently able to using HTTP/2 connection in, under determining Before the connection of one target makes requests the transmission of message, the request message transmission method further include: update it is described other The weight of HTTP/2 connection;
It is corresponding, it is described according to weight, from it is in the open state be currently able to using HTTP/2 connection in, under determining The step of one target connection makes requests the transmission of message includes: to be worked as according to updated weight from the open state Before in the HTTP/2 connection that is able to use, determine that next target connection makes requests the transmission of message.
Further, after the HTTP/2 traffic identifier in target connection is used up, the request message transmission side Method further include: re-establish a transport layer connection;One HTTP/2 connection of creation, creation are connected based on newly-established transport layer HTTP/2 connection afterwards is in the open state;Wherein, it is described it is in the open state be currently able to using HTTP/2 connection also Including based on it is the connection creation of newly-established transport layer, in the open state be currently able to using HTTP/2 connection.
Specifically, including: based on newly-established transmission the step of the weight of other HTTP/2 connections described in the update Before layer connection one HTTP/2 connection of creation, the weight of other HTTP/2 connections is updated;It is being based on newly-established transmission After layer connection one HTTP/2 connection of creation, for it is in the open state be currently able to using HTTP/2 connection divide again With weight;Or
Before based on the connection one HTTP/2 connection of creation of newly-established transport layer, other described HTTP/2 connections are maintained Weight it is constant;After based on the connection one HTTP/2 connection of creation of newly-established transport layer, in the open state Be currently able to using HTTP/2 connection redistribute weight;
Wherein, based on it is the connection creation of newly-established transport layer, in the open state be currently able to using HTTP/2 It is minimum to connect the weight being assigned to.
It is, when there are HTTP/2 connection closed, the power of the remaining HTTP/2 connection being able to use being not turned off Weight can be redistributed and (also need to redistribute again after newly-built HTTP/2 connection), can also remain unchanged and (connect in newly-built HTTP/2 It is redistributed again after connecing).
The request message transmission method provided in an embodiment of the present invention is further described below, creates transport layer Connection is for creating TCP connection.
In view of the above technical problems, the embodiment of the present invention provides a kind of request message transmission method, mainly:
Transport layer between two network functional entity NF configures N number of TCP connection, the application layer on transport layer (HTTP layers) create a HTTP/2 connection based on each available TCP connection in the open state, the HTTP/2 after creation Connection is all in available opening state.
(HTTP layers) of application layer of NF are based on weight and available HTTP/2 connection are selected to send request message.HTTP/2 connection Weight illustrate this connection actually selected probability.Weight can be expressed as a percentage, and can also use a weight table Show, calculate the probability that available HTTP/2 connection is actually selected by the weight connected to every.
Weight can be according to stream depletion rate adjustment, can also be according to that can be distributed with connection number, such as: 2 HTTP/2 connections, It is sequentially allocated weight: 6/4;3 HTTP/2 connections, are sequentially allocated weight: 5/3/2;4 HTTP/2 connections, are sequentially allocated weight: 4/3/2/1;5 HTTP/2 connections, are sequentially allocated weight: 4/3/2/0.6/0.4;6 HTTP/2 connections, are sequentially allocated weight: 4/3/2/0.5/0.3/0.2;···
Newly created HTTP/2 connection needs to distribute low weight (because of the available stream quantity of newly created HTTP/2 connection It is more, if the weight of distribution is high, the case where may cause the stream quantity for its connection low with weight occur while ruing out of).
The traffic identifier ID of each HTTP/2 connection is closed after using up, and corresponding TCP connection is also turned off reconstruction.It is closed HTTP/2 connection become down state.After HTTP/2 connection closed, current all available connection (i.e. other energy being not turned off The connection enough used) weight can redistribute, also keep can be constant.
After TCP connection closes reconstruction, the weight needs based on the newly-built HTTP/2 connection of this TCP connection are redistributed, And distribution lowest weightings.The weight of other available connections can be redistributed.
The weight redistributed can be according to stream depletion rate adjustment, can also be according to can be distributed with connection number.
Below for 4 TCP connections (HTTP/2 connection) are set, illustrate the state of each TCP connection (HTTP/2 connection) And selection result:
One: one TCP connection of example re-establishes after closing;There is no the closing of another TCP connection during reconstruction, after closing Weight is redistributed;
Two: one TCP connections of example re-establish after closing;There is no the closing of another TCP connection during reconstruction, after closing Weight is not redistributed;
Three: one TCP connections of example re-establish after closing;There is the closing of another TCP connection during reconstruction, is weighed after closing It redistributes again;
Four: one TCP connections of example re-establish after closing;There is the closing of another TCP connection during reconstruction, is weighed after closing Weight is not redistributed;
From the foregoing, it will be observed that scheme provided in an embodiment of the present invention passes through: creating a plurality of HTTP/2 connection between NF, pass through weight To select request message can be sent with connection (connection being able to use in the open state).Wherein, the meaning that weight indicates Are as follows: the probability that a HTTP/2 connection is actually selected.The expression of weight can be with are as follows: percentage;Or weight, it can by calculating To obtain the probability that HTTP/2 connection is actually selected.About weight distribution: can be consumed according to HTTP/2 connection quantity or stream Speed is allocated.
Weight in the embodiment of the present invention can be adjusted dynamically.In HTTP/2 connection closed, processing to weight: current Power can be redistributed with connection (alternatively referred to as other available connections, refer to the HTTP/2 connection being able to use currently being not turned off) Weight, can also keep weight constant.After establishing new HTTP/2 connection, in the open state it is able to use to be newly-built HTTP/2 connection will distribute a new, low weight;Other available connections can redistribute weight.
To sum up, the side provided in an embodiment of the present invention by selecting currently available connection transfer request message based on weight Method, so that the stream ID of concurrent HTTP/2 connection will not run out simultaneously, service delay may be brought by avoiding connection handover operation The problem of.
The embodiment of the invention also provides a kind of request message transmission devices, as shown in Figure 2, comprising:
First determining module 21, for being determined from established hypertext transfer protocol HTTP/2 connection according to weight Target connection;
First transmission module 22, for connecting transfer request message using the target;
Wherein, weight represents the probability that HTTP/2 connection is targeted connection.
The request message transmission device provided in an embodiment of the present invention is by the way that according to weight, (weight represents HTTP/2 connection It is targeted the probability of connection), target connection is determined from established hypertext transfer protocol HTTP/2 connection;It utilizes The target connects transfer request message;So that the stream ID of concurrent HTTP/2 connection will not run out simultaneously, can be realized more Accurate delivery request message during a connection survival, while avoiding the connection possible service delay problem of handover operation.
Wherein, the request message transmission device further include: the first creation module, for according to weight, from having been established Hypertext transfer protocol HTTP/2 connection in determine target connection before, multiple HTTP/2 are created between network functional entity Connection.
Specifically, first creation module includes: the first setting up submodule, for the biography between network functional entity Defeated layer establishes multiple transport layer connections;First creation submodule is based on each be in for the application layer on transport layer and beats The transport layer connection one HTTP/2 connection of creation of open state being able to use, the HTTP/2 connection after creation are in open shape State.
Further, the request message transmission device further include: the first setup module, for according to weight, from It is established in the open state current before determining target connection in the hypertext transfer protocol HTTP/2 connection of foundation The each HTTP/2 connection setting weight being able to use.
For the specific implementation of the first setup module, the embodiment of the present invention provides following two specific example, but not with This is limited:
The first, first setup module includes: the first setting submodule, for being in open shape according to established State be currently able to using HTTP/2 connection quantity or it is established it is in the open state be currently able to using it is each The stream depletion rate of HTTP/2 connection, be arranged it is established it is in the open state be currently able to using each HTTP/2 connection Weight;Wherein, the corresponding weight of the stream faster HTTP/2 connection of depletion rate is higher.
Second, first setup module includes: the first distribution sub module, for being established in the open state Be currently able to using each HTTP/2 connection be randomly assigned weight.
In the embodiment of the present invention, the request message transmission device further include: first processing module, for utilizing target After connecting transfer request message, after the HTTP/2 traffic identifier in target connection is used up, the target connection is closed; Second processing module, for according to weight, from it is in the open state be currently able to using HTTP/2 connection in, determine next A target connection makes requests the transmission of message;Wherein, it is described it is in the open state be currently able to using HTTP/2 connection Including it is established it is in the open state be currently able to using HTTP/2 connection in addition to the pent target connection It is in the open state be currently able to using other HTTP/2 connections.
Further, the request message transmission device further include: the first update module, for according to weight, from In opening state be currently able to using HTTP/2 connection in, determine the connection of next target make requests message transmission it Before, update the weight of other HTTP/2 connections;
Corresponding, the Second processing module includes: the first processing submodule, is used for according to updated weight, from In opening state be currently able to using HTTP/2 connection in, determine that the connection of next target makes requests the transmission of message.
Further, the request message transmission device further include: first rebuilds module, for connecting in the target After interior HTTP/2 traffic identifier is used up, a transport layer connection is re-established;Second creation module, for based on newly-established Transport layer connection one HTTP/2 connection of creation, the HTTP/2 connection after creation are in the open state;Wherein, described in opening State be currently able to using HTTP/2 connection further include based on newly-established transport layer connection creation, it is in the open state Be currently able to using HTTP/2 connection.
Specifically, first update module includes: the first update submodule, for connecting based on newly-established transport layer Before connecing one HTTP/2 connection of creation, the weight of other HTTP/2 connections is updated;Second distribution sub module, in base After newly-established transport layer connects one HTTP/2 connection of creation, for it is in the open state be currently able to using Weight is redistributed in HTTP/2 connection;Or
Second processing submodule, for tieing up before based on the connection one HTTP/2 connection of creation of newly-established transport layer The weight for holding other HTTP/2 connections is constant;Third distribution sub module, for based on newly-established transport layer connection wound Build after a HTTP/2 connection, for it is in the open state be currently able to using HTTP/2 connection redistribute weight;
Wherein, based on it is the connection creation of newly-established transport layer, in the open state be currently able to using HTTP/2 It is minimum to connect the weight being assigned to.
Wherein, the realization embodiment of above-mentioned request message transmission method is suitable for the request message transmission device In embodiment, it can also reach identical technical effect.
The embodiment of the invention also provides a kind of transmission devices, as shown in figure 3, including memory 31, processor 32 and depositing Store up the computer program 33 that can be run on the memory 31 and on the processor 32;The processor 32 executes described Above-mentioned request message transmission method is realized when program.
Specifically, the transmission device includes: processor and transceiver;
The processor, for determining target from established hypertext transfer protocol HTTP/2 connection according to weight Connection;
Transfer request message is connected using the target by the transceiver;
Wherein, weight represents the probability that HTTP/2 connection is targeted connection.
The transmission device provided in an embodiment of the present invention is by the way that according to weight, (weight represents HTTP/2 connection and is confirmed as The probability of target connection), target connection is determined from established hypertext transfer protocol HTTP/2 connection;Utilize the target Connect transfer request message;So that the stream ID of concurrent HTTP/2 connection will not run out simultaneously, it can be realized and deposited in multiple connections Accurate delivery request message between current, while avoiding the connection possible service delay problem of handover operation.
Wherein, the processor is also used to: according to weight, from established hypertext transfer protocol HTTP/2 connection Before determining target connection, multiple HTTP/2 connections are created between network functional entity.
Specifically, the processor is specifically used for: the transport layer between network functional entity is established multiple transport layers and is connected It connects;Application layer on transport layer creates one based on each transport layer connection being able to use in the open state HTTP/2 connection, the HTTP/2 connection after creation are in the open state.
Further, the processor is also used to: according to weight, being connected from established hypertext transfer protocol HTTP/2 Before connecing the connection of determining target, for it is established it is in the open state be currently able to using each HTTP/2 connection setting Weight.
Execute for processor " for it is established it is in the open state be currently able to using each HTTP/2 connection set Set weight " operation, the embodiment of the present invention provides following two specific example, but is not limited thereto:
The first, the processor is specifically used for: according to it is established it is in the open state be currently able to using The quantity of HTTP/2 connection or it is established it is in the open state be currently able to using the stream of each HTTP/2 connection consume Speed, be arranged it is established it is in the open state be currently able to using each HTTP/2 connection weight;Wherein, stream consumption The corresponding weight of HTTP/2 connection of fast speed is higher.
Second, the processor is specifically used for: for it is established it is in the open state be currently able to using it is each HTTP/2 connection is randomly assigned weight.
In the embodiment of the present invention, the processor is also used to: after using target connection transfer request message, described After HTTP/2 traffic identifier in target connection is used up, the target connection is closed;According to weight, work as from the open state Before in the HTTP/2 connection that is able to use, determine that next target connection makes requests the transmission of message;Wherein, described be in is beaten Open state be currently able to using HTTP/2 connection include it is established it is in the open state be currently able to using HTTP/ In 2 connections in the open state in addition to pent target connection be currently able to using other HTTP/2 connections.
Further, the processor is also used to: according to weight, from it is in the open state be currently able to using In HTTP/2 connection, before determining that next target connection makes requests the transmission of message, other described HTTP/2 connections are updated Weight;
Corresponding, the processor is specifically used for: according to updated weight, being currently able to make from the open state In HTTP/2 connection, determine that next target connection makes requests the transmission of message.
Further, the processor is also used to: after the HTTP/2 traffic identifier in target connection is used up, weight Newly establish a transport layer connection;One HTTP/2 connection of creation is connected based on newly-established transport layer, the HTTP/2 after creation It connects in the open state;Wherein, it is described it is in the open state be currently able to using HTTP/2 connection further include based on new It is the transport layer connection creation of foundation, in the open state be currently able to using HTTP/2 connection.
Specifically, the processor is specifically used for: based on the connection one HTTP/2 connection of creation of newly-established transport layer Before, the weight of other HTTP/2 connections is updated;Based on the connection one HTTP/2 connection of creation of newly-established transport layer Later, for it is in the open state be currently able to using HTTP/2 connection redistribute weight;Or
Before based on the connection one HTTP/2 connection of creation of newly-established transport layer, other described HTTP/2 connections are maintained Weight it is constant;After based on the connection one HTTP/2 connection of creation of newly-established transport layer, in the open state Be currently able to using HTTP/2 connection redistribute weight;
Wherein, based on it is the connection creation of newly-established transport layer, in the open state be currently able to using HTTP/2 It is minimum to connect the weight being assigned to.
Wherein, the realization embodiment of above-mentioned request message transmission method is suitable for the embodiment of the transmission device In, it can also reach identical technical effect.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, the journey The step in above-mentioned request message transmission method is realized when sequence is executed by processor.
Wherein, the realization embodiment of above-mentioned request message transmission method is suitable for the computer readable storage medium Embodiment in, can also reach identical technical effect.
It should be noted that this many functional component described in this description is all referred to as module/submodule, so as to more Add the independence for particularly emphasizing its implementation.
In the embodiment of the present invention, module/submodule can use software realization, to be executed by various types of processors. For example, the executable code module of a mark may include the one or more physics or logic of computer instruction Block, for example, it can be built as object, process or function.Nevertheless, the executable code of institute's mark module is not necessarily to It is physically located together, but may include the different instructions being stored in different positions, combined when in these command logics When together, constitutes module and realize the regulation purpose of the module.
In fact, executable code module can be the either many item instructions of individual instructions, and can even be distributed It on multiple and different code segments, is distributed in distinct program, and is distributed across multiple memory devices.Similarly, it grasps Making data can be identified in module, and can realize according to any form appropriate and be organized in any appropriate class In the data structure of type.The operation data can be used as individual data collection and be collected, or can be distributed on different location (including in different storage device), and at least partly can only be present in system or network as electronic signal.
When module can use software realization, it is contemplated that the level of existing hardware technique, it is possible to implemented in software Module, without considering the cost, those skilled in the art can build corresponding hardware circuit to realize correspondence Function, the hardware circuit includes conventional ultra-large integrated (VLSI) circuit or gate array and such as logic core The existing semiconductor of piece, transistor etc either other discrete elements.Module can also use programmable hardware device, such as Field programmable gate array, programmable logic array, programmable logic device etc. are realized.
Above-described is the preferred embodiment of the present invention, it should be pointed out that the ordinary person of the art is come It says, under the premise of not departing from principle of the present invention, can also make several improvements and retouch, these improvements and modifications should also regard For protection scope of the present invention.

Claims (22)

1. a kind of request message transmission method characterized by comprising
According to weight, target connection is determined from established hypertext transfer protocol HTTP/2 connection;
Transfer request message is connected using the target;
Wherein, weight represents the probability that HTTP/2 connection is targeted connection.
2. request message transmission method according to claim 1, which is characterized in that according to weight, surpass from established Before determining target connection in text transfer protocol HTTP/2 connection, the request message transmission method further include:
Multiple HTTP/2 connections are created between network functional entity.
3. request message transmission method according to claim 2, which is characterized in that described to be created between network functional entity The step of building multiple HTTP/2 connections include:
Transport layer between network functional entity establishes multiple transport layer connections;
Application layer on transport layer creates one based on each transport layer connection being able to use in the open state HTTP/2 connection, the HTTP/2 connection after creation are in the open state.
4. request message transmission method according to claim 1, which is characterized in that according to weight, surpass from established Before determining target connection in text transfer protocol HTTP/2 connection, the request message transmission method further include:
For it is established it is in the open state be currently able to using each HTTP/2 connection weight is set.
5. request message transmission method according to claim 4, which is characterized in that described to be in open shape to be established State be currently able to using each HTTP/2 connection be arranged weight the step of include:
According to it is established it is in the open state be currently able to using the quantity of HTTP/2 connection or established in beating Open state be currently able to using each HTTP/2 connection stream depletion rate, be arranged and established in the open state work as Before the weight of each HTTP/2 connection that is able to use.
6. request message transmission method according to claim 4, which is characterized in that described to be in open shape to be established State be currently able to using each HTTP/2 connection be arranged weight the step of include:
For it is established it is in the open state be currently able to using each HTTP/2 connection be randomly assigned weight.
7. request message transmission method according to claim 1, which is characterized in that disappear connecting transmission request using target After breath, the request message transmission method further include:
After the HTTP/2 traffic identifier in target connection is used up, the target connection is closed;
According to weight, from it is in the open state be currently able to using HTTP/2 connection in, determine next target connect into The transmission of row request message;
Wherein, it is described it is in the open state be currently able to using HTTP/2 connection include established in the open state Be currently able to using HTTP/2 connection in the open state in addition to pent target connection be currently able to make Other HTTP/2 connections.
8. request message transmission method according to claim 7, which is characterized in that according to weight, from being in open shape State be currently able to using HTTP/2 connection in, it is described before determining that the connection of next target makes requests the transmission of message Request message transmission method further include:
Update the weight of other HTTP/2 connections;
It is described according to weight, from it is in the open state be currently able to using HTTP/2 connection in, determine that next target connects The step of tapping into the transmission of row request message include:
According to updated weight, from it is in the open state be currently able to using HTTP/2 connection in, determine next mesh Mark connection makes requests the transmission of message.
9. request message transmission method according to claim 8, which is characterized in that the HTTP/2 in target connection After traffic identifier is used up, the request message transmission method further include:
Re-establish a transport layer connection;
One HTTP/2 connection of creation is connected based on newly-established transport layer, the HTTP/2 connection after creation is in the open state;
Wherein, it is described it is in the open state be currently able to using HTTP/2 connection further include being connected based on newly-established transport layer Connect creation, it is in the open state be currently able to using HTTP/2 connection.
10. request message transmission method according to claim 9, which is characterized in that other HTTP/2 described in the update The step of weight of connection includes:
Before based on the connection one HTTP/2 connection of creation of newly-established transport layer, the power of other HTTP/2 connections is updated Weight;
After based on the connection one HTTP/2 connection of creation of newly-established transport layer, it is currently able in the open state Weight is redistributed in the HTTP/2 connection used;Or
Before based on the connection one HTTP/2 connection of creation of newly-established transport layer, the power of other HTTP/2 connections is maintained Weight is constant;
After based on the connection one HTTP/2 connection of creation of newly-established transport layer, it is currently able in the open state Weight is redistributed in the HTTP/2 connection used;
Wherein, based on it is the connection creation of newly-established transport layer, in the open state be currently able to using HTTP/2 connection The weight being assigned to is minimum.
11. a kind of request message transmission device characterized by comprising
First determining module, for determining that target connects from established hypertext transfer protocol HTTP/2 connection according to weight It connects;
First transmission module, for connecting transfer request message using the target;
Wherein, weight represents the probability that HTTP/2 connection is targeted connection.
12. request message transmission device according to claim 11, which is characterized in that the request message transmission device is also Include:
First creation module, for determining target from established hypertext transfer protocol HTTP/2 connection according to weight Before connection, multiple HTTP/2 connections are created between network functional entity.
13. request message transmission device according to claim 12, which is characterized in that first creation module includes:
First setting up submodule establishes multiple transport layer connections for the transport layer between network functional entity;
First creation submodule, for the application layer on transport layer based on each biography being able to use in the open state Defeated layer connection one HTTP/2 connection of creation, the HTTP/2 connection after creation are in the open state.
14. request message transmission device according to claim 11, which is characterized in that the request message transmission device is also Include:
First setup module, for determining target from established hypertext transfer protocol HTTP/2 connection according to weight Before connection, for it is established it is in the open state be currently able to using each HTTP/2 connection setting weight.
15. request message transmission device according to claim 14, which is characterized in that first setup module includes:
First setting submodule, for according to it is established it is in the open state be currently able to using HTTP/2 connection number Amount or it is established it is in the open state be currently able to using each HTTP/2 connection stream depletion rate, setting has been established It is in the open state be currently able to using each HTTP/2 connection weight.
16. request message transmission device according to claim 14, which is characterized in that first setup module includes:
First distribution sub module, for for it is established it is in the open state be currently able to using each HTTP/2 connection with Machine distributes weight.
17. request message transmission device according to claim 11, which is characterized in that the request message transmission device is also Include:
First processing module, for the HTTP/2 after using target connection transfer request message, in target connection After traffic identifier is used up, the target connection is closed;
Second processing module, for according to weight, from it is in the open state be currently able to using HTTP/2 connection in, determination Next target connection makes requests the transmission of message;
Wherein, it is described it is in the open state be currently able to using HTTP/2 connection include established in the open state Be currently able to using HTTP/2 connection in the open state in addition to pent target connection be currently able to make Other HTTP/2 connections.
18. request message transmission device according to claim 17, which is characterized in that the request message transmission device is also Include:
First update module, for according to weight, from it is in the open state be currently able to using HTTP/2 connection in, really Before fixed next target connection makes requests the transmission of message, the weight of other HTTP/2 connections is updated;
The Second processing module includes:
First processing submodule, for according to updated weight, from it is in the open state be currently able to using HTTP/2 In connection, determine that next target connection makes requests the transmission of message.
19. request message transmission device according to claim 18, which is characterized in that the request message transmission device is also Include:
First rebuilds module, for re-establishing a transmission after the HTTP/2 traffic identifier in target connection is used up Layer connection;
Second creation module, for creating a HTTP/2 connection, the HTTP/2 after creation based on the connection of newly-established transport layer It connects in the open state;
Wherein, it is described it is in the open state be currently able to using HTTP/2 connection further include being connected based on newly-established transport layer Connect creation, it is in the open state be currently able to using HTTP/2 connection.
20. request message transmission device according to claim 19, which is characterized in that first update module includes:
First updates submodule, for updating institute before based on the connection one HTTP/2 connection of creation of newly-established transport layer State the weight of other HTTP/2 connections;
Second distribution sub module is used for after based on the connection one HTTP/2 connection of creation of newly-established transport layer, for place In opening state be currently able to using HTTP/2 connection redistribute weight;Or
Second processing submodule, for maintaining institute before based on the connection one HTTP/2 connection of creation of newly-established transport layer The weight for stating other HTTP/2 connections is constant;
Third distribution sub module is used for after based on the connection one HTTP/2 connection of creation of newly-established transport layer, for place In opening state be currently able to using HTTP/2 connection redistribute weight;
Wherein, based on it is the connection creation of newly-established transport layer, in the open state be currently able to using HTTP/2 connection The weight being assigned to is minimum.
21. a kind of transmission device, including memory, processor and it is stored on the memory and can transports on the processor Capable computer program;It is characterized in that, the processor realizes such as any one of claims 1 to 10 when executing described program The request message transmission method.
22. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The step in the request message transmission method as described in any one of claims 1 to 10 is realized when execution.
CN201810301185.8A 2018-04-04 2018-04-04 Request message transmission method, device and transmission equipment Active CN110351319B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810301185.8A CN110351319B (en) 2018-04-04 2018-04-04 Request message transmission method, device and transmission equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810301185.8A CN110351319B (en) 2018-04-04 2018-04-04 Request message transmission method, device and transmission equipment

Publications (2)

Publication Number Publication Date
CN110351319A true CN110351319A (en) 2019-10-18
CN110351319B CN110351319B (en) 2022-04-01

Family

ID=68172829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810301185.8A Active CN110351319B (en) 2018-04-04 2018-04-04 Request message transmission method, device and transmission equipment

Country Status (1)

Country Link
CN (1) CN110351319B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483599A (en) * 2009-02-18 2009-07-15 北京交通大学 Method for enhancing webpage browsing efficiency based on priority multi-connection
CN102656863A (en) * 2009-12-18 2012-09-05 高通股份有限公司 HTTP optimization, multi-homing, mobility and priority
CN104092714A (en) * 2013-09-25 2014-10-08 腾讯科技(深圳)有限公司 Stream media file playing method and device
WO2015183451A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Multi-stream scheduling and requests
US20160149832A1 (en) * 2013-07-31 2016-05-26 Guangzhou Ucweb Computer Technology Co., Ltd. Method and apparatus for increasing subresource loading speed

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483599A (en) * 2009-02-18 2009-07-15 北京交通大学 Method for enhancing webpage browsing efficiency based on priority multi-connection
CN102656863A (en) * 2009-12-18 2012-09-05 高通股份有限公司 HTTP optimization, multi-homing, mobility and priority
JP2015164330A (en) * 2009-12-18 2015-09-10 クゥアルコム・インコーポレイテッドQualcomm Incorporated Http optimization, multi-homing, mobility and priority
US20160149832A1 (en) * 2013-07-31 2016-05-26 Guangzhou Ucweb Computer Technology Co., Ltd. Method and apparatus for increasing subresource loading speed
CN104092714A (en) * 2013-09-25 2014-10-08 腾讯科技(深圳)有限公司 Stream media file playing method and device
WO2015183451A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Multi-stream scheduling and requests

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陆奇: "HTTP 2.0对CDN和Cache的影响及应对分析报告", 《中国高新区》 *

Also Published As

Publication number Publication date
CN110351319B (en) 2022-04-01

Similar Documents

Publication Publication Date Title
CN110636103B (en) Unified scheduling method for multi-heterogeneous cluster jobs and API (application program interface)
CN106095583B (en) Principal and subordinate's nuclear coordination calculation and programming frame based on new martial prowess processor
CN104104973B (en) A kind of group's Bandwidth Management optimization method for being applied to cloud media system
CN106385329B (en) Processing method, device and the equipment of resource pool
CN103716381B (en) Control method and management node of distributed system
CN110113387A (en) A kind of processing method based on distributed batch processing system, apparatus and system
CN105429811B (en) network management system and method
US20040210695A1 (en) Various methods and apparatuses for arbitration among blocks of functionality
CN106446067A (en) Transaction data acquisition method and apparatus
CN108124003A (en) Network management device connection processing method, apparatus and system
CN107852428A (en) Expansible real-time Message Passing system
CN104601680B (en) A kind of method for managing resource and device
WO2009024473A1 (en) Client-side aggregation of context-sensitive request results
CN104035817A (en) Distributed parallel computing method and system for physical implementation of large scale integrated circuit
CN103763174B (en) Virtual network mapping method based on function block
CN109412958A (en) The jamming control method and device of data center
CN108028796A (en) Expansible real-time Message Passing system
CN105897887B (en) Remote sensing satellite big data processing system and method based on cloud computing platform
CN108845874A (en) The dynamic allocation method and server of resource
CN104052677B (en) The soft load-balancing method and device of data mapping
CN107688495A (en) The method and apparatus of dispatch processor
CN106453625A (en) Information synchronization method and high-availability cluster system
CN107436798A (en) A kind of process access method and device based on NUMA node
CN107682460A (en) A kind of distributed storage trunked data communication method and system
CN106713375A (en) Method and device for allocating cloud resources

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