A method for fitting and matching network programming logic functions and network resources based on resource capability representation
By constructing a model representation of resource types and capabilities and resource fitting and matching, the problem of running logical functions on heterogeneous devices in programmable networks is solved, and network efficiency and resource utilization are improved.
Patent Information
- Application Number
- CN202410968709.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-19
AI Technical Summary
In programmable networks, it is difficult to determine whether network programming logic functions can run on devices with heterogeneous capabilities, and how to run them efficiently becomes a key issue.
By constructing a model representation of resource types and capabilities, analyze the data plane logic to determine the required resource types and capabilities, perform resource fitting and capability matching operations, and output the fitting results to deploy network programming logic functions in network resources. run.
It achieves reasonable decomposition of data plane logical functions and deploys them to matching network resources, greatly improving network efficiency and resource utilization.
Smart Images

Figure CN118519642B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network programming deployment, and in particular to a method for fitting and matching network programming logic functions and network resources based on resource capability expression. Background Art
[0002] With the development of network technology, programmable networks continue to grow and develop in user-customized applications, and programmable networks also encounter many new challenges. Usually in programmable networks, network programming languages such as P4 (Programming Protocol-independent Packet Processor) are used to program the logic and functions that the network needs to run, and the compiler then compiles the generated programming source files, which are then run in the devices in the network.
[0003] At present, network resource devices that run network logic functions in a programmable way are changing with each passing day, and there are many types. Network devices with different architectures and capabilities often exist in the same network topology. Therefore, when using a network programming language to complete the programming of a network's logic functions, it is impossible to determine whether the current logic functions can be run in the network, and it is impossible to make a decision. Therefore, whether a network programming can be run on different network devices (that is, the logic functions are distributed on heterogeneous and heterogeneous devices with different capabilities in the network), and how to run it efficiently, has become a key issue that needs to be solved urgently. Summary of the invention
[0004] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide a method for fitting and matching network programming logic functions and network resources based on resource capability expression, which can realize the deployment of data plane logic functions according to the resource capabilities of the equipment and reasonably decompose the data plane logic functions into suitable network resources.
[0005] The purpose of the present invention can be achieved through the following technical solutions: a method for fitting and matching network programming logic functions and network resources based on resource capability representation, including constructing a model representation of resource types and capabilities; parsing data plane logic to determine the required resource types and capabilities; performing resource fitting and capability matching operations, and outputting fitting results for deploying network programming logic functions in network resources and running them.
[0006] Furthermore, the process of constructing a model representation of resource types and capabilities includes: classifying the types of resources in the network and evaluating the resource processing capabilities to construct a model representation method suitable for network data plane capability evaluation, including a data plane programming capability model and a control plane traffic capability model. The data plane programming capability model uses three dimensions of parsing capability, matching capability and function to express the data plane logical processing capability of resources based on the differences in the types of device resources; the control plane traffic capability model includes the control plane data scale and interface support capability.
[0007] Furthermore, the parsing capability expression includes parsing length, parsing accuracy, parsing level, parsing scale, maximum offset and recording mode, wherein the parsing length indicates the maximum length that can be parsed at one time during the network data plane parsing process;
[0008] Parsing accuracy refers to the minimum accuracy that can be extracted in one parsing during the network data plane parsing process, counted in bits;
[0009] The parsing level indicates that during the network data plane parsing process, the data plane message is parsed once, which is called level 1. The parsing level is the maximum number of times the message is parsed during the parsing process.
[0010] The parsing scale indicates the scale of all types of data plane messages that can be parsed during the network data plane parsing process;
[0011] The maximum offset indicates the maximum offset length of the data plane message from the message header that can be parsed during the network data plane parsing process;
[0012] The recording method indicates the method and storage capacity of recording the data plane parsing fields during the network data plane parsing process.
[0013] Furthermore, the matching capability expression includes matching length, matching accuracy, matching times, matching level, matching mode and matching scale, wherein the matching length indicates the maximum length that can be matched at one time during the data plane field matching process;
[0014] Matching accuracy refers to the minimum accuracy that can be extracted in a match during the network data plane matching process, counted in bits;
[0015] The number of matches indicates the number of times the data plane message matches the field in the same matching process during the network data plane matching process;
[0016] The matching level indicates that in the network data plane matching process, one process of data plane message matching is called level one, and the number of matching processes is called the matching level;
[0017] The matching scale indicates the scale of all types of data plane messages that can be matched during the network data plane matching process;
[0018] The matching method is the way in which the field matches the target value during the network data plane matching process, including exact matching, minimum value matching, and three-state matching.
[0019] Furthermore, the functional description includes data operations on data messages: operator operations (addition or subtraction), forwarding operations, storage data, calculation operations, encryption and decryption operations, global variable or local variable operations, register operations, and timer operations.
[0020] Further, the control plane data size represents the maximum number of control data items that can be sent by the control plane;
[0021] The interface support capability includes a standard interface format for communication and transmission between the control plane and the device.
[0022] Furthermore, the process of parsing the data plane logic to determine the required resource types and capabilities includes: parsing the data plane logic code according to the network resource type and capability model, and extracting the network resource types and capability requirements required by the current logic code, including the parsing capability of the required network resources, the matching capability of the required network resources, and the functions contained in the data plane logic code.
[0023] Furthermore, the resource fitting and capability matching operation includes the following matching process:
[0024] S1. According to the types of resources and capabilities of the network, the network resources and capabilities required by the refined data plane code are matched to complete the data processing of the data plane logic function;
[0025] S2. Match the parsing capability of network resources with the parsing capability required by the logical functions of the network data plane;
[0026] S3. According to the matching capability of the network resources, match it with the matching capability required by the logical function of the network data plane.
[0027] Furthermore, the matching process step S1 specifically includes parsing capability verification, matching capability verification, and functional capability verification; for a single network resource, a fitting match is performed between the resource type and capability with a logical function after the data plane is disassembled. If the match is successful, the current logical function is processed on the current network resource, otherwise continue to search for the next network resource.
[0028] Furthermore, the matching process step S2 is specifically as follows: for the resolution length, resolution accuracy, resolution level, resolution scale, maximum offset and recording method of the resolution capability, if the resolution capability required by the logical function of the network data plane is less than or equal to the resolution capability provided by the network resources, the resolution capability matching is passed; otherwise, the resolution capability provided by the current network resources cannot meet the resolution capability required by the logical function of the network data plane.
[0029] Furthermore, the matching process step S3 is specifically as follows: for the matching length, matching accuracy, matching times, matching level, matching method and matching scale of the matching capability, if the matching capability required by the logical function of the network data plane is less than or equal to the matching capability provided by the network resources, the matching capability is matched; otherwise, the matching capability provided by the current network resources cannot meet the matching capability required by the logical function of the network data plane.
[0030] Compared with the prior art, the present invention has the following advantages:
[0031] The present invention is based on the description of network resource capabilities, by constructing a model representation of resource types and capabilities; by parsing the data plane logic, the resource types and capabilities required by the data plane are extracted, and then the corresponding network device resources are matched with functions to realize the deployment of data plane logic functions according to the resource capabilities of the device. In this way, the logical functions of the data plane can be reasonably decomposed and deployed to matching network resources, greatly improving network efficiency and resource utilization.
[0032] The present invention classifies the types of resources in the network and evaluates the resource processing capabilities to construct a model expression method suitable for network data plane capability evaluation, including a data plane programming capability model and a control plane traffic capability model, wherein the data plane programming capability model uses three dimensions of parsing capability, matching capability and function to express the data plane logic processing capability of resources according to the type differences of equipment resources; the control plane traffic capability model includes the control plane data scale and interface support capability. In this way, a model expression of network resources can be fully, comprehensively and accurately constructed, which is conducive to the subsequent accurate and reliable fitting and matching with data logic.
[0033] The present invention analyzes the logic code of the data plane to extract the types of network resources and capability requirements required by the current logic code, including: the parsing capability of the required network resources, the matching capability of the required network resources, and the functions contained in the logic code of the data plane. Then, the corresponding models of the network data plane capability assessment are matched, which can effectively ensure the accuracy of the fitting results. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a schematic diagram of the method flow of the present invention;
[0035] Figure 2 This is an overall flow chart of the method for decomposing and deploying data plane logical functions in Example 2;
[0036] Figure 3 The data plane and control plane capabilities of the programmable network in the second embodiment are described;
[0037] Figure 4 It is a description of the programmable network data plane parsing capability in Example 2;
[0038] Figure 5 It is a description of the programmable network data plane matching capability in Example 2;
[0039] Figure 6 The network resource and data plane logical function fitting matching process in the second embodiment;
[0040] Figure 7 The network resource and data plane logical capability matching process in the second embodiment;
[0041] Figure 8 This is the network resource and logic function analysis capability matching process in Example 2;
[0042] Fig. 9 This is the network resource and logical function matching capability matching process in Example 2. DETAILED DESCRIPTION
[0043] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0044] Embodiment 1
[0045] like Figure 1 As shown, a method for fitting and matching network programming logic functions and network resources based on resource capability representation includes constructing a model representation of resource types and capabilities; parsing data plane logic to determine the required resource types and capabilities; performing resource fitting and capability matching operations, and outputting fitting results for deploying and running network programming logic functions in network resources.
[0046] Specifically, when constructing a model representation of resource types and capabilities, by classifying the types of resources in the network and evaluating the resource processing capabilities, a model representation method suitable for network data plane capability evaluation was constructed. The capability evaluation representation is divided into two aspects, data plane programming and control plane traffic. The data plane programming capability model uses three dimensions of parsing capability, matching capability, and function to describe the data plane logical processing capability of resources based on the differences in the types of equipment resources; the control plane traffic capability model includes the control plane data scale and interface support capability.
[0047] Among them, the parsing capability is expressed from six perspectives, including parsing length, parsing accuracy, parsing level, parsing scale, maximum offset and recording method. The parsing length indicates the maximum length that can be parsed at one time during the network data plane parsing process; the parsing accuracy indicates the minimum accuracy that can be extracted in one parsing during the network data plane parsing process, counted in bits; the parsing level indicates that during the network data plane parsing process, the data plane message parsing is called one level, and the parsing level is the maximum number of times it is parsed during the parsing process; the parsing scale indicates the scale of all types of data plane messages that can be parsed during the network data plane parsing process; the maximum offset indicates the maximum length of the offset that can be parsed to the data plane message from the message header during the network data plane parsing process; the recording method indicates the method and storage capacity that can record the data plane parsing field during the network data plane parsing process;
[0048] The matching capability is expressed from six aspects: matching length, matching accuracy, matching times, matching level, matching method and matching scale. Matching length indicates the maximum length that can be matched at one time during the data plane field matching process; matching accuracy indicates the minimum accuracy that can be extracted in one match during the network data plane matching process, which is counted in bits; matching times indicates the number of times the data plane message is matched with a field during the same matching process during the network data plane matching process; matching level indicates that during the network data plane matching process, one process of data plane message matching is called level one, and the number of matching processes is called matching level; matching scale indicates the scale of the collection of all types of data plane messages that can be matched during the network data plane matching process; matching method refers to the way in which a field matches a target value during the network data plane matching process, which generally includes exact matching, minimum value matching and three-state matching.
[0049] The functions include data operations on data messages, mainly including operator operations (addition or subtraction), forwarding operations, data storage, calculation operations, encryption and decryption operations, global variable or local variable operations, register operations, timer operations, etc.
[0050] In the control plane traffic capability model, the control plane data size indicates the maximum number of control data items that can be sent by the control plane; the interface support capability includes the standard interface format for communication and transmission between the control plane and the device.
[0051] When parsing the data plane logic to determine the required resource types and capabilities, the data plane logic code is parsed according to the network resource type and capability model to extract the network resource types and capability requirements required by the current logic code, including the required network resource parsing capabilities, the required network resource matching capabilities, and the functions included in the data plane logic code.
[0052] When performing resource fitting and capability matching operations, it includes:
[0053] On the one hand, according to the resource types and capabilities of the network, the network resources and capabilities required by the refined data plane code need to be matched to complete the data processing of the data plane logic function. The matching process of the network and data plane functions includes parsing capability verification, matching capability verification, and functional capability verification. For a single network resource, a matching of resource types and capabilities is performed with a logical function after the data plane is disassembled. If the match is successful, the current logical function is processed on the current network resource, otherwise continue to search for the next network resource.
[0054] On the other hand, the parsing capability of the network resources is matched with the parsing capability required by the logical function of the network data plane. If the parsing capability required by the logical function of the network data plane is less than or equal to the parsing capability provided by the network resources, the parsing capability match is passed. Otherwise, the parsing capability provided by the current network resources cannot meet the parsing capability required by the logical function of the network data plane.
[0055] In addition, the matching capability of the network resources is matched with the matching capability required by the logical function of the network data plane. If the matching capability required by the logical function of the network data plane is less than or equal to the matching capability provided by the network resources for each capability representation such as the matching length, matching accuracy, matching times, matching level, matching method and matching scale, the matching capability is matched. Otherwise, the matching capability provided by the current network resources cannot meet the matching capability required by the logical function of the network data plane.
[0056] Embodiment 2
[0057] In this embodiment, the technical solution described in the embodiment is applied. The logical functions expressed by the general network programming language P4 are used to enable the logical functions to be reasonably deployed and run on demand in the network resources in a given network resource device. First, the logical functions expressed by the network programming language P4 are logically sliced and the capabilities are extracted, the network resources are resource-functionally sliced and the capability description is abstracted, and the required capabilities of the logical functions expressed by the network programming language P4 and the capabilities provided by the network resources are described using a unified capability description method. Then, the capabilities of the logical slices and resource function slices are matched and fitted, thereby realizing the capability judgment and capability decomposition matching of the network programming logical functions.
[0058] like Figure 2As shown, the device capability description file represents the devices in the current network resources, and the capabilities of the network resource devices are described according to the network resource capability description method. By reading the file, the resource devices are sliced according to the capabilities. The data plane programming file is a logical function expressed in the general network programming language P4. The data plane is sliced for logical functions, and the required capabilities are extracted from the logical function slices. Then, the required capabilities of the logical function slices are matched with the capabilities provided by the network resource device slices. If the capabilities match, the current slice of the network resource device is used to process the logical function slice, otherwise the next device slice is selected for capability matching until the appropriate network resource device slice is matched.
[0059] exist Figure 3 The data plane and control plane capability descriptions of programmable networks are included. In new programmable networks, the data plane usually uses programmable languages to describe network logic functions, and uses P4 language to program network logic functions. The control plane uses flow table files to control the execution of traffic. The programmable network data plane capability description includes parsing capability, matching capability, and functional description. The programmable network control plane capability description includes network scale and interface capability.
[0060] like Figure 4 As shown, the programmable network data plane parsing capability is expressed from six perspectives: parsing length, parsing accuracy, parsing level, parsing scale, maximum offset, and recording method. The parsing length indicates the maximum length that can be parsed at one time during the network data plane parsing process; the parsing accuracy indicates the minimum accuracy that can be extracted at one time during the network data plane parsing process, counted in bits; the parsing level indicates that during the network data plane parsing process, the data plane message parsing is called one level, and the parsing level is the maximum number of times it is parsed during the parsing process; the parsing scale indicates the scale of all types of data plane messages that can be parsed during the network data plane parsing process; the maximum offset indicates the maximum length of the offset that can be parsed from the message header of the data plane message during the network data plane parsing process; the recording method indicates the method and storage capacity that can record the data plane parsing field during the network data plane parsing process.
[0061] like Figure 5As shown in the figure, the programmable network data plane matching capability includes six aspects: matching length, matching accuracy, matching times, matching level, matching method and matching scale. Among them, the matching length indicates the maximum length that can be matched at one time during the data plane field matching process; the matching accuracy indicates the minimum accuracy that can be extracted in one match during the network data plane matching process, which is counted in bits; the matching times indicates the number of times the data plane message matches the field during the same matching process during the network data plane matching process; the matching level indicates that during the network data plane matching process, one process of data plane message matching is called level one, and the number of matching processes is called the matching level; the matching scale indicates the scale of all types of data plane messages that can be matched during the network data plane matching process; the matching method is the way in which the field matches the target value during the network data plane matching process, which generally includes exact matching, minimum value matching and three-state matching.
[0062] The logical functions and control functions of the programmable network need to be matched and deployed on various heterogeneous devices in the network. The process is as follows: Figure 6 As shown. The logical function of the data plane in the programmable network is sliced into sub-logical functions according to its logic. The sub-logical function and network resource device capability matching process first requires all resources of the network scenario to be prepared, and the capability of each resource device is expressed according to the above model to form a configuration file. The capabilities of all resource devices are sorted and prioritized to determine the logical function deployment order of the resource devices. According to the programming slice of the current data plane logical function, one of the network resource devices is selected according to the priority sorting, and the corresponding control plane flow table is selected, and then fixed function matching is performed. After the fixed function matching, special function matching is performed, and after the special function matching, performance matching is performed, and after the performance matching, common capability matching is performed. The results of the above matching process are recorded. If the matching is successful after recording, the device matching of the next logical function slice is performed, otherwise the device is reselected for matching.
[0063] The common capabilities of the logic function and control function of the programmable network are matched. The process is as follows: Figure 7As shown, firstly, the resource file is parsed according to the configuration of the network resources, and the logical function slices of the programmable network data plane are refined; the network resource device 1 is selected according to the priority, and the parsing capability matching judgment is first performed. If it is not satisfied, the verification is completed and the next network resource device 2 is selected; if the parsing capability is satisfied, the matching capability matching judgment is performed. If it is not satisfied, the verification is completed and the next network resource device 2 is selected; if the matching capability is satisfied, the control plane capability matching judgment is performed. If it is not satisfied, the verification is completed and the next network resource device 2 is selected; if the verification passes, the logical function slices of the current programmable network data plane can be run in the current device; start device selection for the logical function slice of the next programmable network data plane.
[0064] The analytical capability judgment of the logic function and control function of the programmable network, the analytical capability verification process is as follows Figure 8 As shown, first determine the parsing length, whether the parsing length required by the data plane is less than the parsing length of the device. If it is satisfied, enter the parsing accuracy judgment, otherwise the verification ends, and the parsing capability of the current device does not meet the parsing capability required by the data plane. After entering the parsing accuracy judgment process, determine whether the parsing accuracy required by the data plane is less than the parsing accuracy of the device. If it is satisfied, enter the parsing level judgment, otherwise the verification ends, and the parsing capability of the current device does not meet the parsing capability required by the data plane. After entering the parsing level judgment process, determine whether the parsing level required by the data plane is less than the parsing level of the device. If it is satisfied, enter the parsing scale judgment, otherwise the verification ends, and the parsing capability of the current device does not meet the parsing capability required by the data plane. After entering the parsing scale judgment process, determine whether the parsing scale of the data plane is less than the parsing scale of the device. If it is satisfied, enter the maximum offset judgment, otherwise the verification ends, and the parsing capability of the current device does not meet the parsing capability required by the data plane. After entering the maximum offset judgment process, determine whether the maximum offset required to be parsed by the data plane is less than the maximum offset that the device can parse. If it is satisfied, enter the recording mode judgment, otherwise the verification ends, and the parsing capability of the current device does not meet the parsing capability required by the data plane. After entering the recording mode judgment process, determine whether the recording mode required by the data plane is included in the recording modes supported by the device. If so, the verification passes, otherwise the verification ends and the parsing capability of the current device does not meet the parsing capability required by the data plane.
[0065] The matching capability judgment of the logic function and control function of the programmable network, the matching capability verification process is as follows Fig. 9As shown, first determine the matching length, whether the matching length required by the data plane is less than the matching length of the device. If it is satisfied, enter the matching accuracy judgment, otherwise the verification ends, and the matching capability of the current device does not meet the matching capability required by the data plane. After entering the matching accuracy judgment process, determine whether the matching accuracy required by the data plane is less than the matching accuracy of the device. If it is satisfied, enter the matching number judgment, otherwise the verification ends, and the matching capability of the current device does not meet the matching capability required by the data plane. After entering the matching number judgment process, determine whether the matching number required by the data plane is less than the matching number of the device. If it is satisfied, enter the matching level judgment, otherwise the verification ends, and the matching capability of the current device does not meet the matching capability required by the data plane. After entering the matching level judgment process, determine whether the matching level of the data plane is less than the matching level of the device. If it is satisfied, enter the matching method judgment, otherwise the verification ends, and the matching capability of the current device does not meet the matching capability required by the data plane. After entering the matching method judgment process, determine whether the matching method required by the data plane is included in the matching method supported by the device. If it is satisfied, enter the matching scale judgment, otherwise the verification ends, and the matching capability of the current device does not meet the matching capability required by the data plane. After entering the matching scale judgment process, determine whether the matching scale required by the data plane is smaller than the matching scale that the device can match. If it is satisfied, the verification passes; otherwise, the verification ends and the matching capability of the current device does not meet the matching capability required by the data plane.
[0066] Therefore, based on the network logic function representation and network resource capability expression of the network programming language P4, the processing capability provided by the network resources is compared and matched with the processing capability required by the logic function through the resource capability expression, thereby improving the network efficiency and resource utilization.
Claims
1. A method for fitting and matching network programming logic functions and network resources based on resource capability expression, characterized in that: It includes building a model representation of resource types and capabilities; parsing data plane logic to determine the required resource types and capabilities; performing resource fitting and capability matching operations, and outputting fitting results for deploying network programming logic functions in network resources and running them; The process of constructing a model representation of resource types and capabilities includes: classifying the types of resources in the network and evaluating the resource processing capabilities to construct a model representation method suitable for network data plane capability evaluation, including a data plane programming capability model and a control plane traffic capability model. The data plane programming capability model uses three dimensions of parsing capability, matching capability and function to describe the data plane logical processing capability of resources according to the differences in the types of device resources; the control plane traffic capability model includes control plane data scale and interface support capability, the control plane data scale represents the maximum number of control data items that can be sent by the control plane; the interface support capability includes a standard interface format for communication and transmission between the control plane and the device; The process of parsing the data plane logic to determine the required resource types and capabilities includes: parsing the data plane logic code according to the network resource type and capability model, and extracting the network resource types and capability requirements required by the current logic code, including the required network resource parsing capability, the required network resource matching capability, and the functions included in the data plane logic code; The resource fitting and capability matching operation includes the following matching process: S1. According to the types of resources and capabilities of the network, the network resources and capabilities required by the refined data plane code are matched to complete the data processing of the data plane logic function; S2. Match the parsing capability of network resources with the parsing capability required by the logical functions of the network data plane; S3. According to the matching capability of the network resources, match it with the matching capability required by the logical function of the network data plane.
2. According to claim 1, a method for fitting and matching network programming logic functions and network resources based on resource capability expression is characterized in that: The parsing capability description includes parsing length, parsing accuracy, parsing level, parsing scale, maximum offset and recording mode, wherein the parsing length indicates the maximum length that can be parsed at one time during the network data plane parsing process; Parsing accuracy refers to the minimum accuracy that can be extracted in one parsing during the network data plane parsing process, counted in bits; The parsing level indicates that during the network data plane parsing process, the data plane message parsing is called level one, and the parsing level is the maximum number of times it is parsed during the parsing process; The parsing scale indicates the scale of all types of data plane messages that can be parsed during the network data plane parsing process; The maximum offset indicates the maximum offset length of the data plane message from the message header that can be parsed during the network data plane parsing process; The recording method indicates the method and storage capacity of recording the data plane parsing fields during the network data plane parsing process.
3. According to claim 2, a method for matching network programming logic functions with network resources based on resource capability expression, characterized in that: The matching capability description includes matching length, matching accuracy, matching times, matching level, matching mode and matching scale, wherein the matching length indicates the maximum length that can be matched at one time during the data plane field matching process; Matching accuracy refers to the minimum accuracy that can be extracted in a match during the network data plane matching process, counted in bits; The number of matches indicates the number of times the data plane message matches the field in the same matching process during the network data plane matching process; The matching level indicates that in the network data plane matching process, one process of data plane message matching is called level one, and the number of matching processes is called the matching level; The matching scale indicates the scale of all types of data plane messages that can be matched during the network data plane matching process; The matching method is the way in which the field matches the target value during the network data plane matching process, including exact matching, minimum value matching, and three-state matching.
4. According to claim 3, a method for fitting and matching network programming logic functions and network resources based on resource capability expression is characterized in that: The functional description includes data operations on the data message: operator operation, forwarding operation, storage data, calculation operation, encryption and decryption operation, global variable or local variable operation, register operation, and timer operation.
5. According to claim 1, a method for fitting and matching network programming logic functions and network resources based on resource capability expression is characterized in that: The matching process step S1 specifically includes parsing capability verification, matching capability verification, and functional capability verification; For a single network resource, a matching of resource type and capability is performed with a logical function after decomposition from the data plane. If the match is successful, the current logical function is processed on the current network resource. Otherwise, the search for the next network resource continues.
6. The method for fitting and matching network programming logic functions and network resources based on resource capability expression according to claim 1, characterized in that: The matching process step S2 specifically includes: for the parsing length, parsing accuracy, parsing level, parsing scale, maximum offset and recording mode of the parsing capability, if the parsing capability required by the logical function of the network data plane is less than or equal to the parsing capability provided by the network resource, then the parsing capability matching is passed; Otherwise, the parsing capability provided by the current network resources cannot meet the parsing capability required by the logical functions of the network data plane.
7. According to claim 1, a method for fitting and matching network programming logic functions and network resources based on resource capability expression is characterized in that: The matching process step S3 is specifically as follows: for the matching length, matching accuracy, matching times, matching level, matching method and matching scale of the matching capability, if the matching capability required by the logical function of the network data plane is less than or equal to the matching capability provided by the network resource, the matching capability is matched; otherwise, the matching capability provided by the current network resource cannot meet the matching capability required by the logical function of the network data plane.
Citation Information
Patent Citations
Programmable data plane virtual layer construction method and storage medium
CN108306757A
Network capability opening method and system and electronic equipment
CN113271221A
Modal deployment method and modal deployment system of multi-modal network
CN116074208A
Resource constraint description system and method for programmable network element equipment
CN116610455A
User network modal cross-platform deployment implementation method and system based on abstract resource analysis
CN117492768A
