CN112804261A - Data forwarding control method and device, storage medium and electronic device - Google Patents

Data forwarding control method and device, storage medium and electronic device Download PDF

Info

Publication number
CN112804261A
CN112804261A CN202110293298.XA CN202110293298A CN112804261A CN 112804261 A CN112804261 A CN 112804261A CN 202110293298 A CN202110293298 A CN 202110293298A CN 112804261 A CN112804261 A CN 112804261A
Authority
CN
China
Prior art keywords
data
instruction
target
database
detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110293298.XA
Other languages
Chinese (zh)
Inventor
杨海峰
陈寿仓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dbsec Technology Co ltd
Original Assignee
Beijing Dbsec Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dbsec Technology Co ltd filed Critical Beijing Dbsec Technology Co ltd
Priority to CN202110293298.XA priority Critical patent/CN112804261A/en
Publication of CN112804261A publication Critical patent/CN112804261A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0227Filtering policies
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/253Grammatical analysis; Style critique
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0227Filtering policies
    • H04L63/0263Rule management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a data forwarding control method, a data forwarding control device, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring a data calling instruction; performing first processing on the data calling instruction to obtain a data detection instruction; sending a data detection instruction to a database; acquiring target data information fed back by a database based on a data detection instruction, and analyzing the target data information to acquire target data characteristics of the target data information; and determining a target forwarding rule corresponding to the target data characteristic, and sending a target instruction to the database based on the target forwarding rule so as to instruct the database to perform data processing according to the target forwarding rule. By the method and the device, the problem of data identification lag is solved, and the effect of improving data interaction accuracy is achieved.

Description

