CN110619579B - Method and device for reporting disk at highest speed and computer readable storage medium - Google Patents

Method and device for reporting disk at highest speed and computer readable storage medium Download PDF

Info

Publication number
CN110619579B
CN110619579B CN201910751995.8A CN201910751995A CN110619579B CN 110619579 B CN110619579 B CN 110619579B CN 201910751995 A CN201910751995 A CN 201910751995A CN 110619579 B CN110619579 B CN 110619579B
Authority
CN
China
Prior art keywords
speed
data set
report
data
elements
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.)
Active
Application number
CN201910751995.8A
Other languages
Chinese (zh)
Other versions
CN110619579A (en
Inventor
杨立新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Securities Co Ltd
Original Assignee
Ping An Securities Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ping An Securities Co Ltd filed Critical Ping An Securities Co Ltd
Priority to CN201910751995.8A priority Critical patent/CN110619579B/en
Publication of CN110619579A publication Critical patent/CN110619579A/en
Application granted granted Critical
Publication of CN110619579B publication Critical patent/CN110619579B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/06Asset management; Financial planning or analysis

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Human Resources & Organizations (AREA)
  • Operations Research (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a big data technology, and discloses a method for reporting a disk at the highest speed, which comprises the following steps: acquiring a client data set of a user, preprocessing the client data set and establishing an express disk data set; analyzing the elements in the extreme speed quotation data set by a preset virtual transaction unit technology and optimizing the elements in a pre-constructed extreme speed quotation queue to obtain a target extreme speed quotation data set; pushing the data of the target speed quotation data set to a matching host of the stock exchange by utilizing a pre-constructed speed quotation system; and matching the data of the pushed target speed quotation data table set through a bidding rule of the matching host of the stock exchange to obtain a transaction result, and returning the transaction result to the user through the speed quotation system. The invention also provides an extreme speed disk reporting device and a computer readable storage medium. The invention realizes the high-efficiency processing of data.

Description

Method and device for reporting disk at highest speed and computer readable storage medium
Technical Field
The invention relates to the technical field of big data, in particular to a method and a device for extremely-fast reporting a stock exchange and a computer-readable storage medium.
Background
With the continuous development of the Chinese securities market and the continuous deepening of the industrial innovation, a plurality of continuous rises and stops can be realized after a new stock of a secondary market is listed, and the investors intervene as early as possible to greatly improve the income; stocks like growing organisms and the like can continuously stop for a plurality of times after meeting a black swan event, and investors can quit early to avoid risks and reduce loss. Professional investors have higher and higher requirements on transaction speed and transaction quality, extremely-fast transaction application has high cognition in some institutions and personal investors, the requirement for fast quotation is initially revealed in domestic markets, and many investors and stockers fully realize the urgency of developing a proper fast quotation and order taking system. The securities company of the self-built machine room can improve the success rate of rush to the rising and stopping board and the falling and stopping board when opening the tray, which is always a difficult problem that the same industry wants to solve, but domestic colleagues have no precedent to solve so far, and the main pain points have the following three aspects: firstly, the investment cost is high, which is embodied as high cost of machine room relocation, seat rent, system reconstruction and the like; secondly, the technical threshold is high, and the optimization is performed by multiple links of software, hardware and a network; thirdly, the machine room is far away, thereby affecting the overall newspaper-reading speed and preventing the counter system from being moved.
Disclosure of Invention
The invention provides a method, a device and a computer-readable storage medium for reporting a stock quotation at a high speed, and mainly aims to present an efficient data processing result to a user when the user submits data in a stock exchange.
In order to achieve the above object, the present invention provides a method for reporting a disk at an extremely high speed, comprising:
acquiring a client data set of a user, preprocessing the client data set, and establishing an extremely fast reporting data set;
analyzing the elements in the extreme speed quotation data set by a preset virtual transaction unit technology and optimizing the elements in a pre-constructed extreme speed quotation queue to obtain a target extreme speed quotation data set;
pushing the data of the target speed quotation data set to a matching host of a stock exchange by using a pre-constructed speed quotation system to complete speed quotation, wherein the pre-constructed speed quotation system comprises: multiplexing the existing transaction unit, configuring a low-delay network card, optimizing a network architecture, newly adding a bypass rapid disk reporting component and configuring a gateway;
and matching the data of the pushed target speed quotation data table set through a bidding rule of the matching host of the stock exchange to obtain a transaction result, and returning the transaction result to the user through the speed quotation system.
Optionally, the pre-processing operation comprises:
and screening the entrusted data set of the user according to the urgency degree of entrusted transaction of the user submitting the entrusted data set to obtain an extreme speed report data entrusted record set of a rising-stopping board and a falling-stopping board, and establishing the extreme speed report data set according to the extreme speed report data entrusted record set.
Optionally, the analyzing the elements in the rapid report dataset by using a preset virtual transaction unit technology includes:
acquiring serial-parallel information of the data in the extreme speed report data set, and configuring a DSL language for the serial-parallel information and converting the serial-parallel information into a directed acyclic graph;
and performing topological sorting on the directed acyclic graph through a preset flow direction, and presetting a certain number of virtual nodes according to the topological sorting to realize dotted line intersection of the flow graph and finish element analysis in the rapid report data set.
Optionally, the optimizing the elements in the pre-constructed speed report queue includes:
establishing an IPC shared memory area through a Linux shared memory, and mapping the IPC shared memory area to an address space of a process in the element to access data;
And controlling the reading and writing of the processes in the multiple elements by using a semaphore mechanism, realizing the synchronization among the processes in the multiple elements, and finishing the optimization of the elements in the extreme speed report queue.
Optionally, the multiplexing of the existing transaction units performs the following:
screening the existing transaction units according to the commission table transaction time in the target rapid reporting data set to obtain an idle transaction unit;
populating the delegation table into the idle transaction unit according to a one-to-many rule.
In order to achieve the above object, the present invention further provides a rapid ticker tape-out device, including a memory and a processor, wherein the memory stores a rapid ticker tape-out program operable on the processor, and the rapid ticker tape-out program implements the following steps when executed by the processor:
acquiring a client data set of a user, preprocessing the client data set and establishing an express disk data set;
analyzing the elements in the extreme speed quotation data set by a preset virtual transaction unit technology and optimizing the elements in a pre-constructed extreme speed quotation queue to obtain a target extreme speed quotation data set;
Pushing the data of the target speed quotation data set to a matching host of a stock exchange by using a pre-constructed speed quotation system to complete speed quotation, wherein the pre-constructed speed quotation system comprises: multiplexing the existing transaction unit, configuring a low-delay network card, optimizing a network architecture, newly adding a bypass rapid disk reporting component and configuring a gateway;
and matching the data of the pushed target speed quotation data table set through a bidding rule of the matching host of the stock exchange to obtain a transaction result, and returning the transaction result to the user through the speed quotation system.
Optionally, the pre-processing operation comprises:
and screening the entrusted data set of the user according to the urgency degree of entrusted transaction of the user submitting the entrusted data set to obtain a high-speed reporting data entrusted record set of a rush-stop board and a rush-stop board, and establishing the high-speed reporting data set according to the high-speed reporting data entrusted record set.
Optionally, the analyzing, by using a preset virtual transaction unit technology, elements in the rapid quotation data set includes:
acquiring serial-parallel information of the data in the rapid report data set, and configuring DSL (digital subscriber line) language for the serial-parallel information and converting the serial-parallel information into a directed acyclic graph;
And carrying out topological sorting on the directed acyclic graph through a preset flow direction, and presetting a certain number of virtual nodes according to the topological sorting to realize dotted line crossing of the flow graph and finish element analysis in the rapid report data set.
Optionally, the optimizing the elements in the pre-constructed speed quotation queue includes:
establishing an IPC shared memory area through a Linux shared memory, and mapping the IPC shared memory area to an address space of a process in the element to access data;
and controlling the reading and writing of the processes in the multiple elements by using a semaphore mechanism, realizing the synchronization among the processes in the multiple elements, and finishing the optimization of the elements in the extremely-fast report queue.
In addition, to achieve the above object, the present invention also provides a computer readable storage medium having a speed quotation program stored thereon, which is executable by one or more processors to implement the steps of the speed quotation method as described above.
When a user submits entrusted data to a stock exchange, the method, the device and the computer-readable storage medium combine the pre-processing and optimizing operation of the entrusted data and the data push of the pre-processing and optimizing operation by utilizing a pre-constructed extreme speed reporting system, so that an efficient data processing result can be presented to the user.
Drawings
Fig. 1 is a schematic flow chart of a method for reporting a disk at an extreme speed according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an internal structure of an extreme speed disk reading apparatus according to an embodiment of the present invention;
fig. 3 is a block diagram illustrating a very fast disc reading program in a very fast disc reading apparatus according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a rapid disk reporting method. Fig. 1 is a schematic flow chart of a method for reporting a disk at an extreme speed according to an embodiment of the present invention. The method may be performed by an apparatus, which may be implemented by software and/or hardware.
In this embodiment, the method for reporting an extremely fast disk includes:
s1, obtaining a client entrusted data set, preprocessing the entrusted data set, and establishing an extremely rapid report data set.
In a preferred embodiment of the present invention, the user refers to an investor who is preparing or making an investment in securities, stocks or the like, for example, the user may be a white collar of a company, a business house or the like. In the preferred embodiment of the invention, the entrusted data of the user comprises entrusted transaction time, transaction direction, security codes, security quantity and the like, and the invention establishes an entrusted data set of the user according to the entrusted data of the user. The user entrusted data is generated by self-ordering of the user through an internet channel, a mobile phone app and other channels provided by a dealer.
The pre-processing operation is: and screening the entrusted data set of the user according to the urgency degree of entrusted transaction of the user submitting the entrusted data set to obtain a high-speed reporting data entrusted record set of a rush-stop board and a rush-stop board, and establishing the high-speed reporting data set according to the high-speed reporting data entrusted record set.
And S2, analyzing the elements in the speed quotation data set by a preset virtual transaction unit technology, and optimizing the elements in a pre-constructed speed quotation queue to obtain a target speed quotation data set.
Elements in the upfront dataset refer primarily to transactional elements, such as: security code, buying and selling direction, etc. The pre-constructed express reporting queue refers to a reporting path in a process of pushing a user's entrusting sheet to an exchange, and elements in the express reporting queue refer to elements of the reporting path in the process of pushing the user's entrusting sheet to the exchange. The pre-constructed speed quotation queue comprises: business department path, file path, etc., the elements in the rapid release queue include: the number of the business department path, the number of the file path, and the like. Preferably, the invention analyzes the elements in the extreme report data set and optimizes the elements in the report queue by a preset virtual transaction unit technology, thereby improving the transmission efficiency of report data. The virtual transaction unit technique of the preferred embodiment of the present invention includes a flow chart coordinate algorithm and a Branch Processing Unit (BPU). In a preferred embodiment of the present invention, the flowchart coordinate algorithm is used to analyze the elements in the rapid report dataset, and the specific operation steps of the analysis process are as follows: acquiring serial-parallel information of data in a polar speed report data set of a user, such as A & & < B | C & & D > & & E; configuring DSL language for the serial-parallel information and converting the DSL language into a directed acyclic graph; presetting a certain flow direction to carry out topological sequencing on the directed acyclic graph; and presetting certain virtual nodes according to the topological sorting, realizing the dotted line intersection of the flow chart, and finishing the element analysis in the extreme speed report data set. Preferably, the preset flow direction of the present invention is from top to bottom and from left to right, and the topological sorting is used for placing the nodes of the information on different levels.
Furthermore, the invention realizes the optimization processing of the elements in the extreme speed report queue through the BPU. The BPU refers to an area used by the CPU for branch processing. In detail, the optimization process is as follows: the IPC shared memory area is established through a Linux shared memory and used for placing data to be shared among all processes in the shared memory, and the data access is carried out by mapping the IPC shared memory area to the address space of the processes. The process is an element for performing optimization processing in the report queue in the invention. Preferably, the Linux shared memory adopted by the invention is a System V shared memory. In detail, the API interfaces mainly supported by the System V shared memory are as follows:
a.int shmget(key_t key,size_t,size,int flag)
through the shmget () function, a process can obtain or create an IPC shared memory region and return the corresponding identifier when successful. The identifier returned is a unique identifier when the shared memory of the block is used, wherein the identifier can also be obtained by inquiring through ipcs-m executed in a command line. The parameter (key) in the function is a parameter for controlling the shared reference identifier when proposing the shared memory, and different processes need to provide the same value at the position of the parameter in order to obtain the identifier of the same shared memory. The value of the key is required to be agreed by all parties, a file is created in the position agreed by all parties in the file system, and the file index node number of the file is calculated by using a ftok () function and is used as the key value.
b.void*shmat(int shmid,const void*addr,int flag)
By using the shmat () function, the process can map (attach) the created shared memory region into the address space of the calling process, and the process can directly access the shared region by returning a value, that is, an address pointer in the address of the process after the memory block is mapped. Where the shmid parameter, i.e., the shared memory identifier returned by the shmat () function, usually a parameter other than shmid, does not need to be specified, the shared memory identifier representing the relative position in program address space selected by the kernel.
c.int shmdt(void*addr)
After the shmdt () function is called, the mapping of the shared memory domain by the process can be released, and addr is a mapping address returned when shmdt is called.
d.int shmctl(int shmid,int cmd,struct shmid_ds*buf)
And when the shared memory is determined not to be used any more, actively calling the shmctl () function to delete the created shared memory area, and executing the command through the ipcrm command line to delete a shared memory. In addition, the shmctl may be used to implement control operations such as modifying a state of the shared memory domain.
S3, pushing the data of the target speed quotation data set to a matching host of a stock exchange by using a pre-constructed speed quotation system to complete speed quotation, wherein the pre-constructed speed quotation system comprises: multiplexing the existing transaction unit, configuring a low-delay network card, optimizing a network architecture, adding a bypass rapid disk reading component and configuring a gateway.
In a preferred embodiment of the present invention, the rapid reporting system is used for rapidly pushing target rapid reporting data of a user to a matching host of a stock exchange for data exchange and completing the rapid reporting.
And the multiplexing existing transaction unit screens existing idle transaction units according to the transaction time of the target rapid report data centralized commission list, expands the commission list to the idle transaction units according to a one-to-many principle, and performs rapid report through the rapid report system, so that the probability of acquiring the head order is increased.
The low-delay network card and the switch are configured by adopting a network card and a switch which have high back plate capacity, full linear speed forwarding and low delay. Preferably, the host network card adopts a Gigabit (GB) high-bandwidth optical network card, and is matched with a full-function Gigabit (GB) Ethernet switch for use. The shorter the distance between the appropriate host and the network cable or optical fiber connecting cable of the Ethernet switch, the smaller the system delay. Furthermore, the Ethernet two-layer switch independent of each subsystem of the system transmits the data of all the subsystems on the independent Ethernet two-layer switch, avoids the interference among different data, achieves point-to-point direct forwarding without a routing function, and effectively reduces the time delay of a network card communication link.
The optimized network architecture adopts a two-layer network architecture (dual-redundancy network architecture) to optimize the network architecture. In detail, the dual-redundancy network architecture adopts a full-redundancy network architecture, wherein a process component of the network architecture adopts two-way multi-active-standby, and a queuing arbitration mechanism is introduced to ensure the high efficiency and stability of emergency switching. Further, the dual redundant network architecture mainly comprises: each system component realizes double active hot standby, the exchanger realizes double hot standby, each subsystem host network card adopts the binding technology of double network cards to connect two double hot standby exchangers, so that the normal operation of the system can not be influenced by the single fault of any system component and network exchanger, and the requirements of high efficiency, stability and strong risk resistance of quick transaction are met.
The bypass rapid report component is used for expanding the rapid report system, forms various service rules according to abstraction of services, analyzes the service rules, minimizes the influence of the service rules, minimizes the influence when a new rule is added or the original rule is adjusted, adopts an independent report transaction channel, and distinguishes the report transaction channel of the bypass report component from the report channel of the rapid report system, thereby ensuring that the operation of the rapid report system is not influenced when the report is subjected to order taking.
The configuration gateway uses a step protocol and a step interface by setting the gateway. The step protocol is a Chinese financial industry data communication standard JR/T0022-2004, is adopted by Shenzhen exchange at present, and is used as a standard protocol of data distributed to an information service provider by Leve I data.
Further, in the preferred embodiment of the present invention, a one-to-one correspondence relationship is established between the reporting gateway of the original computer room and the very fast reporting gateway, including the same transaction units and the one-to-one correspondence of the number of transaction units, so as to ensure that the transaction data is the same during the transaction and the rotation. Furthermore, the rapid quotation system is deployed in the Shenzhen stock exchange machine room, on one hand, the server can be directly connected with the related exchange system of the Shenzhen stock exchange, and a client can more conveniently operate a host of the client through remote control for maintenance and application; on the other hand, the system can directly jump to a deep-transit station machine room through a special line on the router for reporting, thereby reducing the reporting distance and reducing the transmission time loss. Preferably, the software and hardware equipment in the rapid quotation system are deployed to a rental machine room of the deep-licensed exchange, and the rapid quotation system and a host of the deep-licensed exchange are established under the same local area network, so that the timeliness of transaction data in the transmission process is ensured.
And S4, matching the data of the pushed target speed report data sheet set through the bidding rule of the matching host of the stock exchange, and returning a transaction result to the user through the speed report system.
In the preferred embodiment of the invention, the system is connected with the matching host of the stock exchange through a TGW (trade gateway) in the rapid reporting system, performs matching processing and transaction return, and returns the transaction result to the user through the TGW in the rapid reporting system. The TGW is a trading gateway and is an access point provided by a Shenzhen stock exchange trading system for market participants, wherein the TGW supports access to the Shenzhen stock exchange trading system through a STEP protocol and a Binary protocol, submits orders and acquires execution reports. The bidding rules match the deals according to rules of price priority and time priority. The rules of price priority are as follows: higher price buy declarations are preferred over lower price buy declarations, lower price sell declarations are preferred over higher price sell declarations. The time-first rule is as follows: the business direction and the price are the same, and the first declarator takes precedence over the later declarator. Wherein, the sequence is determined according to the time of the transaction host computer for accepting the declaration.
The invention also provides an extremely fast disk reporting device. Fig. 2 is a schematic diagram illustrating an internal structure of an extreme speed disk reading apparatus according to an embodiment of the present invention.
In the present embodiment, the rapid disc device 1 may be a PC (Personal Computer), a terminal device such as a smart phone, a tablet Computer, or a mobile Computer, or may be a server. The flash drive apparatus 1 includes at least a memory 11, a processor 12, a communication bus 13, and a network interface 14.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the rapid disc drive 1, such as a hard disk of the rapid disc drive 1. The memory 11 may also be an external storage device of the Flash drive apparatus 1 in other embodiments, such as a plug-in hard disk provided on the Flash drive apparatus 1, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 11 may also include both an internal storage unit of the rapid disc device 1 and an external storage device. The memory 11 can be used not only to store application software installed in the rapid disc device 1 and various types of data, such as the code of the rapid disc program 01, but also to temporarily store data that has been output or is to be output.
Processor 12, which in some embodiments may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip, is configured to execute program code or process data stored in memory 11, such as executing flash drive 01.
The communication bus 13 is used to realize connection communication between these components.
The network interface 14 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), typically used to establish a communication link between the apparatus 1 and other electronic devices.
Optionally, the apparatus 1 may further comprise a user interface, which may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the rapid disc device 1 and for displaying a visual user interface.
While FIG. 2 shows only the rapid disc drive apparatus 1 having the components 11-14 and the rapid disc drive program 01, those skilled in the art will appreciate that the configuration shown in FIG. 1 does not constitute a limitation of the rapid disc drive apparatus 1, and may include fewer or more components than shown, or some components in combination, or a different arrangement of components.
In the embodiment of the apparatus 1 shown in fig. 2, a memory 11 stores an extreme flash program 01; when the processor 12 executes the disk-finalization program 01 stored in the memory 11, the following steps are implemented:
the method comprises the steps of firstly, obtaining a client data set of a user, carrying out preprocessing operation on the client data set, and establishing an extremely fast reporting data set.
In a preferred embodiment of the present invention, the user refers to an investor who is preparing or making an investment in securities, stocks or the like, for example, the user may be a white collar of a company, a business house or the like. In the preferred embodiment of the invention, the entrusted data of the user comprises entrusted transaction time, transaction direction, security codes, security quantity and the like, and the invention establishes an entrusted data set of the user according to the entrusted data of the user. The user entrusted data is generated by self-ordering of the user through an internet channel, a mobile phone app and other channels provided by a dealer.
The pre-processing operation is: and screening the entrusted data set of the user according to the urgency degree of entrusted transaction of the user submitting the entrusted data set to obtain a high-speed reporting data entrusted record set of a rush-stop board and a rush-stop board, and establishing the high-speed reporting data set according to the high-speed reporting data entrusted record set.
And secondly, analyzing the elements in the extreme speed report data set through a preset virtual transaction unit technology and optimizing the elements in a pre-constructed extreme speed report queue to obtain a target extreme speed report data set.
Elements in the upfront dataset refer primarily to transactional elements, such as: security code, buying and selling direction, etc. The pre-constructed express reporting queue refers to a reporting path in a process of pushing a user's entrusting sheet to an exchange, and elements in the express reporting queue refer to elements of the reporting path in the process of pushing the user's entrusting sheet to the exchange. The pre-constructed speed quotation queue comprises: business department path, file path, etc., the elements in the rapid release queue include: the number of the business department path, the number of the file path, and the like. Preferably, the invention analyzes the elements in the extreme report data set and optimizes the elements in the report queue by a preset virtual transaction unit technology, thereby improving the transmission efficiency of report data. The virtual transaction unit technique of the preferred embodiment of the present invention includes a flow chart coordinate algorithm and a Branch Processing Unit (BPU). In a preferred embodiment of the present invention, the flowchart coordinate algorithm is used to analyze the elements in the rapid report dataset, and the specific operation steps of the analysis process are as follows: acquiring serial-parallel information of data in a polar speed report data set of a user, such as A & & < B | C & & D > & & E; configuring DSL language for the serial-parallel information and converting the DSL language into a directed acyclic graph; presetting a certain flow direction to carry out topological sequencing on the directed acyclic graph; and presetting certain virtual nodes according to the topological sorting, realizing the dotted line intersection of the flow chart, and finishing the element analysis in the extreme speed report data set. Preferably, the preset flow direction of the present invention is from top to bottom and from left to right, and the topological sorting is used for placing the nodes of the information on different levels.
Furthermore, the invention realizes the optimization processing of the elements in the extreme speed report queue through the BPU. The BPU refers to an area used by the CPU for branch processing. In detail, the optimization process is as follows: the IPC shared memory area is established through the Linux shared memory and used for placing data to be shared among all processes in the shared memory, the IPC shared memory area is mapped to the address space of the processes to access the data, and furthermore, the IPC shared memory area controls a plurality of reading and writing processes through a semaphore mechanism and is used for realizing the synchronization among the processes. The process is an element for performing optimization processing in the report queue in the invention. Preferably, the Linux shared memory adopted by the invention is a System V shared memory. In detail, the API interfaces mainly supported by the System V shared memory are as follows:
a.int shmget(key_t key,size_t,size,int flag)
through the shmget () function, a process can obtain or create an IPC shared memory region and return the corresponding identifier when successful. The identifier returned is a unique identifier when the shared memory of the block is used, wherein the identifier can also be obtained by inquiring through ipcs-m executed in a command line. The parameter (key) in the function is a parameter for controlling the shared reference identifier when proposing the shared memory, and different processes need to provide the same value at the position of the parameter in order to obtain the identifier of the same shared memory. The value of the key is required to be agreed by all parties, a file is created in the position agreed by all parties in the file system, and the file index node number of the file is calculated by using a ftok () function and is used as the key value.
b.void*shmat(int shmid,const void*addr,int flag)
By using the shmat () function, the process can map (attach) the created shared memory region into the address space of the calling process, and the process can directly access the shared region by returning a value, that is, an address pointer in the address of the process after the memory block is mapped. Where the shmid parameter, i.e., the shared memory identifier returned by the shmat () function, usually a parameter other than shmid, does not need to be specified, the shared memory identifier representing the relative position in program address space selected by the kernel.
c.int shmdt(void*addr)
After the shmdt () function is called, the mapping of the shared memory domain by the process can be released, and addr is a mapping address returned when shmdt is called.
d.int shmctl(int shmid,int cmd,struct shmid_ds*buf)
And when the shared memory is determined not to be used any more, actively calling the shmctl () function to delete the created shared memory area, and executing the command through the ipcrm command line to delete a shared memory. In addition, the shmctl may be used to implement control operations such as modifying a state of the shared memory domain.
Thirdly, pushing the data of the target speed quotation data set to a matching host of the stock exchange by utilizing a pre-constructed speed quotation system to finish the speed quotation, wherein the pre-constructed speed quotation system comprises: multiplexing the existing transaction unit, configuring a low-delay network card, optimizing a network architecture, adding a bypass rapid disk reading component and configuring a gateway.
In a preferred embodiment of the present invention, the rapid reporting system is used for rapidly pushing target rapid reporting data of a user to a matching host of a stock exchange for data exchange and completing the rapid reporting. And the multiplexing existing transaction unit screens existing idle transaction units according to the transaction time of the target rapid reporting data centralized commission list, expands the commission list to the idle transaction units according to a one-to-many principle, and performs rapid reporting through the rapid reporting system, so that the probability of acquiring the first order is increased.
The low-delay network card and the switch are configured by adopting a network card and a switch which have high back plate capacity, full linear speed forwarding and low delay. Preferably, the host network card adopts a Gigabit (GB) high-bandwidth optical network card, and is matched with a full-function Gigabit (GB) Ethernet switch for use. The shorter the distance between the appropriate host and the network cable or the optical fiber connecting cable of the Ethernet switch is, the smaller the system delay is. Furthermore, the Ethernet two-layer switch independent of each subsystem of the system transmits the data of all the subsystems on the independent Ethernet two-layer switch, avoids the interference among different data, achieves point-to-point direct forwarding without a routing function, and effectively reduces the time delay of a network card communication link.
The optimized network architecture adopts a two-layer network architecture (dual-redundancy network architecture) to optimize the network architecture. In detail, the dual-redundancy network architecture adopts a full-redundancy network architecture, wherein a process component of the network architecture adopts two-way multi-active-standby, and a queuing arbitration mechanism is introduced to ensure the high efficiency and stability of emergency switching. Further, the dual redundant network architecture mainly comprises: each system component realizes double active hot standby, the exchanger realizes double hot standby, each subsystem host network card adopts the binding technology of double network cards to connect two double hot standby exchangers, so that the normal operation of the system can not be influenced by the single fault of any system component and network exchanger, and the requirements of high efficiency, stability and strong risk resistance of quick transaction are met.
The bypass rapid report component is used for expanding the rapid report system, forms various service rules according to abstraction of services, analyzes the service rules, reduces the influence of the service rules to the minimum, reduces the influence to the minimum when adding new rules or adjusting original rules, adopts an independent report transaction channel, and distinguishes the report transaction channel of the bypass report component from the report channel of the rapid report system, thereby ensuring that the operation of the rapid report system is not influenced when the report is subjected to order grabbing.
The configuration gateway uses a step protocol and a step interface by setting the gateway. The step protocol is a Chinese financial industry data communication standard JR/T0022-2004, is adopted by Shenzhen exchange at present, and is used as a standard protocol of data distributed to an information service provider by Leve I data.
Further, in the preferred embodiment of the present invention, a one-to-one correspondence relationship is established between the reporting gateway of the original computer room and the very fast reporting gateway, including the same transaction units and the one-to-one correspondence of the number of transaction units, so as to ensure that the transaction data is the same during the transaction and the rotation. Furthermore, the rapid quotation system is deployed in the Shenzhen stock exchange machine room, on one hand, the server can be directly connected with the related exchange system of the Shenzhen stock exchange, and a client can more conveniently operate a host of the client through remote control for maintenance and application; on the other hand, the system can directly jump to a deep-transit station machine room through a special line on the router for reporting, thereby reducing the reporting distance and reducing the transmission time loss. Preferably, the software and hardware equipment in the rapid quotation system are deployed to a rental machine room of the deep-licensed exchange, and the rapid quotation system and a host of the deep-licensed exchange are established under the same local area network, so that the timeliness of transaction data in the transmission process is ensured.
And fourthly, matching the data of the pushed target speed quotation data table set through a bidding rule of the matching host of the stock exchange, and returning a trading result to the user through the speed quotation system.
In the preferred embodiment of the invention, the system is connected with the matching host of the stock exchange through a TGW (trade gateway) in the rapid reporting system, performs matching processing and transaction return, and returns the transaction result to the user through the TGW in the rapid reporting system. The TGW is a trading gateway and is an access point provided by a Shenzhen stock exchange trading system for market participants, wherein the TGW supports access to the Shenzhen stock exchange trading system through a STEP protocol and a Binary protocol, submits orders and acquires execution reports. The bidding rules match the deals according to rules of price priority and time priority. The rule of priority of the price is as follows: higher price buy declarations are preferred over lower price buy declarations, lower price sell declarations are preferred over higher price sell declarations. The time-first rule is as follows: the business direction and the price are the same, and the first declarator takes precedence over the later declarator. Wherein, the sequence is determined according to the time of the transaction host computer for accepting the declaration.
Alternatively, in other embodiments, the rapid disk reading program may be further divided into one or more modules, and the one or more modules are stored in the memory 11 and executed by one or more processors (in this embodiment, the processor 12) to implement the present invention, where the module referred to in the present invention refers to a series of computer program instruction segments capable of performing a specific function for describing the execution process of the rapid disk reading program in the rapid disk reading apparatus.
For example, referring to fig. 3, a schematic diagram of program modules of a very fast ticker procedure in an embodiment of the very fast ticker apparatus of the present invention is shown, in this embodiment, the very fast ticker procedure may be divided into a data preprocessing module 10, a data analysis module 20, a data pushing module 30, and a result returning module 40, which exemplarily:
the data preprocessing module 10 is configured to: and acquiring a client data set of a user, preprocessing the client data set, and establishing an extremely-fast report data set.
The data analysis module 20 is configured to analyze the elements in the rapid reporting data set and optimize the elements in a pre-constructed rapid reporting queue through a preset virtual trading unit technology to obtain a target rapid reporting data set.
The data pushing module 30 is configured to: pushing the data of the target speed quotation data set to a matching host of a stock exchange by using a pre-constructed speed quotation system to complete speed quotation, wherein the pre-constructed speed quotation system comprises: multiplexing the existing transaction unit, configuring a low-delay network card, optimizing a network architecture, adding a bypass rapid disk reading component and configuring a gateway.
The result returning module 40 is configured to: and matching the data of the pushed target speed quotation data table set through a bidding rule of the matching host of the stock exchange to obtain a transaction result, and returning the transaction result to the user through the speed quotation system.
The functions or operation steps of the data preprocessing module 10, the data analysis module 20, the data pushing module 30, and the result returning module 40 when executed are substantially the same as those of the above embodiments, and are not described herein again.
Furthermore, an embodiment of the present invention also provides a computer-readable storage medium, on which an upcast program is stored, where the upcast program is executable by one or more processors to implement the following operations:
Acquiring a client data set of a user, preprocessing the client data set, and establishing an extremely fast reporting data set;
analyzing the elements in the extreme speed quotation data set by a preset virtual transaction unit technology and optimizing the elements in a pre-constructed extreme speed quotation queue to obtain a target extreme speed quotation data set;
pushing the data of the target speed quotation data set to a matching host of a stock exchange by using a pre-constructed speed quotation system to complete speed quotation, wherein the pre-constructed speed quotation system comprises: multiplexing the existing transaction unit, configuring a low-delay network card, optimizing a network architecture, newly adding a bypass rapid disk reporting component and configuring a gateway;
and matching the data of the pushed target speed quotation data table set through a bidding rule of the matching host of the stock exchange to obtain a transaction result, and returning the transaction result to the user through the speed quotation system.
The embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the rapid disk reading apparatus and method, and will not be described herein again.
It should be noted that the above-mentioned numbers of the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method 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, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (4)

1. A method for reporting disk at top speed, the method comprising:
acquiring a client data set of a user, preprocessing the client data set, and establishing an extreme report data set, wherein the preprocessing comprises the following steps: screening the entrusted data set of the user according to the urgency degree of entrusted transaction of the user submitting the entrusted data set to obtain a high-speed reporting data entrusted record set of a crash stop board and a crash stop board, and establishing the high-speed reporting data set according to the high-speed reporting data entrusted record set;
Analyzing the elements in the extreme speed report data set and optimizing the elements in a pre-constructed extreme speed report queue by a preset virtual trading unit technology to obtain a target extreme speed report data set, wherein the method comprises the following steps: acquiring serial-parallel information of data in the extreme speed disc report data set, configuring a DSL language for the serial-parallel information, converting the serial-parallel information into a directed acyclic graph, topologically sequencing the directed acyclic graph through a preset flow direction, presetting a certain number of virtual nodes according to the topological sequencing, realizing dotted line intersection of the flow graph, completing element analysis in the extreme speed disc report data set, establishing an IPC (inter process control) shared memory area through a Linux shared memory, mapping the IPC shared memory area to an address space of a process in the elements to perform data access, controlling the reading and writing of the processes in the elements by using a semaphore mechanism, realizing synchronization among the processes in the elements, completing optimization of the elements in the extreme speed disc report queue, and obtaining the target extreme speed disc report data set;
pushing the data of the target speed report data set to a matching host of a stock exchange by using a pre-constructed speed report system to complete speed report, wherein the pre-constructed speed report system comprises: multiplexing the existing trading unit, configuring a low-delay network card, optimizing a network architecture, adding a bypass rapid report component and configuring a gateway;
And matching the data of the pushed target speed quotation data table set through a bidding rule of the matching host of the stock exchange to obtain a transaction result, and returning the transaction result to the user through the speed quotation system.
2. The flash drive method of claim 1, wherein the multiplexing of existing transaction units performs the following:
screening the existing transaction units according to the commission table transaction time in the target rapid reporting data set to obtain an idle transaction unit;
populating the delegation table into the idle transaction unit according to a one-to-many rule.
3. An extremely rapid disk reading apparatus, comprising a memory and a processor, wherein the memory stores an extremely rapid disk reading program operable on the processor, and the extremely rapid disk reading program when executed by the processor implements the steps of:
acquiring a client data set of a user, preprocessing the client data set, and establishing an extreme report data set, wherein the preprocessing comprises the following steps: screening the entrusted data set of the user according to the urgency degree of entrusted transaction of the user submitting the entrusted data set to obtain a high-speed reporting data entrusted record set of a crash stop board and a crash stop board, and establishing the high-speed reporting data set according to the high-speed reporting data entrusted record set;
Analyzing the elements in the extreme speed report data set and optimizing the elements in a pre-constructed extreme speed report queue by a preset virtual trading unit technology to obtain a target extreme speed report data set, wherein the method comprises the following steps: acquiring serial-parallel information of data in the extreme speed disc report data set, configuring a DSL language for the serial-parallel information, converting the serial-parallel information into a directed acyclic graph, topologically sequencing the directed acyclic graph through a preset flow direction, presetting a certain number of virtual nodes according to the topological sequencing, realizing dotted line intersection of the flow graph, completing element analysis in the extreme speed disc report data set, establishing an IPC (inter process control) shared memory area through a Linux shared memory, mapping the IPC shared memory area to an address space of a process in the elements to perform data access, controlling the reading and writing of the processes in the elements by using a semaphore mechanism, realizing synchronization among the processes in the elements, completing optimization of the elements in the extreme speed disc report queue, and obtaining the target extreme speed disc report data set;
pushing the data of the target speed report data set to a matching host of a stock exchange by using a pre-constructed speed report system to complete speed report, wherein the pre-constructed speed report system comprises: multiplexing the existing trading unit, configuring a low-delay network card, optimizing a network architecture, adding a bypass rapid report component and configuring a gateway;
And matching the data of the pushed target speed quotation data table set through a bidding rule of the matching host of the stock exchange to obtain a transaction result, and returning the transaction result to the user through the speed quotation system.
4. A computer-readable storage medium having stored thereon a rapid ticker program executable by one or more processors to implement the steps of the rapid ticker method as recited in any one of claims 1-2.
CN201910751995.8A 2019-08-14 2019-08-14 Method and device for reporting disk at highest speed and computer readable storage medium Active CN110619579B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910751995.8A CN110619579B (en) 2019-08-14 2019-08-14 Method and device for reporting disk at highest speed and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910751995.8A CN110619579B (en) 2019-08-14 2019-08-14 Method and device for reporting disk at highest speed and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110619579A CN110619579A (en) 2019-12-27
CN110619579B true CN110619579B (en) 2022-05-27

Family

ID=68921779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910751995.8A Active CN110619579B (en) 2019-08-14 2019-08-14 Method and device for reporting disk at highest speed and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110619579B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112613860B (en) * 2020-12-17 2022-08-09 东方证券股份有限公司 Deep traffic institute TGW-based cluster disk reporting system
CN112613859B (en) * 2020-12-17 2022-07-12 东方证券股份有限公司 Cluster disk reporting system based on ring mechanism of upper exchange

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904820A (en) * 2012-09-25 2013-01-30 上海证券交易所 Extensible traffic control data interaction method and system
CN103854189A (en) * 2012-12-05 2014-06-11 江苏省文化产权交易所有限公司 Method and system for public on-line barter transaction of coin and stamp collectibles
CN109636603A (en) * 2018-12-06 2019-04-16 大连飞创信息技术有限公司 Security mock trading platform based on the configuration of message strategy

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7076444B1 (en) * 2000-09-20 2006-07-11 Priva Technologies, Inc. Electronic offer management system and method thereof
CN108694566A (en) * 2018-07-06 2018-10-23 恒生电子股份有限公司 A kind of offer declares the method and device of order ticket

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904820A (en) * 2012-09-25 2013-01-30 上海证券交易所 Extensible traffic control data interaction method and system
CN103854189A (en) * 2012-12-05 2014-06-11 江苏省文化产权交易所有限公司 Method and system for public on-line barter transaction of coin and stamp collectibles
CN109636603A (en) * 2018-12-06 2019-04-16 大连飞创信息技术有限公司 Security mock trading platform based on the configuration of message strategy

Also Published As

Publication number Publication date
CN110619579A (en) 2019-12-27

Similar Documents

Publication Publication Date Title
CN108961033B (en) Multi-service system interaction method and device, storage medium and electronic terminal
CN101917394B (en) Middleware system for sharing data in mobile phone equipment and working method
CN110619579B (en) Method and device for reporting disk at highest speed and computer readable storage medium
WO2014093979A1 (en) Attachment collaboration within message environments
CN110135590B (en) Information processing method, information processing apparatus, information processing medium, and electronic device
US20120151001A1 (en) Clearing Message Broker System
CN109918403A (en) Data verification method, device, computer equipment and storage medium
CN110688828A (en) File processing method and device, file processing system and computer equipment
US20160057222A1 (en) Replica server systems and methods
CN112199442A (en) Distributed batch file downloading method and device, computer equipment and storage medium
CN103516763A (en) Method, system and device for processing resources
CN109902182A (en) Knowledge data processing method, device, equipment and storage medium
CN109542647A (en) Information transmitting administrative method and device, electronic equipment, storage medium
Garstone Electronic data interchange (EDI) in port operations
KR20140013892A (en) Method of comparing output in a plurality of information systems
CN111669445A (en) Information subscription method and device of arbitration system
CN103268264B (en) A kind of multi event synchronization RFID middleware system of low coupling and its implementation
CN114493859A (en) Configuration method and device for automatically simulating matching transaction system
CN108769143A (en) Information push method and device, storage medium, electronic equipment
CN111176588B (en) Service bill issuing method, device, medium and electronic equipment
JP6932677B2 (en) Mobile devices, systems, access methods, and programs
CN111507787A (en) Commodity transaction method, commodity transaction system, computer device and readable storage medium
CN106454782A (en) Mobile banking access method, terminal and system
JPH03504176A (en) data processing network
US10554534B1 (en) Clearing message broker system messaging gateway

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
GR01 Patent grant
GR01 Patent grant