Lossless backup device and method for market data, storage medium and electronic equipment

By designing a lossless backup device for market data including forwarding module, control module, monitoring module and breakpoint transfer module, and using FPGA hardware to control the main and backup switching, the problems of low efficiency and high cost of market service switching in the existing technology are solved, and efficient and low-latency market data switching and data integrity guarantee are achieved.

CN119862073APending Publication Date: 2025-04-22HUAXIN SECURITIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411939993.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

In the prior art, there are problems such as low efficiency in switching market services and high switching costs.

Method used

Design a lossless backup device for market data, including forwarding module, control module, monitoring module and breakpoint continuous transmission module, and use FPGA hardware to perform main and backup switching control to realize microsecond or even submicron second switching delay.

Benefits of technology

It improves the timeliness of market service switching, reduces hardware equipment costs and deployment and maintenance costs, and ensures the integrity of market data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119862073A_ABST
    Figure CN119862073A_ABST
Patent Text Reader

Abstract

The invention provides a lossless backup device and method for market information data, a storage medium and electronic equipment, and the device comprises a forwarding module which is in communication connection with an external market information service module and is used for forwarding the market information data and switching a data source of the market information data when receiving a main-standby switching signal; the control module is in communication connection with the forwarding module and is used for sending a main / standby switching signal to the forwarding module when receiving the early warning signal; the monitoring module is in communication connection with the control module and is used for acquiring the early warning signal, transmitting the early warning signal to the control module and recording a breakpoint signal when the early warning signal is acquired; and the breakpoint resuming module is arranged on a communication link through which the market information service module is in communication connection with the forwarding module. According to the lossless backup device and method for the market information data, the storage medium and the electronic equipment, a breakpoint resume mechanism is adopted for the security and futures market information data, it is ensured that the data are not lost during main and standby switching, and the integrity of the market information data is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and in particular relates to a lossless backup device, method, storage medium and electronic equipment for market data. Background Art

[0002] In the field of securities and futures trading, market data is an important basis for investors to make market decisions. By analyzing real-time market data, investors can understand the market's trading activity and capital flow, and thus determine the market's hot spots and trends; investors can understand the market's long and short positions and investor sentiment, and thus determine the market's trends and risks; investors can calculate and analyze various technical indicators, and thus determine market trends and price fluctuations, and choose the right time to buy and sell. For most investors, the securities and futures market system is the main channel for investors to obtain market data. Once the market system fails, it will directly affect the integrity and real-time nature of the market data, resulting in investors being unable to make trading decisions in a timely manner, increasing market risks, and may even cause transactions to fail to proceed normally, damaging investors' legitimate rights and interests.

[0003] At present, in order to ensure that the market service of users is stable and reliable, the market system backup solution has been widely used in the deployment of the market system. The traditional market system backup is achieved by users accessing the main and backup market systems at the same time. Once the main market is abnormal, the user automatically switches to the backup market system through the control of the market receiving program. However, the above existing deployment method is very costly and has the following disadvantages:

[0004] (1) On the one hand, users need to add an additional network card to receive backup market information, and the market information receiving program also needs to be able to handle the switching between the primary and backup market information, which increases the customer's hardware and development costs;

[0005] (2) On the other hand, securities or futures companies need to provide two sets of network nodes for each market access, which increases the hardware cost and operation and maintenance cost of securities and futures companies;

[0006] (3) Since the definition of market anomalies in business rules and specifications is relatively loose, users may switch to the backup market only when the main market deviates significantly from the normal, which greatly reduces the timeliness of switching to the backup system. Summary of the invention

[0007] In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide a lossless backup device, method, storage medium and electronic device for market data, so as to solve the problems of low market service switching efficiency and high switching cost in the above-mentioned prior art.

[0008] In a first aspect, the present invention provides a lossless backup device for market data, the device comprising:

[0009] A forwarding module, which is in communication with the market service module of the peripheral device, and is used to forward market data and switch the data source of the market data when receiving the primary / standby switching signal, wherein the forwarding objects of the market data include the access user group and the external monitoring terminal;

[0010] A control module, which is in communication with the forwarding module and is used to send the active / standby switching signal to the forwarding module upon receiving the early warning signal;

