CN112054957B - Resource scheduling method, device, equipment and storage medium - Google Patents

Resource scheduling method, device, equipment and storage medium Download PDF

Info

Publication number
CN112054957B
CN112054957B CN202010803260.8A CN202010803260A CN112054957B CN 112054957 B CN112054957 B CN 112054957B CN 202010803260 A CN202010803260 A CN 202010803260A CN 112054957 B CN112054957 B CN 112054957B
Authority
CN
China
Prior art keywords
resource
request
routing
routing resource
requested
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
Application number
CN202010803260.8A
Other languages
Chinese (zh)
Other versions
CN112054957A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN202010803260.8A priority Critical patent/CN112054957B/en
Publication of CN112054957A publication Critical patent/CN112054957A/en
Application granted granted Critical
Publication of CN112054957B publication Critical patent/CN112054957B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/42Centralised routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/742Route cache; Operation thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • H04L45/7453Address table lookup; Address filtering using hashing

Abstract

The invention discloses a resource scheduling method, a device, equipment and a storage medium, wherein the method comprises the steps of judging whether a route resource to be requested corresponding to a route resource request is locked or not after a manufacturer equipment controller receives the route resource request of an operator controller; when the routing resource to be requested is locked, acquiring an MD5 value corresponding to the routing resource request, acquiring a resource list corresponding to an MD5 value, and feeding back the resource list to the operator controller; when the routing resource to be requested is not locked, the current transaction corresponding to the routing resource to be requested is started, the transmission line resource is applied in the current transaction, the validity of the resource applied by the operator controller can be ensured, the application and the use of the circuit resource by the operator controller are in different processes, the separation of the resource from the use is realized, the utilization rate of the routing resource is improved, the idle of a large amount of network resources is avoided by the manufacturer equipment controller, and the resource inquired by the operator controller is ensured to be the available resource.

Description

