This invention discloses a method for reconfigurable modular data plane pipeline
assembly and deterministic execution based on XDP. The method includes: generating a Profile configuration file based on the target application
scenario, wherein the Profile configuration file describes the module information of the modules to be assembled; obtaining the target information of all modules to be assembled through a
loader based on the pre-configured self-describing
metadata of the modules, and generating an
assembly input
list; loading and
parsing the Profile configuration file to generate a mapping relationship from stages to module entry points, and writing the mapping relationship into a stage scheduling table; reading the stage scheduling table through the XDP entry scheduler,
jumping to the execution
entry point of the corresponding module according to the stage scheduling table, and scheduling the execution of the ingress stage chain and the egress stage chain of modules in sequence. This invention abstracts structural changes such as inserting new functional segments, deleting modules, rearranging execution order, and separating ingress and egress
processing chains into an
assembly problem, thus making it more suitable for building service chains and traffic weaving in physical networks.