System, method, and apparatus for data query using network device
Abstract
A central node of the system is connected to a working node through a network device. The central node generates a plurality of tasks based on a query request input by a user. When allocating execution devices to the plurality of tasks, the central node configures execution devices of some tasks as the network device, configures execution devices of some tasks as the working node, and then sends configuration instructions to the configured network device and working node, to set, on the network device and the working node, tasks configured for the network device and working node. After configuration is completed, the network device executes the set tasks on the data that passes through the network device.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A data query system, comprising a central node, a working node, and a network device, wherein the central node is connected to the working node through the network device;
the central node is configured to: generate, based on a query request, a plurality of tasks for executing the query request; determine an execution device of each task in the plurality of tasks, wherein execution devices of the plurality of tasks comprise the working node and the network device; and send a setting instruction of each task, wherein the setting instruction is used to set, on each execution device, a task to be executed by the execution device; and the working node and the network device are configured to execute the set tasks.
2 . The system according to claim 1 , wherein being configured to determine the execution device of each task in the plurality of tasks includes being configured to: search for an offloadable task in the plurality of tasks, and determine that an execution device of the offloadable task is the network device, wherein the offloadable task is a preset task that is to be offloaded to the network device for execution.
3 . The system according to claim 2 , wherein the central node is configured to send a setting instruction of the offloadable task to the network device; and
the network device is configured to set the offloadable task based on the setting instruction.
4 . The system according to claim 1 , wherein the network device is a network interface card of the working node or a forwarding device, and the forwarding device comprises a switch and a router.
5 . The system according to claim 4 , wherein the forwarding device comprises a data port and a control port, and the central node is configured to: send a setting instruction of an offloadable task whose execution device is the forwarding device to the forwarding device through the control port, and send a setting instruction of a task whose execution device is the network interface card or the working node to the forwarding device through the data port; and
the forwarding device is configured to: set the offloadable task based on the setting instruction received from the control port, and forward the setting instruction received from the data port.
6 . The system according to claim 4 , wherein based on the network device that executes the offloadable task being the network interface card of the working node, the central node is configured to send the setting instruction of the offloadable task to the working node; and
the working node is configured to set the offloadable task on the network interface card of the working node based on the setting instruction.
7 . The system according to claim 6 , wherein the setting instruction of the offloadable task comprises an offloadable flag; and
the working node is configured to set the offloadable task on the network interface card of the working node after receiving the setting instruction and based on determining that the setting instruction comprises the offloadable flag.
8 . The system according to claim 2 , wherein after receiving a data packet and based on determining that the data packet comprises an identifier of the offloadable task executed by the network device, the network device is configured to execute the offloadable task based on the data packet.
9 . The system according to claim 3 , wherein based on being configured to send the setting instruction of the offloadable task to the network device, the central node is configured to send the setting instruction of the offloadable task to the network device after determining the offloadable task and based on determining that the offloadable task meets an offloading policy corresponding to the offloadable task.
10 . A data query method, applied to a network device, wherein the network device is configured to be connected to a central node and a working node, and the method comprises:
receiving a setting instruction, wherein the setting instruction is used to set, on the network device, a task that needs to be executed by the network device when a query request is executed; setting the task based on the setting instruction; and executing the task on data that passes through the network device.
11 . The method according to claim 10 , wherein the network device is a network interface card of the working node or a forwarding device, and the forwarding device comprises a switch and a router.
12 . The method according to claim 11 , wherein the forwarding device comprises a data port and a control port, and the method further comprises:
setting, on the forwarding device based on a setting instruction received from the control port, an offloadable task indicated by the setting instruction; and forwarding a setting instruction received from the data port.
13 . The method according to claim 10 , wherein the executing the task on data that passes through the network device comprises:
after receiving a data packet and based on determining that the data packet comprises an identifier of the offloadable task executed by the network device, executing the offloadable task based on the data packet.
14 . A data query display interface, comprising:
a query command input area, used to receive a query request input by a user; a task display area, used to display a plurality of tasks that are generated based on the query request and that are for executing the query request; and an execution device display area, used to display an execution device of each task, wherein execution devices comprise a working node and a network device.
15 . The interface according to claim 14 , wherein
the query command input area, the task display area, and the execution device display area are displayed on a same interface.
16 . The interface according to claim 14 , wherein
the query command input area, the task display area, and the execution device display area are displayed on different interfaces.Join the waitlist — get patent alerts
Track US2023342399A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.