Data forwarding control method and device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a data forwarding control method, a data forwarding control device, a storage medium and an electronic device.
Background
In the existing data operation process, the received data needs to be intercepted or updated, but if all the data is directly intercepted, the subsequent system functions may not normally operate, so that the data needs to be predicted in advance before the data interception and update operation takes effect, that is, the data characteristics which are affected after a certain statement in the data is executed are predicted in advance.
However, there are some statements that need to be sent to the database server at the client, and the result returned by the server can only know the influence result (e.g. update, delete, etc.), and at this time, the system has already performed a deletion operation on the data in the database, which results in an erroneous operation of the system and influences the normal operation of the system.
At present, no better solution to the above problems exists.
Disclosure of Invention
The embodiment of the invention provides a data forwarding control method, a data forwarding control device, a storage medium and an electronic device, which are used for at least solving the problem of language identification lag in the related technology.
According to an embodiment of the present invention, there is provided a data forwarding control method including:
acquiring a data calling instruction;
performing first processing on the data calling instruction to obtain a data detection instruction;
sending the data detection instruction to a database;
acquiring target data information fed back by the database based on the data detection instruction, and analyzing the target data information to acquire target data characteristics of the target data information;
and determining a target forwarding rule corresponding to the target data characteristic, and sending a target instruction to the database based on the target forwarding rule so as to instruct the database to perform data processing according to the target forwarding rule.
In an exemplary embodiment, the first processing the data call instruction to obtain a data detection instruction includes:
carrying out syntactic analysis processing on the data calling instruction to obtain a syntactic analysis result;
determining first data and second data contained in the data calling instruction according to the syntax analysis result;
construct the data probe instruction containing the first data, wherein the data probe instruction does not contain the second data.
In an exemplary embodiment, sending the data probing instructions to a database comprises:
performing statement detection processing on the data detection instruction;
and sending the data detection instruction to the database under the condition that the detection result is that the data detection instruction meets the preset condition.
In one exemplary embodiment, determining a forwarding rule corresponding to the data feature comprises:
and determining the target forwarding rule corresponding to the target data characteristic from a pre-configured corresponding relationship, wherein the corresponding relationship is used for recording the corresponding relationship between the data characteristic and the forwarding rule, and different data characteristics correspond to the same or different forwarding rules.
In one exemplary embodiment, the target data characteristic includes row number information of the target data information.
According to another embodiment of the present invention, there is provided a data transfer control apparatus including:
the data acquisition module is used for acquiring a data calling instruction;
the first processing module is used for carrying out first processing on the data calling instruction to obtain a data detection instruction;
the data forwarding module is used for sending the data detection instruction to a database;
the data analysis module is used for acquiring target data information fed back by the database based on the data detection instruction and analyzing the target data information to acquire target data characteristics of the target data information;
and the instruction sending module is used for determining a target forwarding rule corresponding to the target data characteristic and sending a target instruction to the database based on the target forwarding rule so as to instruct the database to perform data processing according to the target forwarding rule.
In one exemplary embodiment, the first processing module includes:
the syntactic analysis unit is used for carrying out syntactic analysis processing on the data calling instruction so as to obtain a syntactic analysis result;
the data determining unit is used for determining first data and second data contained in the data calling instruction according to the syntactic analysis result;
an instruction construction unit configured to construct the data probing instruction including the first data, wherein the data probing instruction does not include the second data.
In one exemplary embodiment, the data forwarding module includes:
the statement detection unit is used for carrying out statement detection processing on the data detection instruction;
and the instruction sending unit is used for sending the data detection instruction to the database under the condition that the detection result is that the data detection instruction meets the preset condition.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, because the data calling instruction is intercepted and detected, and the data is processed after the forwarding rule is determined, the data can be identified before the data is forwarded, so that the problem of data identification lag can be solved, and the effect of improving the data interaction accuracy is achieved.
Drawings
Fig. 1 is a block diagram of a hardware structure of a mobile terminal of a data forwarding control method according to an embodiment of the present invention;
fig. 2 is a flowchart of a data forwarding control method according to an embodiment of the present invention;
fig. 3 is a block diagram of a data transfer control apparatus according to an embodiment of the present invention;
FIG. 4 is a block diagram of an architecture according to a specific embodiment of the present invention;
fig. 5 is a flow chart according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the operation on a mobile terminal, fig. 1 is a hardware structure block diagram of the mobile terminal of a data forwarding control method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to a data forwarding control method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 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 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
A data forwarding control method is provided in this embodiment, and fig. 2 is a flowchart of a data forwarding control method according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, acquiring a data calling instruction;
in this embodiment, by intercepting the instruction or data sent by the client to the database, the instruction or data is identified before the instruction or data reaches the database and indicates the database to perform the corresponding action, thereby avoiding the database from performing the wrong operation due to the lag in data or instruction identification.
The data calling instruction may include (but is not limited to) a code instruction of the calling instruction, identification information of the data calling instruction, an address of the client, identification information of data to be called, and the like, such as an SQL statement and the like; the transmission of the data retrieval command may be performed through ethernet or bluetooth, or may be performed through a wireless transmission network such as 3G/4G/5G/quantum communication, or may be performed through other methods.
Step S204, carrying out first processing on the data calling instruction to obtain a data detection instruction;
in this embodiment, the data detection instruction is used to retrieve target data to be fed back from the database, and the influence of the data on subsequent operations, so that the data interaction process can be monitored.
The target data includes (but is not limited to) a plurality of preset data types and a plurality of specific data corresponding to the data types; the data detection instruction includes (but is not limited to) a code of the instruction, identification information of the target data, identification information of the data detection instruction, a feedback address of the target data, and the like; the processing of the data call instruction may be (but is not limited to) performed by a processing module preset in the desensitization device, and the processing manner may be performed according to a preset algorithm or may be performed by the processing manner.
Step S206, sending a data detection instruction to a database;
in this embodiment, the data detection instruction is sent to the database to instruct the database to feed back the target data to determine the forwarding rule of the data.
The transmission of the data detection command may be performed through ethernet or bluetooth, or may be performed through a wireless transmission network such as 3G/4G/5G/quantum communication, or may be performed through other methods.
Step S208, target data information fed back by the database based on the data detection instruction is obtained, and the target data information is analyzed to obtain target data characteristics of the target data information;
in this embodiment, the target data feature is obtained to determine the influence on the subsequent operation after performing the interaction or other processing operation on the target data information, so that the operations such as interception or forwarding can be performed on the target data information.
The target data characteristic may be a data line number, or other characteristics.
Step S2010, determining a target forwarding rule corresponding to the target data characteristic, and sending a target instruction to the database based on the target forwarding rule to instruct the database to perform data processing according to the target forwarding rule.
In the embodiment, after the forwarding rule is determined, the database is instructed to perform data processing according to the forwarding rule, so that the error operation caused by data identification lag is avoided.
The target forwarding rule may be a rule indicating the database to perform operations such as forwarding, interception, and hysteresis, or may be another rule; the determination of the target forwarding rule may be determined according to a relationship between a preset target data characteristic and the target forwarding rule, may also be determined according to a preset algorithm, and may also be determined according to other manners; the determination process of the target forwarding rule can be implemented by a built-in logic calculation module, such as a CPU, an MCU, a PLC, a single chip microcomputer, or by an external logic calculation device, such as an industrial computer.
Through the steps, the data calling instruction is intercepted, and the target forwarding rule matching is carried out according to the target data information fed back by the database, so that the fed back target data information is identified, the problem of error operation caused by data identification lag is solved, and the controllability of data interaction is improved.
The main body of the above steps may be a base station, a terminal, etc., but is not limited thereto.
In an alternative embodiment, the first processing the data fetch instruction to obtain the data probe instruction comprises:
step S2042, carrying out syntactic analysis processing on the data calling instruction to obtain a syntactic analysis result;
step S2044, determining first data and second data contained in the data calling instruction according to the syntax analysis result;
step S2046, a data detection command including the first data is constructed, wherein the data detection command does not include the second data.
In this embodiment, the statement analysis is performed on the data call instruction to determine information included in the data call instruction and to determine a grammar rule in the data call instruction, so as to facilitate construction of the probe statement.
Wherein, the syntax analysis processing may (but is not limited to) include analyzing information such as identification information, client addresses, syntax rules, data contents, and the like contained in the data call instruction; the determination of the first data and the second data may be determined by identification of identification information of the first data and the second data; the first data may be (but is not limited to) a portion of the data construction instruction that needs to be preserved without affecting the actual number of records, e.g., without affecting the actual query result of the data or updating the deletion result; the second data may be an execution condition that cannot be included in the data construction instruction, and the construction of the data detection instruction includes (but is not limited to) integrating information such as the analyzed client address, and reasonably creating and destroying a handle of the data detection instruction.
For example, when the where condition of the update statement is changed to a probe instruction, the where condition needs to be preserved, and the updated field does not need to be preserved; specifically, update t1 set a = 'b' where c ='d', and the probing instruction of this statement is select count (×) from t1 where c ='d'.
In an alternative embodiment, sending the data probing instructions to the database comprises:
step S2062, performing statement detection processing on the data detection instruction;
step S2064, sending the data detection instruction to the database when the detection result is that the data detection instruction meets the predetermined condition.
In this embodiment, the statement detection is performed on the data probe instruction to avoid a database identification error caused by sending the data probe instruction that does not meet the predetermined condition to the database, so as to improve the data processing efficiency.
The predetermined condition may be (but is not limited to) whether the data detection instruction conforms to the syntax rule, whether the address is correct, whether the communication packet is complete, and the like.
In an optional embodiment, determining the forwarding rule corresponding to the data feature comprises:
step S20102, determining a target forwarding rule corresponding to the target data feature from a pre-configured corresponding relationship, where the corresponding relationship is used to record a corresponding relationship between the data feature and the forwarding rule, and different data features correspond to the same or different forwarding rules.
In this embodiment, the statement detection processing is performed on the data detection instruction to ensure the correctness of the data detection instruction, so as to avoid data recognition errors or recognition incapability caused by wrong syntax.
Wherein, the statement detection processing may (but is not limited to) include detecting whether the syntax of the data detection instruction conforms to the syntax rule, whether the identification is correct, whether the address is correct, and the like; the predetermined conditions may include, but are not limited to, the grammar satisfying the grammar rules, the identification being correct, and the like.
In an alternative embodiment, the target data characteristic comprises row number information of the target data information.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a data forwarding control device is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of a data forwarding control apparatus according to an embodiment of the present invention, and as shown in fig. 3, the apparatus includes:
the data acquisition module 32 is used for acquiring a data calling instruction;
the first processing module 34 is configured to perform first processing on the data retrieval instruction to obtain a data detection instruction;
a data forwarding module 36, configured to send a data detection instruction to a database;
the data analysis module 38 is configured to obtain target data information fed back by the database based on the data detection instruction, and analyze the target data information to obtain target data characteristics of the target data information;
the instruction sending module 310 is configured to determine a target forwarding rule corresponding to the target data feature, and send a target instruction to the database based on the target forwarding rule, so as to instruct the database to perform data processing according to the target forwarding rule.
In an alternative embodiment, the first processing module 34 includes:
a syntax analysis unit 342, configured to perform syntax analysis processing on the data call instruction to obtain a syntax analysis result;
a data determining unit 344, configured to determine, according to the syntax analysis result, first data and second data included in the data call instruction;
an instruction construction unit 346, configured to construct a data probe instruction including first data, wherein the data probe instruction does not include second data.
In an alternative embodiment, the data forwarding module 36 includes:
a statement detection unit 362 that performs statement detection processing on the data detection instruction;
the instruction sending unit 364 is configured to send the data probing instruction to the database if the detection result is that the data probing instruction meets the predetermined condition.
In an alternative embodiment, the instruction sending module 310 includes:
a rule determining unit 3102, configured to determine a target forwarding rule corresponding to a target data feature from a pre-configured correspondence relationship, where the correspondence relationship is used to record a correspondence relationship between the data feature and the forwarding rule, and different data features correspond to the same or different forwarding rules.
In an alternative embodiment, the target data characteristic comprises row number information of the target data information.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
The present invention will be described with reference to specific examples.
As shown in fig. 4, the device deployment process of the present invention specifically includes the following steps:
step 1: the database protection product is deployed in a network bridge mode and is connected in series between the database and the switch or the client, and at the moment, the function of the database protection product deployed in the network bridge mode is equal to that of a data line for data transmission.
When the client side is transferred to the database through the switch, the firewall needs to perform analysis and line number detection to control the forwarding of the flow, and after the line number is obtained, whether forwarding or interception is needed is judged; correspondingly, the response information of the database is returned in the reverse direction for the same path.
As shown in fig. 5, the control flow of the present invention specifically includes the following steps:
step 1: the SQL statement sent by the client is intercepted and is not forwarded to the database (corresponding to step S501 in fig. 5).
Step 2: statement analysis is performed on the intercepted statement while constructing a line number detection statement (corresponding to step S502 in fig. 5).
And step 3: the constructed probe sentence is sent to the database (corresponding to step S503 in fig. 5).
And 4, step 4: and collecting a response result returned by the detection statement at the database end, and obtaining the line number through protocol analysis (corresponding to step S504 in fig. 5).
And 5: and (4) judging control conditions, if the control conditions are judged, sending an interception packet to the database, and if the control conditions are intercepted, directly forwarding the original data packet (corresponding to the steps S505 and S506 in the figure 5).
It should be noted that the basic principle of the row number detection includes:
the deployment mode is as follows: the same applies to the proxy plug-in, as explained by way of a bridge.
Statement rewriting: the original statement is parsed to determine the execution conditions that must be included and the execution conditions or data that cannot be included in constructing the probe statement, and at the same time, the correctness of the probe statement is guaranteed and no syntax errors can occur.
The control principle is as follows: controlling the forwarding of the communication packet, establishing connection between another plug-in program and the database to acquire the number of lines, performing rule matching after the number of lines is acquired, and controlling the forwarding of the data packet according to whether the matching result is interception or release.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A data forwarding control method, comprising:
acquiring a data calling instruction;
performing first processing on the data calling instruction to obtain a data detection instruction;
sending the data detection instruction to a database;
acquiring target data information fed back by the database based on the data detection instruction, and analyzing the target data information to acquire target data characteristics of the target data information;
and determining a target forwarding rule corresponding to the target data characteristic, and sending a target instruction to the database based on the target forwarding rule so as to instruct the database to perform data processing according to the target forwarding rule.
2. The method of claim 1, wherein the first processing the data fetch instruction to obtain a data probe instruction comprises:
carrying out syntactic analysis processing on the data calling instruction to obtain a syntactic analysis result;
determining first data and second data contained in the data calling instruction according to the syntax analysis result;
construct the data probe instruction containing the first data, wherein the data probe instruction does not contain the second data.
3. The method of claim 1, wherein sending the data probing instructions to a database comprises:
performing statement detection processing on the data detection instruction;
and sending the data detection instruction to the database under the condition that the detection result is that the data detection instruction meets the preset condition.
4. The method of claim 1, wherein determining a forwarding rule corresponding to the data feature comprises:
and determining the target forwarding rule corresponding to the target data characteristic from a pre-configured corresponding relationship, wherein the corresponding relationship is used for recording the corresponding relationship between the data characteristic and the forwarding rule, and different data characteristics correspond to the same or different forwarding rules.
5. The method of any of claims 1 to 4, wherein the target data characteristic comprises a line number information of the target data information.
6. A data transfer control apparatus, comprising:
the data acquisition module is used for acquiring a data calling instruction;
the first processing module is used for carrying out first processing on the data calling instruction to obtain a data detection instruction;
the data forwarding module is used for sending the data detection instruction to a database;
the data analysis module is used for acquiring target data information fed back by the database based on the data detection instruction and analyzing the target data information to acquire target data characteristics of the target data information;
and the instruction sending module is used for determining a target forwarding rule corresponding to the target data characteristic and sending a target instruction to the database based on the target forwarding rule so as to instruct the database to perform data processing according to the target forwarding rule.
7. The apparatus of claim 6, wherein the first processing module comprises:
the syntactic analysis unit is used for carrying out syntactic analysis processing on the data calling instruction so as to obtain a syntactic analysis result;
the data determining unit is used for determining first data and second data contained in the data calling instruction according to the syntactic analysis result;
an instruction construction unit configured to construct the data probing instruction including the first data, wherein the data probing instruction does not include the second data.
8. The apparatus of claim 6, wherein the data forwarding module comprises:
the statement detection unit is used for carrying out statement detection processing on the data detection instruction;
and the instruction sending unit is used for sending the data detection instruction to the database under the condition that the detection result is that the data detection instruction meets the preset condition.
9. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1-5 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1-5.
CN202110293298.XA 2021-03-19 2021-03-19 Data forwarding control method and device, storage medium and electronic device Pending CN112804261A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110293298.XA CN112804261A (en) 2021-03-19 2021-03-19 Data forwarding control method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110293298.XA CN112804261A (en) 2021-03-19 2021-03-19 Data forwarding control method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN112804261A true CN112804261A (en) 2021-05-14

