CN108965088B - Method and device for establishing static tunnel - Google Patents
Method and device for establishing static tunnel Download PDFInfo
- Publication number
- CN108965088B CN108965088B CN201710388860.0A CN201710388860A CN108965088B CN 108965088 B CN108965088 B CN 108965088B CN 201710388860 A CN201710388860 A CN 201710388860A CN 108965088 B CN108965088 B CN 108965088B
- Authority
- CN
- China
- Prior art keywords
- static
- tunnel
- creating
- clients
- tunnels
- 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
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/70—Admission control; Resource allocation
- H04L47/82—Miscellaneous aspects
- H04L47/825—Involving tunnels, e.g. MPLS
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0806—Configuration setting for initial configuration or provisioning, e.g. plug-and-play
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method and a device for creating a static tunnel, wherein the method comprises the following steps: receiving commands which are issued by m clients and used for requesting to establish a static tunnel; generating m threads for creating the static tunnel according to the m commands, wherein the m threads correspond to the m clients one to one; using m threads to establish static tunnels on network elements through which the m clients are to establish the static tunnels; wherein m is an integer greater than 1. The invention solves the technical problem of low efficiency of establishing the static tunnel by a plurality of clients in the related technology, and shortens the service opening time.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for creating a static tunnel.
Background
In a Packet Transport Network (PTN) Network in the related art, when a static tunnel is created, end-to-end static tunnel creation Network management software is used, because one static tunnel passes through a plurality of Network elements, if one static tunnel is configured on a single point based on equipment, time is consumed, and information such as an incoming and outgoing label and a next hop which need to be configured for an adjacent Network element is prone to error, so that the end-to-end static tunnel configuration function provided by me is used for configuration on an engineering site.
In the related art, when creating a static tunnel, for a managed network element device, when creating a tunnel, for the same network element, the PTN device only supports running a creation command once at the same time, and a next creation command must wait for the last command to return, so that in the existing architecture, it is impossible to support more than two clients to create a tunnel for the same network element at the same time.
In view of the above problems in the related art, no effective solution has been found at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for creating a static tunnel, which are used for at least solving the technical problem of low efficiency of creating the static tunnel by a plurality of clients in the related art.
According to an embodiment of the present invention, there is provided a method for creating a static tunnel, including: receiving commands which are issued by m clients and used for requesting to establish a static tunnel; generating m threads for creating a static tunnel according to the m commands, wherein the m threads correspond to the m clients one to one; using the m threads to establish static tunnels on network elements through which the m clients are to establish the static tunnels; wherein m is an integer greater than 1.
Optionally, the receiving commands issued by m clients for requesting to create the static tunnel includes: and receiving commands which are issued by m clients and used for requesting to establish the static tunnel within preset time.
Optionally, creating a static tunnel on a network element through which the m clients are to establish the static tunnel by using the m threads includes: using the m threads to sequentially merge tunnel creation commands on network elements through which the m clients are to create static tunnels; and creating m static tunnels on the passing network elements according to the tunnel creating command.
Optionally, the sequentially combining tunnel creation commands on the network elements through which the m clients are to create the static tunnels by using the m threads includes: sending a message for indicating to combine the tunnel creating command to network elements of the m clients through which the static tunnels to be created pass; in the process of creating m static tunnels, after combining the tunnel creating commands of all static tunnels, the current network element transmits the tunnel creating command to the next network element through which the static tunnels to be created pass until the last network element.
Optionally, after the current network element passes the tunnel creation command to the next network element through which the static tunnel to be created passes, the method further includes: and sending a feedback message of successful tunnel establishment on the current network element to the thread.
Optionally, the method further comprises: and after receiving the feedback messages of the network elements passed by all the static tunnels, sending a message for indicating that the static tunnels are established to the m clients.
According to another embodiment of the present invention, there is provided an apparatus for creating a static tunnel, including: the receiving module is used for receiving commands which are issued by the m clients and used for requesting to establish the static tunnel; a creating module, configured to generate m threads for creating a static tunnel according to the m commands, where the m threads correspond to the m clients one to one; the establishing module is used for establishing static tunnels on network elements through which the static tunnels of the m clients are to be established by using the m threads; wherein m is an integer greater than 1.
Optionally, the establishing module includes: a merging unit, configured to use the m threads to sequentially merge tunnel creation commands on network elements through which static tunnels to be created by the m clients pass; and the creating unit is used for creating m static tunnels on the passing network elements according to the tunnel creating command.
Optionally, the merging unit is further configured to: sending a message for indicating to combine the tunnel creating command to network elements of the m clients through which the static tunnels to be created pass; in the process of creating m static tunnels, after combining the tunnel creating commands of all static tunnels, the current network element transmits the tunnel creating command to the next network element through which the static tunnels to be created pass until the last network element.
According to still another embodiment of the present invention, there is also provided a storage medium. The storage medium is configured to store program code for performing the steps of:
receiving commands which are issued by m clients and used for requesting to establish a static tunnel;
generating m threads for creating a static tunnel according to the m commands, wherein the m threads correspond to the m clients one to one;
using the m threads to establish static tunnels on network elements through which the m clients are to establish the static tunnels; wherein m is an integer greater than 1.
According to the invention, a command which is issued by m clients and used for requesting to establish the static tunnel is received; generating m threads for creating a static tunnel according to the m commands, wherein the m threads correspond to the m clients one to one; using the m threads to establish static tunnels on network elements through which the m clients are to establish the static tunnels; the method solves the technical problem of low efficiency of establishing the static tunnels by a plurality of clients in the related technology by establishing the static tunnels of the plurality of clients concurrently, and shortens the service opening time.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a network architecture diagram of an embodiment of the present invention;
FIG. 2 is a static tunnel requested to be created by client A in an embodiment of the present invention;
FIG. 3 is a static tunnel requested to be created by client B in an embodiment of the present invention;
FIG. 4 is a static tunnel requested to be created by client C in an embodiment of the present invention;
FIG. 5 is a static tunnel requested to be created by client D in an embodiment of the present invention;
FIG. 6 is a flow diagram of a method of creating a static tunnel according to an embodiment of the invention;
fig. 7 is a block diagram of an apparatus for creating a static tunnel according to an embodiment of the present invention;
FIG. 8 is a flow diagram of a concurrent creation of static tunnels of an embodiment of the present invention;
fig. 9 is a schematic diagram of concurrently creating static tunnels according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The embodiment of the present application can operate on the network architecture shown in fig. 1, where fig. 1 is a network architecture diagram of the embodiment of the present invention, and as shown in fig. 1, the network architecture includes: a plurality of Network Elements (NEs), servers (not shown), clients (not shown), wherein, for the networking architecture of fig. 1, all network elements are managed by one server of the network management software, but one server may access multiple clients, fig. 2 is a static tunnel requested to be created by the client a in the embodiment of the present invention, fig. 3 is a static tunnel requested to be created by the client B in the embodiment of the present invention, fig. 4 is a static tunnel requested to be created by client C in the embodiment of the present invention, and fig. 5 is a static tunnel requested to be created by client D in the embodiment of the present invention, then if "client a" wants to create a static tunnel through the static tunnel shown in fig. 2, "client B" wants to create a static tunnel through the static tunnel shown in fig. 3, "client C" wants to create a static tunnel through the static tunnel shown in fig. 4, and "client D" wants to create a static tunnel through the static tunnel shown in fig. 5. If the several clients all issue the command for creating the static tunnel to the server at the same time, that is, concurrently, based on the network management server architecture in the related art of the present invention, where the static tunnel management is created, the static tunnel management is locked based on the network element, that is, the creating commands of the above four clients, who comes first and executes first, is a mechanism for queuing the service based on the network element locking, because the static tunnels created by the 4 clients all pass through the same network element "NE 1", the network management software using the previously created static tunnels must be queued due to the locking, and can only be executed in sequence, and cannot issue the 4 tunnel creating commands to the "NE 1" network element to the device at the same time, thereby completing the concurrent operation.
In this embodiment, a method for creating a static tunnel, which is executed in the above server, is provided, and fig. 6 is a flowchart of a method for creating a static tunnel according to an embodiment of the present invention, as shown in fig. 6, the flowchart includes the following steps:
step S602, receiving commands for requesting to create static tunnels issued by m clients;
step S604, generating m threads for creating the static tunnel according to m commands, wherein the m threads correspond to the m clients one to one;
step S606, creating static tunnels on the network elements through which the m clients are to establish the static tunnels by using the m threads. Wherein m is an integer greater than 1.
Through the steps, receiving commands which are issued by m clients and used for requesting to establish the static tunnel; generating m threads for creating a static tunnel according to the m commands, wherein the m threads correspond to the m clients one to one; using the m threads to establish static tunnels on network elements through which the m clients are to establish the static tunnels; the method solves the technical problem of low efficiency of establishing the static tunnels by a plurality of clients in the related technology by establishing the static tunnels of the plurality of clients concurrently, and shortens the service opening time.
Alternatively, the executing subject of the above steps may be a server, or a management control device of the server, etc., but is not limited thereto.
Optionally, the receiving commands issued by m clients for requesting to create the static tunnel includes: and receiving commands which are issued by m clients and used for requesting to establish the static tunnel within preset time.
Optionally, creating a static tunnel on network elements through which the m clients are to create the static tunnel by using the m threads includes:
s11, using m threads to sequentially merge tunnel-creating commands on the network elements through which the m clients are to create the static tunnels; the create tunnel command is used to configure a static tunnel on each network element.
And S12, creating m static tunnels on the passing network elements according to the tunnel creating command.
In an optional implementation manner according to this embodiment, the sequentially combining the tunnel creation command on the network elements through which the m clients are to establish the static tunnels by using the m threads includes:
s21, sending a message for indicating the command of combining and creating the tunnel to the network elements of the m clients through which the static tunnels to be created pass;
s22, in the process of creating m static tunnels, after the current network element combines the tunnel creation commands of all static tunnels, the tunnel creation command is transmitted to the next network element through which the static tunnel to be created passes until the last network element.
Optionally, after the current network element transfers the tunnel creation command to the next network element through which the static tunnel to be created passes, the method further includes: and sending a feedback message of successful tunnel establishment on the current network element to the thread.
Optionally, in this embodiment, after receiving the feedback messages of the network elements through which all static tunnels pass, a message for indicating that the static tunnels are created is sent to the m clients.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a device for creating a static tunnel is further provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described again after the description is given. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 7 is a block diagram of an apparatus for creating a static tunnel according to an embodiment of the present invention, as shown in fig. 7, the apparatus including:
a receiving module 70, configured to receive a command for requesting to create a static tunnel, where the command is issued by m clients;
a creating module 72, configured to generate m threads for creating a static tunnel according to m commands, where the m threads correspond to m clients one to one;
an establishing module 74, configured to use m threads to establish static tunnels on network elements through which the m clients are to establish the static tunnels; wherein m is an integer greater than 7.
Optionally, the establishing module includes: the merging unit is used for sequentially merging tunnel creating commands on network elements through which the static tunnels to be created of the m clients pass by using the m threads; and the creating unit is used for creating m static tunnels on the passing network elements according to the tunnel creating command.
Optionally, the merging unit is further configured to: sending a message for indicating a command of combining and creating the tunnel to network elements of the m clients through which the static tunnels to be created pass; in the process of creating the m static tunnels, after combining tunnel creating commands of all the static tunnels, the current network element transmits the tunnel creating commands to the next network element through which the static tunnels to be created pass until the last network element.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
In this embodiment, a network management is taken as an example to implement a method for concurrently creating a static tunnel, and for example, 4(m is 4) clients are taken as an example to complete that a creation command passing through the same network element is issued to a network element such as "NE 1" at a time, so that the efficiency of concurrently creating a tunnel is improved.
Multiple clients concurrently create a static tunnel through the same network element, such as network element "NE 1" in fig. 1. The client sends a command for creating the static tunnel to the static tunnel creating module of the network management software, the static tunnel creating module can start 4 threads to perform concurrent operation, and because the same network element can only respond to one call command at the same time through the same network element, the concurrent operation cannot be supported because of the allocation of competitive resources such as tunnel ID and the like. Therefore, if the module capable of creating the static tunnel from end to end extracts the commands of multiple clients for creating the static tunnels passing through the same network element and then issues the commands to the equipment at one time, the problem that the commands cannot be processed concurrently in the related art can be solved.
The implementation scheme is explained by adopting the above four concurrent client creations, fig. 8 is a flowchart of concurrently creating a static tunnel according to an embodiment of the present invention, and fig. 9 is a schematic diagram of concurrently creating a static tunnel according to an embodiment of the present invention, including:
the client A, B, C, D issues the command for creating the static tunnel at the same time, and after the server receives the command for creating the static tunnel end to end, 4 threads for creating the static tunnel are started to complete the task, and the thread is named as thread A, B, C, D. Thread a is only used as an example (other threads are similar):
a merging module based on single network element equipment commands is provided in network management software, the module is message-driven, and can merge commands of different end-to-end static tunnels passing through the same single network element, and the merging module is named as a network element merging and issuing unit. The module is based on the granularity of the network elements, that is, the object of the 'network element merging issuing unit' is created according to the number of the network elements to be issued, and the 'network element merging issuing unit' records the corresponding relation between the end-to-end static tunnel and the single-point equipment tunnel creation command.
After receiving the command, the thread a does not apply for locking the network element, but analyzes the network elements passed by the static tunnel, finds that the secondary static tunnel passes through 4 network elements of "NE 1", "NE 3", "NE 5", and "NE 11", and then the thread sends a message to each of "NE 1 network element merged issuing unit", "NE 3 network element merged issuing unit", "NE 5 network element merged issuing unit", and "NE 11 network element merged issuing unit", and after the message is sent out, the thread a records that 4 messages for creating the tunnel command are sent out, and simultaneously the thread for creating the static tunnel end to end enters a waiting mode, and after the message for creating the tunnel of 4 single network elements is returned, the process is carried out again.
The NE1 network element merging and issuing unit receives the message of the thread A for creating the tunnel, finds that the message is the first received message, stores the created command in the memory of the NE1 network element merging and issuing unit, and simultaneously sends a timing message delayed for 1 second to the NE1 network element merging and issuing unit, wherein the message delayed for 1 second reaches the NE1 network element merging and issuing unit again. After the "NE 1 network element merging and issuing unit" sends the delay message, the tunnel creating command in the memory is not issued to the device immediately. Only marks that the self is in the delay waiting state now, and the commands for creating the tunnel received subsequently are all put into the self memory. The "processing of network element merging and issuing units" of "NE 3", "NE 5", and "NE 11" are similar.
Since thread B, C, D and thread A are nearly concurrent, thread B also sends a command to "NE 1 NE merge issue Unit" to create a tunnel, at which time it saves the received command in its memory since "NE 1 NE merge issue Unit" is in a delayed send state.
The 'NE 1 network element merging and issuing unit' receives a delayed sending message sent by itself to itself after 1 second, and assumes that the commands of the thread A, B, C, D for creating the tunnel of the network element 'NE 1' are all stored in the memory of the 'NE 1 network element merging and issuing unit', at this time, the 'NE 1 network element merging and issuing unit' takes out the commands from the memory and issues the commands to the device at one time, and after the device successfully returns to create the static tunnel, the 'NE 1 network element merging and issuing unit' sends the successful result of creating the tunnel to the message receiving module of the 'thread A, B, C, D' through a message.
After all the "network element merging and issuing units" return messages, the thread A, B, C, D wakes up the waiting thread for creating the static tunnel, returns the created result to the client, and completes the processing procedure of creating the whole tunnel. The method reduces the waiting time of end-to-end static tunnel creation caused by locking and the interaction times with the equipment, reduces the interaction times with the equipment, and improves the tunnel creation efficiency because the interaction with the equipment once is time-consuming.
In this embodiment, the client initiates the creation of the static tunnels concurrently, the created static tunnels pass through the same network element, and the delay time of the "network element merging and issuing unit" may be adjusted according to the actual situation, assuming that the concurrent requests are all within 1 second.
And after receiving the tunnel creation request, the server starts a thread to create the static tunnel within the range allowed by concurrency.
Each thread analyzes the network elements passing through the tunnel, issues the commands of the network elements to the network element merging and issuing unit, and then waits for the return messages of the network element merging and issuing units corresponding to the network elements.
The network element merging and issuing unit sends a message of 'delay sending command to equipment' to the network element merging and issuing unit after receiving the message, and then buffers the received message in a queue.
After receiving the message of 'delay sending command to equipment' sent by the 'network element merging and issuing unit', the 'network element merging and issuing unit' checks the command for establishing the tunnel in the message queue, takes out all the commands, sends the commands to the equipment through asynchronous commands at one time, and then waits for the equipment to return. In the process of sending, because the messages are asynchronous, the messages for establishing the tunnel can be continuously received and cached in the queue. After the equipment returns, the network element merging and issuing unit returns a creating result to each creating thread according to the received information. The 'network element merging and issuing unit' deletes the message which is returned to the creating thread in the queue. If the message queue is found to have a message, the message queue is sent to the equipment again, and if no message is found, the message of 'delaying sending the command to the equipment' is sent to the equipment again for the next round of operation.
After receiving the message of the 'network element merging and issuing unit' passed by all the tunnels, each thread for creating the static tunnel assembles the result to complete the work of the thread, and then returns the creation result to the client to complete the creation work of the static tunnel.
The above implementation describes a method for concurrently creating a static tunnel by taking the concurrent creation of a static tunnel of a PTN optical network as an example, but the scope of the present invention is not limited to this application, and any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope of the present invention should be covered by the scope of the present invention.
The embodiment provides a method for concurrently creating a static tunnel in the existing network management software, which improves the efficiency of concurrently creating tunnels passing through the same network element by a plurality of clients and shortens the service opening time.
In the embodiment, when the static tunnels passing through the same network element are created, commands of the created tunnels passing through the same network element are combined in a concurrent process and are issued to equipment at one time, interaction times of end-to-end static tunnel module creation and equipment commands are reduced, if 200 static tunnels passing through the same network element are created within 1 second, only 1 interaction command is needed, compared with previous 200 interactions, interaction times are greatly reduced, time is shortened, and efficiency is improved.
Example 4
The embodiment of the invention also provides a storage medium. Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, receiving commands sent by m clients for requesting to create the static tunnel;
s2, generating m threads for creating static tunnels according to the m commands, wherein the m threads correspond to the m clients one by one;
and S3, using the m threads to create static tunnels on network elements through which the m clients are to establish the static tunnels.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Optionally, in this embodiment, the processor executes, according to a program code stored in the storage medium, a command for requesting to create a static tunnel, which is issued by m clients;
optionally, in this embodiment, the processor executes, according to a program code stored in a storage medium, m threads for creating a static tunnel according to m commands, where the m threads are in one-to-one correspondence with the m clients;
optionally, in this embodiment, the processor executes, according to the program code stored in the storage medium, to create the static tunnels on the network elements through which the static tunnels of the m clients are to be established by using the m threads.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (9)
1. A method of creating a static tunnel, comprising:
receiving commands which are issued by m clients and used for requesting to establish a static tunnel;
generating m threads for creating a static tunnel according to the m commands, wherein the m threads correspond to the m clients one to one;
creating static tunnels on network elements through which the static tunnels to be created by the m clients pass by using the m threads, wherein the creating comprises the following steps: using the m threads to sequentially merge tunnel creation commands on network elements through which the m clients are to create static tunnels; creating m static tunnels on the passing network elements according to the tunnel creating command;
wherein m is an integer greater than 1.
2. The method of claim 1, wherein receiving commands for requesting the creation of the static tunnel issued by the m clients comprises:
and receiving commands which are issued by m clients and used for requesting to establish the static tunnel within preset time.
3. The method of claim 1, wherein using the m threads to sequentially merge tunnel creation commands on network elements through which the m clients are to establish static tunnels comprises:
sending a message for indicating to combine the tunnel creating command to network elements of the m clients through which the static tunnels to be created pass;
in the process of creating m static tunnels, after combining the tunnel creating commands of all static tunnels, the current network element transmits the tunnel creating command to the next network element through which the static tunnels to be created pass until the last network element.
4. The method of claim 3, wherein after the current network element passes the create tunnel command to the next network element through which the static tunnel is to be established, the method further comprises:
and sending a feedback message of successful tunnel establishment on the current network element to the thread.
5. The method of claim 4, further comprising:
and after receiving the feedback messages of the network elements passed by all the static tunnels, sending a message for indicating that the static tunnels are established to the m clients.
6. An apparatus for creating a static tunnel, comprising:
the receiving module is used for receiving commands which are issued by the m clients and used for requesting to establish the static tunnel;
a creating module, configured to generate m threads for creating a static tunnel according to the m commands, where the m threads correspond to the m clients one to one;
the establishing module is used for establishing static tunnels on network elements through which the static tunnels of the m clients are to be established by using the m threads;
wherein m is an integer greater than 1;
wherein the establishing module comprises:
a merging unit, configured to use the m threads to sequentially merge tunnel creation commands on network elements through which static tunnels to be created by the m clients pass;
and the creating unit is used for creating m static tunnels on the passing network elements according to the tunnel creating command.
7. The apparatus of claim 6, wherein the merging unit is further configured to:
sending a message for indicating to combine the tunnel creating command to network elements of the m clients through which the static tunnels to be created pass;
in the process of creating m static tunnels, after combining the tunnel creating commands of all static tunnels, the current network element transmits the tunnel creating command to the next network element through which the static tunnels to be created pass until the last network element.
8. A storage medium, comprising a stored program, wherein the program when executed performs the method of any one of claims 1 to 5.
9. A processor, characterized in that the processor is configured to run a program, wherein the program when running performs the method of any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710388860.0A CN108965088B (en) | 2017-05-25 | 2017-05-25 | Method and device for establishing static tunnel |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710388860.0A CN108965088B (en) | 2017-05-25 | 2017-05-25 | Method and device for establishing static tunnel |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108965088A CN108965088A (en) | 2018-12-07 |
CN108965088B true CN108965088B (en) | 2021-11-30 |
Family
ID=64494980
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710388860.0A Active CN108965088B (en) | 2017-05-25 | 2017-05-25 | Method and device for establishing static tunnel |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108965088B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101626337A (en) * | 2009-06-18 | 2010-01-13 | 南京联创科技股份有限公司 | Multiple tunnel concurrent model implementation method based on virtual network card technology |
CN102571616A (en) * | 2012-03-16 | 2012-07-11 | 中兴通讯股份有限公司 | Methods for combining and separating tunnels, tunnel association device and router |
CN102843247A (en) * | 2011-06-21 | 2012-12-26 | 中兴通讯股份有限公司 | Method and system for concurrently processing network element message |
CN103428888A (en) * | 2012-05-25 | 2013-12-04 | 中兴通讯股份有限公司 | Method and system for establishing direct tunnel |
CN105389253A (en) * | 2015-10-19 | 2016-03-09 | 烽火通信科技股份有限公司 | Method and system for simulating client to execute network element management based on multithreading technology |
CN105591773A (en) * | 2014-10-23 | 2016-05-18 | 中兴通讯股份有限公司 | Method, apparatus and system for concurrent processing of service creation and increment discovery |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101013995A (en) * | 2007-02-12 | 2007-08-08 | 华为技术有限公司 | Network node equipment, network system and tunnel establishment method |
-
2017
- 2017-05-25 CN CN201710388860.0A patent/CN108965088B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101626337A (en) * | 2009-06-18 | 2010-01-13 | 南京联创科技股份有限公司 | Multiple tunnel concurrent model implementation method based on virtual network card technology |
CN102843247A (en) * | 2011-06-21 | 2012-12-26 | 中兴通讯股份有限公司 | Method and system for concurrently processing network element message |
CN102571616A (en) * | 2012-03-16 | 2012-07-11 | 中兴通讯股份有限公司 | Methods for combining and separating tunnels, tunnel association device and router |
CN103428888A (en) * | 2012-05-25 | 2013-12-04 | 中兴通讯股份有限公司 | Method and system for establishing direct tunnel |
CN105591773A (en) * | 2014-10-23 | 2016-05-18 | 中兴通讯股份有限公司 | Method, apparatus and system for concurrent processing of service creation and increment discovery |
CN105389253A (en) * | 2015-10-19 | 2016-03-09 | 烽火通信科技股份有限公司 | Method and system for simulating client to execute network element management based on multithreading technology |
Also Published As
Publication number | Publication date |
---|---|
CN108965088A (en) | 2018-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2749339C1 (en) | Equipment control method, cluster system, electronic device and readable data media | |
CN112291298B (en) | Data transmission method, device, computer equipment and storage medium of heterogeneous system | |
CN106302090B (en) | A kind of message treatment method, apparatus and system | |
CN105187372A (en) | Method for data processing based on mobile application entrance, device and system | |
US20200159565A1 (en) | Predicting transaction outcome based on artifacts in a transaction processing environment | |
CN109361525B (en) | Method, device, control terminal and medium for restarting distributed deployment of multiple services | |
US20160306619A1 (en) | Method and device for remotely updating application program | |
US20230079314A1 (en) | Service server switching control method and apparatus, electronic device, and storage medium | |
CN113572864B (en) | Data processing method, network element equipment and readable storage medium | |
CN105516086A (en) | Service processing method and apparatus | |
CN113517985B (en) | File data processing method and device, electronic equipment and computer readable medium | |
US20130054735A1 (en) | Wake-up server | |
CN118018517A (en) | Data processing method, network element equipment and readable storage medium | |
CN107872492B (en) | Method and device for supporting multi-user editing of data object at server | |
CN111193789A (en) | Subscription information pushing method and device, computer equipment and readable storage medium | |
CN110798495B (en) | Method and server for end-to-end message push in cluster architecture mode | |
CN110661851A (en) | Data exchange method and device | |
CN103199990A (en) | Method and device for routing protocol authentication transfer | |
CN106790354B (en) | Communication method and device for preventing data congestion | |
CN108965088B (en) | Method and device for establishing static tunnel | |
CN111131367B (en) | Distributed access service processing method and device | |
CN112804087B (en) | Method, device, equipment and storage medium for realizing operation of alliance network | |
US9742927B2 (en) | Online charging method for always on IP connectivity | |
WO2016206470A1 (en) | Automatically switched optical network resource control method, apparatus and computer readable storage medium | |
CN113687962A (en) | Request processing method, device, equipment and storage medium |
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 |