Resource scheduling method, device, equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a resource scheduling method, apparatus, device, and storage medium.
Background
In a Software Defined Network (SDN) communication Network, networks of equipment vendors are directly managed by Device Controllers (DCs) of the vendors, and an operator does not directly operate a private DC of the vendor to manage a sub-domain Network thereunder, but uniformly manages DCs of multiple vendors through a Super Controller (SC), thereby finally realizing cross-domain management of equipment of multiple vendors;
in the existing management mode, an SC is used to query whether a routing resource meeting a condition exists between intra-domain boundary points managed by each DC, and the creation of an intra-domain task is completed through the routing resource meeting the condition.
Disclosure of Invention
The invention mainly aims to provide a resource scheduling method, a resource scheduling device, equipment and a storage medium, and aims to solve the technical problems that in the prior art, a large amount of network resources of a manufacturer equipment controller are idle, and resources inquired by a super controller of an operator cannot be guaranteed to be available resources.
The invention provides a resource scheduling method, which comprises the following steps:
after receiving a routing resource request of an operator controller, a manufacturer equipment controller judges whether a to-be-requested routing resource corresponding to the routing resource request is locked;
when the routing resource to be requested is locked, acquiring an information summary algorithm MD5 value corresponding to the routing resource request, acquiring a resource list corresponding to an MD5 value, and feeding the resource list back to the operator controller;
and when the routing resource to be requested is not locked, starting a current transaction corresponding to the routing resource to be requested, and applying for a transmission line resource corresponding to the routing resource to be requested in the current transaction.
Optionally, after receiving a routing resource request from an operator controller, the manufacturer device controller determines whether a to-be-requested routing resource corresponding to the routing resource request is locked, including:
after receiving a routing resource request of an operator controller, a manufacturer equipment controller acquires a request characteristic parameter set corresponding to the routing resource request, wherein the request characteristic parameter set is a unique characteristic parameter set describing the routing resource request;
acquiring a request MD5 value corresponding to the request feature parameter set;
inquiring whether the request MD5 value exists in a preset first cache, and generating an inquiry result;
when the query result is that the request MD5 value exists, determining that the to-be-requested routing resource corresponding to the routing resource request is locked;
and when the query result is that the request MD5 value does not exist, determining that the to-be-requested routing resource corresponding to the routing resource request is not locked.
Optionally, when the routing resource to be requested is locked, obtaining an information summarization algorithm MD5 value corresponding to the routing resource request, obtaining a resource list corresponding to an MD5 value, and feeding back the resource list to the operator controller includes:
when the routing resource to be requested is locked, acquiring a request characteristic parameter set corresponding to the routing resource request, and acquiring a request MD5 value corresponding to the routing resource request from the request characteristic parameter set;
obtaining a request transaction unique code corresponding to the request MD5 value from the preset first cache;
acquiring resource detailed information corresponding to the unique code of the request transaction in a preset second cache, and generating a resource list according to the resource detailed information;
feeding back the resource inventory to the operator controller.
Optionally, when the routing resource to be requested is not locked, starting a current transaction corresponding to the routing resource to be requested, and after applying for a transmission line resource corresponding to the routing resource to be requested in the current transaction, the resource scheduling method further includes:
after the transmission line resource is successfully applied, acquiring a current transaction unique code of a current transaction, and storing the request MD5 value and the current transaction unique code into a preset first cache;
and acquiring a resource MD5 value corresponding to the resource data of the transmission line resource, and storing the resource MD5 value and the current transaction unique code into a preset second cache.
Optionally, after the resource MD5 value corresponding to the resource data of the transmission line resource is obtained and the resource MD5 value and the current transaction unique code are stored in a preset second buffer, the resource scheduling method further includes:
after receiving a line creation request of an operator controller, judging whether a to-be-issued routing resource corresponding to the line creation request is locked or not, and generating a judgment result;
and performing line creation on the prefabricated line corresponding to the to-be-issued routing resource according to the judgment result, or reapplying for transmission line resources.
Optionally, after receiving a line creation request of an operator controller, the method determines whether a to-be-issued routing resource corresponding to the line creation request is locked, and generates a determination result, where the determining step includes:
after receiving a line creation request of an operator controller, acquiring a line feature parameter set corresponding to the line creation request, wherein the line feature parameter set is a unique feature parameter set describing routing resources corresponding to the line creation request;
acquiring a line MD5 value corresponding to the line characteristic parameter set;
searching whether a resource MD5 value matched with the line MD5 value exists in the preset second cache, and generating a search result;
and judging whether the to-be-issued routing resource corresponding to the line creation request is locked or not according to the search result, and generating a judgment result.
Optionally, the determining, according to the search result, whether the to-be-issued routing resource corresponding to the route creation request is locked, and generating a determination result includes:
when the search result is that the resource MD5 value matched with the line MD5 value exists in the preset second cache, it is determined that the to-be-issued routing resource corresponding to the line creation request is locked;
and when the search result is that the resource MD5 value matched with the line MD5 value does not exist in the preset second cache, determining that the to-be-issued routing resource corresponding to the line creation request is not locked.
Optionally, the creating a line for the prefabricated line corresponding to the to-be-issued routing resource or reapplying for the transmission line resource according to the determination result includes:
obtaining a line transaction unique code corresponding to the line MD5 value from the preset second cache;
when the judgment result is that the routing resource to be issued is locked, submitting the line transaction corresponding to the unique code of the line transaction, completing the creation of the prefabricated line corresponding to the routing resource to be issued, and removing the cache data corresponding to the unique code of the line transaction from the preset first cache and the preset second cache;
and when the judgment result is that the routing resource to be issued is not locked, starting a line transaction corresponding to the routing resource to be issued, and applying for transmission line resources in the line transaction.
Optionally, after the manufacturer device controller receives a route resource request from an operator controller, and determines whether a to-be-requested route resource corresponding to the route resource request is locked, the resource scheduling method further includes:
acquiring the locking accumulated time of the target to-be-requested routing resource which is locked;
and comparing the locking accumulated time with a preset time threshold, releasing the target routing resource to be requested when the locking accumulated time is greater than the preset time threshold, and removing the transaction data corresponding to the target routing resource to be requested in a preset cache.
In a first aspect, the present invention further provides a resource scheduling method, where the resource scheduling method includes:
the operator controller sends a routing resource request to each manufacturer equipment controller, and receives a routing resource request result fed back by each manufacturer equipment controller, wherein the routing resource request result is a result of determining whether a to-be-requested routing resource is locked and whether a current transaction corresponding to the to-be-requested routing resource is started or not by each manufacturer equipment controller according to an information summary algorithm MD5 value corresponding to the routing resource request;
and when the routing resource request result is that all the routing resource requests of the equipment controllers of each manufacturer are successful, initiating a cross-domain service opening instruction.
Optionally, the initiating a cross-domain service provisioning instruction when the result of the routing resource request is that all routing resource requests of the vendor equipment controllers are successful includes:
when the routing resource request result is that all the routing resource requests of the equipment controllers of each manufacturer are successful, generating a cross-domain service opening instruction;
and decomposing the service to be cross-domain into line creation requests in the routing boundary points of each domain according to the cross-domain service opening instruction, and sending the line creation requests to equipment controllers of various manufacturers.
Optionally, after the to-be-cross-domain service is decomposed into the line creation request in the routing boundary point of each domain according to the cross-domain service provisioning instruction, and the line creation request is sent to each manufacturer device controller, the resource scheduling method further includes:
generating a rollback instruction when receiving line creation failure information fed back by part of manufacturer equipment controllers;
and sending the rollback instruction to a target manufacturer equipment controller with a successful line creation so that the target manufacturer equipment controller cancels the current line creation result.
In a second aspect, the present invention further provides a resource scheduling apparatus, where the resource scheduling apparatus includes:
the system comprises a judging module, a routing resource locking module and a routing resource locking module, wherein the judging module is used for judging whether a to-be-requested routing resource corresponding to a routing resource request is locked or not after receiving the routing resource request of an operator controller;
a resource list obtaining module, configured to obtain an information digest algorithm MD5 value corresponding to the route resource request when the route resource to be requested is locked, obtain a resource list corresponding to an MD5 value, and feed the resource list back to the operator controller;
and the transaction starting module is used for starting the current transaction corresponding to the routing resource to be requested when the routing resource to be requested is not locked, and applying for the transmission line resource corresponding to the routing resource to be requested in the current transaction.
In a third aspect, the present invention further provides a resource scheduling apparatus, where the resource scheduling apparatus includes: a memory, a processor and a resource scheduler stored on the memory and executable on the processor, the resource scheduler being configured to implement the steps of the resource scheduling method as described above.
In a fourth aspect, the present invention also provides a storage medium, on which a resource scheduling program is stored, and the resource scheduling program, when executed by a processor, implements the steps of the resource scheduling method as described above.
The resource scheduling method provided by the invention comprises the steps that after a manufacturer equipment controller receives a routing resource request of an operator controller, whether a to-be-requested routing resource corresponding to the routing resource request is locked or not is judged; when the routing resource to be requested is locked, acquiring an information summary algorithm MD5 value corresponding to the routing resource request, acquiring a resource list corresponding to an MD5 value, and feeding the resource list back to the operator controller; when the routing resource to be requested is not locked, a current transaction corresponding to the routing resource to be requested is started, the transmission line resource corresponding to the routing resource to be requested is applied in the current transaction, the validity of the resource applied by the operator controller can be ensured, the application and the use of the circuit resource by the operator controller are in different processes, the separation of resource things and use is realized, the utilization rate of the routing resource is improved, the manufacturer equipment controller avoids that a large amount of network resources are idle due to the fact that the operator controller applies the resource for multiple times, and the resource inquired by the operator controller is ensured to be an available resource.
Drawings
FIG. 1 is a schematic diagram of an apparatus architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a resource scheduling method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a resource scheduling method according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a resource scheduling method according to a third embodiment of the present invention;
FIG. 5 is a flowchart illustrating a resource scheduling method according to a fourth embodiment of the present invention;
FIG. 6 is a flowchart illustrating a fifth embodiment of a resource scheduling method according to the present invention;
FIG. 7 is a flowchart illustrating a resource scheduling method according to a sixth embodiment of the present invention;
FIG. 8 is a flowchart illustrating a resource scheduling method according to a seventh embodiment of the present invention;
FIG. 9 is a flowchart illustrating a resource scheduling method according to an eighth embodiment of the present invention;
FIG. 10 is a flowchart illustrating a ninth embodiment of a resource scheduling method according to the present invention;
FIG. 11 is a flowchart illustrating a tenth embodiment of a resource scheduling method according to the present invention;
FIG. 12 is a flowchart illustrating a resource scheduling method according to an eleventh embodiment of the present invention;
FIG. 13 is a functional block diagram of a resource scheduling apparatus according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The solution of the embodiment of the invention is mainly as follows: after receiving a routing resource request of an operator controller through a manufacturer equipment controller, judging whether a to-be-requested routing resource corresponding to the routing resource request is locked or not; when the routing resource to be requested is locked, acquiring an information summary algorithm MD5 value corresponding to the routing resource request, acquiring a resource list corresponding to an MD5 value, and feeding the resource list back to the operator controller; when the routing resource to be requested is not locked, a current transaction corresponding to the routing resource to be requested is started, the transmission line resource corresponding to the routing resource to be requested is applied in the current transaction, the validity of the resource applied by the operator controller can be ensured, the application and the use of the circuit resource by the operator controller are in different processes, the separation of resource and use is realized, the utilization rate of the routing resource is improved, the manufacturer equipment controller avoids that the network resource is greatly idle due to the fact that the operator controller applies for the resource for multiple times, the resource inquired by the operator controller is ensured to be the available resource, and the technical problems that in the prior art, the network resource of the manufacturer equipment controller is greatly idle, and the resource inquired by the super controller of the operator cannot be the available resource are solved.
Referring to fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the apparatus may include: a processor 1001, such as a CPU, a communication bus 1002, a user side interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a Wi-Fi interface). The Memory 1005 may be a high-speed RAM Memory or a Non-Volatile Memory (Non-Volatile Memory), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 1 is not intended to be limiting of the apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005 as a storage medium may include an operating device, a network communication module, a user side interface module, and a resource scheduler.
The apparatus of the present invention calls a resource scheduler stored in the memory 1005 through the processor 1001, and performs the following operations:
after receiving a routing resource request of an operator controller, judging whether a to-be-requested routing resource corresponding to the routing resource request is locked or not;
when the routing resource to be requested is locked, acquiring an information summary algorithm MD5 value corresponding to the routing resource request, acquiring a resource list corresponding to an MD5 value, and feeding the resource list back to the operator controller;
and when the routing resource to be requested is not locked, starting a current transaction corresponding to the routing resource to be requested, and applying for a transmission line resource corresponding to the routing resource to be requested in the current transaction.
Further, the processor 1001 may call a resource scheduler stored in the memory 1005, and also perform the following operations:
after receiving a routing resource request of an operator controller, acquiring a request feature parameter set corresponding to the routing resource request, wherein the request feature parameter set is a unique feature parameter set describing the routing resource request;
acquiring a request MD5 value corresponding to the request feature parameter set;
inquiring whether the request MD5 value exists in a preset first cache, and generating an inquiry result;
when the query result is that the request MD5 value exists, determining that the to-be-requested routing resource corresponding to the routing resource request is locked;
and when the query result is that the request MD5 value does not exist, determining that the to-be-requested routing resource corresponding to the routing resource request is not locked.
Further, the processor 1001 may call a resource scheduler stored in the memory 1005, and also perform the following operations:
when the routing resource to be requested is locked, acquiring a request characteristic parameter set corresponding to the routing resource request, and acquiring a request MD5 value corresponding to the routing resource request from the request characteristic parameter set;
obtaining a request transaction unique code corresponding to the request MD5 value from the preset first cache;
acquiring resource detailed information corresponding to the unique code of the request transaction in a preset second cache, and generating a resource list according to the resource detailed information;
feeding back the resource inventory to the operator controller.
Further, the processor 1001 may call a resource scheduler stored in the memory 1005, and also perform the following operations:
after the transmission line resource is successfully applied, acquiring a current transaction unique code of a current transaction, and storing the request MD5 value and the current transaction unique code into a preset first cache;
and acquiring a resource MD5 value corresponding to the resource data of the transmission line resource, and storing the resource MD5 value and the current transaction unique code into a preset second cache.
Further, the processor 1001 may call a resource scheduler stored in the memory 1005, and also perform the following operations:
after receiving a line creation request of an operator controller, judging whether a to-be-issued routing resource corresponding to the line creation request is locked or not, and generating a judgment result;
and performing line creation on the prefabricated line corresponding to the to-be-issued routing resource according to the judgment result, or reapplying for transmission line resources.
Further, the processor 1001 may call a resource scheduler stored in the memory 1005, and also perform the following operations:
after receiving a line creation request of an operator controller, acquiring a line feature parameter set corresponding to the line creation request, wherein the line feature parameter set is a unique feature parameter set describing routing resources corresponding to the line creation request;
acquiring a line MD5 value corresponding to the line characteristic parameter set;
searching whether a resource MD5 value matched with the line MD5 value exists in the preset second cache, and generating a search result;
and judging whether the to-be-issued routing resource corresponding to the line creation request is locked or not according to the search result, and generating a judgment result.
Further, the processor 1001 may call a resource scheduler stored in the memory 1005, and also perform the following operations:
obtaining a line transaction unique code corresponding to the line MD5 value from the preset second cache;
when the judgment result is that the routing resource to be issued is locked, submitting the line transaction corresponding to the unique code of the line transaction, completing the creation of the prefabricated line corresponding to the routing resource to be issued, and removing the cache data corresponding to the unique code of the line transaction from the preset first cache and the preset second cache;
and when the judgment result is that the routing resource to be issued is not locked, starting a line transaction corresponding to the routing resource to be issued, and applying for transmission line resources in the line transaction.
Further, the processor 1001 may call a resource scheduler stored in the memory 1005, and also perform the following operations:
acquiring the locking accumulated time of the target to-be-requested routing resource which is locked;
and comparing the locking accumulated time with a preset time threshold, releasing the target routing resource to be requested when the locking accumulated time is greater than the preset time threshold, and removing the transaction data corresponding to the target routing resource to be requested in a preset cache.
Further, the processor 1001 may call a resource scheduler stored in the memory 1005, and also perform the following operations:
the operator controller sends a routing resource request to each manufacturer equipment controller, and receives a routing resource request result fed back by each manufacturer equipment controller, wherein the routing resource request result is a result of determining whether a to-be-requested routing resource is locked and whether a current transaction corresponding to the to-be-requested routing resource is started or not by each manufacturer equipment controller according to an information summary algorithm MD5 value corresponding to the routing resource request;
and when the routing resource request result is that all the routing resource requests of the equipment controllers of each manufacturer are successful, initiating a cross-domain service opening instruction.
Further, the processor 1001 may call a resource scheduler stored in the memory 1005, and also perform the following operations:
when the routing resource request result is that all the routing resource requests of the equipment controllers of each manufacturer are successful, generating a cross-domain service opening instruction;
and decomposing the service to be cross-domain into line creation requests in the routing boundary points of each domain according to the cross-domain service opening instruction, and sending the line creation requests to equipment controllers of various manufacturers.
Further, the processor 1001 may call a resource scheduler stored in the memory 1005, and also perform the following operations:
generating a rollback instruction when receiving line creation failure information fed back by part of manufacturer equipment controllers;
and sending the rollback instruction to a target manufacturer equipment controller with a successful line creation so that the target manufacturer equipment controller cancels the current line creation result.
According to the scheme, after the manufacturer equipment controller receives the routing resource request of the operator controller, whether the routing resource to be requested corresponding to the routing resource request is locked is judged; when the routing resource to be requested is locked, acquiring an information summary algorithm MD5 value corresponding to the routing resource request, acquiring a resource list corresponding to an MD5 value, and feeding the resource list back to the operator controller; when the routing resource to be requested is not locked, a current transaction corresponding to the routing resource to be requested is started, the transmission line resource corresponding to the routing resource to be requested is applied in the current transaction, the validity of the resource applied by the operator controller can be ensured, the application and the use of the circuit resource by the operator controller are in different processes, the separation of resource things and use is realized, the utilization rate of the routing resource is improved, the manufacturer equipment controller avoids that a large amount of network resources are idle due to the fact that the operator controller applies the resource for multiple times, and the resource inquired by the operator controller is ensured to be an available resource.
Based on the hardware structure, the embodiment of the resource scheduling method is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a resource scheduling method according to a first embodiment of the present invention.
In a first embodiment, the resource scheduling method includes the following steps:
step S10, after the manufacturer device controller receives the route resource request from the operator controller, it determines whether the route resource to be requested corresponding to the route resource request is locked.
It should be noted that the routing resource is a request for applying for use of a resource corresponding to a relevant route, and after receiving a routing resource request from an operator controller, a manufacturer device controller determines whether a to-be-requested routing resource corresponding to the routing resource request is locked, and determines whether the to-be-requested routing resource has been requested but is not occupied by an actual circuit; the route resource request may be a cross-domain route request or an intra-domain route request, which is not limited in this embodiment.
Step S20, when the routing resource to be requested is locked, obtaining an information digest algorithm MD5 value corresponding to the routing resource request, obtaining a resource list corresponding to the MD5 value, and feeding back the resource list to the operator controller.
It should be understood that different routing resource requests may correspond to different values of the information summarization algorithm MD5, when the routing resource to be requested is locked, a resource list corresponding to the value of MD5 can be obtained, where the resource list is the detailed information of the locked resource corresponding to the value of MD5, and after the resource list is obtained, the detailed information of the locked resource can be directly fed back to the operator controller, so that the operator controller can quickly obtain the relevant resource corresponding to the resource list.
Step S30, when the routing resource to be requested is not locked, starting a current transaction corresponding to the routing resource to be requested, and applying for a transmission line resource corresponding to the routing resource to be requested in the current transaction.
It can be understood that the transmission line resource is an available transmission line resource corresponding to the routing resource to be requested, that is, an available circuit resource, when the routing resource to be requested is not locked, the manufacturer device controller may start a new transaction, that is, start the current transaction corresponding to the routing resource to be requested, and may apply for the circuit resource in the new transaction after starting the current transaction, that is, apply for the transmission line resource corresponding to the routing resource to be requested in the current transaction, thereby ensuring that the resource queried by the operator controller is the available resource.
According to the scheme, after the manufacturer equipment controller receives the routing resource request of the operator controller, whether the routing resource to be requested corresponding to the routing resource request is locked is judged; when the routing resource to be requested is locked, acquiring an information summary algorithm MD5 value corresponding to the routing resource request, acquiring a resource list corresponding to an MD5 value, and feeding the resource list back to the operator controller; when the routing resource to be requested is not locked, a current transaction corresponding to the routing resource to be requested is started, the transmission line resource corresponding to the routing resource to be requested is applied in the current transaction, the validity of the resource applied by the operator controller can be ensured, the application and the use of the circuit resource by the operator controller are in different processes, the separation of resource things and use is realized, the utilization rate of the routing resource is improved, the manufacturer equipment controller avoids that a large amount of network resources are idle due to the fact that the operator controller applies the resource for multiple times, and the resource inquired by the operator controller is ensured to be an available resource.
Further, fig. 3 is a flowchart illustrating a second embodiment of the resource scheduling method of the present invention, and as shown in fig. 3, the second embodiment of the resource scheduling method of the present invention is proposed based on the first embodiment, and in this embodiment, the step S10 specifically includes the following steps:
step S11, after receiving the route resource request from the operator controller, the manufacturer device controller obtains a request feature parameter set corresponding to the route resource request, where the request feature parameter set is a unique feature parameter set describing the route resource request.
It should be noted that, the request feature parameter set is a unique feature parameter set describing the routing resource request, and the request feature parameter set generally includes: source and destination ports, transmission line rates, routing constraints, i.e., resources that must be passed through and bypassed by the route, etc.; of course, the request feature parameter set may also include more or less parameters, which is not limited in this embodiment; of course, the request feature parameter sets corresponding to different routing resource requests are different, and the routing resource request needs to be analyzed to obtain the required feature parameters.
And step S12, obtaining the request MD5 value corresponding to the request feature parameter set.
It is understood that after obtaining the request feature parameter set, a message digest operation may be performed according to each feature parameter in the request feature parameter set, and a corresponding value of request MD5 is obtained through calculation.
And step S13, inquiring whether the request MD5 value exists in a preset first cache, and generating an inquiry result.
It should be understood that the preset first cache is a cache in the vendor device controller, and stored in the first cache is a key value pair consisting of a request MD5 value corresponding to a request feature parameter set and an ID of a transaction opened when applying for a routing resource, for example, (MD5-1, fransid), MD5-1 is a request MD5 value corresponding to the request feature parameter set, and fransid is an ID of a transaction opened when applying for a resource; by performing query operation in the preset first cache, it can be determined whether the request MD5 value corresponding to the request feature parameter set exists in the preset first cache.
And step S14, when the query result is that the request MD5 value exists, determining that the route resource to be requested corresponding to the route resource request is locked.
It can be understood that, when the query result is that the request MD5 value exists in the preset first cache, it may be determined that the to-be-requested routing resource corresponding to the routing resource request is locked, that is, the to-be-requested routing resource has been requested but is not occupied by an actual circuit.
And step S15, when the query result is that the request MD5 value does not exist, determining that the route resource to be requested corresponding to the route resource request is not locked.
It should be understood that, correspondingly, when the query result is that the request MD5 value does not exist in the preset first cache, it may be determined that the to-be-requested routing resource corresponding to the routing resource request is not locked, that is, the to-be-requested routing resource is not requested.
In this embodiment, with the above scheme, after receiving a routing resource request from an operator controller through a manufacturer device controller, a request feature parameter set corresponding to the routing resource request is obtained, where the request feature parameter set is a unique feature parameter set describing the routing resource request; acquiring a request MD5 value corresponding to the request feature parameter set; inquiring whether the request MD5 value exists in a preset first cache, and generating an inquiry result; when the query result is that the request MD5 value exists, determining that the to-be-requested routing resource corresponding to the routing resource request is locked; when the query result is that the request MD5 value does not exist, it is determined that the to-be-requested routing resource corresponding to the routing resource request is not locked, and it can be ensured that the resource queried by the operator controller is an available resource; the effectiveness of the operator controller applying for the resources can be ensured, the resources are prevented from being locked in large quantities due to repeated inquiry of the available routes, and the utilization rate of the route resources is improved.
Further, fig. 4 is a flowchart illustrating a resource scheduling method according to a third embodiment of the present invention, and as shown in fig. 4, the third embodiment of the resource scheduling method according to the present invention is proposed based on the first embodiment, in this embodiment, the step S20 specifically includes the following steps:
step S21, when the route resource to be requested is locked, obtaining a request feature parameter set corresponding to the route resource request, and obtaining a request MD5 value corresponding to the route resource request from the request feature parameter set.
It should be noted that, when the route resource to be requested is locked, the manufacturer device controller may obtain the request feature parameter set corresponding to the route resource request, and further obtain the request MD5 value corresponding to the route resource request from the request feature parameter set, that is, calculate the request MD5 value corresponding to the route resource request through a message digest algorithm.
Step S22, obtaining the unique code of the request transaction corresponding to the request MD5 value from the preset first cache.
It can be understood that the preset first cache stores a request MD5 value and an ID of a request transaction opened when applying for a resource, that is, a key value pair consisting of a unique code of a request transaction, and a request transaction ID when applying for a resource, that is, a unique code of a request transaction, corresponding to the request MD5 value can be obtained from the preset first cache through a query operation.
Step S23, obtaining resource detail information corresponding to the unique code of the request transaction from a preset second cache, and generating a resource list according to the resource detail information.
It should be noted that the preset first cache stores an MD5 value corresponding to the request feature parameter set and an ID of a transaction opened when applying for a routing resource; the preset second cache stores MD5 values corresponding to the routing resources, transaction IDs started when the routing resources are applied, and resource detailed information corresponding to each routing resource, and the resource detailed information corresponding to the MD5 value can be generally queried through the MD5 value corresponding to the routing resources.
It should be understood that the preset second cache is another cache in the vendor device controller, and is used for storing a key value pair consisting of a resource MD5 value corresponding to a routing resource and a transaction ID opened when applying for the routing resource, such as (MD5-2, fransid), where MD5-2 is an MD5 value corresponding to the routing resource and the fransid is a request transaction ID opened when applying for the routing resource; after the resource detailed information corresponding to the unique code of the request transaction is obtained from the preset second cache, a corresponding resource list can be generated according to the resource detailed information.
And step S24, feeding back the resource list to the operator controller.
It can be understood that after the resource list is obtained, the resource list is fed back to the operator controller, and through a timely and efficient feedback process, the speed and efficiency of the operator controller for calling related resources can be increased, the validity of the operator controller for applying for the resources can be ensured, the resources are prevented from being locked in a large amount due to repeated inquiry of available routes, and the utilization rate of the routing resources is improved.
In this embodiment, with the above scheme, when the route resource to be requested is locked, a request feature parameter set corresponding to the route resource request is obtained, and a request MD5 value corresponding to the route resource request is obtained from the request feature parameter set; obtaining a request transaction unique code corresponding to the request MD5 value from the preset first cache; acquiring resource detailed information corresponding to the unique code of the request transaction in a preset second cache, and generating a resource list according to the resource detailed information; feeding back the resource inventory to the operator controller; the speed and the efficiency of calling related resources by the operator controller can be increased, the effectiveness of applying for the resources by the operator controller can be ensured, the resources are prevented from being locked in large quantities due to repeated inquiry of available routes, and the utilization rate of the route resources is improved.
Further, fig. 5 is a flowchart illustrating a fourth embodiment of the resource scheduling method of the present invention, and as shown in fig. 5, the fourth embodiment of the resource scheduling method of the present invention is proposed based on the first embodiment, and in this embodiment, after step S30, the resource scheduling method further includes the following steps:
and step S40, after the transmission line resource is successfully applied, acquiring the current transaction unique code of the current transaction, and storing the request MD5 value and the current transaction unique code into a preset first cache.
It should be noted that, after applying for a successful transmission line resource, the vendor device controller may store the MD5 value corresponding to the request feature parameter set and the transaction ID of the current transaction, that is, the unique code of the current transaction, in the preset first buffer.
And step S50, acquiring a resource MD5 value corresponding to the resource data of the transmission line resource, and storing the resource MD5 value and the current transaction unique code in a preset second buffer.
It should be understood that the manufacturer device controller may apply for the resource MD5 value corresponding to the resource data, that is, the resource MD5 value corresponding to the resource data of the transmission line resource and the transaction ID of the open transaction, and store the current transaction unique code in the preset second buffer.
In this embodiment, by using the above scheme, after a transmission line resource is successfully applied, the unique current transaction code of the current transaction is obtained, and the MD5 value and the unique current transaction code are stored in the preset first cache; and acquiring a resource MD5 value corresponding to the resource data of the transmission line resource, and storing the resource MD5 value and the current transaction unique code in the preset second cache, so that the effectiveness of applying for the resource by the operator controller can be ensured, the application and the use of the operator controller for the circuit resource are in different processes, the separation of the things and the use of the resource is realized, and the utilization rate of the routing resource is improved.
Further, fig. 6 is a flowchart illustrating a fifth embodiment of the resource scheduling method of the present invention, and as shown in fig. 6, the fifth embodiment of the resource scheduling method of the present invention is proposed based on the fourth embodiment, in this embodiment, after step S50, the method for improving microservice further includes the following steps:
step S60, after receiving the route creation request from the operator controller, determining whether the to-be-issued routing resource corresponding to the route creation request is locked, and generating a determination result.
It should be noted that the line creation request is a request for creating a new line again, and the to-be-issued routing resource is a routing resource that needs to be called and corresponds to the line creation request; after receiving a line creation request of an operator controller, judging whether a to-be-issued routing resource corresponding to the line creation request is locked or not, so that the situations that the same resource is inquired, a calling error is caused, and network resources of a manufacturer equipment controller are greatly idle can be effectively avoided.
And step S70, according to the judgment result, performing circuit creation on the prefabricated circuit corresponding to the to-be-issued routing resource, or reapplying for transmission line resources.
It can be understood that the pre-established line is a pre-set line to be created corresponding to the route resource to be issued, that is, a line matched with the route resource to be issued, and it can be determined to create a pre-established line or reapply for a transmission line resource according to the determination result, depending on whether the route resource to be issued corresponding to the line creation request in the determination result is locked.
According to the scheme, after receiving the line creation request of the operator controller, the embodiment judges whether the to-be-issued routing resource corresponding to the line creation request is locked or not, and generates a judgment result; and performing line creation on the prefabricated line corresponding to the to-be-issued routing resource according to the judgment result, or reapplying for the transmission line resource, so that the flexibility of the manufacturer equipment controller for utilizing the routing resource can be improved, and the effectiveness of the resource applied by the operator controller is ensured.
Further, fig. 7 is a flowchart illustrating a sixth embodiment of the resource scheduling method of the present invention, and as shown in fig. 7, the sixth embodiment of the resource scheduling method of the present invention is proposed based on the fifth embodiment, in this embodiment, the step S60 specifically includes the following steps:
step S61, after receiving a route creation request from an operator controller, obtaining a route feature parameter set corresponding to the route creation request, where the route feature parameter set is a unique feature parameter set describing a routing resource corresponding to the route creation request.
It should be noted that, after receiving a line creation request from an operator controller, a line feature parameter set corresponding to the line creation request may be queried through a preset database; the line characteristic parameter set is a unique characteristic parameter set which describes a routing resource corresponding to the line creation request; the set of line characteristic parameters may generally comprise a complete routing structure, i.e. each network element intersection on each transmission line path; of course, the line characteristic parameter set and the patient may include other characteristic parameters, such as a line configuration parameter, and the like, which is not limited in this embodiment.
And step S62, acquiring the line MD5 value corresponding to the line characteristic parameter set.
It will be appreciated that the message digest algorithm may be used to calculate the line MD5 values based on the characteristic parameters in the set of line characteristic parameters.
Step S63, searching whether the resource MD5 value matching the line MD5 value exists in the preset second cache, and generating a search result.
It should be understood that, in the preset second cache of the manufacturer device controller, it may be searched whether there is a resource MD5 value matching the line MD5 value, and then a corresponding search result is generated, which is used as a basis for subsequently determining whether the resource required by the line creation is locked.
Step S64, determining whether the to-be-issued routing resource corresponding to the route creation request is locked according to the search result, and generating a determination result.
Further, the step S64 specifically includes the following steps:
when the search result is that the resource MD5 value matched with the line MD5 value exists in the preset second cache, it is determined that the to-be-issued routing resource corresponding to the line creation request is locked;
and when the search result is that the resource MD5 value matched with the line MD5 value does not exist in the preset second cache, determining that the to-be-issued routing resource corresponding to the line creation request is not locked.
It should be noted that, when the resource MD5 value matching the line MD5 value exists in the preset second cache, it may be determined that the to-be-issued routing resource corresponding to the line creation request is locked, and otherwise, the to-be-issued routing resource is not locked.
According to the scheme, after a line creation request of an operator controller is received, a line feature parameter set corresponding to the line creation request is obtained, wherein the line feature parameter set is a unique feature parameter set describing routing resources corresponding to the line creation request; acquiring a line MD5 value corresponding to the line characteristic parameter set; searching whether a resource MD5 value matched with the line MD5 value exists in the preset second cache, and generating a search result; judging whether the to-be-issued routing resource corresponding to the line creation request is locked or not according to the search result, and generating a judgment result; the method can ensure the accuracy of circuit creation, avoid the situation that the same resource is repeatedly created, ensure the effectiveness of the resource applied by the operator controller, and ensure that the resource inquired by the operator controller is the available resource.
Further, fig. 8 is a flowchart illustrating a seventh embodiment of the resource scheduling method of the present invention, and as shown in fig. 8, the seventh embodiment of the resource scheduling method of the present invention is proposed based on the fifth embodiment, in this embodiment, the step S70 specifically includes the following steps:
step S71, obtaining the unique line transaction code corresponding to the MD5 value from the preset second buffer.
It should be noted that the preset second cache stores a key value pair consisting of an MD5 value and a corresponding transaction ID, and the preset second cache can obtain a resource MD5 value matching the line MD5 value, and further determine the corresponding transaction ID, that is, the unique line transaction code, according to the resource MD5 value.
Step S72, when the determination result indicates that the routing resource to be issued is locked, submitting the line transaction corresponding to the unique line transaction code, completing creating a pre-manufactured line corresponding to the routing resource to be issued, and removing the cache data corresponding to the unique line transaction code from the preset first cache and the preset second cache.
It can be understood that, when the to-be-issued routing resource is locked, the manufacturer device controller may determine a corresponding line transaction through the line transaction unique code and submit the transaction, thereby completing creation of a pre-fabricated line and instantiating the pre-fabricated line, and at the same time, may remove an entry corresponding to the line transaction unique code and a corresponding cache from the pre-fabricated first cache and the pre-fabricated second cache.
And step S73, when the judgment result is that the to-be-issued routing resource is not locked, starting a line transaction corresponding to the to-be-issued routing resource, and applying for transmission line resources in the line transaction.
It should be understood that, when the to-be-issued routing resource is not locked, the manufacturer device controller may start a new transaction, that is, start a line transaction corresponding to the to-be-issued routing resource, apply for transmission of the line resource in the line transaction, and determine again whether the routing resource corresponding to the new transaction is locked.
In this embodiment, by using the above scheme, the unique line transaction code corresponding to the line MD5 value is obtained from the preset second buffer; when the judgment result is that the routing resource to be issued is locked, submitting the line transaction corresponding to the unique code of the line transaction, completing the creation of the prefabricated line corresponding to the routing resource to be issued, and removing the cache data corresponding to the unique code of the line transaction from the preset first cache and the preset second cache; when the judgment result is that the to-be-issued routing resource is not locked, the line transaction corresponding to the to-be-issued routing resource is started, the transmission line resource is applied in the line transaction, the accuracy of circuit creation can be ensured, the situation that the same resource is repeatedly created is avoided, the effectiveness of applying the resource by the operator controller can be ensured, the resource inquired by the operator controller is ensured to be an available resource, the application and the use of the circuit resource by the operator controller are in different processes, the separation of the things and the use of the resource is realized, and the utilization rate of the routing resource is improved.
Further, fig. 9 is a flowchart illustrating an eighth embodiment of the resource scheduling method of the present invention, and as shown in fig. 9, the eighth embodiment of the resource scheduling method of the present invention is proposed based on the first embodiment, and in this embodiment, after step S10, the resource scheduling method further includes the following steps:
and step S101, acquiring the locking accumulated time of the locked target to-be-requested routing resource.
It should be noted that the lock accumulated time is the accumulated time from the locking start of the target to-be-requested routing resource until the target to-be-requested routing resource is queried again, for example, if the resource is locked at a certain time, the lock accumulated time t starts to be counted; if the locked resource is queried again at a certain time, the locking accumulated time t is counted again.
Step S102, comparing the locking accumulated time with a preset time threshold, releasing the target to-be-requested routing resource when the locking accumulated time is greater than the preset time threshold, and removing transaction data corresponding to the target to-be-requested routing resource in a preset cache.
It can be understood that the preset time threshold is a preset time threshold for comparing with the lock accumulation time, the lock accumulation time is compared with the preset time threshold, when the lock accumulation time is greater than the preset time threshold, the target to-be-requested routing resource is released, a transaction applying for the target to-be-requested routing resource is cancelled, a corresponding resource is released, and a corresponding related entry is removed from a preset cache, that is, the transaction data corresponding to the target to-be-requested routing resource is removed.
According to the scheme, the locking accumulated time of the locked target to-be-requested routing resource is obtained; and comparing the locking accumulated time with a preset time threshold, releasing the target to-be-requested routing resource when the locking accumulated time is greater than the preset time threshold, and removing the transaction data corresponding to the target to-be-requested routing resource from a preset cache, so that the effectiveness and recoverability of the resource applied by the operator controller can be ensured, the resource is prevented from being locked in large quantity, and the utilization rate and the recovery rate of the routing resource are improved.
Accordingly, the present invention further provides a resource scheduling method, fig. 10 is a flowchart illustrating a ninth embodiment of the resource scheduling method of the present invention, and as shown in fig. 10, the resource scheduling method includes the following steps:
step S001, the operator controller sends a routing resource request to each manufacturer equipment controller, and receives a routing resource request result fed back by each manufacturer equipment controller, wherein the routing resource request result is a result of determining whether a to-be-requested routing resource is locked and whether a current transaction corresponding to the to-be-requested routing resource is started or not by each manufacturer equipment controller according to an information summary algorithm MD5 value corresponding to the routing resource request.
It should be noted that, the operator controller receives routing resource request results fed back by each manufacturer equipment controller, and may determine whether to initiate a cross-domain service provisioning instruction according to the routing resource request results, where the routing resource request results are results of determining, by each manufacturer equipment controller, whether to lock a to-be-requested routing resource according to an information digest algorithm MD5 value corresponding to the routing resource request, and whether to start a current transaction corresponding to the to-be-requested routing resource.
And step S002, when the routing resource request result is that all the routing resource requests of the equipment controllers of each manufacturer are successful, initiating a cross-domain service opening instruction.
It can be understood that, when the result of the routing resource request is that all routing resource requests are successful, a cross-domain service provisioning instruction may be generated and initiated, where the cross-domain service provisioning instruction is an instruction for provisioning a cross-domain service.
Correspondingly, after the step S002, the resource scheduling method further includes the steps of:
when the routing resource request result is that the routing resource requests of the equipment controllers of each manufacturer are not all successful, a cross-domain service opening instruction is not initiated;
and adjusting the current routing resource request strategy, re-sending routing resource requests to the equipment controllers of all manufacturers according to the adjusted routing request strategy, and receiving routing resource request results fed back by the equipment controllers of all manufacturers.
It should be understood that, when the result of the routing resource request is that the routing resource requests of the vendor equipment controllers are not all successful, that is, when some routing resources of the vendor equipment controllers are locked, a cross-domain service provisioning instruction is not initiated, and a current routing resource request policy is adjusted, that is, an operator controller adjusts a routing searching policy, and resends the routing resource request to each vendor equipment controller according to a new routing request policy, at this time, the vendor equipment controllers complete the recovery of the locked resources according to a recovery timeout mechanism, and the operator controller receives the routing resource request result fed back by each vendor equipment controller again.
According to the scheme, the operator controller sends the routing resource request to each manufacturer equipment controller, and receives the routing resource request result fed back by each manufacturer equipment controller, wherein the routing resource request result is the result of determining whether the routing resource to be requested is locked and whether the current transaction corresponding to the routing resource to be requested is started or not by each manufacturer equipment controller according to the information digest algorithm MD5 value corresponding to the routing resource request; when the routing resource request result is that all the routing resource requests of the equipment controllers of each manufacturer are successful, initiating a cross-domain service opening instruction; the effectiveness of the operator controller for applying the resources can be ensured, the operator controller applies and uses the circuit resources in different flows, the separation of the things and the use of the resources is realized, the utilization rate of the routing resources is improved, and the speed and the efficiency of opening the cross-domain service are improved.
Further, fig. 11 is a flowchart illustrating a tenth embodiment of the resource scheduling method of the present invention, and as shown in fig. 11, the tenth embodiment of the resource scheduling method of the present invention is proposed based on the ninth embodiment, and in this embodiment, the step S002 specifically includes the following steps:
step S0021, when the result of the route resource request is that all the route resource requests of the equipment controllers of each manufacturer are successful, generating a cross-domain service opening instruction.
It can be understood that, when the result of the routing resource request is that all the routing resource requests of the vendor equipment controllers are successful, that is, when all the vendor equipment controllers feed back that the routing resources to be requested are not locked, a cross-domain service provisioning instruction can be generated.
Step S0022, decomposing the service to be cross-domain into line establishing requests in the routing boundary points of each domain according to the cross-domain service opening instruction, and sending the line establishing requests to equipment controllers of various manufacturers.
It should be understood that, according to the cross-domain service provisioning instruction, the operator controller may initiate a cross-domain routing request, decompose the cross-domain request into resource requests in the routing boundary points of each domain, and issue the resource requests to each manufacturer equipment controller, that is, decompose the to-be-cross-domain service into line creation requests in the routing boundary points of each domain, and issue the line creation requests to each manufacturer equipment controller.
According to the scheme, when the result of the routing resource request is that all the routing resource requests of the equipment controllers of all manufacturers are successful, a cross-domain service opening instruction is generated; and decomposing the cross-domain service to be cross-domain into line creation requests in the routing boundary points of each domain according to the cross-domain service opening instruction, and sending the line creation requests to equipment controllers of various manufacturers, so that the effectiveness of applying for resources by an operator controller can be ensured, the equipment controllers of various manufacturers are fully called, the utilization rate of routing resources is further improved, and the speed and the efficiency of opening the cross-domain service are improved.
Further, fig. 12 is a flowchart illustrating a resource scheduling method according to an eleventh embodiment of the present invention, and as shown in fig. 12, based on the tenth embodiment, the eleventh embodiment of the resource scheduling method according to the present invention is proposed, in this embodiment, after step S0022, the resource scheduling method further includes the following steps:
and step S0023, generating a rollback instruction when receiving the line creation failure information fed back by part of manufacturer equipment controllers.
It should be noted that when monitoring that the line creation task corresponding to the line creation request fails, the manufacturer device controller may feed back line creation failure information to the operator controller, and the operator controller may generate a rollback instruction after receiving the line creation failure information.
And step S0024, sending the rollback instruction to a target manufacturer equipment controller with successful line creation so that the target manufacturer equipment controller cancels the current line creation result.
It can be understood that locked resources which are not used for a long time can be released in time by sending a rollback instruction to a target manufacturer equipment controller which is successfully established by a line and enabling the target manufacturer equipment controller to cancel the line establishment result; the utilization rate of routing resources is improved, a large amount of idle network resources of the manufacturer equipment controller are avoided, and the resources inquired by the operator controller are guaranteed to be available resources.
According to the scheme, the rollback instruction is generated when the route creation failure information fed back by part of manufacturer equipment controllers is received; sending the rollback instruction to a target manufacturer equipment controller with a successful line creation so that the target manufacturer equipment controller cancels the current line creation result; the locked resources which are not used for a long time can be released in time; the utilization rate of routing resources is improved, a large amount of idle network resources of the manufacturer equipment controller are avoided, and the resources inquired by the operator controller are guaranteed to be available resources.
Correspondingly, the invention further provides a resource scheduling device.
Referring to fig. 13, fig. 13 is a functional block diagram of a resource scheduling apparatus according to a first embodiment of the present invention.
In a first embodiment of the resource scheduling apparatus of the present invention, the resource scheduling apparatus includes:
a judging module 10, configured to judge whether a to-be-requested routing resource corresponding to a routing resource request is locked after receiving the routing resource request from an operator controller;
a resource list obtaining module 20, configured to obtain an information summary algorithm MD5 value corresponding to the route resource request when the route resource to be requested is locked, obtain a resource list corresponding to an MD5 value, and feed back the resource list to the operator controller;
and the transaction starting module 30 is configured to start a current transaction corresponding to the to-be-requested routing resource when the to-be-requested routing resource is not locked, and apply for a transmission line resource corresponding to the to-be-requested routing resource in the current transaction.
The steps implemented by each functional module of the resource scheduling apparatus may refer to each embodiment of the resource scheduling method of the present invention, and are not described herein again.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium may be a computer-readable non-volatile storage medium, and certainly may also be other types of storage media, which is not limited in this embodiment; the storage medium stores a resource scheduling program, and the resource scheduling program is executed by the processor to implement the method for implementing resource scheduling provided by the embodiment of the invention.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (13)

