Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Microservice data consistency method, system and device in Ipsec tunnel configuration and medium

A micro-service and consistent technology, applied in the IP network field, can solve the problems of data inconsistency between controllers and network devices, increase in the amount of hard-coded code, and difficult expansion of hard-coded methods, so as to avoid problems that are difficult to expand and cannot be maintained. Reduce delay time and solve the effect of data consistency

Active Publication Date: 2021-04-30
PURPLE MOUNTAIN LAB
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] Purpose of the invention: To solve the problem of data inconsistency between the controller and the network device side when the Ipsec tunnel configuration delivery fails in the prior art, the traditional hard-coded method is used to perform configuration rollback to achieve consistent data between the controller and the network device. As the scale increases, the amount of hard-coded code increases sharply and cannot be maintained. The present invention discloses a microservice data consistency method, system, device, and medium in IPsec tunnel configuration. Through the mature solution for data consistency between microservices The compensation mechanism of Saga is improved. Due to the atomic nature of network equipment, only the previous operation is rolled back, and the current operation is not rolled back, so as to realize the data consistency of IPsec tunnel configuration in the network, achieve the purpose of solving data consistency through a general framework, and avoid hard Difficult to expand and unmaintainable problems caused by coding methods

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Microservice data consistency method, system and device in Ipsec tunnel configuration and medium
  • Microservice data consistency method, system and device in Ipsec tunnel configuration and medium
  • Microservice data consistency method, system and device in Ipsec tunnel configuration and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The present invention will be further described below in conjunction with the accompanying drawings.

[0033] The invention discloses a microservice data consistency method in IPsec tunnel configuration. When a user sends IPsec configuration information to several network devices through a controller, it is divided into a series of sub-transactions through the distributed transaction solution Saga algorithm Ti, where 0<i≤n, n is the number of network devices, each sub-transaction Ti means sending IPsec configuration information to the i-th network device; each sub-transaction Ti has a corresponding compensation action Ci, where 0<i≤ n, n is the number of network devices, and each compensation action Ci is used to undo the result caused by the sub-transaction Ti, that is, to roll back the IPsec configuration information delivered to the i-th network device.

[0034] Under normal circumstances, it is normal for the user to send IPsec configuration information to all netwo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a microservice data consistency method, system and device in Ipsec tunnel configuration and a medium, and the method comprises the steps: enabling a user to divide Ipsec configuration information into a series of sub-transactions through a Saga algorithm when the user transmits the Ipsec configuration information to a network device, and enabling each sub-transaction to have a corresponding compensation action; sequentially executing each sub-transaction, if the sub-transactions fail to be executed, failing to issue the Ipsec configuration information to the network equipment, and sequentially carrying out corresponding compensation actions on the successful sub-transactions forwards from the last successful sub-transaction; and if all the sub-transactions are successfully executed, issuing feedback that the Ipsec configuration information is successfully executed to the network equipment. According to the invention, the compensation mechanism of Saga is improved, due to the atomicity characteristic of the network equipment, the sub-tasks which fail currently are not compensated and are stored after each sub-task succeeds, the occupancy of software and hardware of the current network equipment is saved, the delay time is shortened, and the real-time performance is improved.

Description

technical field [0001] The invention belongs to the field of IP networks, and in particular relates to a microservice data consistency method, system, device and medium in IPsec tunnel configuration. Background technique [0002] In 2014, microservices entered people's field of vision, and it is considered to be an effective means for the next generation to realize informatization. One problem that microservices cannot bypass is the problem of data consistency. Neither local transactions in previous stand-alone applications nor distributed transactions in clusters can be applied to microservice systems. Microservice system features: [0003] l. Since data access cannot be directly performed between microservices, mutual calls between microservices are usually performed through RPC or Http API, so the transaction manager cannot be used to manage microservice resources. [0004] 2. The types of data sources used by different microservices may be completely different. If a m...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/24H04L12/46
CPCH04L12/4633H04L41/0889H04L41/0803
Inventor 李伟张晨黄韬
Owner PURPLE MOUNTAIN LAB
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products