[0011] A monitoring module, which is in communication with the control module, and is used to obtain the warning signal and transmit it to the control module, and record a breakpoint signal when the warning signal is obtained, wherein the warning signal includes an internal monitoring anomaly, an external monitoring anomaly, and an administrator control instruction;

[0012] The breakpoint resume module is arranged on the communication link between the market service module and the forwarding module, wherein the breakpoint resume module is used to update the market data in combination with the breakpoint signal when the forwarding module receives the active-standby switching signal.

[0013] In this implementation, when constructing a lossless backup device for market data, lossless backup is performed based on FPGA hardware, which is not affected by the user operating system and other software in the actual scenario, and has higher reliability and stability. By distinguishing different modules and combining registers for master-slave switching control, the switching delay can be reduced to microseconds or even sub-microseconds, thereby minimizing the delay effect of master-slave switching on the user's use of market data.

[0014] In a possible implementation of the present application, the market service module includes a main market service end and a backup market service end, the market data originates from the main market service end, the data content provided by the main market service end and the backup market service end are consistent, the service carriers of the main market service end and the backup market service end are inconsistent, and the backup market service end cyclically caches the forwarded market data within a set time parameter.

[0015] In this implementation, the server carrier with different performance parameters can better meet the actual cost needs of users to reduce hardware equipment costs and deployment and maintenance costs, and by limiting the backup market data server to cyclically cache the corresponding forwarded market data within the set parameters, it can be ensured that after switching the main and backup market data servers, timely resumption of transmission can be carried out based on breakpoint signals to reduce time delays.

[0016] In a possible implementation of the present application, the monitoring module performs real-time bypass monitoring of the current market data to obtain the early warning signal. When the early warning signal is obtained, the recorded breakpoint signal is written into the breakpoint register, wherein when an internal monitoring abnormality is monitored, the internal early warning signal is obtained and written into the early warning register, and when an external monitoring abnormality is monitored, the external early warning signal is obtained and written into the early warning register; and when the forwarding module forwards the market data, the monitoring module obtains the administrator signal and writes it into the early warning register when the administrator control instruction is obtained.

[0017] In this implementation, due to the differences in the server carriers of the main market data server and the backup market data server, although the same content data is transmitted, there are differences in performance. Compared with internal monitoring anomalies or external monitoring anomalies caused by transmission interruptions or untrusted data during the transmission process, the acquisition of administrator control instructions is also added. Among them, the administrator control instructions are used to switch different market data servers according to actual needs, so as to better adapt to actual needs.

[0018] In a possible implementation of the present application, after receiving the early warning signal, the control module modifies the state of the master-slave switching switch register and resets the current state of the early warning register, wherein the state of the master-slave switching switch register includes a master-slave switching on state and a master-slave switching off state, and the state of the early warning register includes a no-warning state and a warning state.

[0019] In this implementation, the state of the master-slave switching switch register and the state of the warning register can be modified by modifying different bits of the register, so that after a switch is completed, the states of different registers can be quickly reset to better adapt to subsequent control processes.

[0020] In a possible implementation of the present application, the forwarding module polls the state of the master-slave switching switch register, wherein, when the master-slave switching on state is polled, the forwarding of the current market data is suspended, and the state of the breakpoint resume register is modified; and the state of the master-slave selection path register is modified, wherein the current master market service end is switched to the standby market service end and the current standby market service end is switched to the master market service end, and then the state of the master-slave switching switch register is modified to the master-slave switching off state, wherein the state of the breakpoint resume register includes a breakpoint resume on state and a breakpoint resume off state.

[0021] In this implementation, not only can the state of the register be changed by modifying the settings of different bits of the register, but the forwarding module is also strictly limited to forwarding only the main market data. Therefore, when polling to the master-slave switch-on state, the currently forwarded market data is promptly paused to avoid further errors. At the same time, by modifying the state of the breakpoint resume register and the state of the master-slave selection register, data can be resumed in time to restore the forwarding of market data, thereby ensuring that the forwarding object can resume normal transmission in time when data errors or data interruptions occur with a delay of microseconds or even sub-microseconds to ensure the integrity of the market data.