1. A resource scheduling method is applied to an SDN communication network, and comprises the following steps:
after receiving a routing resource request of an operator controller, a manufacturer equipment controller judges whether a to-be-requested routing resource corresponding to the routing resource request is locked;
when the routing resource to be requested is locked, acquiring an information summary algorithm MD5 value corresponding to the routing resource request, acquiring a resource list corresponding to an MD5 value, and feeding the resource list back to the operator controller;
when the routing resource to be requested is not locked, starting a current transaction corresponding to the routing resource to be requested, and applying for a transmission line resource corresponding to the routing resource to be requested in the current transaction;
after receiving a routing resource request of an operator controller, the manufacturer device controller determines whether a to-be-requested routing resource corresponding to the routing resource request is locked, including:
after receiving a routing resource request of an operator controller, a manufacturer equipment controller acquires a request characteristic parameter set corresponding to the routing resource request, wherein the request characteristic parameter set is a unique characteristic parameter set describing the routing resource request;
acquiring a request MD5 value corresponding to the request feature parameter set;
inquiring whether the request MD5 value exists in a preset first cache, and generating an inquiry result;
when the query result is that the request MD5 value exists, determining that the to-be-requested routing resource corresponding to the routing resource request is locked;
and when the query result is that the request MD5 value does not exist, determining that the to-be-requested routing resource corresponding to the routing resource request is not locked.
2. The method for scheduling resources according to claim 1, wherein when the routing resource to be requested is locked, obtaining an information summarization algorithm MD5 value corresponding to the routing resource request and obtaining a resource list corresponding to an MD5 value, and feeding back the resource list to the operator controller, comprises:
when the routing resource to be requested is locked, acquiring a request characteristic parameter set corresponding to the routing resource request, and acquiring a request MD5 value corresponding to the routing resource request from the request characteristic parameter set;
obtaining a request transaction unique code corresponding to the request MD5 value from the preset first cache;
acquiring resource detailed information corresponding to the unique code of the request transaction in a preset second cache, and generating a resource list according to the resource detailed information;
feeding back the resource inventory to the operator controller.
3. The resource scheduling method according to claim 2, wherein the starting of the current transaction corresponding to the to-be-requested routing resource when the to-be-requested routing resource is not locked, and after applying for the transmission line resource corresponding to the to-be-requested routing resource in the current transaction, the resource scheduling method further comprises:
after the transmission line resource is successfully applied, acquiring a current transaction unique code of a current transaction, and storing the request MD5 value and the current transaction unique code into a preset first cache;
and acquiring a resource MD5 value corresponding to the resource data of the transmission line resource, and storing the resource MD5 value and the current transaction unique code into a preset second cache.
4. The method for scheduling resources according to claim 3, wherein the obtaining of the value of the resource MD5 corresponding to the resource data of the transmission line resource, and after storing the value of the resource MD5 and the current transaction unique code in a preset second buffer, the method further comprises:
after receiving a line creation request of an operator controller, judging whether a to-be-issued routing resource corresponding to the line creation request is locked or not, and generating a judgment result;
and performing line creation on the prefabricated line corresponding to the to-be-issued routing resource according to the judgment result, or reapplying for transmission line resources.
5. The method of claim 4, wherein after receiving a line creation request from an operator controller, the determining whether a to-be-issued routing resource corresponding to the line creation request is locked and generating a determination result includes:
after receiving a line creation request of an operator controller, acquiring a line feature parameter set corresponding to the line creation request, wherein the line feature parameter set is a unique feature parameter set describing routing resources corresponding to the line creation request;
acquiring a line MD5 value corresponding to the line characteristic parameter set;
searching whether a resource MD5 value matched with the line MD5 value exists in the preset second cache, and generating a search result;
and judging whether the to-be-issued routing resource corresponding to the line creation request is locked or not according to the search result, and generating a judgment result.
6. The method of claim 4, wherein the creating the pre-established line corresponding to the to-be-issued routing resource or reapplying transmission line resources according to the determination result comprises:
obtaining a line transaction unique code corresponding to the line MD5 value from the preset second cache;
when the judgment result is that the routing resource to be issued is locked, submitting the line transaction corresponding to the unique code of the line transaction, completing the creation of the prefabricated line corresponding to the routing resource to be issued, and removing the cache data corresponding to the unique code of the line transaction from the preset first cache and the preset second cache;
and when the judgment result is that the routing resource to be issued is not locked, starting a line transaction corresponding to the routing resource to be issued, and applying for transmission line resources in the line transaction.
7. The resource scheduling method according to any one of claims 1 to 6, wherein after the vendor device controller receives a route resource request from an operator controller, and determines whether a route resource to be requested corresponding to the route resource request is locked, the resource scheduling method further comprises:
acquiring the locking accumulated time of the target to-be-requested routing resource which is locked;
and comparing the locking accumulated time with a preset time threshold, releasing the target routing resource to be requested when the locking accumulated time is greater than the preset time threshold, and removing the transaction data corresponding to the target routing resource to be requested in a preset cache.
8. A resource scheduling method is applied to an SDN communication network, and comprises the following steps:
the operator controller sends a routing resource request to each manufacturer equipment controller, and receives a routing resource request result fed back by each manufacturer equipment controller, wherein the routing resource request result is a result of determining whether a to-be-requested routing resource is locked and whether a current transaction corresponding to the to-be-requested routing resource is started or not by each manufacturer equipment controller according to an information summary algorithm MD5 value corresponding to the routing resource request;
when the routing resource request result is that all the routing resource requests of the equipment controllers of each manufacturer are successful, initiating a cross-domain service opening instruction;
after receiving a routing resource request of an operator controller, each manufacturer equipment controller acquires a request feature parameter set corresponding to the routing resource request, wherein the request feature parameter set is a unique feature parameter set for describing the routing resource request; acquiring a request MD5 value corresponding to the request feature parameter set; inquiring whether the request MD5 value exists in a preset first cache, and generating an inquiry result; when the query result is that the request MD5 value exists, determining that the to-be-requested routing resource corresponding to the routing resource request is locked; and when the query result is that the request MD5 value does not exist, determining that the to-be-requested routing resource corresponding to the routing resource request is not locked.
9. The method according to claim 8, wherein the initiating a cross-domain service provisioning instruction when the result of the routing resource request is that all routing resource requests of the vendor equipment controllers are successful comprises:
when the routing resource request result is that all the routing resource requests of the equipment controllers of each manufacturer are successful, generating a cross-domain service opening instruction;
and decomposing the service to be cross-domain into line creation requests in the routing boundary points of each domain according to the cross-domain service opening instruction, and sending the line creation requests to equipment controllers of various manufacturers.
10. The resource scheduling method according to claim 9, wherein after the cross-domain service to be resolved into the line creation request in the route boundary point of each domain according to the cross-domain service provisioning instruction and the line creation request is sent to each vendor equipment controller, the resource scheduling method further comprises:
generating a rollback instruction when receiving line creation failure information fed back by part of manufacturer equipment controllers;
and sending the rollback instruction to a target manufacturer equipment controller with a successful line creation so that the target manufacturer equipment controller cancels the current line creation result.
11. A resource scheduling apparatus, wherein the resource scheduling apparatus is applied to an SDN communication network, and the resource scheduling apparatus comprises:
the system comprises a judging module, a routing resource locking module and a routing resource locking module, wherein the judging module is used for judging whether a to-be-requested routing resource corresponding to a routing resource request is locked or not after receiving the routing resource request of an operator controller;
a resource list obtaining module, configured to obtain an information digest algorithm MD5 value corresponding to the route resource request when the route resource to be requested is locked, obtain a resource list corresponding to an MD5 value, and feed the resource list back to the operator controller;
a transaction starting module, configured to start a current transaction corresponding to the to-be-requested routing resource when the to-be-requested routing resource is not locked, and apply for a transmission line resource corresponding to the to-be-requested routing resource in the current transaction;
the judging module is further configured to obtain a request feature parameter set corresponding to a routing resource request after receiving the routing resource request from an operator controller, where the request feature parameter set is a unique feature parameter set describing the routing resource request; acquiring a request MD5 value corresponding to the request feature parameter set; inquiring whether the request MD5 value exists in a preset first cache, and generating an inquiry result; when the query result is that the request MD5 value exists, determining that the to-be-requested routing resource corresponding to the routing resource request is locked; and when the query result is that the request MD5 value does not exist, determining that the to-be-requested routing resource corresponding to the routing resource request is not locked.
12. A resource scheduling apparatus, characterized in that the resource scheduling apparatus comprises: memory, a processor and a resource scheduler stored on the memory and executable on the processor, the resource scheduler being configured to implement the steps of the resource scheduling method according to any of claims 1 to 10.
13. A storage medium having stored thereon a resource scheduler which, when executed by a processor, performs the steps of the resource scheduling method according to any one of claims 1 to 10.
CN202010803260.8A 2020-08-11 2020-08-11 Resource scheduling method, device, equipment and storage medium Active CN112054957B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010803260.8A CN112054957B (en) 2020-08-11 2020-08-11 Resource scheduling method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010803260.8A CN112054957B (en) 2020-08-11 2020-08-11 Resource scheduling method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112054957A CN112054957A (en) 2020-12-08
CN112054957B true CN112054957B (en) 2022-04-29

