Disclosure of Invention
The invention provides a service request deadline processing method and a service request deadline processing system, which are used for improving the resource utilization rate and improving the network efficiency.
In order to achieve the above object, the present invention provides a service request deadline processing method, comprising:
sensing a network quality value and a service classification corresponding to the network quality value by a service grid control plane side;
the service grid control plane side inquires out a network quality threshold value corresponding to the service classification;
the service grid control plane side judges whether the network quality value is smaller than the network quality threshold value;
and if the service grid control surface side judges that the network quality value is smaller than the network quality threshold, adjusting the service request deadline corresponding to the service classification into monitoring time.
Optionally, if the service grid control plane side determines that the network quality value is greater than or equal to the network quality threshold, the step of sensing the network quality value and the service classification corresponding to the network quality value by the service grid control plane side is continuously performed.
Optionally, the sensing, by the service grid control plane side, a network quality value and a service classification corresponding to the network quality value includes: and sensing the network quality value and the service classification corresponding to the network quality value by the service grid control surface side according to a set time interval.
Optionally, before sensing the network quality value and the service classification corresponding to the network quality value by the service grid control plane side, the method further includes:
the side car side judges whether the service request initiating time exceeds the service request deadline;
if the side car side judges that the service request initiating time exceeds the service request deadline, judging whether the service request deadline is the monitoring time;
and if the side car side judges that the service request deadline is not the monitoring time, sending a query request to the service grid control plane side, and continuously executing the step of sensing the network quality value and the service classification corresponding to the network quality value by the service grid control plane side.
Optionally, the querying, by the service grid control plane side, a network quality threshold corresponding to the service classification includes:
and the service grid control surface side inquires out a network quality threshold corresponding to the service classification from the preset corresponding relation between the service classification and the network quality threshold.
To achieve the above object, the present invention provides a service request deadline processing system, comprising: service grid control plane side;
a service grid control surface side for sensing a network quality value and a service classification corresponding to the network quality value; querying a network quality threshold corresponding to the service classification; determining whether the network quality value is less than the network quality threshold; and if the network quality value is judged to be smaller than the network quality threshold value, adjusting the service request deadline corresponding to the service classification into monitoring time.
Optionally, the service mesh control plane side is further configured to continue to perform the step of sensing the network quality value and the service classification corresponding to the network quality value if it is determined that the network quality value is greater than or equal to the network quality threshold.
Optionally, the service grid control plane side is specifically configured to sense a network quality value and a service classification corresponding to the network quality value at set time intervals.
Optionally, the method further comprises: side turning;
the side car is used for judging whether the service request initiating time exceeds the service request deadline; if the service request initiating time exceeds the service request deadline, judging whether the service request deadline is the monitoring time; and if the service request deadline is judged not to be the monitoring time, sending an inquiry request to the service grid control plane side, and triggering the service grid control plane side to execute the steps of sensing the network quality value and service classification corresponding to the network quality value.
Optionally, the service grid control plane side is specifically configured to query a network quality threshold corresponding to a service classification from a preset correspondence between the service classification and the network quality threshold.
The invention has the following beneficial effects:
in the technical scheme of the service request deadline processing method and system provided by the invention, the service grid control plane side senses the network quality value and the service classification corresponding to the network quality value, inquires out the network quality threshold corresponding to the service classification, judges whether the network quality value is smaller than the network quality threshold, and adjusts the service request deadline corresponding to the service classification into the monitoring time if the network quality value is smaller than the network quality threshold, so that the sidecar side does not need to consult the service request to the service grid control plane side, thereby reducing the consultation times, improving the resource utilization rate and improving the network efficiency.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the method and system for processing the service request deadline provided by the present invention are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a service request deadline processing method according to an embodiment of the present invention, as shown in fig. 1, the method includes:
step 101, sensing the network quality value and the service classification corresponding to the network quality value on the control plane side of the service grid.
In this embodiment, the Service classification corresponding to the network quality value and the network quality value is sensed on the control plane side of the Service grid (Service Mesh) at set time intervals.
Specifically, the service grid control plane side senses the network quality of the whole network, and monitors the network quality in real time at set time intervals to sense the network quality value and the service classification corresponding to the network quality value.
Step 102, the service grid control plane side inquires out a network quality threshold value corresponding to the service classification.
In this embodiment, the service mesh control plane side sets in advance a correspondence between the service classification and the network quality threshold.
Table 1 is a service traffic classification data table.
TABLE 1
Serial number
|
Service number
|
Service classification
|
Network quality threshold
|
|
|
|
|
As shown in table 1 above, the service grid control plane may pre-establish a service traffic classification data table for service traffic, where the service traffic classification data table includes a plurality of service traffic classification data. Each piece of traffic service classification data comprises a serial number, a service classification and a network quality threshold value, wherein the serial number is used for indicating that the piece of traffic service classification data is the number, the service number is used for indicating the number of the service classification, and the network quality threshold value is used for indicating the network quality value required by the service traffic of the service classification. Wherein the service classification in each piece of traffic service classification data corresponds to a network quality threshold. Therefore, the service grid control plane side can preset the corresponding relation between the service classification and the network quality threshold value through the service traffic classification data table.
The step may specifically include: the service grid control plane side inquires out a network quality threshold value corresponding to the service classification from the preset corresponding relation between the service classification and the network quality threshold value.
Step 103, judging whether the network quality value is smaller than a network quality threshold value or not by the service grid control plane side, if so, executing step 104; if not, go to step 101.
If the service mesh control plane side determines that the network quality value is less than the network quality threshold, step 104 is executed.
If the service mesh control plane side determines that the network quality value is greater than or equal to the network quality threshold, step 101 is continuously executed.
Step 104, the service grid control plane side adjusts the service request deadline corresponding to the service classification to the monitoring time.
The method specifically comprises the following steps: and issuing a command on the service grid control plane side, and adjusting the service request deadline corresponding to the service classification on the whole network side vehicle (Sidecar) side to be the monitoring time.
After the service request deadline corresponding to the service classification is adjusted to the monitoring time, the service nodes can not initiate service requests of service flow, and the side car does not need to consult the service request to the service grid control plane, so that the consultation frequency is reduced.
In the technical scheme of the service request deadline processing method provided by this embodiment, a service grid control plane side senses a network quality value and a service classification corresponding to the network quality value, queries a network quality threshold corresponding to the service classification, determines whether the network quality value is smaller than the network quality threshold, and adjusts the service request deadline corresponding to the service classification to a monitoring time if the network quality value is smaller than the network quality threshold, so that the sidecar side does not need to consult a service request to the service grid control plane side, thereby reducing the number of times of consultation, improving the resource utilization rate, and improving the network efficiency.
Fig. 2 is a flowchart of a service request deadline processing method according to a second embodiment of the present invention, as shown in fig. 2, the method includes:
step 201, the side car side judges whether the service request initiation time exceeds the service request deadline, if so, step 202 is executed; if not, go to step 208.
When a service request of service flow is initiated between server nodes, the sidecar side firstly matches the service request initiation time with the service request deadline so as to judge whether the service request initiation time exceeds the service request deadline.
If the side-car determines that the service request initiation time exceeds the service request deadline, step 202 is executed.
If the side-car determines that the service request initiation time does not exceed the service request deadline, go to step 208.
Step 202, the side car side judges whether the service request deadline is monitoring time, if not, step 203 is executed; if yes, the process ends.
If the side-car determines that the service request deadline is not the monitoring time, step 203 is executed.
If the side car side judges that the service request deadline is the monitoring time, service requests of service flow are not initiated between service nodes, and the side car side does not need to consult the service requests to the service grid control plane side, so that the consultation frequency is reduced.
Step 203, the side car side sends a query request to the service grid control plane side.
The side-car side sends an inquiry request to inquire the service grid control plane side about the service request deadline.
Step 204, sensing the network quality value and the service classification corresponding to the network quality value on the control plane side of the service grid.
For the description of step 204, refer to step 101 in the first embodiment, and details are not described here.
Step 205, the service grid control plane side queries the network quality threshold corresponding to the service classification.
The description of step 205 can refer to step 102 in the first embodiment, and is not repeated here.
Step 206, the service grid control plane side judges whether the network quality value is smaller than the network quality threshold value, if yes, step 207 is executed; if not, go to step 204.
Step 206 can be referred to as step 103 in the first embodiment, and is not described herein again.
Step 207, the service grid control plane side adjusts the service request deadline corresponding to the service classification to the monitoring time, and the process is finished.
Step 207 can be referred to as step 104 in the first embodiment, and is not described herein again.
Step 208, the sidecar side allows the service flow to enter, and continues to execute step 201.
In the technical scheme of the service request deadline processing method provided by this embodiment, a service grid control plane side senses a network quality value and a service classification corresponding to the network quality value, queries a network quality threshold corresponding to the service classification, determines whether the network quality value is smaller than the network quality threshold, and adjusts the service request deadline corresponding to the service classification to a monitoring time if the network quality value is smaller than the network quality threshold, so that the sidecar side does not need to consult a service request to the service grid control plane side, thereby reducing the number of times of consultation, improving the resource utilization rate, and improving the network efficiency.
Fig. 3 is a schematic structural diagram of a service request deadline processing system according to a third embodiment of the present invention, as shown in fig. 3, the system includes: serving mesh control plane side 1.
The service grid control surface side 1 is used for sensing a network quality value and a service classification corresponding to the network quality value; querying a network quality threshold corresponding to the service classification; determining whether the network quality value is less than the network quality threshold; and if the network quality value is judged to be smaller than the network quality threshold value, adjusting the service request deadline corresponding to the service classification into monitoring time.
Further, the service mesh control plane side 1 is further configured to continue to perform the step of sensing the network quality value and the service classification corresponding to the network quality value if it is determined that the network quality value is greater than or equal to the network quality threshold.
Further, the service grid control plane side 1 is specifically configured to sense the network quality values and the service classifications corresponding to the network quality values at set time intervals.
Further, the system further comprises: the sidecar side 2.
The side car 2 is used for judging whether the service request initiating time exceeds the service request deadline; if the service request initiating time exceeds the service request deadline, judging whether the service request deadline is the monitoring time; and if the service request deadline is judged not to be the monitoring time, sending an inquiry request to the service grid control plane side, and triggering the service grid control plane side 1 to execute the steps of sensing the network quality value and service classification corresponding to the network quality value.
Further, the service mesh control plane side 1 is specifically configured to query a network quality threshold corresponding to a service classification from a preset correspondence between the service classification and the network quality threshold.
In the technical scheme of the service request deadline processing system provided by this embodiment, a service grid control plane side senses a network quality value and a service classification corresponding to the network quality value, queries a network quality threshold corresponding to the service classification, determines whether the network quality value is smaller than the network quality threshold, and adjusts the service request deadline corresponding to the service classification to a monitoring time if the network quality value is smaller than the network quality threshold, so that the sidecar side does not need to consult a service request to the service grid control plane side, thereby reducing the number of times of consultation, improving the resource utilization rate, and improving the network efficiency.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.