Family

ID=75815535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110293298.XA Pending CN112804261A (en) 2021-03-19 2021-03-19 Data forwarding control method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112804261A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5860069A (en) * 1997-04-11 1999-01-12 Bmc Software, Inc. Method of efficient collection of SQL performance measures
CN106845237A (en) * 2017-01-23 2017-06-13 北京安华金和科技有限公司 A kind of SQL injection methods of risk assessment based on SQL statement
CN107358098A (en) * 2017-07-14 2017-11-17 北京安数云信息技术有限公司 SQL SQL injection detection method and device based on plug-in unit
CN109635027A (en) * 2018-12-03 2019-04-16 北京安华金和科技有限公司 A kind of implementation method of database access result collection detection
CN111935194A (en) * 2020-10-13 2020-11-13 南京云信达科技有限公司 Data interception method and device
CN112395637A (en) * 2019-08-15 2021-02-23 奇安信安全技术(珠海)有限公司 Database protection method and device, storage medium and computer equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5860069A (en) * 1997-04-11 1999-01-12 Bmc Software, Inc. Method of efficient collection of SQL performance measures
CN106845237A (en) * 2017-01-23 2017-06-13 北京安华金和科技有限公司 A kind of SQL injection methods of risk assessment based on SQL statement
CN107358098A (en) * 2017-07-14 2017-11-17 北京安数云信息技术有限公司 SQL SQL injection detection method and device based on plug-in unit
CN109635027A (en) * 2018-12-03 2019-04-16 北京安华金和科技有限公司 A kind of implementation method of database access result collection detection
CN112395637A (en) * 2019-08-15 2021-02-23 奇安信安全技术(珠海)有限公司 Database protection method and device, storage medium and computer equipment
CN111935194A (en) * 2020-10-13 2020-11-13 南京云信达科技有限公司 Data interception method and device

