CN108881451B - Service request deadline processing method and system - Google Patents
Service request deadline processing method and system Download PDFInfo
- Publication number
- CN108881451B CN108881451B CN201810680122.8A CN201810680122A CN108881451B CN 108881451 B CN108881451 B CN 108881451B CN 201810680122 A CN201810680122 A CN 201810680122A CN 108881451 B CN108881451 B CN 108881451B
- Authority
- CN
- China
- Prior art keywords
- service
- network quality
- quality value
- grid control
- control plane
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title abstract description 11
- 238000012544 monitoring process Methods 0.000 claims abstract description 27
- 238000000034 method Methods 0.000 claims abstract description 16
- 238000012545 processing Methods 0.000 claims abstract description 12
- 230000000977 initiatory effect Effects 0.000 claims description 15
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a service request deadline processing method and a service request deadline processing system. The method comprises the following steps: 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. In the invention, the side car does not need to consult the service request to the control plane side of the service grid, thereby reducing the consultation times, improving the resource utilization rate and improving the network efficiency.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a system for processing a service request deadline.
Background
In a microservice architecture, a single application may consist of hundreds of services, each of which may consist of thousands of instances, and each of which may dynamically schedule a resource editor, instances may be in a constantly changing state. Thus, in the microservice architecture, inter-service communication is not only exceptionally complex, but is also the basis for runtime behavior. Managing good inter-service communication is very important to ensure end-to-end performance and reliability.
The Service Mesh is a dedicated infrastructure layer, a lightweight high-performance network proxy. Provides secure, fast, and reliable inter-service communication, along with practical application deployment, but is transparent to applications. The service grid is a network model of an abstraction layer located above TCP/IP. It assumes that the underlying L3/L4 network exists and is capable of transferring bytes from point to point. Somewhat like TCP/IP, TCP abstracts the mechanism for transferring bytes between network endpoints, while the service grid abstracts the mechanism for routing requests between service nodes. The service request deadline is the longest life cycle of an application allowing a request, and the service request deadline is set so that the request can not be subjected to dormant retry, thereby saving network resources.
In the prior art, in a system, a unified value is issued to a Sidecar (Sidecar) side from a service grid control plane side for a service request deadline. The method is suitable for the traditional single architecture, the network resources cannot be well utilized in the face of the complex communication situation of the micro-service architecture, and once the service flow request exceeds the service request deadline, the vehicle-side consultation is needed to be carried out to the control plane side of the service grid for updating, so that the consultation times are increased, the resource utilization rate is reduced, and the network efficiency is reduced.
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.
Drawings
Fig. 1 is a flowchart of a method for processing a service request deadline according to an embodiment of the present invention;
fig. 2 is a flowchart of a service request deadline processing method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a service request deadline processing system according to a third embodiment of the present invention.
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:
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.
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.
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.
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:
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.
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.
The side-car side sends an inquiry request to inquire the service grid control plane side about the service request deadline.
For the description of step 204, refer to step 101 in the first embodiment, and details are not described here.
The description of step 205 can refer to step 102 in the first embodiment, and is not repeated here.
Step 206 can be referred to as step 103 in the first embodiment, and is not described herein again.
Step 207 can be referred to as step 104 in the first embodiment, and is not described herein again.
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.
Claims (6)
1. A method for service request deadline processing, 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;
if the service grid control surface side judges that the network quality value is smaller than the network quality threshold value, the service request deadline corresponding to the service classification is adjusted to be monitoring time;
if the service grid control surface side judges 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 on the service grid control surface side is continuously executed;
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 comprises the following steps:
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.
2. The method of claim 1, wherein sensing a network quality value and a service classification corresponding to the network quality value at the service grid control plane side comprises: 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.
3. The method of claim 1, wherein querying the service grid control plane side for the network quality threshold corresponding to the service classification comprises:
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.
4. 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; if the network quality value is judged to be smaller than the network quality threshold value, the service request deadline corresponding to the service classification is adjusted to be monitoring time;
the service grid control surface side is further used for continuing to execute the step of sensing the network quality value and the service classification corresponding to the network quality value if the network quality value is judged to be greater than or equal to the network quality threshold;
the side car side 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.
5. The service request deadline processing system of claim 4, wherein 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.
6. The system according to claim 4, wherein the service mesh control plane 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.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810680122.8A CN108881451B (en) | 2018-06-27 | 2018-06-27 | Service request deadline processing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810680122.8A CN108881451B (en) | 2018-06-27 | 2018-06-27 | Service request deadline processing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108881451A CN108881451A (en) | 2018-11-23 |
CN108881451B true CN108881451B (en) | 2021-06-08 |
Family
ID=64295304
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810680122.8A Active CN108881451B (en) | 2018-06-27 | 2018-06-27 | Service request deadline processing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108881451B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11012520B2 (en) * | 2019-03-11 | 2021-05-18 | International Business Machines Corporation | Manage a network of microservices |
CN112351106B (en) * | 2020-11-12 | 2021-08-27 | 四川长虹电器股份有限公司 | Service grid platform containing event grid and communication method thereof |
CN112653597B (en) * | 2020-12-17 | 2022-07-12 | 中国联合网络通信集团有限公司 | Service grid-based service fusing mechanism adjusting method and system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10230571B2 (en) * | 2014-10-30 | 2019-03-12 | Equinix, Inc. | Microservice-based application development framework |
US10114970B2 (en) * | 2015-06-02 | 2018-10-30 | ALTR Solutions, Inc. | Immutable logging of access requests to distributed file systems |
-
2018
- 2018-06-27 CN CN201810680122.8A patent/CN108881451B/en active Active
Non-Patent Citations (2)
Title |
---|
Service Mesh(服务网格)入门;Mike;《运维之美》;20180408;全文 * |
Sidecar pattern;微软技术人员;《Sidecar pattern》;20170623;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN108881451A (en) | 2018-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108881451B (en) | Service request deadline processing method and system | |
WO2021082301A1 (en) | Sleep and wakeup method for in-vehicle hybrid network comprising in-vehicle ethernet | |
CN109828935B (en) | Parallel flash method based on CAN FD bus | |
CN104780080B (en) | Deep message detection method and system | |
CN105141704A (en) | Sleep wakeup method of vehicle-mounted communication controller assembly | |
US20160134436A1 (en) | Chain-type wireless sensor network-oriented hybrid media access control method | |
CN103906207A (en) | Wireless sensor network data transmission method based on self-adaptation required awakening technology | |
CN103942108B (en) | Resource parameters optimization method under Hadoop isomorphism cluster | |
CN106230997A (en) | A kind of resource regulating method and device | |
CN106060955B (en) | wireless sensor network MAC protocol polling control method based on three types of services | |
CN102750368B (en) | High-speed importing method of cluster data in data base | |
Li et al. | GSPN-based reliability-aware performance evaluation of IoT services | |
CN109104313B (en) | SFC dynamic deployment method with flow awareness and energy perception | |
CN110266757B (en) | Edge computing resource optimization method for task collaborative scene | |
CN108833167B (en) | Communication optimization system and method based on edge calculation | |
CN101909350A (en) | Method for maximizing lifetime in wireless network | |
CN106507699A (en) | Power consumption in control peer-to-peer communications | |
EP2477437B1 (en) | Method and device for operating and managing memory | |
WO2017165999A1 (en) | Network service implementation method, service controller, and communication system | |
US10674337B2 (en) | Method and device for processing operation for device peripheral | |
CN107122246B (en) | Intelligent numerical simulation operation management and feedback method | |
CN106101988B (en) | A method of reducing machine type communication access interference probability and time delay | |
CN111225413A (en) | Method and system for managing and controlling flow | |
CN103813425A (en) | Traffic self-adaptive energy-saving media access control method | |
CN113727461A (en) | Ad-hoc network flashing method of automobile assembly production line |
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 |