CN114189405A - Method, storage medium and device for automatically switching service ports by L2VPN - Google Patents
Method, storage medium and device for automatically switching service ports by L2VPN Download PDFInfo
- Publication number
- CN114189405A CN114189405A CN202111463699.1A CN202111463699A CN114189405A CN 114189405 A CN114189405 A CN 114189405A CN 202111463699 A CN202111463699 A CN 202111463699A CN 114189405 A CN114189405 A CN 114189405A
- Authority
- CN
- China
- Prior art keywords
- port
- standby
- l2vpn
- main
- processor
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000004590 computer program Methods 0.000 claims description 10
- 238000003032 molecular docking Methods 0.000 abstract 1
- 238000004891 communication Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 6
- 238000005538 encapsulation Methods 0.000 description 5
- 230000003068 static effect Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 210000001503 joint Anatomy 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- 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/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- 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/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to a method, a storage medium and equipment for automatically switching service ports by an L2VPN, wherein the method comprises the steps of setting an AC port of the L2VPN as a main AC port and a standby AC port, and specifically comprises the following steps of: the L2VPN AC port is configured with a main AC and a standby AC; step 2: the main AC and the standby AC are physical ports or subinterfaces, if the VLAN packaged by the main AC and the standby AC of the subinterfaces needs to be the same; and step 3: when the DOWN condition occurs in the main AC physical, the AC port service is switched, and the physical state of the standby AC port is judged; and 4, step 4: if the standby AC port is in physical UP, switching to the standby AC port; and 5: if the standby AC port is also DOWN, no switching is performed. The invention solves the limitation that SG binding is necessary for protecting the access AC port of the L2VPN service in the network, so that the main AC port and the standby AC port can be used for accessing the service more independently and flexibly. And SG docking is not required.
Description
Technical Field
The invention relates to the technical field of network communication, in particular to a method, a storage medium and equipment for automatically switching service ports of an L2 VPN.
Background
The VPN can be regarded as a private network isolated from a public network, and only resources allowed by the private network access can be mutually connected and intercommunicated, so that the resources are not maliciously interfered and damaged.
The L2VPN belongs to a kind of VPN technology, and the L2VPN has a close relationship with a layer 2 (i.e., a data link layer) in a 7-layer structure. That is, the tunnel encapsulation constituting the VPN is completed at the data link layer, and the client maps its three-layer routing to the network at the data link layer.
For MPLS L2VPN, after a packet is connected to the network, a header of a packet is repackaged in two layers to add MPLS header information, and two layers of switching are performed through a tunnel (transfer channel) created in advance, so that the packet is transferred to a destination one by one. In the process, the data packet does not need to be further analyzed, and complex routing decision does not need to be made on each network node, so that the routing information of an enterprise can be shielded, the security is enhanced, the requirement on an operation network is reduced, and the method is more suitable for VPN access of a large enterprise.
At present, an enterprise establishes its own network by a line provided by a leased operator, and the line is carried by L2VPN, as shown in fig. 1, a SG interface is generally used for conventional service access protection, and at this time, two physical links can no longer be used independently.
Disclosure of Invention
The invention provides a method, a storage medium and equipment for automatically switching service ports of an L2VPN, which can at least solve one of the technical problems in the background technology.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for automatically switching service ports of L2VPN comprises the following steps,
step 1: the L2VPN AC port is configured with a main AC and a standby AC;
step 2: the main AC and the standby AC can be physical ports or sub-interfaces, if VLAN packaged by the main AC and the standby AC of the sub-interfaces needs to be the same;
and step 3: when the DOWN condition occurs in the main AC physical, the AC port service is switched, and the physical state of the standby AC port is judged;
and 4, step 4: if the standby AC port is in physical UP, switching to the standby AC port;
and 5: if the standby AC port is also DOWN, the switching is not carried out;
in yet another aspect, the present invention also discloses a computer readable storage medium storing a computer program, which when executed by a processor causes the processor to perform the steps of the method as described above.
In yet another aspect, the present invention also discloses a computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the above method.
According to the technical scheme, the AC ports of the L2VPN are set as the main AC port and the standby AC port, and only one AC port of the traditional L2VPN is provided. The backup of service access cannot be made, but the SG port is very inflexible to make the backup, and two ports are completely occupied, and the invention solves the problem.
The invention solves the limitation that SG binding is necessary for protecting the L2VPN service access AC port in the network, so that the main AC port and the standby AC port can be used for accessing the service more independently and flexibly without SG butt joint.
Drawings
Fig. 1 is an introduction of a current service access backup usage scenario;
FIG. 2 is an introduction of a service access backup usage scenario of the present invention;
FIG. 3 is a business process when the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention.
As shown in fig. 2, the access protection of the present invention uses the primary AC and the standby AC for protection, one service only occupies one VLAN, and other VLANs of the primary AC and the standby AC can continue to independently serve as services without being limited by the SG. The network port resources can be utilized more flexibly and fully.
The method comprises the following specific steps:
as shown in fig. 3, a method for automatically switching service ports by L2VPN according to this embodiment includes:
the L2VPN AC port is configured with a main AC and a standby AC;
the main AC port and the standby AC port can be both physical ports and can also be sub-interfaces of the same VLAN;
when the DOWN condition occurs in the main AC physical, the AC port service is switched, and the physical state of the standby AC port is judged;
if the standby AC port is in physical UP, switching to the standby AC port;
if the standby AC port is also DOWN, the switching is not carried out;
the following are examples of configurations of the present invention:
0/6.1 and 0/5.1 are used as main and standby AC ports, when the ports are both UP in normal 0/6 and 0/5, 0/6.1 is used for service access, and when a link failure occurs in 0/6, the service is switched to 0/5.1
vpws 1
access-point gei-0/6.1
access-params ethernet
Backup-access-point gei-0/5.1
access-params ethernet
pseudo-wire pw8001
neighbour 7.7.7.17 vcid 10 cw-preferred
encapsulation tagged
signal static local-label 2008 remote-label 1008
tunnel-policy 8001
The other subinterfaces of 0/6 and 0/5 may still be configured for other services, which the SG interface cannot.
For example, as follows, 0/6.2 and 0/5.2 may configure two services respectively
vpws 2
access-point gei-0/6.2
access-params ethernet
pseudo-wire pw7001
neighbour 7.7.7.17 vcid 11 cw-preferred
encapsulation tagged
signal static local-label 2007 remote-label 1007
tunnel-policy 7001
vpws 3
access-point gei-0/5.2
access-params ethernet
pseudo-wire pw6001
neighbour 7.7.7.17 vcid 12 cw-preferred
encapsulation tagged
signal static local-label 2006 remote-label 1006
tunnel-policy 6001
While VLAN 2 can only configure one service if SG interfaces are used, for example:
vpws 4
access-point smartgroup1.2
access-params ethernet
pseudo-wire pw6001
neighbour 7.7.7.17 vcid 12 cw-preferred
encapsulation tagged
signal static local-label 2006 remote-label 1006
tunnel-policy 6001
as described above, the present invention has more flexible features than SG link bundling and the ability to open more services.
In yet another aspect, the present invention also discloses a computer readable storage medium storing a computer program, which when executed by a processor causes the processor to perform the steps of the method as described above.
In yet another aspect, the present invention also discloses a computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the above method.
It is understood that the system provided by the embodiment of the present invention corresponds to the method provided by the embodiment of the present invention, and the explanation, the example and the beneficial effects of the related contents can refer to the corresponding parts in the method.
The embodiment of the application also provides an electronic device, which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus,
a memory for storing a computer program;
the processor is used for realizing the method for automatically switching the service ports of the L2VPN when executing the program stored in the memory;
the communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus may be divided into an address bus, a data bus, a control bus, etc.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, or discrete hardware components.
In another embodiment provided by the present application, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the method for automatically switching service ports of any one of the above embodiments of the L2 VPN.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (3)
1. A method for automatically switching service ports of L2VPN is characterized in that an AC port of the L2VPN is set as a main AC port and a standby AC port, and comprises the following steps,
step 1: the L2VPN AC port is configured with a main AC and a standby AC;
step 2: the main AC and the standby AC are physical ports or subinterfaces, if the VLAN packaged by the main AC and the standby AC of the subinterfaces needs to be the same;
and step 3: when the DOWN condition occurs in the main AC physical, the AC port service is switched, and the physical state of the standby AC port is judged;
and 4, step 4: if the standby AC port is in physical UP, switching to the standby AC port;
and 5: if the standby AC port is also DOWN, no switching is performed.
2. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, causes the processor to carry out the steps of the method as claimed in claim 1.
3. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method of claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111463699.1A CN114189405A (en) | 2021-12-02 | 2021-12-02 | Method, storage medium and device for automatically switching service ports by L2VPN |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111463699.1A CN114189405A (en) | 2021-12-02 | 2021-12-02 | Method, storage medium and device for automatically switching service ports by L2VPN |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114189405A true CN114189405A (en) | 2022-03-15 |
Family
ID=80603319
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111463699.1A Pending CN114189405A (en) | 2021-12-02 | 2021-12-02 | Method, storage medium and device for automatically switching service ports by L2VPN |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114189405A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104854819A (en) * | 2012-12-12 | 2015-08-19 | 爱立信(中国)通信有限公司 | Method and device for vlan interface routing |
WO2020088465A1 (en) * | 2018-10-29 | 2020-05-07 | 盛科网络(苏州)有限公司 | Port configuration method and device, storage medium, and electronic device |
CN111740898A (en) * | 2020-05-26 | 2020-10-02 | 新华三信息安全技术有限公司 | Link switching method and device and service provider edge equipment |
-
2021
- 2021-12-02 CN CN202111463699.1A patent/CN114189405A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104854819A (en) * | 2012-12-12 | 2015-08-19 | 爱立信(中国)通信有限公司 | Method and device for vlan interface routing |
WO2020088465A1 (en) * | 2018-10-29 | 2020-05-07 | 盛科网络(苏州)有限公司 | Port configuration method and device, storage medium, and electronic device |
CN111740898A (en) * | 2020-05-26 | 2020-10-02 | 新华三信息安全技术有限公司 | Link switching method and device and service provider edge equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11683386B2 (en) | Systems and methods for protecting an identity in network communications | |
US10237230B2 (en) | Method and system for inspecting network traffic between end points of a zone | |
US20190140890A1 (en) | Method and system of a dynamic high-availability mode based on current wide area network connectivity | |
CN110838964B (en) | Network docking system for virtual network and physical network | |
US10178068B2 (en) | Translating network attributes of packets in a multi-tenant environment | |
CN113746782B (en) | Message processing method, device and related equipment | |
CN109525501B (en) | Method and device for adjusting forwarding path | |
CN110177010B (en) | Link switching method and device | |
US9843495B2 (en) | Seamless migration from rapid spanning tree protocol to ethernet ring protection switching protocol | |
US10880265B1 (en) | Systems and methods for improving network efficiency | |
US10419357B1 (en) | Systems and methods for supporting path maximum transmission unit discovery by maintaining metadata integrity across proprietary and native network stacks within network devices | |
US9426122B2 (en) | Architecture for network management in a multi-service network | |
US10225102B2 (en) | Network connectivity | |
EP3703314B1 (en) | Method of deploying a network configuration in a datacenter having a point of presence | |
CN114189405A (en) | Method, storage medium and device for automatically switching service ports by L2VPN | |
CN113472667B (en) | Message forwarding method, device, node equipment and storage medium | |
CN111698142B (en) | Message forwarding method and device, electronic equipment and storage medium | |
US11646995B2 (en) | Partitioned intrusion detection | |
US9240961B2 (en) | VLAN bridging path for virtual machines in MVRP environment without administrator intervention | |
CN116915585B (en) | Software-defined wide area network networking method, device, electronic equipment and storage medium | |
US10735292B1 (en) | Monitoring interconnections between network devices of different network entities | |
CN109587027B (en) | Message forwarding method and device | |
CN108809793A (en) | A kind of data transmission method, apparatus and system | |
CN116346536A (en) | Method, device, equipment and medium for virtual machine to access cloud platform management network | |
CN117201640A (en) | Method for processing message, communication device and communication system |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220315 |