[0022] In a possible implementation of the present application, the breakpoint resume module polls the status of the breakpoint resume register, wherein, when the breakpoint resume on state is polled, the breakpoint signal in the breakpoint register is read, and when the master-slave switching switch register state is the master-slave switching off state, based on the breakpoint signal, signal resumption is performed in the main market service end to perform breakpoint recovery, and after the forwarding market data is restored, the status of the breakpoint resume register is modified to the breakpoint resume off state.

[0023] In a second aspect, the present invention provides a lossless backup method for market data, which is applied to the lossless backup device for market data, wherein the method specifically comprises the following steps:

[0024] Acquire market data to forward to a forwarding target, wherein the market data originates from a main market service end, and the forwarding target includes an access user group and an external monitoring end;

[0025] Monitor the real-time bypass forwarding the market data to obtain early warning signals;

[0026] When the warning signal is identified, the forwarding of market data is suspended, the breakpoint signal of the current forwarding market data is recorded, and the data source of the main market service end is updated;

[0027] Based on the breakpoint signal, content is continued to be transmitted in the updated main market data server to resume forwarding the market data.

[0028] In a possible implementation of the present application, the identified warning signals include internal monitoring anomalies, external monitoring anomalies and administrator control instructions. When the data source of the main market service is updated, the preset backup market service is switched to the updated main market service, and the original main market service is switched to the updated backup market service, wherein the data content of the main market service is consistent with that of the backup market service, and when forwarding market data based on the main market service, the backup market service cyclically caches the corresponding market data within a set time parameter.

[0029] In a third aspect, the present invention provides an electronic device, the electronic device comprising: a processor and a memory;

[0030] The memory is used to store computer programs;

[0031] The processor is used to execute the computer program stored in the memory, so that the electronic device executes the above-mentioned lossless backup method of market data.

[0032] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by an electronic device, implements the above-mentioned method for lossless backup of market data.

[0033] As described above, the lossless backup device, method, storage medium and electronic device of market data of the present invention have the following beneficial effects:

[0034] (1) Lossless backup based on FPGA hardware is not affected by the operating system and other software, and has higher reliability and stability.

[0035] (2) Based on FPGA hardware control of active / standby switching, the switching delay is as low as microseconds or even sub-microseconds, which can minimize the impact of active / standby switching on users.

[0036] (3) Use the breakpoint-resume transmission mechanism to ensure that data is not lost during the master-slave switchover and to ensure the integrity of market data.

[0037] (4) Compared with the traditional deployment of dual-path access to the primary and standby systems of user servers, the present invention greatly reduces the hardware equipment cost and deployment and maintenance cost while ensuring a better primary and standby switching effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 Shown is a schematic diagram of the structure of a lossless backup device for market data of the present invention in one embodiment;

[0039] Figure 2 Shown is a working diagram of a monitoring module in an embodiment of a lossless backup device for market data of the present invention;

[0040] Figure 3 Shown is a control module workflow diagram of a lossless backup device for market data of the present invention in one embodiment;

[0041] Figure 4 Shown is a flowchart of the forwarding module in an embodiment of the lossless backup device for market data of the present invention;

[0042] Figure 5 Shown is a work flow chart of a breakpoint-resume transmission module in an embodiment of a lossless backup device for market data of the present invention;

[0043] Figure 6 Shown is a hardware structure block diagram of a mobile terminal to which the lossless backup method for market data of the present invention is applied in one embodiment;

[0044] Figure 7 Shown is a schematic diagram of steps in an embodiment of a lossless backup method for market data of the present invention;

[0045] Figure 8 It is a schematic structural diagram of an electronic device of the present invention in one embodiment.

[0046] Component number description

[0047] Steps S702 to S708 10 Lossless backup device for market data

[0048] 11 Forwarding Module

[0049] 12 Control Module

[0050] 13 Monitoring Module

[0051] 14 Breakpoint Resume Module

[0052] 20 Market Service Module

[0053] 21 Main Market Service Terminal

[0054] 22. Market Information Server

[0055] 31 Access User Group

[0056] 32 External monitoring terminal

[0057] 41 Breakpoint register

[0058] 42 Warning Register

