CN112532720A - Data forwarding method, device, equipment and storage medium - Google Patents

Data forwarding method, device, equipment and storage medium Download PDF

Info

Publication number
CN112532720A
CN112532720A CN202011359645.6A CN202011359645A CN112532720A CN 112532720 A CN112532720 A CN 112532720A CN 202011359645 A CN202011359645 A CN 202011359645A CN 112532720 A CN112532720 A CN 112532720A
Authority
CN
China
Prior art keywords
data
data destination
connection
destination
rule
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
CN202011359645.6A
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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202011359645.6A priority Critical patent/CN112532720A/en
Publication of CN112532720A publication Critical patent/CN112532720A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • 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/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The embodiment of the application discloses a data forwarding method, a data forwarding device, data forwarding equipment and a storage medium, and relates to the field of cloud computing such as cloud platforms and cloud storage. The data forwarding method comprises the following steps: acquiring rules for processing source data acquired by equipment; acquiring a data destination configured in a rule; establishing connection with the data destination based on the connection mode of the data destination provided by the user; processing source data acquired by equipment by adopting rules to obtain target data; the target data is sent to the data destination, so that the processed data is sent to the data destination specified in the rule, and the diversity of the data destination of the rule engine is improved.

Description

Data forwarding method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to the field of cloud computing such as cloud platforms and cloud storage, and in particular, to a method, an apparatus, a device, and a storage medium for data forwarding.
Background
The rule engine is an important functional module of the platform of the Internet of things, is an engine for processing complex logic, and is mainly used for screening, deforming, forwarding, operating and the like of data collected by a sensing layer so as to realize decoupling of data logic and upper-layer services.
Under the scenes of an internet of things rule engine, message circulation and the like, the data of the internet of things equipment are circulated to a data destination opened on the same platform through the rule engine service of a public cloud platform, and the modes of authentication and the like are unified, so that the realization is relatively simple.
Disclosure of Invention
The embodiment of the application provides a data forwarding method, a data forwarding device, data forwarding equipment and a storage medium.
In a first aspect, an embodiment of the present application provides a method for forwarding data, including: acquiring rules for processing source data acquired by equipment; acquiring a data destination configured in a rule; establishing connection with the data destination based on the connection mode of the data destination provided by the user; processing source data acquired by equipment by adopting rules to obtain target data; the target data is sent to the data destination.
In a second aspect, an embodiment of the present application provides an apparatus for forwarding data, including: a rule acquisition module configured to acquire a rule for processing source data acquired by a device; a destination acquisition module configured to acquire a data destination configured in a rule; a connection module configured to establish a connection with a data destination based on a connection manner of the data destination provided by a user; the data processing module is configured to process the source data acquired by the equipment by adopting rules to obtain target data; a sending module configured to send the target data to a data destination.
In a third aspect, an embodiment of the present application provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described in any one of the implementations of the first aspect.
In a fourth aspect, embodiments of the present application propose a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method as described in any one of the implementations of the first aspect.
According to the method, the device, the equipment and the storage medium for forwarding the data, firstly, a rule for processing source data acquired by the equipment is acquired; then obtaining a data destination configured in the rule; then, establishing connection with the data destination based on the connection mode of the data destination provided by the user; then, processing the source data acquired by the equipment by adopting rules to obtain target data; and finally, sending the target data to the data destination, so that the processed data is sent to the data destination specified in the rule, and the diversity of the data destination of the rule engine is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings. The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method of data forwarding according to the present application;
FIG. 3 is a flow diagram of another embodiment of a method of data forwarding according to the present application;
FIG. 4 is a schematic diagram illustrating an application scenario of an embodiment of a method for data forwarding according to the present application;
FIG. 5 is a schematic block diagram of an embodiment of a data forwarding apparatus of the present application;
fig. 6 is a block diagram of an electronic device for implementing a method of data forwarding according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the data forwarding method or apparatus of the present application may be applied.
As shown in fig. 1, system architecture 100 may include device 101, network 102, server 103. Network 102 is the medium used to provide communication links between devices 101 and server 103. Network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
Device 101 may interact with server 103 through network 102. Device 101 may collect source data including, but not limited to, internet of things devices such as televisions, electricity meters, temperature sensors, devices in unmanned vehicles, and the like.
The server 103 may provide various services, and for example, the server 103 may perform processing such as analysis on source data acquired from the apparatus 101 and generate a processing result (e.g., transmission of target data to a data destination).
The server 103 may be hardware or software. When the server 103 is hardware, it may be implemented as a distributed server cluster composed of a plurality of servers, or may be implemented as a single server. When the server 103 is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
The Server 103 may be a cloud Server, which is also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service extensibility in the conventional physical host and Virtual Private Server (VPS) service.
It should be noted that the method for forwarding data provided in the embodiment of the present application is generally executed by the server 103, and accordingly, a device for forwarding data is generally disposed in the server 103.
It should be understood that the number of devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of devices, networks, and servers, as desired for an implementation.
With continued reference to fig. 2, a flow 200 of one embodiment of a method of data forwarding according to the present application is shown. The method comprises the following steps:
step 201, obtaining a rule for processing source data collected by a device.
In this embodiment, an execution subject of the data forwarding method (for example, the server 103 shown in fig. 1) may acquire a rule for processing source data collected by the device.
Wherein the rule engine is a component embedded in the application program for implementing the separation of business decisions from the application program code. The rules include conditions and results, and the rules may manipulate data in the application. The user can create the rule through a rule creation module in the rule engine, and the execution subject can acquire the rule created by the user.
The rule includes a plurality of parameters, such as a rule name, a data format, a rule description, a data source, and the like. The source data collected by operating the device with the rule can be realized by configuring the data source parameter of the rule, for example, obtaining a device data source Topic (Topic) that needs to be subscribed.
The rule may be written in Structured Query Language (SQL). SQL has the functions of data definition, data manipulation and data control. For example, an environmental sensor can collect temperature, humidity and air pressure data, and the source data collected by the equipment is { "temperature": 25.1; 65 for "husidity"; 101.5 for "pressure"; "location": xxx, xxx "}, which sets a trigger rule when the temperature is greater than 38, and screens out the device name, temperature and position information, wherein the SQL is as follows: SELECT temperature as t, deviceName () as deviceName, location FROM "topic a" WHERE temperature > 38.
Step 202, obtain the data destination configured in the rule.
In this embodiment, the execution body may obtain the data destination configured in the rule.
Wherein the data destination is a cloud platform for receiving the rule processing data results for indicating a destination of the data processing results. The data destination may be a storage, computation, Message queue, etc. cloud platform, such as an MQTT (Message Queuing telemeasuring Transport protocol) topic, a Message queue, a time sequence database, etc. The data destination topic can be any legitimate topic.
The configuration information of the data destination may include information such as a data destination type, a data destination address, and a rule of configuration. A single rule may support multiple different data destinations. The data destination may be a message queue destination on the same platform or a message queue destination across platforms. For example, the message queue destination on the same public cloud platform is the message queue destination on the same platform, the message queue destination on different public cloud platforms, the message queue destination on the public cloud platform and the private cloud platform, and the message queue destination on different private cloud platforms are the message queue destination across platforms.
Where public cloud resources (e.g., servers and storage space) are owned and operated by third party cloud service providers, these resources are provided over the Internet. In a public cloud, all hardware, software, and other supporting infrastructure is owned and managed by the cloud provider. A private cloud consists of cloud computing resources dedicated for use by an enterprise or organization. The private cloud may be physically located at an organization's on-site data center or may be hosted by a third party service provider. In a private cloud, services and infrastructure are always maintained on a private network, with hardware and software dedicated to the organization.
Step 203, establishing connection with the data destination based on the connection mode of the data destination provided by the user.
In this embodiment, the execution body may establish a connection with the data destination based on a connection manner of the data destination provided by the user.
The connection with the data destination may be performed by using a certificate or a username/password. The certificate is a digital certificate for marking identity information of each communication party in internet communication, and the integrity and the safety of information and data of network users in computer network traffic are guaranteed in an encryption or decryption mode by the certificate. The execution agent may acquire information required for connecting to the data destination, such as a certificate placed in the data destination, and may establish a connection with the data destination.
And 204, processing the source data acquired by the equipment by adopting rules to obtain target data.
In this embodiment, the executing body may process the source data collected by the device by using a rule to obtain the target data.
The data screening is to process the source data collected by the device according to rules, and the rules filter, convert format, and the like the source data to obtain an expected output result (i.e., target data). The format of the source data may be a specified data format, such as JSON format. The data screening comprises a filtering condition and a query statement, and the logic of the data screening is that the filtering condition is executed firstly and then the query statement is executed.
And if the result returned by the filtering condition is true, the source data can be sent to the next step for continuous processing, otherwise, the source data is filtered out and cannot continue to flow downwards. Illustratively, a filter condition is any expression consisting of basic query operators, functions that can return a boolean value.
Wherein, the query statement can perform format transformation on the source data, including but not limited to the following scenarios: assembling a brand new data structure, filtering data specified by source data, adding data to the source data, converting object elements into array elements, traversing and flattening the array elements into objects, running a function to acquire a timestamp, a random number, intercepting a character string and the like, adding the character string to target data and the like.
Step 205, the target data is sent to the data destination.
In the present embodiment, the execution body described above may transmit the target data to the data destination.
After the source data collected by the equipment is processed, the source data can be forwarded to a corresponding data destination. For example, the target data may be forwarded to a timing database for storage, or may be forwarded to a message queue (e.g., Apache Kafka) and then stream computed using real-time computation.
In the data forwarding method provided by the above embodiment of the present application, by obtaining various types of data destinations provided by a user and establishing connection with the data destinations in a corresponding connection manner, processed data can be sent to the data destination specified in the rule, so that diversity of the rule engine data destinations is improved.
In some optional implementations of this embodiment, the data destination in step 202 may be a cross-platform data destination or a co-platform data destination.
The user can create a data destination across platforms or with platforms, and configure a connection mode for the created data destination. Compared with a scheme only supporting data synchronization to the same platform and across accounts, the embodiment provides a perfect scheme for data synchronization to the platform and across platforms, including acquiring a data destination across platforms, configuring a corresponding data destination in a rule, sending data to the corresponding data destination, and the like.
With further reference to fig. 3, a flow diagram of another embodiment of a method of data forwarding is shown, the method comprising the steps of:
step 301, obtaining a rule for processing source data collected by a device.
Step 301 is substantially the same as step 201, and therefore will not be described again.
Step 302, checking the connectivity of the data destination based on the connection mode of the data destination provided by the user.
In this embodiment, the execution subject may check connectivity of the data destination based on a connection mode of the data destination provided by the user.
When the user provides information required for connecting the data destination by configuring information such as a data destination connection address, an authentication certificate or a user name password, the execution subject may check by attempting to establish a connection with the data destination, whether the service is successfully called, or the like, by using the data destination address, the certificate, the user name password, or the like provided by the user. By checking the connectivity of the data destinations, it can be ensured that the obtained data destinations configured in the rule are available.
Step 303, in response to establishing a connection with a data destination, saves the data destination to a lookup list.
In this embodiment, the execution body may perform a step of saving the data destination into the query list in response to establishing a connection with the data destination.
Wherein, for the cross-platform data destination, the executing agent may execute step 302 after the cross-platform data destination is created by the cross-platform data destination creation module by the user. If a connection is established with a cross-platform data destination created by a user, the execution entity stores the information in a database. The data destinations can be stored in a list form, so that a user can conveniently obtain all available data destination lists.
Step 304, obtain the data destination configured in the rule.
Step 304 is substantially the same as step 202, and thus is not described in detail.
Step 305, establishing a connection with the data destination based on the connection mode of the data destination provided by the user.
Step 305 is substantially the same as step 203 and thus will not be described again.
And step 306, processing the source data acquired by the equipment by adopting rules to obtain target data.
Step 306 is substantially the same as step 204, and therefore will not be described again.
Step 307, the target data is sent to the data destination.
Step 308 is substantially the same as step 205, and therefore will not be described again.
In some optional implementations of this embodiment, the step 203 further includes: the connection is encrypted in response to establishing a connection with the data destination based on the username password configured at the data destination.
The username and password information can be encrypted by means of digital signature. By encrypting the connection mode, the safety of data can be ensured.
In some optional implementations of this embodiment, the device is an internet of things device.
The devices include, but are not limited to, internet of things devices such as televisions, electric meters, temperature sensors, devices in unmanned vehicles, and the like.
In some optional implementations of this embodiment, the rule includes any one of: filtering, format adjustment and calculation.
The filtering, format adjustment and calculation refer to the functions of SQL adopted when rules are edited.
For ease of understanding, fig. 4 shows a schematic application scenario of an embodiment of a method of data forwarding according to the present application.
As shown in fig. 4, the temperature sensor may collect ambient temperature data and transmit the collected temperature data to the rules engine through the Broker message center. The data forwarding method in this embodiment is applied to a rule engine. After the user creates the rules and edits the rules, the rules with complete information such as processing logic, data destination, and the like added can be sent to the rule engine. Wherein the rules specify processing data from the temperature sensors. The rule engine then processes the data from the temperature sensor according to the rules edited by the user, e.g., filtering out the data to be processed, adjusting the data format, calculating the data, etc., and sends the processed data to the data destination specified in the rules. The data destination may be cross-platform or co-platform.
With further reference to fig. 5, as an implementation of the methods shown in the above diagrams, the present application provides an embodiment of a method for data forwarding, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 5, the apparatus 500 for forwarding data of this embodiment may include: a rule obtaining module 501, a destination obtaining module 502, a connection module 503, a data processing module 504, and a sending module 505. The rule obtaining module 501 is configured to obtain a rule for processing source data collected by a device; a destination acquisition module 502 configured to acquire a data destination configured in a rule; a connection module 503 configured to establish a connection with the data destination based on a connection manner of the data destination provided by the user; a data processing module 504 configured to process the source data acquired by the device by using rules to obtain target data; a sending module 505 configured to send the target data to a data destination.
In the present embodiment, in the data forwarding apparatus 500: the specific processing of the rule obtaining module 501, the destination obtaining module 502, the connection module 503, the data processing module 504, and the sending module 505 and the technical effects thereof can refer to the related descriptions of step 201 and step 205 in the corresponding embodiment of fig. 2, which are not described herein again.
In some alternative implementations of the present embodiment, the data destination includes a cross-platform data destination or a co-platform data destination.
In some optional implementations of this embodiment, the apparatus 500 further includes: the connectivity test module is configured to check the connectivity of the data destination based on the connection mode of the data destination provided by the user before acquiring the data destination configured in the rule; a list query module configured to save the data destinations to a query list in response to establishing a connection with the data destinations.
In some optional implementations of this embodiment, the connection module 503 is further configured to: a connection is established with the data destination based on the credentials or username password configured with the data destination.
In some optional implementations of this embodiment, the connection module 503 further includes: an encryption module configured to encrypt the connection means in response to establishing a connection with the data destination based on a username password configured at the data destination.
In some optional implementation manners of this embodiment, the device is an internet of things device
In some optional implementations of this embodiment, the rule includes any one of: filtering, format adjustment and calculation.
Fig. 6 is a block diagram of an electronic device according to an embodiment of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 6, the electronic apparatus includes: one or more processors 601, memory 602, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 6, one processor 601 is taken as an example.
The memory 602 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method of data forwarding provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the method of data forwarding provided herein.
The memory 602, as a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the method of data forwarding in the embodiments of the present application (e.g., the rule obtaining module 501, the destination obtaining module 502, the connection module 503, the data processing module 504, and the sending module 505 shown in fig. 5). The processor 601 executes various functional applications of the server and data processing, i.e., implements the method of data forwarding in the above method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 602.
The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the stored data area may store data created according to use of the electronic device of the method of data forwarding, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 602 optionally includes memory located remotely from the processor 601, and these remote memories may be connected over a network to the electronic device of the method of data forwarding. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the data forwarding method may further include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected by a bus or other means, and fig. 6 illustrates the connection by a bus as an example.
The input device 603 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device of the method of data forwarding, such as an input device like a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointer stick, one or more mouse buttons, a track ball, a joystick, etc. The output devices 604 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server may be a cloud Server, which is also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service extensibility in the conventional physical host and Virtual Private Server (VPS) service.
Cloud computing (cloud computing) refers to a technology architecture that accesses a flexibly extensible shared physical or virtual resource pool through a network, where resources may include servers, operating systems, networks, software, applications, storage devices, and the like, and may be deployed and managed in an on-demand, self-service manner. Through the cloud computing technology, high-efficiency and strong data processing capacity can be provided for technical application and model training of artificial intelligence, block chains and the like.
According to the technical scheme of the application, firstly, a rule for processing source data collected by equipment is obtained; then obtaining a data destination configured in the rule; then, establishing connection with the data destination based on the connection mode of the data destination provided by the user; then, processing the source data acquired by the equipment by adopting rules to obtain target data; and finally, sending the target data to the data destination, so that the processed data is sent to the data destination specified in the rule, and the diversity of the data destination of the rule engine is improved.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (16)

1. A method of data forwarding, comprising:
acquiring rules for processing source data acquired by equipment;
obtaining a data destination configured in the rule;
establishing connection with the data destination based on the connection mode of the data destination provided by the user;
processing the source data acquired by the equipment by adopting the rule to obtain target data;
sending the target data to the data destination.
2. The method of claim 1, wherein the data destination comprises a cross-platform data destination or a co-platform data destination.
3. The method of claim 1, wherein prior to obtaining the data destination configured for the rule, the method further comprises:
checking the connectivity of the data destination based on the connection mode of the data destination provided by the user;
in response to establishing a connection with the data destination, saving the data destination to a query list.
4. The method of claim 1, wherein the establishing a connection with the data destination based on the manner of connection of the data destination comprises:
establishing a connection with the data destination based on a certificate or username password configured with the data destination.
5. The method of claim 4, wherein the establishing a connection with the data destination based on the manner of connection of the data destination further comprises:
in response to establishing a connection with the data destination based on the username password configured with the data destination, encrypting the connection.
6. The method of claim 1, wherein the device is an internet of things device.
7. The method of any of claims 1-6, the rule comprising any of:
filtering, format adjustment and calculation.
8. An apparatus for data forwarding, wherein the apparatus comprises:
a rule acquisition module configured to acquire a rule for processing source data acquired by a device;
a destination acquisition module configured to acquire a data destination configured in the rule;
a connection module configured to establish a connection with the data destination based on a connection manner of the data destination provided by a user;
the data processing module is configured to process the source data acquired by the equipment by adopting the rule to obtain target data;
a sending module configured to send the target data to the data destination.
9. The apparatus of claim 8, wherein the data destination comprises a cross-platform data destination or a co-platform data destination.
10. The apparatus of claim 8, wherein the apparatus further comprises:
a connectivity test module configured to check connectivity of the data destination based on a connection manner of the data destination provided by a user before acquiring the data destination configured in the rule;
a list query module configured to save the data destinations to a query list in response to establishing a connection with the data destinations.
11. The apparatus of claim 8, wherein the connection module is further configured to:
establishing a connection with the data destination based on a certificate or username password configured with the data destination.
12. The apparatus of claim 11, the connection module further comprising:
an encryption module configured to encrypt the connection mode in response to establishing a connection with the data destination based on a username password configured to the data destination.
13. The apparatus of claim 8, the device being an internet of things device.
14. The apparatus of any of claims 8-13, the rule comprising any of:
filtering, format adjustment and calculation.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-7.
CN202011359645.6A 2020-11-27 2020-11-27 Data forwarding method, device, equipment and storage medium Pending CN112532720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011359645.6A CN112532720A (en) 2020-11-27 2020-11-27 Data forwarding method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011359645.6A CN112532720A (en) 2020-11-27 2020-11-27 Data forwarding method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112532720A true CN112532720A (en) 2021-03-19

Family

ID=74994257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011359645.6A Pending CN112532720A (en) 2020-11-27 2020-11-27 Data forwarding method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112532720A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824645A (en) * 2021-08-18 2021-12-21 北京百度网讯科技有限公司 Data transmission method, device, equipment and storage medium
CN114205389A (en) * 2021-12-08 2022-03-18 南方电网深圳数字电网研究院有限公司 Intelligent information screening method and device based on Internet of things
CN115460222A (en) * 2022-09-05 2022-12-09 蚂蚁区块链科技(上海)有限公司 Block chain data flow calculating device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859196A (en) * 2006-04-13 2006-11-08 吉林大学 Telecommunication field network data acquisition processing system based on rule and realizing method
CN109617815A (en) * 2019-01-14 2019-04-12 深圳市恒扬数据股份有限公司 Data collection system, method, apparatus and the terminal device of LTE core network
CN109639754A (en) * 2018-10-29 2019-04-16 南京南瑞继保电气有限公司 A kind of implementation method of dispatching of power netwoks gateway Data Audit
CN111049762A (en) * 2019-12-23 2020-04-21 上海金仕达软件科技有限公司 Data acquisition method and device, storage medium and switch
CN111061807A (en) * 2019-11-23 2020-04-24 方正株式(武汉)科技开发有限公司 Distributed data acquisition and analysis system and method, server and medium
CN111241177A (en) * 2019-12-31 2020-06-05 中国联合网络通信集团有限公司 Data acquisition method, system and network equipment
CN111506921A (en) * 2020-04-17 2020-08-07 浙江同花顺智能科技有限公司 Data processing method, system, device, terminal and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859196A (en) * 2006-04-13 2006-11-08 吉林大学 Telecommunication field network data acquisition processing system based on rule and realizing method
CN109639754A (en) * 2018-10-29 2019-04-16 南京南瑞继保电气有限公司 A kind of implementation method of dispatching of power netwoks gateway Data Audit
CN109617815A (en) * 2019-01-14 2019-04-12 深圳市恒扬数据股份有限公司 Data collection system, method, apparatus and the terminal device of LTE core network
CN111061807A (en) * 2019-11-23 2020-04-24 方正株式(武汉)科技开发有限公司 Distributed data acquisition and analysis system and method, server and medium
CN111049762A (en) * 2019-12-23 2020-04-21 上海金仕达软件科技有限公司 Data acquisition method and device, storage medium and switch
CN111241177A (en) * 2019-12-31 2020-06-05 中国联合网络通信集团有限公司 Data acquisition method, system and network equipment
CN111506921A (en) * 2020-04-17 2020-08-07 浙江同花顺智能科技有限公司 Data processing method, system, device, terminal and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
永栀哇: ""使用规则引擎将一个设备的数据转发到另一个设备"", 《HTTPS://BLOG.CSDN.NET/QQ_37281984/ARTICLE/DETAILS/90030470》 *
阿里云: ""设备消息通过RocketMQ流转到服务器"", 《HTTPS://WWW.CONCORD-PUBLICATIONS.COM/POST/?ID=5906》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824645A (en) * 2021-08-18 2021-12-21 北京百度网讯科技有限公司 Data transmission method, device, equipment and storage medium
CN114205389A (en) * 2021-12-08 2022-03-18 南方电网深圳数字电网研究院有限公司 Intelligent information screening method and device based on Internet of things
CN114205389B (en) * 2021-12-08 2023-12-01 南方电网数字平台科技(广东)有限公司 Information intelligent screening method and device based on Internet of Things
CN115460222A (en) * 2022-09-05 2022-12-09 蚂蚁区块链科技(上海)有限公司 Block chain data flow calculating device

Similar Documents

Publication Publication Date Title
KR102300865B1 (en) Unified provisioning of applications on devices in an enterprise system
CN112532720A (en) Data forwarding method, device, equipment and storage medium
US9455888B2 (en) Application topology based on network traffic
EP3391616B1 (en) Device management with tunneling
CN107710684B (en) System and method for constructing super-large scale monitoring structure
US9123017B2 (en) Systems and methods for network inventory management utilizing mobile technology
CN112000365A (en) Service grid configuration method, device, equipment and medium based on micro-service architecture
CN111327451B (en) System for identifying and assisting in the creation and implementation of network service configurations using Hidden Markov Models (HMMs)
CN108965242B (en) Method, system and computer readable storage medium for role-based control
CN111930521A (en) Method and device for deploying application, electronic equipment and readable storage medium
US11855833B2 (en) Device-driven management workflow status and impact
US20220231921A1 (en) User interface tools for device-driven management workflows
US11909845B2 (en) Methods and systems for managing applications of a multi-access edge computing environment
US10841242B2 (en) Systems and methods to scale a network monitoring fabric
US20230393858A1 (en) Techniques for bootstrapping across secure air gaps with static sidecar
US20230396590A1 (en) Techniques for bootstrapping across secure air gaps with proxying sidecar
US20220103415A1 (en) Remote network and cloud infrastructure management
CN112565225B (en) Method and device for data transmission, electronic equipment and readable storage medium
CN110659330A (en) Data processing method, device and storage medium
CN111770176B (en) Traffic scheduling method and device
CN112084000A (en) Container cluster testing method and device
US11381665B2 (en) Tracking client sessions in publish and subscribe systems using a shared repository
CN115277428A (en) Method and apparatus for configuring a network
Abelem et al. FIT@ BR-a Future Internet Testbed in Brazil
CN112527635A (en) Fault injection method and device, electronic equipment and storage medium

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: 20210319

RJ01 Rejection of invention patent application after publication