CN112737965B - Method, system and computer readable storage medium for solving problem of limitation of concurrent access network element - Google Patents
Method, system and computer readable storage medium for solving problem of limitation of concurrent access network element Download PDFInfo
- Publication number
- CN112737965B CN112737965B CN202011618673.5A CN202011618673A CN112737965B CN 112737965 B CN112737965 B CN 112737965B CN 202011618673 A CN202011618673 A CN 202011618673A CN 112737965 B CN112737965 B CN 112737965B
- Authority
- CN
- China
- Prior art keywords
- tunnel
- queue
- network element
- leftnum
- detection result
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 20
- 238000001514 detection method Methods 0.000 claims abstract description 108
- 230000000903 blocking effect Effects 0.000 claims description 3
- 230000003247 decreasing effect Effects 0.000 claims description 2
- 238000011056 performance test Methods 0.000 claims 1
- 230000006870 function Effects 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 230000007958 sleep Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5022—Mechanisms to release resources
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/548—Queue
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method, a system and a computer readable storage medium for solving the problem of limitation of concurrent access network elements, wherein the method comprises the following steps: the method comprises the following steps: traversing the network elements one by one, inquiring all tunnels taking the network elements as source nodes, and adding the inquired tunnels to a tunnel queue to be detected; step two: according to the remaining concurrent number leftNum of the current equipment, removing the leftNum tunnels from the tunnel queue to be detected, issuing the detection of the tunnels to the equipment, and adding the tunnels to the tunnel queue which does not obtain the detection result; step three: removing the tunnel with the obtained result from the tunnel queue which does not obtain the detection result, releasing the occupied leftNum, and simultaneously storing the detection result on the controller; and repeating the steps to finish the acquisition of the tunnel performance information on the controller and simultaneously finish the control of the controller to access the network element concurrently. The invention can effectively solve the problem of concurrent access of the controller to the sudden increase of the network element and ensure the healthy and stable operation of the controller.
Description
Technical Field
The invention belongs to the technical field of application in an IP backbone Network and a 5G carrier Network, and particularly relates to concurrent control of a controller to access a Network element in an SDN (Software Defined Network) scene.
Background
With the continuous development of networks and the emergence of 4K, VR applications, the IP backbone network, which is an indispensable link for connecting various services, inevitably faces new problems and new challenges. Operators need to monitor various performance data of the network in real time, and find problems in time to cope with various emergency situations in the network. With the increasing scale of the device of the SDN network, the carrying service is more and more, and the user puts higher requirements on the intelligent operation and maintenance of the SDN network, including that the monitoring data has higher precision so as to detect and quickly adjust the micro-burst traffic in time, and meanwhile, the monitoring process has little influence on the function and performance of the device so as to improve the utilization rate of the device and the network.
In order to reduce the influence of monitoring on network element forwarding, the network element may make a certain limitation on concurrent access, and the concurrency of the controller for accessing the network element is suddenly changed, which may cause an access failure problem exceeding the concurrency capability of the network element.
Disclosure of Invention
In order to solve the technical problem, the invention provides a method for controlling a controller concurrent network element and solving the problem of limited concurrent access network elements, and the method can effectively solve the sudden increase of concurrent access of the controller to the network element and ensure the healthy and stable operation of the controller.
The invention is realized by the following scheme:
a system for solving a problem of restricted concurrent access to network elements, the system comprising:
a first producer, a tunnel queue to be detected, a first consumer, a tunnel queue which does not obtain a detection result and a second consumer, wherein,
the first producer regularly traverses the network element equipment, acquires all tunnels taking the network element equipment as a source node, and adds the inquired tunnels to a tunnel queue to be detected;
the tunnel queue to be detected maintains and stores state information of the tunnel to be detected, and is used for removing repeated tunnels;
the first consumer takes out leftNum tunnels from the tunnel queue to be detected according to the concurrent number leftNum supported by the current network element equipment, issues detection instructions of the tunnels to the network element equipment, and adds the tunnels to the tunnel queue which does not obtain the detection result;
the tunnel queue which does not obtain the detection result maintains a blocking queue, and tunnel information which has sent detection to the network element equipment but does not obtain the detection result is stored in the queue;
and the second consumer inquires the network element equipment about the detection result of the tunnel in the tunnel queue without obtaining the result, if the detection result is obtained, the tunnel inquired about the detection result is removed from the tunnel queue without obtaining the detection result, the occupied resource is released, and the detection result is stored in the controller.
Further, the tunnel queue to be detected maintains state information stored in its internal tunnel, and specifically includes three variables, namely, an existing tunnel ID unit existedtunneld, a tunnel waitingTunnel to be detected, and a remaining accessible resource quantity unit leftNum, where the existedtunneld represents an ID of the existing tunnel and includes the tunnel ID to be detected; the waitingTunnel is used for storing the tunnel to be detected; leftNum is used for controlling concurrency, and the initial value of the leftNum is the number of concurrency which can be supported by the network element.
Furthermore, each time a tunnel detection is issued to the network element equipment, the value of leftNum is reduced by one; and inquiring the detection result of one tunnel from the network element equipment every time, wherein the detection result of the tunnel on the network element equipment indicates that the tunnel is detected completely, and the value of leftNum is added with one.
Further, the first consumer is also a second generator, and if there is a tunnel in the waitingTunnel queue to be detected and the leftNum value is greater than 0, the tunnel is taken out from the tunnel queue to be detected according to the leftNum value and data of the tunnel in the waitingTunnel, the performance detection of the tunnel is issued to the source network element device corresponding to the tunnel, and the tunnel is added to the waitingTunnel queue which does not obtain a result; and each time, removing one tunnel from the to-be-detected tunnel queue waitingTunnel, subtracting one from leftNum, issuing the detection of the tunnel to the source network element equipment corresponding to the tunnel, and adding the tunnel to the tunnel queue without the result until the to-be-detected tunnel queue waitingTunnel is empty or the leftNum is equal to 0.
Furthermore, the second consumer waits when the tunnel queue which does not obtain the result is empty, if the tunnel queue which does not obtain the result is not empty, the second consumer inquires the detection result of the tunnel from the network element, after the detection result is obtained, the occupied resources are released, namely the leftNum is added with the number of the tunnels which have obtained the detection result, and the detection result is stored in the controller.
As a preferred embodiment of the present application, the network element device refers to a router or a switch.
The application also provides a method for solving the problem of limitation of concurrent access network elements by the system, which comprises the following steps:
the method comprises the following steps: a first producer regularly traverses the network element equipment, acquires all tunnels taking the network element equipment as a source node, and adds the inquired tunnels to a tunnel queue to be detected;
step two: the first consumer removes one tunnel from a waitingTunnel queue which does not send the detection each time, reduces one to leftNum, sends the detection information of the tunnel, adds the tunnel to the tunnel queue which does not obtain the result until the waitingTunnel queue which does not send the detection is empty or the leftNum is equal to 0;
step three: the second consumer blocks when the tunnel queue that does not obtain results is empty; if not, the second consumer inquires the detection result of the tunnel from the network element, releases the occupied resource when the detection result is obtained, namely adds the leftNum to the number of the tunnels obtaining the detection result, and stores the detection result to the controller;
and repeating the first step to the third step, thereby completing the acquisition of the tunnel performance information on the controller and simultaneously completing the control of the controller to access the network element concurrently.
Further, the second step is specifically as follows:
the first consumer inquires whether a tunnel exists in a tunnel queue waitingTunnel to be detected, if the tunnel exists and the value of leftNum in the first message center is larger than 0, a tunnel is removed from the head of the tunnel in the waitingTunnel, detection of the tunnel is issued to source network element equipment corresponding to the tunnel, the leftNum is subtracted, the tunnel is added into a queue which has issued the detection and does not acquire a detection result, and the waitingTunnel to be detected is empty or the leftNum is equal to 0.
Further, the third step is specifically:
step 3.1, the second consumer blocks when the tunnel queue which does not obtain the result is empty;
and 3.2, when the tunnel queue which does not obtain the result is not empty: a tunnel is taken from the head of the queue, the second consumer inquires the detection result of the tunnel from the network element, if the result is obtained, the result is recorded on the controller, and the occupied resource is released, namely leftNum is added by one; if the query result does not come out, waiting for a set time, and continuing to query the result until the maximum query times are exceeded or a detection result is obtained;
when the detection result is not obtained after the maximum query times are exceeded, releasing the resources occupied by the tunnel, namely adding one to leftNum;
and 3.3, acquiring a tunnel from the head of the tunnel queue which does not acquire the result, and repeating the step 3.2 until the tunnel queue which does not acquire the result is empty.
A computer-readable storage medium storing computer-executable instructions for performing the above-described method of resolving a restricted problem of concurrent access to a network element.
Advantageous effects
The invention uses a double-producer consumer mode to divide the model into a first producer, a tunnel queue to be detected, a first consumer (also a second producer), a tunnel queue which issues detection but does not obtain the detection result and a second consumer, each module has definite functions and plays its own roles, the acquisition of the tunnel performance information (time delay, jitter and packet loss) on the network element by the controller is completed together, meanwhile, the control of the controller on the concurrent access of the network element is considered, the peak clipping and the valley filling are carried out, and the problem of data loss on the controller caused by the failure of the concurrent access caused by the burst of the access amount is effectively solved. Meanwhile, the pressure on a CPU, an internal memory and the like of the network element equipment caused by overlarge concurrency of the controller is reduced. The invention has clear integral framework, clear responsibility of each functional module, simple and effective steps and solves the problem of controlling the concurrent access of the controller to the network element.
Drawings
FIG. 1 is a view showing an overall constitution of the solution;
FIG. 2 is a flow chart of a first producer completing a task;
FIG. 3 is a flow chart of a first consumer (second producer) completing a task;
FIG. 4 is a flow chart of a second consumer completing a task;
fig. 5 is an exemplary diagram of tunnel performance information collected from a network element.
Detailed Description
The invention will be further explained with reference to the drawings and the specific examples below:
in order to solve the problem that the concurrent access of the network element is limited, and the access failure exceeding the concurrent capability of the network element is possibly caused by the sudden change of the concurrent amount of the controller for accessing the network element suddenly. The invention provides a method for solving the problem of limitation of concurrent access network elements, which comprises the following specific implementation modes:
example 1
As shown in fig. 1, this embodiment provides a system for solving the problem of limited concurrent access network elements, where the system includes:
a first producer, a tunnel queue to be detected, a first consumer, a tunnel queue which does not obtain a detection result and a second consumer, wherein,
the first producer regularly traverses the network element equipment, acquires all tunnels taking the network element equipment as a source node, and adds the inquired tunnels to a tunnel queue to be detected;
the first producer is an object in the program, is responsible for inquiring the tunnel to be detected, is added into the queue of the tunnel to be detected, and is an independent thread when the program runs; the first consumer is also an object in the program and is responsible for taking the tunnel from the tunnel queue to be detected and issuing detection information to the network element equipment, and the first consumer is also an independent thread when the program runs; the second consumer is an object in the program and is responsible for inquiring the equipment about the detection result, deleting the tunnel of the detection result from the tunnel queue of the non-acquired result, and forming an independent thread when the program runs.
As shown in fig. 2, the first producer periodically queries the database of the controller, and traverses the network elements one by one to obtain all tunnels using the network element as a source node. Traversing the tunnels one by one, and if the tunnel does not exist in the tunnel queue waitingTunnel to be detected, adding the tunnel to the tunnel queue waitingTunnel to be detected; if so, skipping the tunnel; until all the inquired tunnels are processed.
The to-be-detected tunnel queue maintains and stores state information of the to-be-detected tunnel and is used for removing repeated tunnels;
the first consumer takes out leftNum tunnels from the tunnel queue to be detected according to the concurrent number leftNum supported by the current network element equipment, issues detection instructions of the tunnels to the network element equipment, and adds the tunnels to the tunnel queue which does not obtain the detection result;
the tunnel queue which does not obtain the detection result maintains a blocking queue, and tunnel information which has sent detection to the network element equipment but does not obtain the detection result is stored in the queue;
and the second consumer inquires the network element equipment about the detection result of the tunnel in the tunnel queue without obtaining the result, if the detection result is obtained, the tunnel inquired about the detection result is removed from the tunnel queue without obtaining the detection result, the occupied resource is released, and the detection result is stored in the controller.
Further, the tunnel queue to be detected maintains state information stored in the tunnel queue to be detected, and specifically includes three variables, namely an existing tunnel ID unit existedtunneld, a tunnel waitingTunnel to be detected, and a number unit left num of a remaining accessible resource, where the existedtunneld represents an ID of the existing tunnel and includes a tunnel ID to be detected; the waitingTunnel is used for storing the tunnel to be detected; leftNum is used for controlling concurrency, and the initial value of the leftNum is the number of concurrency which can be supported by the network element.
Furthermore, the value of leftNum is decreased by one when a tunnel is detected to the network element device, a detection result of one tunnel is inquired from the network element device each time, which indicates that the tunnel detection on the network element device is completed, and the value of leftNum is increased by one.
Further, the first consumer is also a second generator, and if there is a tunnel in the waitingTunnel to be detected, and the leftNum value is greater than 0, the tunnel is taken out from the tunnel queue to be detected according to the leftNum value and data of the tunnel in the waitingTunnel, the performance detection of the tunnel is issued to the source network element device corresponding to the tunnel, and the tunnel is added to the waitingTunnel queue which does not obtain the result: and each time, removing one tunnel from the to-be-detected tunnel queue waitingTunnel, subtracting one from leftNum, issuing the detection of the tunnel to the source network element equipment corresponding to the tunnel, and adding the tunnel to the tunnel queue without the result until the to-be-detected tunnel queue waitingTunnel is empty or the leftNum is equal to 0.
Further, the second consumer waits when the tunnel queue which does not obtain the result is empty, if the tunnel queue which does not obtain the result is not empty, the second consumer inquires the detection result of the tunnel from the network element, after the detection result is obtained, the occupied resources are released, namely the leftNum and the number of tunnels which have obtained the detection result are added, and the detection result is stored on the controller.
The network element device refers to a router or a switch, information of the network element device and a tunnel is stored in a controller, one tunnel corresponds to a source network element and a target network element, and when issuing detection, the information is issued to the source network element device corresponding to the tunnel.
The invention has clear integral framework and definite responsibility of each functional module, and solves the problem of controlling the concurrent access of the controller to the network element.
Example 2
Based on the system, the application also discloses a method for solving the problem of limitation of concurrent access network elements, which comprises the following steps:
the method comprises the following steps: a first producer regularly traverses the network element equipment, acquires all tunnels taking the network element equipment as a source node, and adds the inquired tunnels to a tunnel queue to be detected;
step two: the first consumer removes one tunnel from a waitingTunnel queue which does not send the detection each time, reduces one to leftNum, sends the detection information of the tunnel, adds the tunnel to the tunnel queue which does not obtain the result until the waitingTunnel queue which does not send the detection is empty or the leftNum is equal to 0;
step three: the second consumer blocks when the tunnel queue that does not obtain results is empty; if not, the second consumer inquires the detection result of the tunnel from the network element, releases the occupied resource when the detection result is obtained, namely adds the leftNum to the number of the tunnels obtaining the detection result, and stores the detection result to the controller;
and repeating the first step to the third step, thereby completing the acquisition of the tunnel performance information on the controller and simultaneously completing the control of the controller to access the network element concurrently.
Further, the second step specifically comprises:
the first consumer inquires whether a tunnel exists in a to-be-detected tunnel queue waitingTunnel, if the tunnel exists and the leftNum value in the first message center is larger than 0, one tunnel is removed from the head of the waitingTunnel, detection of the tunnel is issued to source network element equipment corresponding to the tunnel, the leftNum is subtracted, the tunnel is added to a queue which has issued the detection and does not acquire a detection result, and the to-be-detected tunnel queue waitingTunnel is empty or the leftNum is equal to 0.
If the tunnel queue to be detected has no tunnel, the first customer (also the second producer) blocks, and the tunnel queue waitingTunnel to be detected wakes up when a tunnel exists; if leftNum =0, the first consumer (also the second producer) sleeps automatically 1 second later. Here, sleep 1 second is indispensable, otherwise, a tunnel is caused in the to-be-detected tunnel queue waitingTunnel, but when leftNum is 0, the CPU runs high.
Further, the third step specifically comprises:
step 3.1, the second consumer blocks when the tunnel queue which does not obtain the result is empty;
step 3.2, when the tunnel queue which does not obtain the result is not empty: taking a tunnel from the head of the queue, inquiring the detection result of the tunnel from the network element by the second consumer, waiting for a set time if the inquiry result does not come out, and continuing to inquire the result until the maximum inquiry times is exceeded for 3 times or the detection result is obtained; if the detection result is not obtained for more than 3 times, releasing the resources occupied by the tunnel, namely adding one to leftNum; if the result is obtained, recording the result to the controller, and releasing the occupied resource, namely adding one to leftNum; the waiting time is the interval time for the controller to issue the query to the device, and the waiting time in this embodiment is 6 seconds.
And 3.3, acquiring a tunnel from the head of the tunnel queue which does not acquire the result, and repeating the step 3.2 until the tunnel queue which does not acquire the result is empty.
The invention uses a double-producer consumer mode to divide the model into a first producer, a tunnel queue to be detected, a first consumer (also a second producer), a tunnel queue which issues detection but does not obtain the detection result and a second consumer, each module has definite functions and plays its own roles, the acquisition of the tunnel performance information (time delay, jitter and packet loss) on the network element by the controller is completed together, meanwhile, the control of the controller on the concurrent access of the network element is considered, the peak clipping and the valley filling are carried out, and the problem of data loss on the controller caused by the failure of the concurrent access caused by the burst of the access amount is effectively solved. Meanwhile, the pressure on a CPU, an internal memory and the like of the network element equipment caused by overlarge concurrency of the controller is reduced.
The foregoing is a detailed description of the invention with reference to specific embodiments, and the practice of the invention is not to be construed as limited thereto. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.
Claims (10)
1. A system for solving a problem of restricted concurrent access to network elements, the system comprising:
a first producer, a tunnel queue to be detected, a first consumer, a tunnel queue which does not obtain a detection result and a second consumer, wherein,
the first producer regularly traverses the network element equipment, acquires all tunnels taking the network element equipment as a source node, and adds the inquired tunnels to a tunnel queue to be detected;
the tunnel queue to be detected maintains and stores state information of the tunnel to be detected, and is used for removing repeated tunnels;
the first consumer takes out leftNum tunnels from the tunnel queue to be detected according to the concurrent number leftNum supported by the current network element equipment, issues detection instructions of the tunnels to the network element equipment, and adds the tunnels to the tunnel queue which does not obtain the detection result;
the tunnel queue which does not obtain the detection result maintains a blocking queue, and tunnel information which has sent detection to the network element equipment but does not obtain the detection result is stored in the queue;
and the second consumer inquires the network element equipment about the detection result of the tunnel in the tunnel queue without obtaining the result, if the detection result is obtained, the tunnel inquired about the detection result is removed from the tunnel queue without obtaining the detection result, the occupied resource is released, and the detection result is stored in the controller.
2. The system for solving the problem of limitation of concurrent access network elements according to claim 1,
the method comprises the steps that a tunnel queue to be detected maintains state information stored in a tunnel inside the tunnel queue, and specifically comprises three variables, namely an existing tunnel ID unit existedTunnel Ids, a tunnel waitingTunnel to be detected and a quantity unit left Num of a residual accessible resource, wherein the existedTunnel Ids represents the ID of the existing tunnel and comprises the ID of the tunnel to be detected; the waitingTunnel is used for storing the tunnel to be detected; leftNum is used for controlling concurrency, and the initial value of the leftNum is the number of concurrency which can be supported by the network element.
3. The system of claim 2, wherein each time a tunnel check is issued to the network element device, the value of leftNum is decreased by one; and inquiring the detection result of one tunnel from the network element equipment every time, wherein the detection result of the tunnel on the network element equipment indicates that the tunnel is detected completely, and the value of leftNum is added with one.
4. The system according to claim 1, wherein the first consumer is also a second generator, and if there is a tunnel in the waitingTunnel to be detected and the leftNum value is greater than 0, the tunnel is taken out from the tunnel queue to be detected according to the leftNum value and data of the tunnel in the waitingTunnel, the performance test of the tunnel is issued to the source network element device corresponding to the tunnel, and the tunnel is added to the waitingTunnel queue that does not obtain the result; and removing one tunnel from the waitingTunnel queue to be detected each time, subtracting one from leftNum, issuing detection of the tunnel to source network element equipment corresponding to the tunnel, and adding the tunnel to the tunnel queue without the obtained result until the waitingTunnel queue to be detected is empty or the leftNum is equal to 0.
5. The system for solving the problem of limitation of concurrent access network elements according to claim 1,
and the second consumer waits when the tunnel queue which does not obtain the result is empty, inquires the detection result of the tunnel from the network element if the tunnel queue which does not obtain the result is not empty, releases the occupied resources after the detection result is obtained, namely adds the leftNum to the number of the tunnels which have obtained the detection result, and stores the detection result to the controller.
6. The system for solving the problem of limited concurrent access network elements according to any of claims 1 to 5, wherein the network element device is a router or a switch.
7. A method for solving a problem of restricted concurrent access to network elements, the method comprising the steps of:
the method comprises the following steps: a first producer regularly traverses the network element equipment, acquires all tunnels taking the network element equipment as a source node, and adds the inquired tunnels to a tunnel queue to be detected;
step two: the first consumer removes one tunnel from a waitingTunnel queue which does not send the detection each time, reduces one by leftNum, sends the detection information of the tunnel, and adds the tunnel to the tunnel queue which does not obtain the result until the waitingTunnel queue which does not send the detection is empty or the leftNum is equal to 0;
step three: the second consumer blocks when the tunnel queue that does not obtain the result is empty; if not, the second consumer inquires the detection result of the tunnel from the network element, releases the occupied resource when the detection result is obtained, namely adds the leftNum to the number of the tunnels obtaining the detection result, and stores the detection result to the controller;
and repeating the first step to the third step, thereby completing the acquisition of the tunnel performance information on the controller and simultaneously completing the control of the controller to access the network element concurrently.
8. The method for solving the problem of limitation of the concurrent access network element according to claim 7, wherein the second step specifically comprises:
the first consumer inquires whether a tunnel exists in a tunnel queue waitingTunnel to be detected, if the tunnel exists and the value of leftNum in the first message center is larger than 0, a tunnel is removed from the head of the tunnel in the waitingTunnel, detection of the tunnel is issued to source network element equipment corresponding to the tunnel, the leftNum is subtracted, the tunnel is added into a queue which has issued the detection and does not acquire a detection result, and the waitingTunnel to be detected is empty or the leftNum is equal to 0.
9. The method for solving the problem of limitation of the concurrent access network element according to claim 7, wherein the step three specifically comprises:
step 3.1, the second consumer blocks when the tunnel queue which does not obtain the result is empty;
step 3.2, when the tunnel queue which does not obtain the result is not empty: a tunnel is taken from the head of the queue, the second consumer inquires the detection result of the tunnel from the network element, if the result is obtained, the result is recorded on the controller, and the occupied resource is released, namely leftNum is added by one; if the query result does not come out, waiting for a set time, and continuing to query the result until the maximum query times are exceeded or the detection result is obtained;
when the detection result is not obtained after the maximum number of times of inquiry is exceeded, releasing the resources occupied by the tunnel, namely adding one to leftNum;
and 3.3, acquiring a tunnel from the head of the tunnel queue which does not acquire the result, and repeating the step 3.2 until the tunnel queue which does not acquire the result is empty.
10. A computer-readable storage medium, in which a program is stored which, when being executed by a processor, carries out a method of solving a problem of restricted concurrent access to network elements as claimed in any one of claims 7 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011618673.5A CN112737965B (en) | 2020-12-31 | 2020-12-31 | Method, system and computer readable storage medium for solving problem of limitation of concurrent access network element |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011618673.5A CN112737965B (en) | 2020-12-31 | 2020-12-31 | Method, system and computer readable storage medium for solving problem of limitation of concurrent access network element |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112737965A CN112737965A (en) | 2021-04-30 |
CN112737965B true CN112737965B (en) | 2022-12-23 |
Family
ID=75608255
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011618673.5A Active CN112737965B (en) | 2020-12-31 | 2020-12-31 | Method, system and computer readable storage medium for solving problem of limitation of concurrent access network element |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112737965B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103975625A (en) * | 2012-06-30 | 2014-08-06 | 华为技术有限公司 | A management method for forwarding plane tunnel resources under the control and forwarding decoupling architecture |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100488204C (en) * | 2006-05-17 | 2009-05-13 | 杭州华三通信技术有限公司 | Method for enquiring IPSec tunnel state |
CN102129393A (en) * | 2011-03-09 | 2011-07-20 | 南京恩瑞特实业有限公司 | Universal timed task management realization method |
US8607249B2 (en) * | 2011-09-22 | 2013-12-10 | Oracle International Corporation | System and method for efficient concurrent queue implementation |
CN104954226A (en) * | 2015-07-28 | 2015-09-30 | 上海斐讯数据通信技术有限公司 | SDN-based QoS-supported communication tunnel establishment method and system |
CN105656751A (en) * | 2016-02-16 | 2016-06-08 | 上海斐讯数据通信技术有限公司 | Layer-2 tunnel building method and system based on SDN |
WO2018111029A1 (en) * | 2016-12-15 | 2018-06-21 | 엘지전자(주) | Method for performing handover in wireless communication system and apparatus therefor |
-
2020
- 2020-12-31 CN CN202011618673.5A patent/CN112737965B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103975625A (en) * | 2012-06-30 | 2014-08-06 | 华为技术有限公司 | A management method for forwarding plane tunnel resources under the control and forwarding decoupling architecture |
Also Published As
Publication number | Publication date |
---|---|
CN112737965A (en) | 2021-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8909671B2 (en) | Load shedding in a data stream management system | |
JP3812236B2 (en) | Network management system with event control means | |
CN112751772B (en) | Data transmission method and system | |
JP2017507572A (en) | Method, system, and computer-readable medium for cloud-based virtual orchestrator | |
CN110650038A (en) | Security event log collecting and processing method and system for multiple classes of supervision objects | |
CN102354296B (en) | A kind of monitoring system and method that can expanding monitoring resources | |
CN111200526B (en) | Monitoring system and method of network equipment | |
CN103001809A (en) | Service node state monitoring method for cloud storage system | |
CN108881505A (en) | A kind of CAN bus node address distribution method and system | |
CN111970195B (en) | Data transmission method and streaming data transmission system | |
US20040083246A1 (en) | Method and system for performance management in a computer system | |
CN114553779A (en) | Network congestion control method, node, system and storage medium | |
WO2023109806A1 (en) | Method and apparatus for processing active data for internet of things device, and storage medium | |
WO2016124044A1 (en) | Method for processing warning information of passive optical device and optical line terminal | |
CN111064591A (en) | Data aggregation method, device, equipment, storage medium and system | |
CN112737965B (en) | Method, system and computer readable storage medium for solving problem of limitation of concurrent access network element | |
CN113810229B (en) | IOAM quality performance data analysis method and device based on time schedule | |
CN109462522A (en) | A kind of state monitoring method of external terminal device, terminal and its system | |
WO2007059667A1 (en) | A method for obtaining the network element alarm data | |
WO2021147319A1 (en) | Data processing method, apparatus, device, and medium | |
JP4342795B2 (en) | Supervisory control device | |
CN112994970A (en) | In-band network telemetry INT method and system based on capture and arrangement | |
CN101552747B (en) | Route management method, device and system | |
CN116471177A (en) | Dynamic configuration management system, method and medium for time sensitive network | |
CN105677853A (en) | Data storage method and device based on big data technology framework |
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 | ||
CP03 | Change of name, title or address |
Address after: No. 9 Mozhou East Road, Nanjing City, Jiangsu Province, 211111 Patentee after: Zijinshan Laboratory Country or region after: China Address before: No. 9 Mozhou East Road, Jiangning Economic Development Zone, Jiangning District, Nanjing City, Jiangsu Province Patentee before: Purple Mountain Laboratories Country or region before: China |