[0059] 43 Master / slave switch register

[0060] 44 Main / Backup Path Register

[0061] 45 Breakpoint resume register DETAILED DESCRIPTION

[0062] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0063] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0064] In addition, in this application, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0065] The technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0066] like Figure 1 As shown, in one embodiment of the invention, the lossless backup device 10 of market data of the present invention comprises:

[0067] The forwarding module 11 is connected to the market service module 20 of the external device for forwarding market data and switching the data source of the market data when receiving the master-slave switching signal, wherein the forwarding objects of the market data include the access user group 31 and the external monitoring terminal 32;

[0068] A control module 12, connected to the forwarding module 11, for sending the active / standby switching signal to the forwarding module 11 upon receiving the warning signal;

[0069] The monitoring module 13 is connected to the control module 12 in communication, and is used to obtain the warning signal and transmit it to the control module 12, and record the breakpoint signal when the warning signal is obtained, wherein the warning signal includes internal monitoring abnormality, external monitoring abnormality and administrator control instruction;

[0070] The breakpoint resume module 14 is arranged on the communication link between the market service module 20 and the forwarding module 10, wherein the breakpoint resume module is used to update the market data in combination with the breakpoint signal when the forwarding module receives the active-standby switching signal.

[0071] It should be noted that, in this embodiment, Figure 1 As shown, the market service module of the peripheral device includes a main market service terminal 21 and a backup market service terminal 22, and the market data is derived from the main market service terminal 21, wherein the data content provided by the main market service terminal 21 and the backup market service terminal 22 are consistent, but the server carriers of the main market service terminal 21 and the backup market service terminal 22 are inconsistent. Specifically, the server carriers with different performance parameters can better meet the actual cost needs of users, so as to reduce the hardware equipment cost and deployment and maintenance cost. Furthermore, the backup market service terminal 22 cyclically caches the forwarded market data within the set time parameters.

[0072] Furthermore, in this embodiment, by limiting the backup market data server 22 to cyclically cache the corresponding forwarded market data within the set parameters, it can be ensured that after switching the main and backup market data server 22, timely resumption of transmission can be performed based on the breakpoint signal to reduce time delay, wherein the set parameter is, for example, within "1" minute, and accordingly, the cached data corresponds to the market data forwarded within one minute.

[0073] Specifically, the forwarding module 11 is connected to the market service module 20 of the external device, wherein the breakpoint resuming module 14 is arranged on the communication link between the market service module 20 and the forwarding module 11, such as Figure 1 As shown, therefore, whether it is the main market service end 21 or the backup market service end 22, it first connects to the breakpoint resumption module 14 and then forwards the market data to the forwarding object through the forwarding module 11. When forwarding, the forwarding module 11 not only forwards the market data, but also switches the data source of the market data when receiving the main-backup switching signal. The specific execution logic of the forwarding module 11 will be described in detail in the subsequent instructions.

[0074] Furthermore, the master-slave switching signal received by the forwarding module 11 is issued by the control module 12, wherein the control module 12 sends the corresponding master-slave switching signal to the forwarding module 11 upon receiving the early warning signal, and the received early warning signal is obtained by the monitoring module 13 monitoring the forwarding bypass in real time, wherein the received early warning signal specifically includes internal monitoring anomalies, external monitoring anomalies and administrator control instructions, and the specific steps will be described in detail in the subsequent instructions. At the same time, when the monitoring module 13 monitors the early warning signal, it will record the breakpoint signal, wherein the above embodiment describes that the forwarding module 11 will switch the data source, and specifically uses the breakpoint signal to resume the transmission to restore information transmission, thereby ensuring the integrity of the forwarded data.

[0075] Furthermore, in one embodiment of the invention, the monitoring module 13 performs real-time bypass monitoring on the current market data to obtain the early warning signal. When the early warning signal is obtained, the recorded breakpoint signal is written into the breakpoint register 41, wherein when the internal monitoring abnormality is monitored, the internal early warning signal is obtained and written into the early warning register 42, and when the external monitoring abnormality is monitored, the external early warning signal is obtained and written into the early warning register 42; and when the forwarding module 11 forwards the market data, the monitoring module 13 obtains the administrator signal and writes it into the early warning register 42 when it obtains the administrator control instruction.

