CN105099748A - Method and system for migrating business tunnel - Google Patents
Method and system for migrating business tunnel Download PDFInfo
- Publication number
- CN105099748A CN105099748A CN201410223271.3A CN201410223271A CN105099748A CN 105099748 A CN105099748 A CN 105099748A CN 201410223271 A CN201410223271 A CN 201410223271A CN 105099748 A CN105099748 A CN 105099748A
- Authority
- CN
- China
- Prior art keywords
- service
- tunnel
- protection
- shared ring
- 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.)
- Pending
Links
Classifications
-
- 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/34—Signalling channels for network management communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
本发明提供了一种业务隧道迁移方法及系统,其中业务隧道迁移方法包括:判断待迁入或迁出共享环的业务隧道是否配置保护隧道,如否,则为业务隧道配置保护隧道;将业务隧道上承载的业务倒换到保护隧道上;将业务隧道迁入或迁出共享环;将保护隧道上承载的业务倒换到业务隧道上。本发明提供的方法通过为待迁入或迁出共享环的业务隧道配置保护隧道,在将业务隧道迁入或迁出共享环之前,将业务隧道上承载的业务倒换到保护隧道上,在业务隧道迁入或迁出共享环之后再将业务重新倒换到业务隧道上,从而确保业务隧道迁入或迁出共享环的操作不会影响到业务,即使业务隧道迁入或迁出共享环失败,也不会中断业务,提高了操作的安全性。
The present invention provides a service tunnel migration method and system, wherein the service tunnel migration method includes: judging whether a service tunnel to be migrated into or out of a shared ring is configured with a protection tunnel, and if not, configuring a protection tunnel for the service tunnel; The business carried on the tunnel is switched to the protection tunnel; the service tunnel is moved into or out of the shared ring; the service carried on the protection tunnel is switched to the service tunnel. The method provided by the present invention configures protection tunnels for service tunnels to be migrated into or out of the shared ring, and before migrating the service tunnels into or out of the shared ring, switches the services carried on the service tunnels to the protection tunnels. After the tunnel moves into or out of the shared ring, the service is switched to the service tunnel again, so as to ensure that the operation of moving the service tunnel into or out of the shared ring will not affect the service, even if the service tunnel fails to move in or out of the shared ring, It will not interrupt the business and improve the security of the operation.
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种业务隧道迁移方法及系统。The present invention relates to the field of communication technology, in particular to a service tunnel migration method and system.
背景技术Background technique
目前,在工程中部署环网保护时,都是采用G.8132标准的Wrapping(环同)和steering(源操控)两种单环保护方式,每个被保护的LSP(LabelSwitchingPath,标签交换路径)都有一个封闭保护环,存在配置工作量大、倒换动作多、倒换时间长的问题,甚至无法满足50ms电信级保护倒换要求。因此,在实际应用中,环网保护并没有真正使用起来,都是通过线性保护来部署保护子网,然而线性保护有一定的弊端,在环形网络发生多处异侧断纤或者节点掉电时,可能会无法进行保护。At present, when deploying ring network protection in the project, two single-ring protection methods, Wrapping (ring same) and steering (source control) of the G.8132 standard, are adopted. Each protected LSP (LabelSwitchingPath, label switching path) All have a closed protection ring, which has the problems of heavy configuration workload, many switching actions, and long switching time, and even cannot meet the requirements of 50ms carrier-class protection switching. Therefore, in practical applications, ring network protection is not really used, and the protection subnet is deployed through linear protection. However, linear protection has certain disadvantages. , may not be protected.
共享环保护方案的提出,刚好解决了以上问题。基于共享环的环网保护方法,采用LSP(LabelSwitchingPath,标签交换路径)嵌套机制,通过在一个环上建立多个多点到点(MP2P)的共享路径,每个共享路径上可以承载多个业务,业务可以从环上一个或多个节点入环,从同一个节点出环。所有在同一个节点出环的业务共享同一个环形工作/保护隧道,以达到优化环网配置、提高保护倒换性能的目的。The proposal of the shared environmental protection scheme just solved the above problems. The ring network protection method based on the shared ring adopts the LSP (LabelSwitchingPath, Label Switching Path) nesting mechanism. By establishing multiple multipoint-to-point (MP2P) shared paths on a ring, each shared path can carry multiple Services, services can enter the ring from one or more nodes on the ring and exit the ring from the same node. All the services that go out of the ring at the same node share the same ring working/protection tunnel, so as to optimize the ring network configuration and improve the performance of protection switching.
在业务隧道迁入或迁出共享环的过程中,可能会出现由于业务隧道迁入或迁出失败导致业务中断的现象,因此在业务隧道迁入和迁出共享环过程中,希望能够在不影响原有业务质量的前提下,将现有业务隧道安全地迁入和迁出共享环。During the migration of service tunnels into or out of the shared ring, services may be interrupted due to the failure of service tunnel migration in or out. Under the premise of affecting the original service quality, the existing service tunnels can be safely moved into and out of the shared ring.
发明内容Contents of the invention
本发明要解决的主要技术问题是,提供一种业务隧道迁移方法及系统,解决现有技术中在业务隧道迁入或迁出共享环的过程中,由于业务隧道迁入或迁出失败导致业务中断的问题。The main technical problem to be solved by the present invention is to provide a service tunnel migration method and system to solve the problem in the prior art that the service tunnel fails to migrate in or out of the shared ring problem of interruption.
为解决上述技术问题,本发明提供了一种业务隧道迁移方法,包括:判断待迁入或迁出共享环的业务隧道是否已经配置保护隧道,如否,则为业务隧道配置保护隧道;将业务隧道上承载的业务倒换到保护隧道上;将业务隧道迁入或迁出共享环;将保护隧道上承载的业务倒换到业务隧道上。In order to solve the above technical problems, the present invention provides a service tunnel migration method, including: judging whether the service tunnel to be migrated into or out of the shared ring has been configured with a protection tunnel, if not, configuring a protection tunnel for the service tunnel; The business carried on the tunnel is switched to the protection tunnel; the service tunnel is moved into or out of the shared ring; the service carried on the protection tunnel is switched to the service tunnel.
在本发明的一种实施例中,在将保护隧道上承载的业务倒换到业务隧道上之后,还包括:将保护隧道对应地迁入或迁出共享环。In an embodiment of the present invention, after switching the service carried on the protection tunnel to the service tunnel, it further includes: migrating the protection tunnel into or out of the shared ring correspondingly.
在本发明的一种实施例中,将保护隧道迁入或迁出共享环包括:对保护隧道对应的业务隧道执行闭锁操作;将保护隧道迁入或迁出共享环;对保护隧道对应的业务隧道执行解锁操作。In an embodiment of the present invention, moving the protection tunnel into or out of the shared ring includes: performing a blocking operation on the service tunnel corresponding to the protection tunnel; moving the protection tunnel into or out of the shared ring; The tunnel performs an unlock operation.
在本发明的一种实施例中,在判断待迁入或迁出共享环的业务隧道是否已经配置保护隧道之前还包括:根据目标共享环过滤出全网可迁入该共享环的业务隧道,将其作为待迁入业务隧道加入到待迁入共享环的业务隧道队列中;或从共享环中过滤出可迁出该共享环的业务隧道,将其作为待迁出业务隧道加入到待迁出共享环的业务隧道队列中;In an embodiment of the present invention, before judging whether the service tunnel to be migrated into or out of the shared ring has been configured with a protection tunnel, it further includes: filtering out the service tunnels that can be migrated into the shared ring in the entire network according to the target shared ring, Add it as a service tunnel to be migrated into the queue of service tunnels to be migrated into the shared ring; or filter out the service tunnels that can be migrated out of the shared ring from the shared ring, and add them as a service tunnel to be migrated out to the queue of service tunnels to be migrated In the service tunnel queue of the shared ring;
判断待迁入或迁出共享环的业务隧道是否已经配置保护隧道,如否,则为业务隧道配置保护隧道包括:逐个判断待迁入或迁出共享环的业务隧道队列中的业务隧道是否已经配置保护隧道,并为没有配置保护隧道的业务隧道配置保护隧道。Determine whether the service tunnels to be migrated into or out of the shared ring have been configured with protection tunnels. If not, configuring the protection tunnels for the service tunnels includes: judging one by one whether the service tunnels in the Configure protection tunnels, and configure protection tunnels for service tunnels that do not have protection tunnels.
在本发明的一种实施例中,当业务隧道迁入或迁出共享环失败时,可采用以下方式中的一种对业务隧道进行处理:对业务隧道的迁入或迁出操作执行回退操作,并将承载在业务隧道对应的保护隧道上的业务倒换到业务隧道上;或检查业务隧道的迁入或迁出操作,并在对检查出的问题进行修正之后,再将业务隧道迁入或迁出共享环。In an embodiment of the present invention, when a service tunnel fails to move in or out of the shared ring, one of the following methods may be used to process the service tunnel: perform rollback on the move in or move out of the service tunnel operation, and switch the services carried on the protection tunnel corresponding to the service tunnel to the service tunnel; or check the move-in or move-out operation of the service tunnel, and after correcting the detected problems, move the service tunnel into Or move out of the shared ring.
本发明还提供了一种业务隧道迁移系统,包括:判断模块、配置模块、第一倒换模块、业务隧道迁移模块和第二倒换模块;判断模块用于判断待迁入或迁出共享环的业务隧道是否已经配置保护隧道,如否,则通知配置模块;配置模块用于为业务隧道配置保护隧道;第一倒换模块用于将业务隧道上承载的业务倒换到保护隧道上;业务隧道迁移模块用于将业务隧道迁入或迁出共享环;第二倒换模块用于将保护隧道上承载的业务倒换到业务隧道上。The present invention also provides a service tunnel migration system, including: a judging module, a configuration module, a first switching module, a business tunnel migrating module, and a second switching module; Whether the tunnel has been configured with a protection tunnel, if not, then notify the configuration module; the configuration module is used to configure the protection tunnel for the service tunnel; the first switching module is used to switch the business carried on the service tunnel to the protection tunnel; the service tunnel migration module uses The second switching module is used to switch the service carried on the protection tunnel to the service tunnel.
在本发明的一种实施例中,系统还包括保护隧道迁移模块,保护隧道迁移模块用于在业务隧道迁入共享环,且保护隧道上承载的业务已经倒换到业务隧道上之后,将保护隧道迁入共享环;或在业务隧道迁出共享环,且保护隧道上承载的业务已经倒换到业务隧道上之后,将保护隧道迁出共享环。In an embodiment of the present invention, the system further includes a protection tunnel migration module, which is used to transfer the protection tunnel to the Move into the shared ring; or move the protection tunnel out of the shared ring after the service tunnel has moved out of the shared ring and the services carried on the protection tunnel have been switched to the service tunnel.
在本发明的一种实施例中,保护隧道迁移模块包括闭锁子模块、迁移子模块和解锁子模块;闭锁子模块用于对保护隧道对应的业务隧道执行闭锁操作;迁移子模块用于将保护隧道迁入或迁出共享环;解锁子模块用于对保护隧道对应的业务隧道执行解锁操作。In an embodiment of the present invention, the protection tunnel migration module includes a blocking submodule, a migration submodule, and an unlocking submodule; the blocking submodule is used to perform a blocking operation on the service tunnel corresponding to the protection tunnel; The tunnel moves into or out of the shared ring; the unlocking submodule is used to unlock the service tunnel corresponding to the protection tunnel.
在本发明的一种实施例中,系统还包括过滤模块,用于根据目标共享环过滤出全网可迁入该共享环的业务隧道,并将其作为待迁入业务隧道加入到待迁入共享环的业务隧道队列中;或用于从共享环中过滤出可迁出该共享环的业务隧道,将其作为待迁出业务隧道加入到待迁出共享环的业务隧道队列中;判断模块包括逐个判断子模块,用于逐个判断待迁入共享环的业务隧道队列或待迁出共享环的业务隧道队列中的业务隧道是否已经配置保护隧道,并通知配置模块为没有配置保护隧道的业务隧道配置保护隧道。In an embodiment of the present invention, the system further includes a filtering module, which is used to filter out service tunnels that can be migrated into the shared ring in the entire network according to the target shared ring, and add them as service tunnels to be migrated into the service tunnel to be migrated into In the service tunnel queue of the shared ring; or to filter out the service tunnels that can be migrated out of the shared ring from the shared ring, and add them as service tunnels to be migrated to the queue of service tunnels to be migrated out of the shared ring; the judging module Including one-by-one judging sub-modules, which are used to judge one by one whether the service tunnels in the service tunnel queues to be migrated into the shared ring or the service tunnels in the service tunnel queues to be migrated out of the shared ring have been configured with protection tunnels, and notify the configuration module as services without protection tunnels Tunnel configuration protects the tunnel.
在本发明的一种实施例中,系统还包括回退模块或修正模块;回退模块用于在业务隧道迁入或迁出共享环失败时,对业务隧道的迁入或迁出操作执行回退操作,并将承载在业务隧道对应的保护隧道上的业务倒换到业务隧道上;修正模块用于在业务隧道迁入或迁出共享环失败时,检查业务隧道的迁入或迁出操作,并对检查出的问题进行修正;在修正问题之后,再通知业务隧道迁移模块将业务隧道迁入或迁出共享环。In an embodiment of the present invention, the system further includes a rollback module or a correction module; the rollback module is used to perform rollback on the switch-in or switch-out operation of the service tunnel when the switch-in or switch-out of the service tunnel fails. back-off operation, and switch the service carried on the protection tunnel corresponding to the service tunnel to the service tunnel; the correction module is used to check the service tunnel’s move-in or move-out operation when the service tunnel fails to move in or out of the shared ring, And correct the detected problems; after correcting the problems, notify the service tunnel migration module to migrate the service tunnels into or out of the shared ring.
本发明的有益效果是:The beneficial effects of the present invention are:
本发明提供的业务隧道迁移方法及系统,可解决现有技术中在业务隧道迁入或迁出共享环的过程中,由于业务隧道迁入或迁出失败导致业务中断的问题。本发明提出的业务隧道迁移方法包括:判断待迁入或迁出共享环的业务隧道是否配置保护隧道,如否,则为业务隧道配置保护隧道;将业务隧道上承载的业务倒换到保护隧道上;将业务隧道迁入或迁出共享环;将保护隧道上承载的业务倒换到业务隧道上。本发明提供的方法通过为待迁入或迁出共享环的业务隧道配置保护隧道,在将业务隧道迁入或迁出共享环之前,将业务隧道上承载的业务倒换到保护隧道上,在业务隧道迁入或迁出共享环之后再将业务重新倒换到业务隧道上,从而确保业务隧道迁入或迁出共享环的操作不会影响到业务,即使业务隧道迁入或迁出共享环失败,也不会中断业务,从而降低了业务隧道迁入或迁出共享环过程中引起业务中断的风险,提高了操作的安全性。The service tunnel migration method and system provided by the present invention can solve the problem of service interruption caused by the failure of service tunnel migration in or out during the process of service tunnel migration into or out of the shared ring in the prior art. The service tunnel migration method proposed by the present invention includes: judging whether the service tunnel to be migrated into or out of the shared ring is configured with a protection tunnel, if not, configuring a protection tunnel for the service tunnel; switching the services carried on the service tunnel to the protection tunnel ; Move the service tunnel into or out of the shared ring; switch the service carried on the protection tunnel to the service tunnel. The method provided by the present invention configures protection tunnels for service tunnels to be migrated into or out of the shared ring, and before migrating the service tunnels into or out of the shared ring, switches the services carried on the service tunnels to the protection tunnels. After the tunnel moves into or out of the shared ring, the service is switched to the service tunnel again, so as to ensure that the operation of moving the service tunnel into or out of the shared ring will not affect the service, even if the service tunnel fails to move in or out of the shared ring, The business will not be interrupted, thereby reducing the risk of business interruption caused by the process of moving the business tunnel into or out of the shared ring, and improving the security of the operation.
附图说明Description of drawings
图1为本发明实施例一提供的业务隧道迁移方法的流程示意图;FIG. 1 is a schematic flowchart of a service tunnel migration method provided in Embodiment 1 of the present invention;
图2为本发明实施例二提供的业务隧道迁入共享环的方法的流程示意图;FIG. 2 is a schematic flowchart of a method for migrating a service tunnel into a shared ring according to Embodiment 2 of the present invention;
图3为本发明实施例三提供的业务隧道批量迁入共享环的方法的流程示意图;FIG. 3 is a schematic flowchart of a method for migrating service tunnels into a shared ring in batches according to Embodiment 3 of the present invention;
图4为本发明实施例四提供的保护隧道迁入共享环的方法的流程示意图;FIG. 4 is a schematic flowchart of a method for migrating a protection tunnel into a shared ring according to Embodiment 4 of the present invention;
图5为本发明实施例五提供的业务隧道迁出共享环的方法的流程示意图;FIG. 5 is a schematic flowchart of a method for migrating a service tunnel out of a shared ring according to Embodiment 5 of the present invention;
图6为本发明实施例六提供的业务隧道批量迁出共享环的方法的流程示意图;FIG. 6 is a schematic flowchart of a method for migrating service tunnels out of a shared ring in batches according to Embodiment 6 of the present invention;
图7为本发明实施例七提供的保护隧道迁出共享环的方法的流程示意图;FIG. 7 is a schematic flowchart of a method for migrating a protection tunnel out of a shared ring provided by Embodiment 7 of the present invention;
图8为本发明实施例八提供的一种业务隧道迁移系统结构示意图;FIG. 8 is a schematic structural diagram of a service tunnel migration system provided by Embodiment 8 of the present invention;
图9为本发明实施例八提供的另一种业务隧道迁移系统结构示意图;FIG. 9 is a schematic structural diagram of another service tunnel migration system provided by Embodiment 8 of the present invention;
图10为本发明实施例八提供的又一种业务隧道迁移系统结构示意图。FIG. 10 is a schematic structural diagram of another service tunnel migration system provided by Embodiment 8 of the present invention.
具体实施方式Detailed ways
下面通过具体实施方式结合附图对本发明作进一步详细说明。The present invention will be further described in detail below through specific embodiments in conjunction with the accompanying drawings.
实施例一:Embodiment one:
本实施例提供了一种业务隧道迁移方法,请参见图1,包括:This embodiment provides a service tunnel migration method, please refer to Figure 1, including:
步骤S101:判断待迁入或迁出共享环的业务隧道是否已经配置保护隧道,如否,则执行步骤S102,如是,则执行步骤S103。Step S101: Determine whether the service tunnel to be transferred into or out of the shared ring has been configured with a protection tunnel, if not, execute step S102, and if yes, execute step S103.
步骤S102:为业务隧道配置保护隧道。Step S102: Configure a protection tunnel for the service tunnel.
步骤S103:将业务隧道上承载的业务倒换到保护隧道上。Step S103: Switch the service carried on the service tunnel to the protection tunnel.
步骤S104:将业务隧道迁入或迁出共享环。Step S104: Migrate the service tunnel into or out of the shared ring.
步骤S105:将保护隧道上承载的业务倒换到业务隧道上。Step S105: Switch the service carried on the protection tunnel to the service tunnel.
为更好地对本实施例提出的业务隧道迁移方法进行说明,在本发明的实施例中将分别以业务隧道迁入和迁出共享环的方法进行说明。实施例二、三、四是对业务隧道迁入共享环的方法进行的说明,实施例五、六、七是对业务隧道迁出共享环的方法进行的说明。In order to better describe the service tunnel migration method proposed in this embodiment, in the embodiment of the present invention, the method of migrating a service tunnel into and out of a shared ring will be described respectively. Embodiments 2, 3, and 4 are descriptions of methods for migrating service tunnels into the shared ring, and embodiments 5, 6, and 7 are descriptions of methods for migrating service tunnels out of the shared ring.
实施例二:Embodiment two:
本实施例提供了一种业务隧道迁入共享环的方法,请参见图2,包括:This embodiment provides a method for migrating a service tunnel into a shared ring, as shown in Figure 2, including:
步骤S201:判断待迁入共享环的业务隧道是否已经配置保护隧道,如否,则执行步骤S202,如是,则执行步骤S203。Step S201: Determine whether the service tunnel to be migrated into the shared ring has been configured with a protection tunnel, if not, execute step S202, and if yes, execute step S203.
步骤S202:为业务隧道配置保护隧道。Step S202: Configure a protection tunnel for the service tunnel.
步骤S203:将业务隧道上承载的业务倒换到保护隧道上。Step S203: Switch the service carried on the service tunnel to the protection tunnel.
步骤S204:将业务隧道迁入共享环。Step S204: Migrate the service tunnel into the shared ring.
步骤S205:将保护隧道上承载的业务倒换到业务隧道上。Step S205: Switch the service carried on the protection tunnel to the service tunnel.
在步骤S201之前还可包括:根据目标共享环过滤出全网可迁入该共享环的业务隧道,将其作为待迁入业务隧道加入到待迁入共享环的业务隧道队列中。这样可以实现批量迁入业务隧道到共享环中。在将这些待迁入业务隧道加入队列中之后,逐个判断队列中的业务隧道是否已经配置保护隧道,并为没有配置保护隧道的业务隧道配置保护隧道。逐个判断队列中的业务隧道是否已经配置保护隧道,并为没有配置保护隧道的业务隧道配置保护隧道是为了确保每个业务隧道都有保护隧道,从而确保在批量迁入业务隧道的过程中,也不会因为迁入失败而导致业务中断。Before step S201, the method may further include: filtering out service tunnels in the entire network that can be migrated into the shared ring according to the target shared ring, and adding them as service tunnels to be migrated into the queue of service tunnels to be migrated into the shared ring. In this way, batch migration of service tunnels to the shared ring can be realized. After adding these service tunnels to be migrated into the queue, it is judged one by one whether the service tunnels in the queue have been configured with protection tunnels, and the protection tunnels are configured for the service tunnels not configured with protection tunnels. Determine whether the service tunnels in the queue have been configured with protection tunnels one by one, and configure the protection tunnels for the service tunnels without protection tunnels to ensure that each service tunnel has a protection tunnel, so as to ensure that during the batch migration process There will be no business interruption due to migration failure.
在步骤S201中,待迁入共享环的业务隧道指准备迁入共享环的业务隧道,这个业务隧道可以是线性业务隧道,也可以是来自其他环网的业务隧道。判断待迁入业务共享环的业务隧道是否已经配置保护隧道是指判断该业务隧道有没有保护隧道。因为业务隧道和保护隧道可组成保护子网,所以该步骤的另一种说法是:判断待迁入共享环的业务隧道是否和保护隧道构成了保护子网。该步骤的目的就是:确保每一个准备迁入共享环的业务隧道都有保护隧道,从而确保在后续的迁入的过程中,通过使用保护隧道保证业务不会中断。如果在这一步骤中,对业务隧道配置保护隧道失败,则可以选择不再进行配置,也不再将业务隧道迁入共享环;也可以对配置操作进行检查,并对检查出的问题进行修正,在修正之后,再执行倒换操作。In step S201, the service tunnel to be migrated into the shared ring refers to the service tunnel to be migrated into the shared ring, and the service tunnel may be a linear service tunnel or a service tunnel from another ring network. Judging whether the service tunnel to be migrated into the service sharing ring has been configured with a protection tunnel refers to judging whether the service tunnel has a protection tunnel. Because the service tunnel and the protection tunnel can form a protection subnet, another way of saying this step is to judge whether the service tunnel to be migrated to the shared ring forms a protection subnet with the protection tunnel. The purpose of this step is to ensure that each service tunnel to be migrated into the shared ring has a protection tunnel, so as to ensure that the service will not be interrupted by using the protection tunnel in the subsequent migration process. If in this step, the configuration of the protection tunnel for the service tunnel fails, you can choose not to configure it, and you can no longer migrate the service tunnel to the shared ring; you can also check the configuration operation and correct the detected problems , after the correction, perform the switching operation.
在上述步骤S203中,将业务隧道上承载的业务倒换到保护隧道上,也即对业务隧道执行强制倒换操作,强制倒换后,业务将承载在保护隧道上,在清除倒换之前不会发生自然倒换操作。在上述步骤S205中,将保护隧道上承载的业务倒换到业务隧道上,也即对业务隧道执行清除倒换操作,在清除倒换后,业务将会承载在业务隧道上,业务隧道将恢复自然状态。自然状态是指业务将会根据自然条件发生倒换,不再受人为约束。如果在这一步骤中,倒换失败,则可以选择不再进行倒换,也不再将业务隧道迁入共享环;也可以对倒换操作进行检查,并对检查出的问题进行修正,在修正之后,再执行倒换操作。In the above step S203, switch the service carried on the service tunnel to the protection tunnel, that is, perform a forced switching operation on the service tunnel. After the forced switch, the service will be carried on the protection tunnel, and no natural switch will occur before the switch is cleared operate. In the above step S205, the service carried on the protection tunnel is switched to the service tunnel, that is, the clear switching operation is performed on the service tunnel. After the clear switch, the service will be carried on the service tunnel, and the service tunnel will return to the natural state. The natural state means that services will be switched according to natural conditions and will no longer be subject to artificial constraints. If the switching fails in this step, you can choose not to perform the switching, and no longer migrate the service tunnel to the shared ring; you can also check the switching operation and correct the detected problems. After the correction, Perform the switching operation again.
在上述步骤S205之后,也即在将业务隧道迁入共享环,并将保护隧道上承载的业务倒换到业务隧道上之后,此时已经完成了业务隧道的迁入工作。为了保证承载在业务隧道上的业务可以在共享环内能顺利地传输,还可以将业务隧道对应的保护隧道迁入共享环。在迁入的过程中,为了保证迁入保护隧道的工作不会影响到业务在业务隧道上的工作,可对保护隧道对应的业务隧道执行闭锁操作之后,再将保护隧道迁入共享环。执行闭锁操作后,业务承载在业务隧道上,在解锁之前不会发生自然倒换操作。在将保护隧道迁入共享环之后,对保护隧道对应的业务隧道执行解锁操作。进一步地,如果对业务隧道的迁入是批量进行的,则可以在所有需要迁入共享环的业务隧道都迁入共享环,且业务也倒换到相应的业务隧道上之后再进行保护隧道的迁入操作;也可以在单个业务隧道迁入共享环,且业务也倒换到业务隧道上之后,立即将相应的保护隧道迁入共享环。After the above step S205, that is, after the service tunnel is migrated into the shared ring, and the service carried on the protection tunnel is switched to the service tunnel, the migration of the service tunnel has been completed at this time. In order to ensure that the services carried on the service tunnel can be smoothly transmitted in the shared ring, the protection tunnel corresponding to the service tunnel can also be moved into the shared ring. During the migration process, in order to ensure that the migration into the protection tunnel will not affect the work on the service tunnel, the protection tunnel can be migrated into the shared ring after performing a blocking operation on the service tunnel corresponding to the protection tunnel. After the blocking operation is performed, the service is carried on the service tunnel, and no natural switching operation will occur before unlocking. After the protection tunnel is migrated to the shared ring, the service tunnel corresponding to the protection tunnel is unlocked. Further, if the service tunnels are migrated in batches, the protection tunnels can be migrated after all the service tunnels that need to be migrated to the shared ring are migrated to the shared ring, and the services are also switched to the corresponding service tunnels. It is also possible to migrate the corresponding protection tunnel into the shared ring immediately after a single service tunnel is migrated into the shared ring and the services are also switched to the service tunnel.
在本实施例中,当业务隧道迁入共享环失败时,可选择继续进行迁入操作,或者退出迁入操作,也即对业务隧道执行回退操作。因此,当业务隧道迁入共享环失败时,可采用以下方式中的一种对业务隧道的迁入操作进行处理:(1)执行回退操作,将业务隧道的配置数据恢复至迁入操作之前状态,并将该业务隧道对应的保护隧道上承载的业务倒换到业务隧道上。进一步地,如果该业务隧道已经加入待迁入共享环的队列中,则可以将其从队列中剔除。这一步也可以理解为对之前所做的操作进行回滚,也就是将业务隧道迁出共享环,并使其回到迁入共享环之前的状态。(2)检查业务隧道的迁入操作,并在对检查出的问题进行修正之后,再将业务隧道迁入共享环。在迁入共享环成功之后,将保护隧道上承载的业务倒换到业务隧道上。In this embodiment, when the migration of the service tunnel to the shared ring fails, you can choose to continue the migration operation, or exit the migration operation, that is, perform a rollback operation on the service tunnel. Therefore, when the migration of the service tunnel to the shared ring fails, one of the following methods can be used to process the migration operation of the service tunnel: (1) Perform a rollback operation to restore the configuration data of the service tunnel to the state before the migration operation state, and switch the service carried on the protection tunnel corresponding to the service tunnel to the service tunnel. Further, if the service tunnel has been added to the queue to be migrated to the shared ring, it can be removed from the queue. This step can also be understood as rolling back the previous operations, that is, moving the service tunnel out of the shared ring and returning it to the state before moving into the shared ring. (2) Check the migration operation of the service tunnel, and after correcting the detected problems, migrate the service tunnel into the shared ring. After successfully migrating to the shared ring, switch the services carried on the protection tunnel to the service tunnel.
实施例三:Embodiment three:
为更详细地说明本实施例二中提到的将业务隧道批量迁入共享环的方法,本实施例提供了一种业务隧道批量迁入共享环的方法,请参见图3,该方法包括如下步骤:In order to describe in more detail the method for migrating business tunnels to the shared ring in batches mentioned in the second embodiment, this embodiment provides a method for migrating business tunnels to the shared ring in batches, see Figure 3, the method includes the following step:
步骤S301:开始。Step S301: start.
步骤S302:选择出目标共享环。所述目标共享环是已经配置好的或者已经存在的共享环。Step S302: Select a target shared ring. The target shared ring is a configured or existing shared ring.
步骤S303:根据目标共享环过滤出全网业务中所有可迁入目标共享环业务隧道。Step S303: According to the target shared ring, filter out all service tunnels in the entire network that can migrate into the target shared ring.
步骤S304:根据工程应用需要选择出需要迁入目标共享环的业务隧道,增加到待迁入共享环的业务隧道队列中。Step S304: Select the service tunnels that need to be migrated into the target shared ring according to the engineering application requirements, and add them to the queue of service tunnels to be migrated into the shared ring.
步骤S305:检查待迁入共享环的业务隧道队列中的第i个业务隧道。所述的i从1开始,表示从第一个业务隧道开始检查。Step S305: Check the i-th service tunnel in the queue of service tunnels to be migrated into the shared ring. The i starts from 1, indicating that the inspection starts from the first service tunnel.
步骤S306:判断第i个业务隧道是否配置了保护隧道,如果第i个业务隧道没有配置保护隧道,则转入步骤S307;如果第i个业务隧道已经配置了保护隧道,则转入步骤S310。Step S306: Determine whether the i-th service tunnel is configured with a protection tunnel, if the i-th service tunnel is not configured with a protection tunnel, then proceed to step S307; if the i-th service tunnel has been configured with a protection tunnel, then proceed to step S310.
步骤S307:为第i个业务隧道配置保护隧道。Step S307: Configure a protection tunnel for the i-th service tunnel.
步骤S308:判断配置是否成功,如果第i个业务隧道的保护隧道配置失败,则转入步骤S309;如果第i个业务隧道的保护隧道配置成功,则转入步骤S310。Step S308: Judging whether the configuration is successful, if the configuration of the protection tunnel of the i-th service tunnel fails, proceed to step S309; if the configuration of the protection tunnel of the i-th service tunnel is successful, proceed to step S310.
步骤S309:将第i个业务隧道从待迁入共享环的业务隧道队列中剔除。Step S309: remove the i-th service tunnel from the queue of service tunnels to be migrated into the shared ring.
步骤S310:判断队列中的所有业务隧道是否已经配置完毕,如果待迁入共享环的业务隧道队列中的所有业务隧道配置完毕,则转入步骤S312,如果待迁入共享环的业务隧道队列中的业务隧道未配置完毕,则转入步骤S311。Step S310: Determine whether all service tunnels in the queue have been configured. If all service tunnels in the queue of service tunnels to be transferred to the shared ring have been configured, go to step S312. If the queue of service tunnels to be transferred to the shared ring If the configuration of the service tunnel has not been completed, go to step S311.
步骤S311:i加1,完成之后执行步骤S305。Step S311: increment i by 1, and execute step S305 after completion.
步骤S312:对于待迁入共享环的业务隧道队列中第j个业务隧道执行强制倒换操作,也即将其业务倒换到保护隧道上。所述j从1开始,表示从第一个保护隧道开始操作。Step S312: Perform a forced switching operation on the jth service tunnel in the queue of service tunnels to be migrated into the shared ring, that is, switch its service to the protection tunnel. The j starts from 1, indicating that the operation starts from the first protection tunnel.
步骤S313:判断第j个业务隧道的强制倒换是否成功,如果对第j个业务隧道执行强制倒换操作失败,则转入步骤S314;如果对第j个业务隧道执行强制倒换操作成功,则转入步骤S316。Step S313: judge whether the forced switching of the jth service tunnel is successful, if the forced switching operation of the jth service tunnel fails, then go to step S314; if the forced switching operation of the jth service tunnel is successful, go to Step S316.
步骤S314:将第j个业务隧道从待迁入共享环的业务隧道队列中剔除。Step S314: remove the jth service tunnel from the queue of service tunnels to be migrated into the shared ring.
步骤S315:j加1,然后执行步骤S312。Step S315: increment j by 1, and then execute step S312.
步骤S316:将待迁入共享环的业务隧道队列中第j个业务隧道迁入目标共享环。Step S316: Migrate the jth service tunnel in the queue of service tunnels to be migrated into the shared ring to the target shared ring.
步骤S317:判断第j个业务隧道迁入共享环是否成功,如果第j个业务隧道迁入目标共享环失败,则转入步骤S318;如果第j个业务隧道迁入目标共享环成功,则转入步骤S319。Step S317: Judging whether the migration of the jth service tunnel into the shared ring is successful, if the jth business tunnel fails to migrate into the target shared ring, then go to step S318; if the jth business tunnel is successfully moved into the target shared ring, then go to Enter step S319.
步骤S318:对第j个业务隧道执行回退操作,使其配置数据恢复至迁入目标共享环之前状态,并将其在保护隧道上的业务倒换到业务隧道上,并将该业务隧道从队列中剔除。Step S318: Perform a rollback operation on the jth service tunnel, restore its configuration data to the state before it migrates into the target shared ring, switch its service on the protection tunnel to the service tunnel, and remove the service tunnel from the queue removed.
步骤S319:对待迁入共享环的业务隧道队列中第j个业务隧道执行清除倒换操作,也即将保护隧道上的业务倒换到业务隧道上,使其恢复至自然保护倒换状态。Step S319: Perform clear switching operation on the jth service tunnel in the queue of service tunnels to be migrated into the shared ring, that is, switch the service on the protection tunnel to the service tunnel, and restore it to the natural protection switching state.
步骤S320:判断队列中的业务隧道是否迁入完毕,如果待迁入共享环的业务隧道队列中的业务隧道迁入完毕,则转入步骤S322,如果待迁入共享环的业务隧道队列中的业务隧道未迁入完毕,则转入步骤S321。Step S320: Determine whether the migration of the service tunnels in the queue is complete. If the migration of the service tunnels in the queue of service tunnels to be migrated into the shared ring is complete, then go to step S322. If the migration of the service tunnel is not completed, then go to step S321.
步骤S321:j加1,完成之后执行步骤S312。Step S321: increment j by 1, and execute step S312 after completion.
步骤S322:将业务隧道对应的保护隧道迁入共享环。Step S322: Migrate the protection tunnel corresponding to the service tunnel into the shared ring.
步骤S323:结束。Step S323: end.
实施例四:Embodiment four:
为更详细地说明本实施例一中提到的将保护隧道迁入共享环的方法,本实施例提供了一种保护隧道迁入共享环的方法,请参见图4,该方法包括如下步骤:In order to describe in more detail the method of migrating the protection tunnel into the shared ring mentioned in the first embodiment, this embodiment provides a method of migrating the protection tunnel into the shared ring, please refer to FIG. 4 , the method includes the following steps:
步骤S401:业务隧道迁入完成。Step S401: The migration of the service tunnel is completed.
步骤S402:对于待迁入共享环的业务隧道队列中第k个业务隧道执行闭锁操作。所述k从1开始,表示从第一个保护隧道开始操作。Step S402: Perform a blocking operation on the kth service tunnel in the queue of service tunnels to be migrated into the shared ring. The k starts from 1, indicating that the operation starts from the first protection tunnel.
步骤S403:将待迁入共享环的业务隧道队列中第k个保护隧道迁入目标共享环。Step S403: Migrate the kth protection tunnel in the queue of service tunnels to be migrated into the shared ring to the target shared ring.
步骤S404:判断k个保护隧道迁出共享环是否成功,如果第k个保护隧道迁入目标共享环失败,则转入步骤S405;如果第k个保护隧道迁入目标共享环成功,则转入步骤S406。Step S404: Judging whether k protection tunnels have successfully migrated out of the shared ring, if the kth protection tunnel fails to migrate into the target shared ring, proceed to step S405; if the kth protection tunnel successfully migrates into the target shared ring, proceed to Step S406.
步骤S405:对第k个保护隧道执行回退操作,使其配置数据恢复至迁入目标共享环之前状态,并将该业务隧道从队列中剔除。Step S405: Perform a rollback operation on the kth protection tunnel, restore its configuration data to the state before it migrates into the target shared ring, and remove the service tunnel from the queue.
步骤S406:对待迁入共享环的业务隧道队列中第k个业务隧道执行解闭锁操作,使其恢复至自然保护倒换状态。Step S406: Perform an unlocking operation on the kth service tunnel in the queue of service tunnels to be migrated into the shared ring, so that it returns to the natural protection switching state.
步骤S407:判断队列中的所有保护隧道都已经迁出共享环,如果待迁入共享环的业务隧道队列中的保护隧道迁入完毕,则流程结束,如果待迁入共享环的业务隧道队列中的保护隧道未迁入完毕,则转入步骤S408。Step S407: Determine that all the protection tunnels in the queue have moved out of the shared ring. If the protection tunnels in the queue of service tunnels to be migrated into the shared ring have been migrated in, the process ends. If the migration of the protection tunnel has not been completed, go to step S408.
步骤S408:k加1,然后执行步骤S402。Step S408: increase k by 1, and then execute step S402.
步骤S409:结束。Step S409: end.
实施例五:Embodiment five:
本实施例提供了一种业务隧道迁出共享环的方法,其与上述实施例一中的业务隧道迁入共享环的方法类似,业务隧道迁出共享环是业务隧道迁入共享环的反向操作,请参见图5,包括:This embodiment provides a method for migrating service tunnels out of the shared ring, which is similar to the method for migrating service tunnels into the shared ring in the first embodiment above. Operation, see Figure 5, including:
步骤S501:判断待迁出共享环的业务隧道是否已经配置保护隧道,如否,则执行步骤S502,如是,则执行步骤S503。Step S501: Determine whether the service tunnel to be migrated out of the shared ring has been configured with a protection tunnel, if not, execute step S502, and if yes, execute step S503.
步骤S502:为业务隧道配置保护隧道。Step S502: Configure a protection tunnel for the service tunnel.
步骤S503:将业务隧道上承载的业务倒换到保护隧道上。Step S503: Switch the service carried on the service tunnel to the protection tunnel.
步骤S504:将业务隧道迁出共享环。Step S504: Migrate the service tunnel out of the shared ring.
步骤S505:将保护隧道上承载的业务倒换到业务隧道上。Step S505: Switch the service carried on the protection tunnel to the service tunnel.
在步骤S501之前还可包括:从共享环中过滤出全网可迁出该共享环的业务隧道,将其作为待迁出业务隧道加入到待迁出共享环的业务隧道队列中。这样可以实现批量迁出业务隧道到共享环中。在将这些待迁出业务隧道加入队列中之后,逐个判断队列中的业务隧道是否已经配置保护隧道,并为没有配置保护隧道的业务隧道配置保护隧道。逐个判断队列中的业务隧道是否已经配置保护隧道,并为没有配置保护隧道的业务隧道配置保护隧道是为了确保每个业务隧道都有保护隧道,从而确保在批量迁出业务隧道的过程中,也不会因为迁出失败而导致业务中断。Before step S501, it may further include: filtering out service tunnels in the entire network that can migrate out of the shared ring from the shared ring, and adding them as service tunnels to be migrated out to the queue of service tunnels to be migrated out of the shared ring. In this way, batch migration of service tunnels to the shared ring can be realized. After these service tunnels to be migrated are added to the queue, it is judged one by one whether the service tunnels in the queue have been configured with protection tunnels, and the protection tunnels are configured for the service tunnels not configured with protection tunnels. Determine whether the service tunnels in the queue have been configured with protection tunnels one by one, and configure protection tunnels for service tunnels without protection tunnels to ensure that each There will be no business interruption due to migration failure.
在步骤S501中,待迁出共享环的业务隧道指准备迁出共享环的业务隧道,这个业务隧道可以是线性业务隧道,也可以是来自其他环网的业务隧道。判断待迁出业务共享环的业务隧道是否已经配置保护隧道是指判断该业务隧道有没有保护隧道。因为业务隧道和保护隧道可组成保护子网,所以该步骤的另一种说法是:判断待迁出共享环的业务隧道是否和保护隧道构成了保护子网。该步骤的目的就是:确保每一个准备迁出共享环的业务隧道都有保护隧道,从而确保在后续的迁出的过程中,通过使用保护隧道保证业务不会中断。如果在这一步骤中,对业务隧道配置保护隧道失败,则可以选择不再进行配置,也不再将业务隧道迁出共享环;也可以对配置操作进行检查,并对检查出的问题进行修正,在修正之后,再执行倒换操作。In step S501, the service tunnel to be migrated out of the shared ring refers to the service tunnel to be migrated out of the shared ring, and the service tunnel may be a linear service tunnel or a service tunnel from another ring network. Judging whether the service tunnel to be migrated out of the shared ring has been configured with a protection tunnel refers to judging whether the service tunnel has a protection tunnel. Because the service tunnel and the protection tunnel can form a protection subnet, another way of saying this step is to determine whether the service tunnel to be migrated out of the shared ring forms a protection subnet with the protection tunnel. The purpose of this step is to ensure that each service tunnel to be relocated out of the shared ring has a protection tunnel, so as to ensure that the service will not be interrupted by using the protection tunnel during the subsequent relocation process. If in this step, the configuration of the protection tunnel for the service tunnel fails, you can choose not to configure it, and do not move the service tunnel out of the shared ring; you can also check the configuration operation and correct the problems found , after the correction, perform the switching operation.
在上述步骤S503中,将业务隧道上承载的业务倒换到保护隧道上,也即对业务隧道执行强制倒换操作,强制倒换后,业务将承载在保护隧道上,在清除倒换之前不会发生自然倒换操作。在上述步骤S505中,将保护隧道上承载的业务倒换到业务隧道上,也即对业务隧道执行清除倒换操作,在清除倒换后,业务将会承载在业务隧道上,业务隧道将恢复自然状态。自然状态是指业务将会根据自然条件发生倒换,不再受人为约束。如果在这一步骤中,倒换失败,则可以选择不再进行倒换,也不再将业务隧道迁出共享环;也可以对倒换操作进行检查,并对检查出的问题进行修正,在修正之后,再执行倒换操作。In the above step S503, the service carried on the service tunnel is switched to the protection tunnel, that is, the forced switching operation is performed on the service tunnel. After the forced switching, the service will be carried on the protection tunnel, and natural switching will not occur before the switching is cleared operate. In the above step S505, the service carried on the protection tunnel is switched to the service tunnel, that is, the clear switching operation is performed on the service tunnel. After the clear switch, the service will be carried on the service tunnel, and the service tunnel will return to the natural state. The natural state means that services will be switched according to natural conditions and will no longer be subject to artificial constraints. If the switching fails in this step, you can choose not to perform the switching, and no longer move the service tunnel out of the shared ring; you can also check the switching operation and correct the detected problems. After the correction, Perform the switching operation again.
在上述步骤S505之后,也即在将业务隧道迁出共享环,并将保护隧道上承载的业务倒换到业务隧道上之后,此时已经完成了业务隧道的迁出工作。为了保证承载在业务隧道上的业务可以在共享环内能顺利地传输,还可以将业务隧道对应的保护隧道迁出共享环。在迁出的过程中,为了保证迁出保护隧道的工作不会影响到业务在业务隧道上的工作,可对保护隧道对应的业务隧道执行闭锁操作之后,再将保护隧道迁出共享环。执行闭锁操作后,业务承载在业务隧道上,在解锁之前不会发生自然倒换操作。在将保护隧道迁出共享环之后,对保护隧道对应的业务隧道执行解锁操作。进一步地,如果对业务隧道的迁出是批量进行的,则可以在所有需要迁出共享环的业务隧道都迁出共享环,且业务也倒换到相应的业务隧道上之后再进行保护隧道的迁出操作;也可以在单个业务隧道迁出共享环,且业务也倒换到业务隧道上之后,立即将相应的保护隧道迁出共享环。After the above step S505, that is, after the service tunnel is moved out of the shared ring and the service carried on the protection tunnel is switched to the service tunnel, the work of moving out the service tunnel has been completed at this time. In order to ensure that the services carried on the service tunnel can be smoothly transmitted in the shared ring, the protection tunnel corresponding to the service tunnel can also be moved out of the shared ring. In the process of moving out, in order to ensure that the moving out of the protection tunnel will not affect the work of the service on the service tunnel, you can perform a blocking operation on the service tunnel corresponding to the protection tunnel, and then move the protection tunnel out of the shared ring. After the blocking operation is performed, the service is carried on the service tunnel, and no natural switching operation will occur before unlocking. After the protection tunnel is moved out of the shared ring, the service tunnel corresponding to the protection tunnel is unlocked. Further, if the relocation of service tunnels is performed in batches, the relocation of protection tunnels can be performed after all service tunnels that need to be relocated out of the shared ring have been relocated out of the shared ring, and services have also been switched to corresponding service tunnels. It is also possible to move the corresponding protection tunnel out of the shared ring immediately after a single service tunnel is moved out of the shared ring and services are also switched to the service tunnel.
在本实施例中,当业务隧道迁出共享环失败时,可选择继续进行迁出操作,或者退出迁出操作,也即对业务隧道执行回退操作。因此,当业务隧道迁出共享环失败时,可采用以下方式中的一种对业务隧道的迁出操作进行处理:(1)执行回退操作,将业务隧道的配置数据恢复至迁出操作之前状态,并将该业务隧道对应的保护隧道上承载的业务倒换到业务隧道上。进一步地,如果该业务隧道已经加入待迁出共享环的队列中,则可以将其从队列中剔除。这一步也可以理解为对之前所做的操作进行回滚,也就是将业务隧道迁回共享环,并使其回到迁出共享环之前的状态。(2)检查业务隧道的迁出操作,并在对检查出的问题进行修正之后,再将业务隧道迁出共享环。在迁出共享环成功之后,将保护隧道上承载的业务倒换到业务隧道上。In this embodiment, when the service tunnel fails to move out of the shared ring, you can choose to continue the move-out operation, or exit the move-out operation, that is, perform a rollback operation on the service tunnel. Therefore, when a service tunnel fails to migrate out of the shared ring, one of the following methods can be used to handle the migration operation of the service tunnel: (1) Perform a rollback operation to restore the configuration data of the service tunnel to the state before the migration operation state, and switch the service carried on the protection tunnel corresponding to the service tunnel to the service tunnel. Further, if the service tunnel has been added to the queue to be moved out of the shared ring, it can be removed from the queue. This step can also be understood as rolling back the previous operations, that is, moving the service tunnel back to the shared ring, and making it return to the state before moving out of the shared ring. (2) Check the relocation operation of the service tunnel, and relocate the service tunnel out of the shared ring after correcting the detected problems. After successfully migrating out of the shared ring, switch the services carried on the protection tunnel to the service tunnel.
实施例六:Embodiment six:
为更详细地说明本实施例五中提到的将业务隧道批量迁出共享环的方法,本实施例提供了一种业务隧道批量迁出共享环的方法,请参见图6,该方法包括如下步骤:In order to describe in more detail the method for migrating service tunnels out of the shared ring in batches mentioned in the fifth embodiment, this embodiment provides a method for migrating service tunnels out of the shared ring in batches, see Figure 6, the method includes the following step:
步骤S601:开始。Step S601: start.
步骤S602:选择共享环。所述共享环是已经配置好的或者已经存在的共享环。Step S602: Select a shared ring. The shared ring is a configured or existing shared ring.
步骤S603:从共享环中过滤出所有可迁出共享环业务隧道。Step S603: Filter out all service tunnels that can migrate out of the shared ring from the shared ring.
步骤S604:根据工程应用需要选择出需要迁出共享环的业务隧道,增加到待迁出共享环的业务隧道队列中。Step S604: Select the service tunnels that need to be moved out of the shared ring according to engineering application requirements, and add them to the queue of service tunnels to be moved out of the shared ring.
步骤S605:检查待迁出共享环的业务隧道队列中的第i个业务隧道。所述的i从1开始,表示从第一个业务隧道开始检查。Step S605: Check the i-th service tunnel in the queue of service tunnels to be migrated out of the shared ring. The i starts from 1, indicating that the inspection starts from the first service tunnel.
步骤S606:判断第i个业务隧道是否配置了保护隧道,如果第i个业务隧道没有配置保护隧道,则转入步骤S607;如果第i个业务隧道已经配置了保护隧道,则转入步骤S610。Step S606: Determine whether the i-th service tunnel is configured with a protection tunnel, if the i-th service tunnel is not configured with a protection tunnel, then proceed to step S607; if the i-th service tunnel has been configured with a protection tunnel, then proceed to step S610.
步骤S607:为第i个业务隧道配置保护隧道。Step S607: Configure a protection tunnel for the i-th service tunnel.
步骤S608:判断配置是否成功,如果第i个业务隧道的保护隧道配置失败,则转入步骤S609;如果第i个业务隧道的保护隧道配置成功,则转入步骤S610。Step S608: Judging whether the configuration is successful, if the configuration of the protection tunnel of the i-th service tunnel fails, proceed to step S609; if the configuration of the protection tunnel of the i-th service tunnel is successful, proceed to step S610.
步骤S609:将第i个业务隧道从待迁出共享环的业务隧道队列中剔除。Step S609: remove the i-th service tunnel from the queue of service tunnels to be migrated out of the shared ring.
步骤S610:判断队列中的所有业务隧道是否已经配置完毕,如果待迁出共享环的业务隧道队列中的所有业务隧道配置完毕,则转入步骤S612,如果待迁出共享环的业务隧道队列中的业务隧道未配置完毕,则转入步骤S611。Step S610: Determine whether all service tunnels in the queue have been configured. If all service tunnels in the queue of service tunnels to be moved out of the shared ring have been configured, go to step S612. If the configuration of the service tunnel has not been completed, go to step S611.
步骤S611:i加1,完成之后执行步骤S605。Step S611: increment i by 1, and execute step S605 after completion.
步骤S612:对于待迁出共享环的业务隧道队列中第j个业务隧道执行强制倒换操作,也即将其业务倒换到保护隧道上。所述j从1开始,表示从第一个保护隧道开始操作。Step S612: Perform a forced switching operation on the jth service tunnel in the queue of service tunnels to be migrated out of the shared ring, that is, switch its service to the protection tunnel. The j starts from 1, indicating that the operation starts from the first protection tunnel.
步骤S613:判断第j个业务隧道的强制倒换是否成功,如果对第j个业务隧道执行强制倒换操作失败,则转入步骤S614;如果对第j个业务隧道执行强制倒换操作成功,则转入步骤S616。Step S613: Judging whether the forced switching of the jth service tunnel is successful, if the forced switching operation of the jth service tunnel fails, proceed to step S614; if the forced switching operation of the jth service tunnel is successful, proceed to Step S616.
步骤S614:将第j个业务隧道从待迁出共享环的业务隧道队列中剔除。Step S614: remove the jth service tunnel from the queue of service tunnels to be migrated out of the shared ring.
步骤S615:j加1,然后执行步骤S612。Step S615: increment j by 1, and then execute step S612.
步骤S616:将待迁出共享环的业务隧道队列中第j个业务隧道迁出共享环。Step S616: Migrate the jth service tunnel in the queue of service tunnels to be migrated out of the shared ring out of the shared ring.
步骤S617:判断第j个业务隧道迁出共享环是否成功,如果第j个业务隧道迁出共享环失败,则转入步骤S618;如果第j个业务隧道迁出共享环成功,则转入步骤S619。Step S617: Judging whether the jth service tunnel has successfully moved out of the shared ring, if the jth service tunnel fails to move out of the shared ring, then go to step S618; if the jth service tunnel is successfully moved out of the shared ring, go to step S618 S619.
步骤S618:对第j个业务隧道执行回退操作,使其配置数据恢复至迁出共享环之前状态,并将其在保护隧道上的业务倒换到业务隧道上,并将该业务隧道从队列中剔除。Step S618: Perform a rollback operation on the jth service tunnel, restore its configuration data to the state before it moved out of the shared ring, switch its service on the protection tunnel to the service tunnel, and remove the service tunnel from the queue remove.
步骤S619:对待迁出共享环的业务隧道队列中第j个业务隧道执行清除倒换操作,也即将保护隧道上的业务倒换到业务隧道上,使其恢复至自然保护倒换状态。Step S619: Perform clear switching operation on the jth service tunnel in the queue of service tunnels to be moved out of the shared ring, that is, switch the service on the protection tunnel to the service tunnel, so as to restore it to the natural protection switching state.
步骤S620:判断队列中的业务隧道是否迁出完毕,如果待迁出共享环的业务隧道队列中的业务隧道迁出完毕,则转入步骤S622,如果待迁出共享环的业务隧道队列中的业务隧道未迁出完毕,则转入步骤S621。Step S620: Determine whether the service tunnels in the queue have been migrated out. If the service tunnels in the queue of service tunnels to be migrated out of the shared ring have been migrated out, proceed to step S622. If the service tunnel has not been migrated out, go to step S621.
步骤S621:j加1,完成之后执行步骤S612。Step S621: increment j by 1, and execute step S612 after completion.
步骤S622:将业务隧道对应的保护隧道迁出共享环。Step S622: Migrate the protection tunnel corresponding to the service tunnel out of the shared ring.
步骤S623:结束。Step S623: end.
实施例七:Embodiment seven:
为更详细地说明本实施例一中提到的将保护隧道迁出共享环的方法,本实施例提供了一种保护隧道迁出共享环的方法,请参见图7,该方法包括如下步骤:In order to describe in more detail the method for moving the protection tunnel out of the shared ring mentioned in the first embodiment, this embodiment provides a method for moving the protection tunnel out of the shared ring, as shown in FIG. 7 , the method includes the following steps:
步骤S701:业务隧道迁出完成。Step S701: The migration of the service tunnel is completed.
步骤S702:对于待迁出共享环的业务隧道队列中第k个业务隧道执行闭锁操作。所述k从1开始,表示从第一个保护隧道开始操作。Step S702: Perform a blocking operation on the kth service tunnel in the queue of service tunnels to be migrated out of the shared ring. The k starts from 1, indicating that the operation starts from the first protection tunnel.
步骤S703:将待迁出共享环的业务隧道队列中第k个保护隧道迁出共享环。Step S703: Move the kth protection tunnel out of the shared ring in the queue of service tunnels to be moved out of the shared ring.
步骤S704:判断k个保护隧道迁出共享环是否成功,如果第k个保护隧道迁出共享环失败,则转入步骤S705;如果第k个保护隧道迁出共享环成功,则转入步骤S706。Step S704: Determine whether k protection tunnels have successfully migrated out of the shared ring, if the kth protection tunnel fails to migrate out of the shared ring, then proceed to step S705; if the kth protection tunnel successfully migrates out of the shared ring, proceed to step S706 .
步骤S705:对第k个保护隧道执行回退操作,使其配置数据恢复至迁出共享环之前状态,并将该业务隧道从队列中剔除。Step S705: Perform a rollback operation on the k-th protection tunnel, restore its configuration data to the state before moving out of the shared ring, and remove the service tunnel from the queue.
步骤S706:对待迁出共享环的业务隧道队列中第k个业务隧道执行解锁操作,使其恢复至自然保护倒换状态。Step S706: Perform an unlocking operation on the kth service tunnel in the queue of service tunnels to be relocated from the shared ring, so that it returns to the natural protection switching state.
步骤S707:判断队列中的所有保护隧道都已经迁出共享环,如果待迁出共享环的业务隧道队列中的保护隧道迁出完毕,则流程结束,如果待迁出共享环的业务隧道队列中的保护隧道未迁出完毕,则转入步骤S708。Step S707: Determine that all the protection tunnels in the queue have been moved out of the shared ring. If the protection tunnels in the service tunnel queue to be moved out of the shared ring have been migrated out, the process ends. If the protected tunnel has not been moved out, go to step S708.
步骤S708:k加1,然后执行步骤S702。Step S708: add 1 to k, and then execute step S702.
步骤S709:结束。Step S709: end.
实施例八:Embodiment eight:
本实施例提供了一种业务隧道迁移系统,请参见图8,包括:判断模块801、配置模块802、第一倒换模块803、业务隧道迁移模块804和第二倒换模块805;判断模块801用于判断待迁入或迁出共享环的业务隧道是否已经配置保护隧道,如否,则通知配置模块802;配置模块802用于为业务隧道配置保护隧道;第一倒换模块803用于将业务隧道上承载的业务倒换到保护隧道上;业务隧道迁移模块804用于将业务隧道迁入或迁出共享环;第二倒换模块805用于将保护隧道上承载的业务倒换到业务隧道上。This embodiment provides a service tunnel migration system, please refer to FIG. 8 , including: a judging module 801, a configuration module 802, a first switching module 803, a business tunnel migrating module 804, and a second switching module 805; the judging module 801 is used to Judging whether the service tunnel to be moved into or moved out of the shared ring has been configured with a protection tunnel, if not, then notify the configuration module 802; the configuration module 802 is used to configure the protection tunnel for the service tunnel; The service carried is switched to the protection tunnel; the service tunnel migration module 804 is used to migrate the service tunnel into or out of the shared ring; the second switching module 805 is used to switch the service carried on the protection tunnel to the service tunnel.
在本实施例中,系统还可以包括保护隧道迁移模块806,请参见图9,保护隧道迁移模块806用于在业务隧道迁入共享环,且保护隧道上承载的业务已经倒换到业务隧道上之后,将保护隧道迁入共享环,或在业务隧道迁出共享环,且保护隧道上承载的业务已经倒换到业务隧道上之后,将保护隧道迁出共享环。保护隧道迁移模块806包括闭锁子模块8061、迁移子模块8062和解锁子模块8063;闭锁子模块8061用于对保护隧道对应的业务隧道执行闭锁操作;迁移子模块8062用于将保护隧道迁入或迁出共享环;解锁子模块8063用于对保护隧道对应的业务隧道执行解锁操作。In this embodiment, the system may also include a protection tunnel migration module 806. Referring to FIG. 9, the protection tunnel migration module 806 is used to migrate the service tunnel into the shared ring and after the services carried on the protection tunnel have been switched to the service tunnel , move the protection tunnel into the shared ring, or move the protection tunnel out of the shared ring after the service tunnel moves out of the shared ring and the services carried on the protection tunnel have been switched to the service tunnel. The protection tunnel migration module 806 includes a blocking submodule 8061, a migration submodule 8062 and an unlocking submodule 8063; the blocking submodule 8061 is used to perform a blocking operation on the service tunnel corresponding to the protection tunnel; the migration submodule 8062 is used to migrate the protection tunnel into or Move out of the shared ring; the unlocking submodule 8063 is used to perform an unlocking operation on the service tunnel corresponding to the protection tunnel.
在本实施例中,系统还包括过滤模块807,请参见图10,过滤模块807用于根据目标共享环过滤出全网可迁入该共享环的业务隧道,并将其作为待迁入业务隧道加入到待迁入共享环的业务隧道队列中,或用于从共享环中过滤出要迁出共享环的业务隧道,并将其作为待迁出共享环业务隧道加入到待迁出共享环的业务隧道队列中;判断模块801包括逐个判断子模块8011,用于逐个判断待迁入共享环的业务隧道队列或待迁出共享环的业务隧道队列中的业务隧道是否已经配置保护隧道,并通知配置模块为没有配置保护隧道的业务隧道配置保护隧道。In this embodiment, the system also includes a filtering module 807, please refer to Figure 10, the filtering module 807 is used to filter out the service tunnels that can be migrated into the shared ring in the entire network according to the target shared ring, and use them as service tunnels to be migrated into Added to the queue of service tunnels to be migrated into the shared ring, or used to filter out the service tunnels to be migrated out of the shared ring from the shared ring, and add them as service tunnels to be migrated out of the shared ring to the queue of service tunnels to be migrated out of the shared ring In the service tunnel queue; the judging module 801 includes a judging submodule 8011 one by one, which is used to judge whether the service tunnels in the service tunnel queue to be moved into the shared ring or the service tunnels in the service tunnel queue to be moved out of the shared ring have configured protection tunnels, and notify The configuration module configures a protection tunnel for a service tunnel that is not configured with a protection tunnel.
在本实施例中,系统还包括回退模块或修正模块;回退模块用于在业务隧道迁入或迁出共享环失败时,对业务隧道的迁入或迁出操作执行回退操作,并将承载在业务隧道对应的保护隧道上的业务倒换到业务隧道上;修正模块用于在业务隧道迁入或迁出共享环失败时,检查业务隧道的迁入或迁出操作,并对检查出的问题进行修正;在修正问题之后,再通知业务隧道迁移模块将业务隧道迁入或迁出共享环。In this embodiment, the system further includes a fallback module or a correction module; the fallback module is used to perform a rollback operation on the move-in or move-out operation of the service tunnel when the move-in or move-out of the service tunnel to the shared ring fails, and Switch the service carried on the protection tunnel corresponding to the service tunnel to the service tunnel; the correction module is used to check the move-in or move-out operation of the service tunnel when the service tunnel fails to move in or out of the shared ring, and check out Correct the problem; after correcting the problem, notify the service tunnel migration module to migrate the service tunnel into or out of the shared ring.
以上内容是结合具体的实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above content is a further detailed description of the present invention in conjunction with specific embodiments, and it cannot be assumed that the specific implementation of the present invention is limited to these descriptions. For those of ordinary skill in the technical field of the present invention, without departing from the concept of the present invention, some simple deduction or replacement can be made, which should be regarded as belonging to the protection scope of the present invention.
Claims (10)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410223271.3A CN105099748A (en) | 2014-05-23 | 2014-05-23 | Method and system for migrating business tunnel |
PCT/CN2014/084438 WO2015176400A1 (en) | 2014-05-23 | 2014-08-14 | Service tunnel migration method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410223271.3A CN105099748A (en) | 2014-05-23 | 2014-05-23 | Method and system for migrating business tunnel |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105099748A true CN105099748A (en) | 2015-11-25 |
Family
ID=54553301
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410223271.3A Pending CN105099748A (en) | 2014-05-23 | 2014-05-23 | Method and system for migrating business tunnel |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105099748A (en) |
WO (1) | WO2015176400A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106656580A (en) * | 2016-11-29 | 2017-05-10 | 华为技术有限公司 | Business state migration method and device |
CN111884904A (en) * | 2020-07-23 | 2020-11-03 | 中盈优创资讯科技有限公司 | Method and device for dynamically managing vxlan tunnel based on equipment configuration |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1992957A (en) * | 2005-12-30 | 2007-07-04 | 华为技术有限公司 | Wireless access network framework and method for realizing real-time service nondestructive emigration thereof |
CN102083051A (en) * | 2010-03-15 | 2011-06-01 | 大唐移动通信设备有限公司 | Service path switching method and device |
CN102891787A (en) * | 2011-07-20 | 2013-01-23 | 中兴通讯股份有限公司 | Shared path-based looped network tunnel configuration method, and method and system for switching service |
CN102891760A (en) * | 2011-07-19 | 2013-01-23 | 中兴通讯股份有限公司 | Tunnel protection configuration method and system in network management system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8665709B2 (en) * | 2009-06-09 | 2014-03-04 | Ciena Corporation | Use of 1:1 protection state machine for load sharing and alternative protection schemes |
CN102882780B (en) * | 2011-07-15 | 2016-09-28 | 中兴通讯股份有限公司 | Looped network tunnel configuration method based on overlapping trees, ring network protection method and system |
CN103684951B (en) * | 2012-08-31 | 2017-06-20 | 中国移动通信集团公司 | A kind of ring network protection method and system |
-
2014
- 2014-05-23 CN CN201410223271.3A patent/CN105099748A/en active Pending
- 2014-08-14 WO PCT/CN2014/084438 patent/WO2015176400A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1992957A (en) * | 2005-12-30 | 2007-07-04 | 华为技术有限公司 | Wireless access network framework and method for realizing real-time service nondestructive emigration thereof |
CN102083051A (en) * | 2010-03-15 | 2011-06-01 | 大唐移动通信设备有限公司 | Service path switching method and device |
CN102891760A (en) * | 2011-07-19 | 2013-01-23 | 中兴通讯股份有限公司 | Tunnel protection configuration method and system in network management system |
CN102891787A (en) * | 2011-07-20 | 2013-01-23 | 中兴通讯股份有限公司 | Shared path-based looped network tunnel configuration method, and method and system for switching service |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106656580A (en) * | 2016-11-29 | 2017-05-10 | 华为技术有限公司 | Business state migration method and device |
US10938630B2 (en) | 2016-11-29 | 2021-03-02 | Huawei Technologies Co., Ltd. | Service state transition method and apparatus |
CN111884904A (en) * | 2020-07-23 | 2020-11-03 | 中盈优创资讯科技有限公司 | Method and device for dynamically managing vxlan tunnel based on equipment configuration |
Also Published As
Publication number | Publication date |
---|---|
WO2015176400A1 (en) | 2015-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3462671B1 (en) | Virtual network function resource management method and device | |
CN106814662A (en) | The method of Accelerator control device and control accelerator logic | |
CN105917311A (en) | System and method for synchronous task dispatch in a portable device | |
CN103620552A (en) | Application migration with dynamic operating system containers | |
JP2016513308A (en) | Virtual machine live migration method, virtual machine memory data processing method, server, and virtual machine system | |
CN102880573A (en) | Linux system-based serial RapidIo data transmission method | |
CN108334942A (en) | Data processing method, device, chip and the storage medium of neural network | |
EP3223162A1 (en) | Configurable on-chip interconnection system and method and apparatus for implementing same, and storage medium | |
US10033546B2 (en) | Method and system for reprogramming | |
CN105099748A (en) | Method and system for migrating business tunnel | |
CN105071994A (en) | Mass data monitoring system | |
CN103577119B (en) | System and method for out-of-order data transmission in next generation solid state disk controller | |
CN104036141A (en) | Open computing language (OpenCL)-based red-black tree acceleration algorithm | |
DE112013000379T5 (en) | Synchronize local and remote storage devices | |
CN206623537U (en) | Consumptive material equipment and print system | |
CN109947531B (en) | Storage capacity expansion method, device and storage medium of hyper-converged integrated machine | |
US10845787B1 (en) | Concurrent updating for linear topologies in an industrial automation environment | |
CN107678686A (en) | The method and its data storage device of the FTL functions of flash memory are realized based on hardware | |
KR20200118798A (en) | Electronic devices, systems and methods | |
EP3697025B1 (en) | Equipment upgrading method and device | |
WO2018000135A1 (en) | Network switching device and time slot exchange method | |
CN107085394A (en) | Control device and control method | |
CN106817291A (en) | VXLAN realizes device and its method of work | |
US10592112B2 (en) | Storage system software upgrade and data migration | |
US8776253B2 (en) | Authority changing device, generating device, and computer program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20151125 |