Similar Documents

Publication Publication Date Title
CN110868336B (en) Data management method, device and computer readable storage medium
CN109600258B (en) Industrial protocol message recording device and method
CN112714047B (en) Industrial control protocol flow based test method, device, equipment and storage medium
CN107957940B (en) Test log processing method, system and terminal
CN109327357B (en) Feature extraction method and device of application software and electronic equipment
CN110912782B (en) Data acquisition method, device and storage medium
CN110096380B (en) Android internal communication method, system, device and storage medium
CN110932918A (en) Log data acquisition method and device and storage medium
CN108459921A (en) Collapse file memory method, device and electronic equipment
CN110806966A (en) Log management method and device, electronic equipment and computer storage medium
CN112506755A (en) Log collection method and device, computer equipment and storage medium
CN111198804A (en) Gateway-based industrial internet platform third-party micro-service monitoring and early warning method
CN107330031B (en) Data storage method and device and electronic equipment
CN112800474B (en) Data desensitization method and device, storage medium and electronic device
CN112804261A (en) Data forwarding control method and device, storage medium and electronic device
CN111427307A (en) Industrial control abnormity detection method, device and equipment
CN110309028B (en) Monitoring information acquisition method, service monitoring method, device and system
CN114090074A (en) Method and device for configuring operating environment, storage medium and electronic device
JP2017199250A (en) Computer system, analysis method of data, and computer
CN115509790A (en) Method and device for acquiring abnormal information, storage medium and electronic device
CN112311679B (en) State detection method, state detection device, electronic equipment and readable storage medium
CN114363059A (en) Attack identification method and device and related equipment
CN114143385A (en) Network traffic data identification method, device, equipment and medium
CN113032341A (en) Log processing method based on visual configuration
CN109560964B (en) Equipment compliance checking method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210514

RJ01 Rejection of invention patent application after publication