[0076] It should be noted that, in this embodiment, Figure 2 As shown, it is a working flow chart of the monitoring module 13, wherein, during the forwarding process of the market data, the monitoring module 13 performs real-time bypass monitoring on the current market data to obtain the early warning signal, wherein, when the monitoring module 13 obtains the early warning signal, it will record the breakpoint signal at this time and write it into the breakpoint register 41, and the early warning signal will obtain different early warning signals according to different types, specifically, the early warning signal includes internal monitoring anomalies, external monitoring anomalies and administrator control instructions, wherein, when the internal monitoring anomaly is monitored, the internal early warning signal is obtained and written into the early warning register 42, and when the external monitoring anomaly is monitored, the external early warning signal is obtained and written into the early warning register 42; and when the forwarding module 11 forwards the market data, the monitoring module 13 obtains the administrator signal and writes it into the early warning register 42 when the administrator control instruction is obtained.

[0077] Furthermore, in one embodiment of the invention, after receiving the early warning signal, the control module 12 modifies the state of the master-slave switching switch register 43 and resets the current state of the early warning register 42, wherein the state of the master-slave switching switch register 43 includes a master-slave switching on state and a master-slave switching off state, and the state of the early warning register 42 includes a no-warning state and a warning state.

[0078] It should be noted that, in this embodiment, Figure 3 As shown, it is shown as a workflow diagram of the control module 12. The above embodiment describes that the monitoring module 13 is used to obtain the early warning signal and transmit it to the control module 12, wherein the control module 12 specifically receives the signal written in the early warning register 42, including the internal early warning signal, the external early warning signal and the administrator signal. When the control module 12 receives the early warning signal, it will reset the current state of the early warning register 42, specifically from the early warning state to the no-earth warning state, so that the abnormal early warning currently monitored by the monitoring module 13 is invalid, and at the same time, it will modify the state of the master-slave switching switch register 43 to trigger the forwarding module 11 to change the master-slave service. Specifically, turning on the master-slave switching switch specifically modifies the state of the master-slave switching switch register 43 to the master-slave switching on state.

[0079] Further, in one embodiment of the invention, the forwarding module 11 polls the state of the master-slave switching switch register 43, wherein, when the master-slave switching on state is polled, the forwarding of the current market data is suspended, and the state of the breakpoint resume register 45 is modified; and the state of the master-slave selection path register 44 is modified, wherein the current master market service terminal 21 is switched to the new standby market service terminal 22 and the current standby market service terminal 22 is switched to the new master market service terminal 21, and then the state of the master-slave switching switch register 43 is modified to the master-slave switching off state, wherein the state of the breakpoint resume register 45 includes the breakpoint resume on state and the breakpoint resume off state.

[0080] It should be noted that, in this embodiment, Figure 4 As shown, it is a workflow diagram of the forwarding module 11, and the forwarding module 11 polls the status of the master-slave switching switch register 43, wherein when the master-slave switching is on, the forwarding of the current market data is immediately suspended, wherein the market data is the main market data of the main market service end, and the status of the breakpoint resume register 45 is modified, wherein the above embodiment describes that the status of the breakpoint resume register 45 includes the breakpoint resume on state and the breakpoint resume off state, and in this embodiment, the breakpoint resume register 45 is modified specifically to be turned on, that is, modified to the breakpoint resume on state.

[0081] Furthermore, it is also necessary to modify the state of the master-slave selection path register 44, wherein the master-slave selection path register 44 is opened to switch the current main market service terminal 21 to the new backup market service terminal 22 and the current backup market service terminal 22 to the new main market service terminal 21, and after switching the data source to ensure that the main market service terminal 21 is always forwarded, the master-slave switching switch is closed, that is, the state of the master-slave switching switch register 43 is finally modified to the master-slave switching off state, and the master-slave selection path register 44 is reset to closed.

