A method and system for allocating and persisting IDs

An identification allocation and persistence technology, which is applied in transmission systems, digital transmission systems, data exchange networks, etc., can solve the problems of ID identification reassignment, ID consistency cannot be guaranteed, and achieve the effect of avoiding reassignment

Active Publication Date: 2019-09-17
武汉光网信息技术有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the existing routers, each module is responsible for ID allocation and persistence. The defect is that the ID is redistributed. In addition, in the scenarios of single-master restart, active-standby switchover, and distributed boards, the re-assigned Key value and The mapping relationship between Ids does not guarantee the consistency of IDs

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
  • A method and system for allocating and persisting IDs
  • A method and system for allocating and persisting IDs

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

[0032] see figure 1 As shown, the embodiment of the present invention provides an ID identification allocation and persistence method, which is used to allocate ID identification and persistent ID identification for each service module of the router, including the following steps:

[0033] S1, call the registration function to register the IDAP library, allocate a module index of the IDAP library for each business module of the router, set the ID allocation rule, KEY value type and KEY value comparison function; after registering the IDAP library, generate the IDAP library management structure, IDAP library The management structure includes IDAP module index, ID allocation rule, KEY value type and KEY value comparison function; IDAP library is a lib library, which is used to assign persistent ID identification for each business module of the r...

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 an ID identification allocation and persistence method, which relates to the technical field of routers, including calling a registration function to register an IDAP library, assigning a module index of an IDAP library to each business module of the router, and setting ID allocation rules and KEYs. Value type and KEY value comparison function; when each business module needs to assign an ID to the specified KEY value, assign an ID to the specified KEY value according to the ID allocation rules; when the module is restarted or switched and restored, the backup IDAP library file is read and loaded. All KEY values ​​and ID mapping relationship table items in the IDAP library file, read the KEY value and ID value in the table item and store them in the cache, and set the aging mark, and restore the mapping relationship between the Key and the ID by the method of the present invention . At the same time, the aging marks are removed from the table entries hit during the recovery process of the service module, and the table items still with the aging marks are aged after the service module is restored. The invention also discloses an ID mark allocation and persistence system.

Description

technical field [0001] The invention relates to the technical field of routers, in particular to a method and system for assigning and persisting IDs. Background technique [0002] Router products include many subsystems, and each subsystem includes many business modules. Each business module needs to assign an Id to the business keyword Key, and maintain the mapping relationship between them in real time to ensure data consistency. In such a complex environment, how to manage the allocation and persistence of IDs is particularly important. In the existing routers, each module is responsible for ID allocation and persistence. The defect is that the ID is redistributed. In addition, in the scenarios of single-master restart, active-standby switchover, and distributed boards, the re-assigned Key value and The mapping relationship between IDs cannot guarantee the consistency of IDs. [0003] Therefore, there is an urgent need for a technical solution to solve the problem of I...

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 Patents(China)
IPC IPC(8): H04L12/761H04L12/741H04L12/757H04L45/16H04L45/74
CPCH04L45/023H04L45/16H04L45/74
Inventor 王明周王灵茹
Owner 武汉光网信息技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products