Family

ID=73601546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010803260.8A Active CN112054957B (en) 2020-08-11 2020-08-11 Resource scheduling method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112054957B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5845117A (en) * 1993-03-19 1998-12-01 Fujitsu Limited Deadlock detecting device
CN102137014A (en) * 2011-03-11 2011-07-27 华为技术有限公司 Resource management method, system and resource manager
CN106936706A (en) * 2015-12-29 2017-07-07 中国电信股份有限公司 Method for routing foundation and system and subdomain controller, master controller
CN107395737A (en) * 2017-08-04 2017-11-24 深圳Tcl新技术有限公司 Access method, apparatus, system and the computer-readable recording medium of Internet resources
CN107786455A (en) * 2016-08-24 2018-03-09 中兴通讯股份有限公司 Resource adjusting method, apparatus and system
CN109774747A (en) * 2017-11-14 2019-05-21 交控科技股份有限公司 The control method of line resource, intelligent vehicle-carried controller and object controller
CN109842522A (en) * 2019-02-01 2019-06-04 国家电网有限公司 Communicate the configuration method and system of route resource
CN110891033A (en) * 2018-09-07 2020-03-17 阿里巴巴集团控股有限公司 Network resource processing method, device, gateway, controller and storage medium
CN111026552A (en) * 2019-12-09 2020-04-17 腾讯科技(深圳)有限公司 Resource scheduling method and device, electronic equipment and computer readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8457297B2 (en) * 2005-12-30 2013-06-04 Aspect Software, Inc. Distributing transactions among transaction processing systems
CN101511131B (en) * 2009-03-04 2010-09-22 上海华为技术有限公司 Routing method, device and system
CN102103518B (en) * 2011-02-23 2013-11-13 运软网络科技(上海)有限公司 System for managing resources in virtual environment and implementation method thereof
CN102346460B (en) * 2011-05-27 2013-11-13 运软网络科技(上海)有限公司 Transaction-based service control system and method
WO2013133355A1 (en) * 2012-03-08 2013-09-12 日本電気株式会社 Route request mediation device, control device, route request mediation method and program
CN106330503A (en) * 2015-06-26 2017-01-11 中兴通讯股份有限公司 Automatically switched optical network resource control method and device
CN108462657B (en) * 2016-12-09 2022-01-18 诺基亚技术有限公司 Method and equipment for acquiring resources and information of SDN (software defined network) of different operators

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5845117A (en) * 1993-03-19 1998-12-01 Fujitsu Limited Deadlock detecting device
CN102137014A (en) * 2011-03-11 2011-07-27 华为技术有限公司 Resource management method, system and resource manager
CN106936706A (en) * 2015-12-29 2017-07-07 中国电信股份有限公司 Method for routing foundation and system and subdomain controller, master controller
CN107786455A (en) * 2016-08-24 2018-03-09 中兴通讯股份有限公司 Resource adjusting method, apparatus and system
CN107395737A (en) * 2017-08-04 2017-11-24 深圳Tcl新技术有限公司 Access method, apparatus, system and the computer-readable recording medium of Internet resources
CN109774747A (en) * 2017-11-14 2019-05-21 交控科技股份有限公司 The control method of line resource, intelligent vehicle-carried controller and object controller
CN110891033A (en) * 2018-09-07 2020-03-17 阿里巴巴集团控股有限公司 Network resource processing method, device, gateway, controller and storage medium
CN109842522A (en) * 2019-02-01 2019-06-04 国家电网有限公司 Communicate the configuration method and system of route resource
CN111026552A (en) * 2019-12-09 2020-04-17 腾讯科技(深圳)有限公司 Resource scheduling method and device, electronic equipment and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种支持并发业务的动态资源链路算法;潘芸等;《计算机与数字工程》;20100520(第05期);全文 *