[0082] Further, in one embodiment of the invention, the breakpoint resume module 14 polls the state of the breakpoint resume register 45, wherein, when the breakpoint resume on state is polled, the breakpoint signal in the breakpoint register 41 is read, and when the state of the master-slave switching switch register 43 is the master-slave switching off state, based on the breakpoint signal, signal resumption is performed in the main market service terminal 21 to perform breakpoint recovery, and after the forwarding market data is restored, the state of the breakpoint resume register 45 is modified to the breakpoint resume off state.

[0083] It should be noted that, in this embodiment, Figure 5 As shown, it is a workflow diagram of the breakpoint resume module 14, wherein the breakpoint resume module 14 is arranged on the communication link between the market service module 20 and the forwarding module 11, so the breakpoint resume module 14 only forms a communication path with the forwarding module 11 with one of the main market service terminal 21 and the backup market service terminal 22, wherein, when the breakpoint resume register 45 is in the open state, it indicates that the main and backup need to be switched, that is, the data source of the current link is the non-main market service terminal, and if it is in the closed state, it indicates that there is no need to switch the main and backup, that is, the data source of the current link is the main market service terminal.

[0084] Further, the breakpoint resume module 14 polls the state of the breakpoint resume register 45, wherein the above embodiment illustrates that the operation of the forwarding module 11 to modify the breakpoint resume register 45 is specifically to open, that is, to modify it to the breakpoint resume on state. Specifically, when the breakpoint resume module 14 polls the breakpoint resume on state, it reads the breakpoint signal in the breakpoint register 41, and when the state of the master-slave switching switch register 43 is the master-slave switching off state, based on the breakpoint signal, the signal is resumed in the main market service end 21 to perform breakpoint recovery, so that the data can be resumed in time to restore the forwarding of the market data, and the forwarding object can be ensured to resume normal transmission in time when the data is erroneous or interrupted with a delay of microseconds or even sub-microseconds to ensure the integrity of the market data, and after restoring the forwarded market data, the state of the breakpoint resume register 45 is modified to the breakpoint resume off state to keep the current main market service end 21 as the service end for forwarding the market data by the forwarding module 11.

[0085] In addition, the present application also provides a lossless backup method for market data, wherein the lossless backup method for market data provided in the embodiment of the present application can be run in a mobile terminal, a computer terminal, or similar device. Taking running on the mobile terminal as an example, Figure 6 The hardware structure block diagram of the mobile terminal described in this application is shown. Figure 6As shown, the mobile terminal may include: a processor and a memory, the processor may be a central processing unit, and the memory is used to store data. Figure 6 The mobile terminal in the figure is only used as an example and does not limit the specific structure of the mobile terminal.

[0086] Optionally, the mobile terminal may further include: a communication transmission device and an input and output device.

[0087] Optionally, the memory may be used to store computer programs, such as software programs and modules of application software, and the memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0088] Optionally, the communication transmission device can be used to receive or send data via a network, which may include a wireless network provided by a communication provider of the mobile terminal. The communication transmission device may include a NIC (Network Interface Controller) that can be connected to other network devices through a base station so as to communicate with the Internet.

[0089] For further information, see Figure 7 The lossless backup method of market data provided in this application is applied to the lossless backup device of market data mentioned above, and the method specifically comprises the following steps:

[0090] Step S702, obtaining market data to forward to a forwarding target, wherein the market data originates from a main market service end, and the forwarding target includes an access user group and an external monitoring end;

[0091] Step S704, monitoring the real-time bypass for forwarding the market data to obtain an early warning signal;

[0092] Step S706, when the warning signal is identified, the forwarding of the market data is suspended, the breakpoint signal of the current forwarding market data is recorded, and the data source of the main market service end is updated;

[0093] Step S708, resuming content transmission in the updated main market data server based on the breakpoint signal to resume forwarding the market data.

[0094] It should be noted that, in this embodiment, a backup method applied to the lossless backup device of the above market data is specifically described, wherein, when constructing a lossless backup device for market data, lossless backup is performed based on FPGA hardware, which can be unaffected by the user operating system and other software in the actual scenario, and has higher reliability and stability. By distinguishing different modules and combining registers for master-slave switching control, the switching delay can be reduced to microseconds or even sub-microseconds, thereby minimizing the delay effect of master-slave switching on the user's use of market data. Therefore, when the backup method is executed, it is necessary to first obtain market data to forward it to the forwarding object, wherein the market data comes from the main market service end of the peripheral device, and the forwarding object includes a specific access user group and an external monitoring end. By monitoring the real-time bypass of forwarding the market data, the corresponding warning signal can be obtained, so that when the warning signal is identified, the forwarding of the market data is suspended for the first time, and the breakpoint signal of the current forwarding market data is recorded, and the data source of the main market service end is updated to switch the main and standby, and the content is continued in the updated main market service end based on the breakpoint signal to resume forwarding the market data.

