A channel screening method, device, equipment and storage medium
By using a channel filtering method based on an FPGA heterogeneous architecture to update the fuzzy window value and order response time in real time, the problem of time asynchrony in asynchronous systems is solved, thereby improving data transmission efficiency and business processing speed for market participants in high-frequency trading.
Patent Information
- Application Number
- CN202211704172.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2042-12-29
AI Technical Summary
In high-frequency trading, the asynchronous nature of the selection control system and the centralized trading system leads to time asynchrony and delay, making it impossible to quickly select trading units when the network is congested.
A channel selection method based on FPGA heterogeneous architecture is adopted. By storing channel attribute values and updating fuzzy window values and order response time in real time, the optimal channel is selected for data transmission.
It enables rapid order processing even under uncertain network latency conditions, reducing data transmission delays and improving the business processing speed and efficiency of market participants.
Smart Images

Figure CN116016631B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of securities trading, in particular to a channel screening method, device, equipment and storage medium. BACKGROUND
[0002] The preferred control system, such as Figure 1 As shown, the software collects a large amount of TCP transmission data, and through the analysis of the average scheme, the optimal and suboptimal TCP connection channels are sent to the centralized trading system. The centralized trading system, corresponding to multiple trading units of multiple seats and multiple gateways, sends the order to the trading gateway through the optimal and suboptimal rotation scheme. However, since the preferred control system is a software control system and the centralized trading system (hardware system) is an asynchronous system for trading, the time is not synchronized, there is a time delay, and the effect is poor. It cannot meet the timely and rapid selection of trading units in high-frequency trading and network congestion. SUMMARY
[0003] Therefore, the purpose of the present application is to provide a channel screening method, device, equipment and storage medium, which can solve the problem of pre-rapid order placement in the case of uncertain network delay. The specific scheme is as follows:
[0004] In a first aspect, the present application provides a channel screening method, which applies a screening system based on FPGA heterogeneous architecture, including:
[0005] The attribute values of the current all order channels are stored respectively; the attribute values include a fuzzy window value for representing the maximum number of data packets allowed to be sent by the corresponding channel;
[0006] Determine the current order channel for processing the current service based on the fuzzy window value, so as to use the current order channel for data transmission operation related to the current order data packet;
[0007] Real-time update the fuzzy window value in the current order channel according to the data transmission result of the current order data packet, and determine the corresponding current order response time;
[0008] Screen the current optimal channel from all the order channels based on the real-time updated fuzzy window value and the current order response time, so as to use the current optimal channel to process the next service.
[0009] Optionally, the method further comprises:
[0010] Determine the order channel with the largest fuzzy window value in the current all order channels as the current order channel for processing the current service.
[0011] Optionally, the real-time updating of the fuzzy window value in the current order channel according to the data transmission result of the current order data packet comprises:
[0012] If the current order channel sends the order data packet, the fuzzy window value is decremented to update the fuzzy window value in the current order channel in real time;
[0013] If the current order channel receives the response information corresponding to the order data packet, the fuzzy window value is incremented to update the fuzzy window value in the current order channel in real time.
[0014] Optionally, the determining of the corresponding current order response time further comprises:
[0015] The sending flag bit for recording whether the current order sampling time is in the valid period is stored by using the sending flag bit storage rule in the attribute value storage rule of the order channel;
[0016] Whether the current order has been sampled is determined according to the sending flag bit stored in the current order channel attribute value;
[0017] If the sending flag bit is 0, it is determined that the current order has not been sampled;
[0018] If the sending flag bit is 1, it is determined that the current order has been sampled.
[0019] Optionally, after the determining that the current order has been sampled, the method further comprises:
[0020] The order number of the current order is stored by using the order number storage rule in the attribute value storage rule;
[0021] The order sending time of the current order is stored by using the order sending time sampling storage rule in the attribute value storage rule.
[0022] Optionally, the determining of the corresponding current order response time comprises:
[0023] Whether the response information of the order data packet is consistent with the order number of the current order is determined, and if yes, a first order response time is determined according to the order sending time of the current order and the time when the response information is received;
[0024] The sending flag bit of the current order channel is read and whether the read sending flag bit is 1 is determined, and if yes, the current time is recorded, and a second order response time is determined based on the current time and the order sending time of the current order;
[0025] determine the current order response time based on the first order response time and the second order response time.
[0026] Optionally, the filtering out of the current optimal channel from all the order channels based on the real-time updated fuzzy window value and the current order response time comprises:
[0027] determining whether all the real-time updated fuzzy window values are less than a preset threshold value, and if not, determining the order channel with the largest fuzzy window value in the current all order channels as the current optimal channel;
[0028] if yes and the fuzzy window value is valid, determining the order channel with the shortest order response time in the current all order channels as the current optimal channel, and if the real-time updated fuzzy window value is 0, selecting the order channel with the fuzzy window value as the current optimal channel;
[0029] if all the real-time updated fuzzy window values are the same, determining the order channel with the shortest order response time in the current all order channels as the current optimal channel.
[0030] In a second aspect, the present application provides a channel filtering device, which applies a filtering system based on a FPGA heterogeneous architecture, comprising:
[0031] an attribute value storage module, configured to store attribute values of the current all order channels respectively; the attribute values comprise a fuzzy window value used to represent the maximum number of data packets allowed to be sent by the corresponding channel;
[0032] a data transmission module, configured to determine a current order channel used to process a current service based on the fuzzy window value, so as to perform a data transmission operation related to a current order data packet by using the current order channel;
[0033] a time determination module, configured to update the fuzzy window value in the current order channel in real time according to a data transmission result of the current order data packet, and determine a corresponding current order response time;
[0034] a channel filtering module, configured to filter out a current optimal channel from all the order channels based on the real-time updated fuzzy window value and the current order response time, so as to process a next service by using the current optimal channel.
[0035] In a third aspect, the present application discloses an electronic device, comprising:
[0036] a memory, configured to save a computer program;
[0037] a processor, configured to execute the computer program to realize the channel filtering method.
[0038] In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program, which, when executed by a processor, implements the channel screening method as described above.
[0039] From the above, in the channel screening method, firstly, the attribute values of all current order channels are stored respectively; the attribute values include a fuzzy window value for representing the maximum number of data packets allowed to be sent by the corresponding channel; a current order channel for processing current service is determined based on the fuzzy window value, so that the current order channel is used to perform data transmission operation related to the current order data packet; the fuzzy window value in the current order channel is updated in real time according to the data transmission result of the current order data packet, and the corresponding current order response time is determined; and a current optimal channel is screened from all the order channels based on the real-time updated fuzzy window value and the current order response time, so that the current optimal channel is used to process the next service. It can be seen that, by updating the network transmission delay in real time, the present application solves the problem of asynchronization in the current asynchronous system, and integrates the optimal selection system into the centralized trading system, without the need of additional software control. The current optimal selection system is simplified, and the lag in data transmission caused by network congestion and the long data transmission time are greatly improved. For the same market participant, different optimal seats can be used to achieve the purpose of high frequency, and the optimal selection time is minimized by using the parallel processing feature of FPGA (Field Programmable Gate Array), which greatly improves the speed and efficiency of the market participant in service processing. BRIEF DESCRIPTION OF DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed in the embodiments or the prior art description will be briefly introduced below. Obviously, the drawings in the following description are only embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of the provided drawings.
[0041] Figure 1 The software control system flowchart;
[0042] Figure 2 The channel screening method flowchart provided by the present application;
[0043] Figure 3 The multi-seat multi-gateway transaction scheme schematic diagram provided by the present application;
[0044] Figure 4An attribute value storage schematic diagram provided for the present application;
[0045] Figure 5 A specific channel screening method flow chart provided for the present application;
[0046] Figure 6 A channel screening device structure schematic diagram disclosed by the present application;
[0047] Figure 7 An electronic device structure diagram disclosed by the present application. DETAILED DESCRIPTION
[0048] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0049] In the prior art, since the optimization control system is a software control system, the centralized transaction system (hardware system) is an asynchronous system, and the time is not synchronized and has a time delay, the effect is relatively poor. It cannot meet the timely and rapid selection of transaction units in high-frequency transactions when the network is congested. To solve the above problems, the present application provides a channel screening method, which can solve the problem of pre-rapid order placement in the case of uncertain network delay.
[0050] Referring to Figure 2 The embodiment of the present application discloses a channel screening method, which applies a screening system based on a FPGA heterogeneous architecture, including:
[0051] Step S11, the attribute values of the current all order channel itself are stored respectively; the attribute values include a fuzzy window value for representing the maximum number of data packets allowed to be sent by the corresponding channel.
[0052] In the embodiment, a simple mapping is performed for multiple seats and multiple gateways, a transmission connection (TCP / IP) of each network realizes that one transaction unit corresponds to one seat and one gateway, and the structure is as shown in Figure 3 The multiple gateways and multiple seats are mapped to a unique serverid value, that is, a channel value, and an optimal seat is selected from the multiple seats, that is, an effective and optimal channel value is selected. First, the attribute value of the channel needs to be stored, such as Figure 4The fuzzy window value includes a maximum number of packets allowed to be sent by the current channel, and the initial value is a maximum window value of a TCP transmission and a maximum packet length of a transmission service ratio, which is an inaccurate calculation of a maximum number of packets allowed to be sent by the channel at a certain time, that is, the data flow is normally operated and the data flow limit is normally triggered in the data transmission process. It should be pointed out that the attribute value also includes: order number: sampling to obtain a certain order number; order sending time sampling: recording the current time when the sampled order is sent, and the valid flag is 1 if the sampling is successful; order response time: it is mainly calculated by the difference between the order sending and the response of the received order and the adjustment time of the time; and sending flag: mainly recording whether the current channel order sampling time is in the effective period flag. The above attribute values of the current all order channels are stored respectively.
[0053] Step S12, determining a current order channel for processing the current service based on the fuzzy window value, so as to use the current order channel to perform a data transmission operation related to the current order data packet.
[0054] In this embodiment, the order channel with the largest fuzzy window value in the current all order channels is determined as the current order channel for processing the current service for the selection of the initial value optimal seat, that is, the channel. It should be pointed out that when the fuzzy window values are the same, a random selection is made, so as to use the current order channel to perform a data transmission operation related to the current order data packet.
[0055] Step S13, updating the fuzzy window value in the current order channel in real time according to the data transmission result of the current order data packet, and determining the corresponding current order response time.
[0056] In this embodiment, if the current order channel sends the order data packet, the fuzzy window value is decremented to update the fuzzy window value in the current order channel in real time; if the current order channel receives the response information corresponding to the order data packet, the fuzzy window value is incremented to update the fuzzy window value in the current order channel in real time. For example, the fuzzy window value is reduced by 1 each time the current seat sends a data packet, and the fuzzy window value is increased by 1 each time the current seat receives a data packet response. The fuzzy window value in the current order channel is updated in real time according to the data transmission result, and the corresponding current order response time is determined.
[0057] Step S14, screening a current optimal channel from all the order channels based on the real-time updated fuzzy window value and the current order response time, so as to use the current optimal channel to process the next service.
[0058] In the embodiment, the network speed of the tcp / ip connection is selected from M (M=<N) to send the current service packet. The channel attribute is read from M, the fuzzy window value and the order response time are sorted, and the current optimal channel is selected from all the order channels based on the real-time updated fuzzy window value and the current order response time. The current optimal channel is selected from all the order channels based on the real-time updated fuzzy window value and the current order response time, which includes: judging whether all the real-time updated fuzzy window values are less than a preset threshold value, if not, determining the order channel with the maximum fuzzy window value in the current all order channels as the current optimal channel; if yes and the fuzzy window value is valid, determining the order channel with the shortest order response time in the current all order channels as the current optimal channel, if the real-time updated fuzzy window value is 0, selecting the order channel with the window value as the current optimal channel; if all the real-time updated fuzzy window values are the same, determining the order channel with the shortest order response time in the current all order channels as the current optimal channel. It should be noted that the threshold value is one third of the maximum fuzzy window value. Finally, the current optimal channel is selected by using the above rules, and the next service is processed by using the current optimal channel.
[0059] As can be seen from the above, when the channel is selected, the attribute values of the current all order channels are stored respectively, the attribute values include the fuzzy window value for representing the maximum number of data packets allowed to be sent by the corresponding channel, the current order channel for processing the current service is determined based on the fuzzy window value, so that the data transmission operation related to the current order data packet is performed by using the current order channel, the fuzzy window value in the current order channel is updated in real time according to the data transmission result of the current order data packet, and the corresponding current order response time is determined, the current optimal channel is selected from all the order channels based on the real-time updated fuzzy window value and the current order response time, and the next service is processed by using the current optimal channel. It can be seen that the network transmission delay is updated in real time, the problem of asynchronization in the current asynchronous system is solved, the current optimization system is simplified, the lag of data transmission caused by network congestion and long data transmission time are improved, the same market participant can achieve the purpose of fast and high frequency according to different optimization seats, the optimization time is minimized by using the parallel processing characteristics of FPGA, and the speed and benefit of the market participant in service processing are greatly improved.
[0060] Based on the above embodiments, the application provides a channel screening method, which can screen the optimal channel for next service processing. Next, the determination of the corresponding current order response time will be described in detail. Referring to Figure 5 As shown in the figure, the embodiment of the application discloses a specific channel screening method, which applies a screening system based on FPGA heterogeneous architecture, including:
[0061] Step S21, judging whether the current order has been sampled according to the sending flag bit stored in the attribute value of the current order channel.
[0062] In the embodiment, before judging whether the current order has been sampled according to the sending flag bit stored in the attribute value of the current order channel, the sending flag bit for recording whether the sampling time of the current order is in the valid period is stored by using the sending flag bit storage rule in the attribute value storage rule. When sending the order, the attribute value in the current channel is detected,
[0063] Step S22, if the sending flag bit is 0, it is determined that the current order has not been sampled.
[0064] Step S23, if the sending flag bit is 1, it is determined that the current order has been sampled.
[0065] In the embodiment, after determining that the current order has been sampled, the order number and the sampling time of the current order sending need to be recorded. Therefore, the order number of the current order is stored by using the order number storage rule in the attribute value storage rule in advance. The order sending time of the current order is stored by using the order sending time sampling storage rule in the attribute value storage rule.
[0066] Step S24, judging whether the response information of the order data packet is consistent with the order number of the current order, if yes, determining the first order response time according to the order sending time of the current order and the time of receiving the response information.
[0067] In the embodiment, when receiving the response information of the order data packet, it is judged whether it is the response of the sampled order, i.e. whether the order numbers are consistent. If yes, the first order response time is determined according to the order sending time of the current order and the time of receiving the response information. That is:
[0068] First order response time = time of receiving response information - order sending time
[0069] Step S25, reading the sending flag of the current order channel and judging whether the read sending flag is 1, if yes, recording the current time, and determining the second order response time based on the current time and the order sending time of the current order.
[0070] In the embodiment, the sending flag of the current order channel is read and judged whether the read sending flag is 1, if yes, it is determined that the current order has been sampled, and the current time needs to be recorded, and the second order response time is determined based on the current time and the order sending time of the current order. That is:
[0071] Second order response time = current time - order sending time
[0072] Step S26, determining the current order response time based on the first order response time and the second order response time.
[0073] In the embodiment, after the first order response time and the second order response time are calculated, if the first order response time is less than the second order response time, the current order response time is equal to the second order response time; if the first order response time is not less than the second order response time, the current order response time is equal to the first order response time; the above rules finally determine the current order response time.
[0074] As can be seen from the above, the application can solve the problem of different synchronization of asynchronous system by dynamic calculation of response time, and the selection time is minimized by using the parallel processing characteristics of FPGA, which greatly improves the speed and efficiency of market participants in business processing.
[0075] Referring to Figure 6 The embodiment of the application discloses a channel screening device, which applies a screening system based on a FPGA heterogeneous architecture, and comprises:
[0076] An attribute value storage module 11 is configured to store attribute values of all current order channels respectively; the attribute values include a fuzzy window value for representing the maximum number of data packets allowed to be sent by the corresponding channel;
[0077] A data transmission module 12 is configured to determine a current order channel for processing current business based on the fuzzy window value, so as to perform a data transmission operation related to the current order data packet by using the current order channel;
[0078] A time determination module 13 is configured to update the fuzzy window value in the current order channel in real time according to the data transmission result of the current order data packet, and determine a corresponding current order response time;
[0079] The channel screening module 14 is configured to screen a current optimal channel from all the order channels based on the real-time updated fuzzy window value and the current order response time, so as to use the current optimal channel to process the next service.
[0080] As can be seen, in the channel screening, the application first stores the attribute values of all current order channels; the attribute values include a fuzzy window value used to represent the maximum number of data packets allowed to be sent by the corresponding channel; a current order channel used to process the current service is determined based on the fuzzy window value, so as to use the current order channel to perform a data transmission operation related to the current order data packet; the fuzzy window value in the current order channel is updated in real time according to the data transmission result of the current order data packet, and a corresponding current order response time is determined; a current optimal channel is screened from all the order channels based on the real-time updated fuzzy window value and the current order response time, so as to use the current optimal channel to process the next service. It can be seen that the application solves the problem of asynchronization in the current asynchronous system by updating the network transmission delay in real time, and integrates the application in the centralized trading system, without the need for additional software control. The application simplifies the current optimal system, greatly improves the effect of the lag caused by the network congestion and the long data transmission time, and achieves the purpose of fast and high frequency for the same market participant according to different optimal seats. In addition, the application uses the parallel processing feature of FPGA to minimize the optimal time, which greatly improves the speed and efficiency of the market participant in service processing.
[0081] In some embodiments, the data transmission module 12 can include:
[0082] The current order channel determination unit is configured to determine the order channel with the maximum fuzzy window value in all current order channels as a current order channel used to process the current service.
[0083] In some embodiments, the time determination module 13 can include:
[0084] The first fuzzy window value updating unit is configured to perform a decrement operation on the fuzzy window value to update the fuzzy window value in the current order channel in real time if the current order channel sends the order data packet.
[0085] The second fuzzy window value updating unit is configured to perform an increment operation on the fuzzy window value to update the fuzzy window value in the current order channel in real time if the current order channel receives the response information corresponding to the order data packet.
[0086] In some embodiments, the time determining module 13 further comprises:
[0087] a sending flag storage unit configured to store a sending flag for recording whether the current order sampling time is in a valid period according to a sending flag storage rule in the attribute value storage rules of the order channel;
[0088] an order sampling judgment unit configured to judge whether the current order has been sampled according to the sending flag stored in the attribute value of the current order channel;
[0089] a first judgment unit configured to judge that the current order has not been sampled if the sending flag is 0;
[0090] a second judgment unit configured to judge that the current order has been sampled if the sending flag is 1.
[0091] In some embodiments, the time determining module 13 further comprises:
[0092] an order number storage unit configured to store the order number of the current order according to an order number storage rule in the attribute value storage rules;
[0093] an order sending time storage unit configured to store the order sending time of the current order according to an order sending time sampling storage rule in the attribute value storage rules.
[0094] In some embodiments, the time determining module 13 can comprise:
[0095] a first order response time determining unit configured to judge whether the response information of the order placing data packet is consistent with the order number of the current order, and if yes, to determine a first order response time according to the order sending time of the current order and the time when the response information is received;
[0096] a second order response time determining unit configured to read the sending flag of the current order channel and judge whether the sending flag is 1, and if yes, to record the current time and determine a second order response time based on the current time and the order sending time of the current order;
[0097] a current order response time determining unit configured to determine the current order response time based on the first order response time and the second order response time.
[0098] In some embodiments, the channel screening module 14 can comprise:
[0099] The first optimal channel determining unit is configured to determine whether all the fuzzy window values updated in real time are less than a preset threshold value, and if not, determine a trading channel with the largest fuzzy window value in all current trading channels as a current optimal channel;
[0100] The second optimal channel determining unit is configured to determine a trading channel with the shortest order response time in all current trading channels as a current optimal channel if the fuzzy window value is valid.
[0101] The third optimal channel determining unit is configured to determine a trading channel with the shortest order response time in all current trading channels as a current optimal channel if all the fuzzy window values updated in real time are the same.
[0102] Further, the embodiment of the application further discloses an electronic device, Figure 7 is a structural diagram of an electronic device 20 according to an exemplary embodiment, and the content in the figure cannot be considered as any limitation on the use range of the application.
[0103] Figure 7 A structural schematic diagram of an electronic device 20 provided by the embodiment of the application. The electronic device 20 can specifically include at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25 and a communication bus 26. The memory 22 is used to store a computer program, the computer program is loaded and executed by the processor 21 to realize the related steps in the channel screening method disclosed in any of the preceding embodiments. In addition, the electronic device 20 in the embodiment can be an electronic computer.
[0104] In the embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol followed by the communication interface 24 can be any communication protocol applicable to the technical solution of the application, which is not limited here; the input / output interface 25 is used to obtain external input data or output data to the outside, and the specific interface type can be selected according to the specific application needs, which is not limited here.
[0105] In addition, the memory 22 as a carrier for resource storage can be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage mode can be temporary storage or permanent storage.
[0106] The operating system 221 is used to manage and control each hardware device on the electronic device 20 and the computer program 222, which can be Windows Server, Netware, Unix, Linux, etc. The computer program 222 can further include computer programs capable of completing other specific work in addition to the computer programs capable of completing the channel screening method disclosed by the electronic device 20 in any of the foregoing embodiments.
[0107] Further, the present application also discloses a computer readable storage medium for storing a computer program; wherein the computer program is executed by a processor to implement the channel screening method disclosed above. For the specific steps of the method, please refer to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.
[0108] The embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts of each embodiment can be referred to each other. For the device disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part.
[0109] The skilled person can further realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized by electronic hardware, computer software or a combination of both. In order to clearly show the interchangeability of hardware and software, the components and steps of each example have been described in the above description. Whether the functions are realized by hardware or software depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0110] The steps of the method or algorithm described in combination with the embodiments disclosed herein can be directly implemented by hardware, software modules executed by a processor, or a combination of both. The software modules can be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0111] Finally, it needs to be pointed out that in this document, relational terms such as first and second and the like can only be intended to distinguish one entity or operation from another entity or operation without necessarily requiring or implying any actual such relationship or order between such entities or operations. Moreover, the terms "comprising", "including", or any other variant thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without more limitations, an element defined by the statement "comprising a" does not exclude the existence of additional identical elements in the process, method, article, or apparatus including the stated element.
[0112] The above detailed description of the technical solutions provided by the present application has been provided, and the principles and implementation manners of the present application have been described by applying specific examples. The above description of the examples is only for the purpose of helping to understand the method of the present application and its core idea; at the same time, for those skilled in the art, according to the idea of the present application, the specific implementation manner and application range will be changed, and the above description of the content of the specification should not be understood as a limitation of the present application.
Claims
1. A method of passaging screening, characterized by, The screening system based on the FPGA heterogeneous architecture comprises: The attribute values of all current order channels are stored respectively; the attribute values include a fuzzy window value for representing the maximum number of data packets allowed to be sent by the corresponding channel; wherein, for multiple seats and multiple gateways, a transmission connection of each network realizes a transaction unit corresponding to one seat and one gateway, the multiple gateways and multiple seats are reflected as only one serverid value, so as to select an optimal seat from the multiple seats into an effective and optimal channel value, and the order channel stores its own attribute value; A current order channel for processing current business is determined based on the fuzzy window value, so that the current order channel is used for data transmission operation related to the current order data packet; The fuzzy window value in the current order channel is updated in real time according to the data transmission result of the current order data packet, and a corresponding current order response time is determined; A current optimal channel is screened from all the order channels based on the real-time updated fuzzy window value and the current order response time, so that the current optimal channel is used to process the next business; The current order channel for processing current business is determined based on the fuzzy window value, comprising: The order channel with the maximum fuzzy window value in all current order channels is determined as the current order channel for processing current business; The fuzzy window value in the current order channel is updated in real time according to the data transmission result of the current order data packet, comprising: If the current order channel sends the order data packet, the fuzzy window value is decremented to update the fuzzy window value in the current order channel in real time; If the current order channel receives the response information corresponding to the order data packet, the fuzzy window value is incremented to update the fuzzy window value in the current order channel in real time; The corresponding current order response time is determined, comprising: It is judged whether the response information of the order data packet is consistent with the order number of the current order, if yes, a first order response time is determined according to the order sending time of the current order and the time when the response information is received; The sending flag bit of the current order channel is read and it is judged whether the sending flag bit is 1, if yes, the current time is recorded, and a second order response time is determined based on the current time and the order sending time of the current order; The current order response time is determined based on the first order response time and the second order response time.
2. The method of passage screening according to claim 1, wherein, Before the corresponding current order response time is determined, it further comprises: The sending flag bit for recording whether the current order sampling time is in the effective period is stored by using the sending flag bit storage rule in the attribute value storage rule of the order channel; It is judged whether the current order has been sampled according to the sending flag bit stored in the current order channel attribute value; If the sending flag bit is 0, it is determined that the current order has not been sampled; If the sending flag bit is 1, it is determined that the current order has been sampled.
3. The method of passage screening according to claim 2, wherein, The determining that the current order has been sampled further comprises: storing an order number of the current order by using an order number storage rule in the attribute value storage rule; storing an order sending time of the current order by using an order sending time sampling storage rule in the attribute value storage rule.
4. The passage screening method according to any one of claims 1 to 3, characterized in that, The filtering out of a current optimal channel from all the order channels based on the real-time updated fuzzy window value and the current order response time comprises: determining whether all the real-time updated fuzzy window values are less than a preset threshold, and if not, determining an order channel with the largest fuzzy window value in the current all order channels as the current optimal channel; if yes and the fuzzy window value is valid, determining an order channel with the shortest order response time in the current all order channels as the current optimal channel, and if the real-time updated fuzzy window value is 0, selecting an order channel with a window value as the current optimal channel; if all the real-time updated fuzzy window values are the same, determining an order channel with the shortest order response time in the current all order channels as the current optimal channel.
5. A passageway screening device characterized by, The application of a filtering system based on an FPGA heterogeneous architecture comprises: an attribute value storage module for storing attribute values of current all order channels respectively; the attribute values include a fuzzy window value for representing a maximum number of data packets allowed to be sent by a corresponding channel; wherein, for multiple seats and multiple gateways, a transmission connection of each network realizes a one-to-one correspondence between a transaction unit and a seat and a gateway, the multiple gateways and multiple seats are projected into a unique serverid value, so as to select an optimal seat from numerous seats into an effective and optimal channel value, and the order channel stores its own attribute value; a data transmission module for determining a current order channel for processing a current service based on the fuzzy window value, so as to perform a data transmission operation related to a current order data packet by using the current order channel; a time determination module for real-time updating the fuzzy window value in the current order channel according to a data transmission result of the current order data packet, and determining a corresponding current order response time; a channel filtering module for filtering out a current optimal channel from all the order channels based on the real-time updated fuzzy window value and the current order response time, so as to process a next service by using the current optimal channel. The data transmission module comprises: a current order channel determination unit for determining an order channel with the largest fuzzy window value in the current all order channels as a current order channel for processing a current service; The time determination module comprises: a first fuzzy window value updating unit for performing a decrement operation on the fuzzy window value to real-time update the fuzzy window value in the current order channel if the current order channel sends the order data packet. a second fuzzy window value updating unit, configured to increase the fuzzy window value if the current order channel receives response information corresponding to the order data packet, so as to update the fuzzy window value in the current order channel in real time; the time determining module is configured to determine whether the response information of the order data packet is consistent with the order number of the current order, and if yes, determine a first order response time according to the order sending time of the current order and the time of receiving the response information; read the sending flag bit of the current order channel and determine whether the reading of the sending flag bit is 1, and if yes, record the current time, and determine a second order response time based on the current time and the order sending time of the current order; and determine the current order response time based on the first order response time and the second order response time.
6. An electronic device, comprising: comprising: a memory for saving a computer program; a processor for executing the computer program to implement the channel screening method according to any one of claims 1 to 4.
7. A computer readable storage medium characterized in that, a computer program for saving, which is executed by a processor to implement the channel screening method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Intelligent traffic distribution system and order processing method
CN108737977A
Weak connection flow control method based on adaptive sliding window
CN115514710A