Algorithm for generating unique packet ID of financial data exchange message

A financial data and message technology, applied in electrical components, transmission systems, etc., can solve problems such as GUID duplication and packet ID not allowed duplication

Inactive Publication Date: 2017-05-10
SHENZHEN SECURITIES COMM
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But this technical method has an important defect that only one unique GUID can be generated in one second, if multiple GUIDs are generated in the same second, the GUID will be repeated
Since in the financial data exchange system, hundreds of thousands of different message packets need to be processed in one second, and each packet ID is not allowed to be repeated, obviously the algorithm that can only generate one packet ID in one second cannot meet the demand

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] The present invention will be further described below through specific embodiments.

[0015] In order to ensure the uniqueness of the message packet ID in the entire system, it is first necessary to consider the characteristics of the system. The characteristics of the financial data exchange platform are:

[0016] (1) In a distributed system, message packet IDs are generated on different client machines or server computers. Therefore, it is necessary to ensure that the packet IDs generated on any computer are different.

[0017] (2) Multi-process, each client program or server program is multi-process, that is to say, it is necessary to avoid the problem of generating duplicate package IDs at the same time.

[0018] (3) Portable on common operating systems.

[0019] Therefore, in order to generate a unique package ID, it needs to be unique in space and time, that is, to ensure that the generated package ID is unique on different computers at the same time. Starting ...

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 provides an algorithm for generating a unique packet ID of a financial data exchange message. The algorithm for generating a unique packet ID of a financial data exchange message comprises the following steps: generating the network adapter MAC address of the packet ID computer; generating the local time of the the packet ID computer; obtaining the PID of the process; accumulating numbers; and adding the field of the local pointer. The beneficial effect of the invention is that the algorithm for generating a unique packet ID of a financial data exchange message is a general algorithm in a variety of commonly used operating system (Windows, Linux, AIX, HP-UX), and can guarantee the uniqueness of less than a million message packet ID within a second in the whole system at the same time.

Description

technical field [0001] The invention relates to an algorithm for generating a unique package ID of an exchange message, in particular to an algorithm for generating a unique package ID for a financial data exchange message. Background technique [0002] Under the Windows operating system, the system itself provides a GUID algorithm, which can be obtained through the COM interface CoCreateGuid function. Under Linux, the UUID function can also be realized through a third-party library. However, the above two methods have their own defects and cannot be used in the financial data exchange platform. [0003] Under the existing Windows operating system, the system itself provides a GUID algorithm, which can be obtained through the COM interface CoCreateGuid function. However, an important defect of this technical method is that only one unique GUID can be generated in one second, and if multiple GUIDs are generated in the same second, the GUID will be repeated. Since in the fi...

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): H04L29/12
CPCH04L61/3015
Inventor 蒋春风利驿飞
Owner SHENZHEN SECURITIES COMM
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