[0095] Furthermore, in one embodiment of the invention, the identified warning signals include internal monitoring anomalies, external monitoring anomalies and administrator control instructions. When the data source of the main market service is updated, the preset backup market service is switched to the updated main market service, and the original main market service is switched to the updated backup market service, wherein the data content of the main market service is consistent with that of the backup market service, and when forwarding market data based on the main market service, the backup market service cyclically caches the corresponding market data within the set time parameters.

[0096] It should be noted that, in this embodiment, when monitoring the real-time bypass, it is determined that an early warning signal is monitored when internal monitoring anomalies, external monitoring anomalies and administrator control instructions are monitored. Accordingly, it indicates that the identified early warning signal includes internal monitoring anomalies, external monitoring anomalies and administrator control instructions. When the early warning signal is identified, it is necessary to suspend the forwarding of market data as soon as possible, and when the data source of the main market service end is updated, the preset backup market service end is specifically switched to the updated main market service end, and the original main market service end is switched to the updated backup market service end. Since the market data originates from the main market service end, the content can be resumed on the updated main market service end based on the breakpoint signal to resume forwarding the market data, thereby ensuring that the forwarding object can resume normal transmission in time when data errors or data interruptions occur, or when the administrator gives a control instruction, through microsecond or even sub-microsecond delays, so as to ensure the integrity of the market data.

[0097] Furthermore, in order to ensure that data can be successfully continued on the updated main market service end based on the breakpoint signal, the data content of the main market service end is consistent with that of the backup market service end, and when forwarding market data based on the main market service end, the backup market service end cyclically caches the corresponding market data within the set time parameters, for example, cyclically caches the market data forwarded within one minute.

[0098] In the several embodiments provided by the present invention, it should be understood that the disclosed device or method can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules / units is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules or units, which can be electrical, mechanical or other forms.

[0099] The modules / units described as separate components may or may not be physically separated, and the components displayed as modules / units may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention. For example, the functional modules / units in the various embodiments of the present invention may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.

[0100] Those of ordinary skill in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0101] The embodiment of the present invention further provides an electronic device, such as Figure 8 As shown, the electronic device includes a processor and a memory.

[0102] The memory is used to store computer programs.

[0103] The processor is used to execute the computer program stored in the memory so that the electronic device executes any one of the above methods.

[0104] In the several embodiments provided in the present application, it should be understood that the disclosed system, device or method can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules / units is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules or units, which can be electrical, mechanical or other forms.

[0105] The modules / units described as separate components may or may not be physically separated, and the components displayed as modules / units may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present application. For example, the functional modules / units in the various embodiments of the present application may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.

[0106] Those of ordinary skill in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0107] The present application embodiment also provides a computer-readable storage medium. A person of ordinary skill in the art can understand that all or part of the steps in the method for implementing the above embodiment can be completed by a program to instruct the processor, and the program can be stored in a computer-readable storage medium, and the storage medium is a non-transitory medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid-state hard disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The above storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid-state hard disk (SSD)), etc.

[0108] The present application embodiment may also provide a computer program product, the computer program product including one or more computer instructions. When the computer instructions are loaded and executed on a computing device, the process or function described in the embodiment of the present application is generated in whole or in part. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer or data center.

[0109] When the computer program product is executed by a computer, the computer executes the method described in the above method embodiment. The computer program product may be a software installation package, and when the above method is required, the computer program product may be downloaded and executed on a computer.

[0110] The descriptions of the processes or structures corresponding to the above-mentioned figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.