Also Published As

Publication number Publication date
CN112054957A (en) 2020-12-08

Similar Documents

Publication Publication Date Title
CN108124003B (en) Network management equipment connection processing method, device and system
CN1470989A (en) Drive model independant of process mode
WO2013191802A2 (en) Provisioning of a virtual machine by using a secured zone of a cloud environment
CN1649324A (en) Method and apparatus for operating an open API network having a proxy
CN111258565B (en) Method, system, server and storage medium for generating applet
CN110289965B (en) Application program service management method and device
EP3402123B1 (en) Method and apparatus for transmitting request message
WO2021022714A1 (en) Message processing method for cross-block chain node, device, apparatus and medium
EP1899833A1 (en) Device management system and method for setting configuration-value therein
Charalambides et al. Policy conflict analysis for diffserv quality of service management
CN112054957B (en) Resource scheduling method, device, equipment and storage medium
CN110741617A (en) Resource updating method and device, computer equipment and storage medium
CN112686580B (en) Workflow definition method and system capable of customizing flow
CN105740656A (en) Data authority management method and device
Haddadou et al. Designing scalable on-demand policy-based resource allocation in IP networks
CN114328026B (en) Virtual disk backup method, device, equipment and medium
US20130013760A1 (en) Method for Coordinating the Provision of a Composite Services
JP2022500740A (en) How to deploy resources required for network functions, equipment, storage media and electronic equipment
CN110995519B (en) Load balancing method and device
CN112398908B (en) Block chain network node deleting method, system, storage medium and device
WO2017148104A1 (en) Method and apparatus for collectively managing bandwidth of passive optical network terminal
GB2607871A (en) Improvements in and relating to multi-access edge computing (MEC)
CN113568638A (en) Containerization non-stop issuing method for power monitoring system based on mirror image warehouse
CN113721938A (en) Edge-edge cooperative task processing method, device and system suitable for power Internet of things
CN111615819A (en) Method and device for transmitting data

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