[0111] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A lossless backup device for market data, characterized in that: include: A forwarding module, which is in communication with the market service module of the peripheral device, and is used to forward market data and switch the data source of the market data when receiving the primary / standby switching signal, wherein the forwarding objects of the market data include the access user group and the external monitoring terminal; A control module, which is in communication with the forwarding module and is used to send the active / standby switching signal to the forwarding module upon receiving the early warning signal; A monitoring module, which is in communication with the control module, and is used to obtain the warning signal and transmit it to the control module, and record a breakpoint signal when the warning signal is obtained, wherein the warning signal includes an internal monitoring anomaly, an external monitoring anomaly, and an administrator control instruction; The breakpoint resume module is arranged on the communication link between the market service module and the forwarding module, wherein the breakpoint resume module is used to update the market data in combination with the breakpoint signal when the forwarding module receives the active-standby switching signal.

2. The lossless backup device for market data according to claim 1, characterized in that: The market service module includes a main market service end and a backup market service end, the market data originates from the main market service end, the data content provided by the main market service end and the backup market service end are consistent, the service carriers of the main market service end and the backup market service end are inconsistent, and the backup market service end cyclically caches the forwarded market data within a set time parameter.

3. The lossless backup device for market data according to claim 1, characterized in that: The monitoring module performs real-time bypass monitoring on the current market data to obtain the early warning signal. When the early warning signal is obtained, the recorded breakpoint signal is written into the breakpoint register, wherein when the internal monitoring abnormality is monitored, the internal early warning signal is obtained and written into the early warning register, and when the external monitoring abnormality is monitored, the external early warning signal is obtained and written into the early warning register; and when the forwarding module forwards the market data, the monitoring module obtains the administrator signal and writes it into the early warning register when the administrator control instruction is obtained.

4. The lossless backup device for market data according to claim 1, characterized in that: After receiving the early warning signal, the control module modifies the state of the master-slave switching switch register and resets the current state of the early warning register, wherein the state of the master-slave switching switch register includes a master-slave switching on state and a master-slave switching off state, and the state of the early warning register includes a no-warning state and a warning state.

5. The lossless backup device for market data according to claim 3, characterized in that: The breakpoint resume module polls the state of the breakpoint resume register, wherein, when the breakpoint resume on state is polled, the breakpoint signal in the breakpoint register is read, and when the master-slave switching switch register state is the master-slave switching off state, based on the breakpoint signal, signal resumption is performed in the main market service end to perform breakpoint recovery, and after the forwarding market data is restored, the state of the breakpoint resume register is modified to the breakpoint resume off state.

6. The lossless backup device for market data according to claim 4, characterized in that: The forwarding module polls the state of the master-slave switching switch register, wherein when the master-slave switching on state is polled, the forwarding of the current market data is suspended, and the state of the breakpoint resume register is modified; and the state of the master-slave selection path register is modified, wherein the current master market service end is switched to the standby market service end and the current standby market service end is switched to the master market service end, and then the state of the master-slave switching switch register is modified to the master-slave switching off state, wherein the state of the breakpoint resume register includes the breakpoint resume on state and the breakpoint resume off state.

7. A lossless backup method for market data, characterized in that: The lossless backup device for market data according to any one of claims 1 to 6, wherein the method specifically comprises the following steps: Acquire market data to forward to a forwarding target, wherein the market data originates from a main market service end, and the forwarding target includes an access user group and an external monitoring end; Monitor the real-time bypass forwarding the market data to obtain early warning signals; When the warning signal is identified, forwarding of market data is suspended, a breakpoint signal of the current forwarding market data is recorded, and a data source of the main market service end is updated; Based on the breakpoint signal, content is continued to be transmitted in the updated main market data server to resume forwarding the market data.

8. The lossless backup method of market data according to claim 7, characterized in that: The identified warning signals include internal monitoring anomalies, external monitoring anomalies and administrator control instructions. When the data source of the main market service is updated, the preset backup market service is switched to the updated main market service, and the original main market service is switched to the updated backup market service. The data content of the main market service is consistent with that of the backup market service, and when forwarding market data based on the main market service, the backup market service cyclically caches the corresponding market data within the set time parameters.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the lossless backup method of market data described in any one of claims 7-8 is implemented.

10. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device executes the lossless backup method for market data as described in any one of claims 7-8.