Method and device for evaluating forwarding capability of network switching device, and readable storage medium
By constructing the delay model of the processing module and the scheduling module in the network switching equipment, the processing delay and the scheduling delay are calculated, which solves the problem of inaccurate evaluation in the existing technology, achieves a more accurate forwarding capability evaluation, and supports more accurate network planning.
Patent Information
- Application Number
- PCT/CN2023/141655
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-19
- Filing Date
- 2023-12-25
- Publication Date
- 2024-10-24
AI Technical Summary
The existing network switching equipment forwarding capability evaluation method fails to accurately consider the impact of the processing module on the device service forwarding capability, resulting in inaccurate evaluation.
By deploying the processing module and the scheduling module in the network switching equipment, the processing module delay model and the scheduling module delay model are constructed respectively, and the processing delay and scheduling delay are calculated to obtain more accurate forwarding capability evaluation results.
It improves the accuracy of the forwarding capability assessment of network switching equipment, can more truly reflect the service capabilities of the equipment, and supports more accurate network planning and optimization.
Smart Images

Figure CN2023141655_24102024_PF_FP_ABST
Abstract
Description
Method, device and readable storage medium for evaluating forwarding capability of network switching equipment
[0001] Related applications
[0002] This application claims priority to Chinese patent application No. 202310459868.7 filed on April 19, 2023, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of computer network technology, and in particular to a method, device, and computer-readable storage medium for evaluating the forwarding capability of a network switching device. Background Art
[0004] Network service quality is a hot research topic in the networking field. To ensure network service quality and a positive user experience, mathematical models of the network data plane can be built to simulate modern network environments. These models can be designed based on specific business needs to assess network service quality, verify the user data plane of new networks, and assess capacity, supporting network planning and evaluation.
[0005] Currently, some models of the service capacity (or forwarding capacity) of network switching devices exist. For example, these models use different scheduling algorithms to determine service rates and delay factors to characterize the data processing capabilities of network switching devices. However, these mathematical models of network switching device forwarding capacity only analyze the forwarding capacity of the device from the perspective of the scheduling module within the network switching device, without considering the impact of the processing module on the device's service forwarding capacity. This results in inaccurate assessments of the forwarding capacity of network switching devices.
[0006] Summary of the Invention
[0007] The main purpose of this application is to provide a forwarding capability evaluation method, device, equipment and computer-readable storage medium for network switching equipment, aiming to provide a forwarding capability evaluation solution for network switching equipment to improve the accuracy of the evaluation of the forwarding capability of network switching equipment.
[0008] To achieve the above objectives, the present application provides a method for evaluating the forwarding capability of a network switching device. The network switching device is equipped with a processing module and a scheduling module for data flows. The method for evaluating the forwarding capability of the network switching device includes the following steps:
[0009] Acquire target parameter information of a target data stream, wherein the target parameter information includes a parameter value of the target data stream with respect to a first preset parameter and a parameter value with respect to a second preset parameter;
[0010] Substituting the parameter value of the first preset parameter in the target parameter information into a pre-built processing module delay model for calculation, to obtain an estimated processing delay of the target data stream in the processing module;
[0011] Substituting the parameter value of the second preset parameter in the target parameter information into a pre-built scheduling module delay model for calculation to obtain an estimated scheduling delay of the target data flow in the scheduling module;
[0012] An evaluation result of the forwarding capability of the network switching device for the target data flow is obtained according to the evaluation processing delay and the evaluation scheduling delay.
[0013] To achieve the above-mentioned purpose, the present application further provides a forwarding capability evaluation device for a network switching device, wherein a processing module and a scheduling module for data flow are deployed in the network switching device, and the forwarding capability evaluation device for the network switching device includes:
[0014] An acquisition module, configured to acquire target parameter information of a target data stream, wherein the target parameter information includes a parameter value of the target data stream with respect to a first preset parameter and a parameter value with respect to a second preset parameter;
[0015] a first calculation module, configured to substitute the parameter value of the first preset parameter in the target parameter information into a pre-built processing module delay model for calculation, and obtain an estimated processing delay of the target data stream in the processing module;
[0016] A second calculation module is configured to substitute the parameter value of the second preset parameter in the target parameter information into a pre-built scheduling module delay model for calculation to obtain an estimated scheduling delay of the target data flow in the scheduling module;
[0017] A determination module is used to obtain an evaluation result of the forwarding capability of the network switching device for the target data flow based on the evaluation processing delay and the evaluation scheduling delay.
[0018] To achieve the above-mentioned purpose, the present application also provides a forwarding capability evaluation device for a network switching device, wherein the forwarding capability evaluation device for the network switching device comprises: a memory, a processor, and a forwarding capability evaluation program for the network switching device stored on the memory and runnable on the processor. When the forwarding capability evaluation program for the network switching device is executed by the processor, the steps of the forwarding capability evaluation method for the network switching device as described above are implemented.
[0019] In addition, to achieve the above-mentioned purpose, the present application also proposes a computer-readable storage medium, on which a forwarding capability evaluation program of a network switching device is stored. When the forwarding capability evaluation program of the network switching device is executed by a processor, the steps of the forwarding capability evaluation method of the network switching device as described above are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] FIG1 is a schematic diagram of the structure of the hardware operating environment involved in the embodiment of the present application;
[0021] FIG2 is a flow chart of a first embodiment of a method for evaluating the forwarding capability of a network switching device according to the present invention;
[0022] FIG3 is a schematic diagram of a network scenario involved in an embodiment of the present application;
[0023] FIG4 is a schematic diagram of a forwarding model of a network switching device involved in an embodiment of the present application.
[0024] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0025] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0026] The latency experienced by data packets passing through network switching equipment is determined by the characteristics of the input service flow (also known as the data flow), the service capabilities of the network switching equipment itself, and the scheduling algorithm used by the network switching equipment. The characteristics of the input service flow are related to the service itself, while the scheduling algorithm is diverse and flexibly configurable. The service capabilities of the network switching equipment itself are determined by the equipment's design, generation, and manufacturing processes. However, due to the limitations of the network switching equipment's hardware and software, its service capabilities often deviate from its ideal design specifications. Therefore, determining the device's true service capabilities is crucial for subsequent research on both single-node latency and overall network latency.
[0027] Some studies have noted the discrepancy between the actual service capabilities of network switching equipment and ideal design specifications, and have proposed related models, primarily including the following two approaches. In deterministic network analysis, the latency of the device's processing module is set to a fixed value, assuming sufficient cache space. In measurement-based models, the equivalent service rate and delay factor of the network switching device are obtained through probing. Once obtained, these two parameters remain fixed. In both approaches, the service rate and delay are modeled as fixed values, independent of other factors such as packet length. However, in reality, the processing capacity of network switching equipment and other devices is related to factors such as packet length and traffic intensity. In the present embodiment, the processing delay of the processing module is not considered a fixed value. Instead, the processing module and the scheduling module in the network switching device are considered to be connected in series, and delay models are established for each module. The processing module's delay model is used to calculate the processing module's delay, and the scheduling module's delay is calculated from the scheduling module's delay model. The total network switching device delay is then calculated based on the processing module's delay and the scheduling module's delay. Based on this purpose, various embodiments of the present application are proposed.
[0028] As shown in FIG1 , FIG1 is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application.
[0029] The forwarding capability evaluation device of the network switching device in the embodiment of the present application can be a router or a switch, etc., and is not specifically limited here. The network switching device is deployed with a processing module and a scheduling module for data flow.
[0030] As shown in Figure 1, the forwarding capability evaluation device of the network switching device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0031] Those skilled in the art will understand that the device structure shown in FIG1 does not constitute a limitation on the forwarding capability evaluation device of a network switching device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0032] As shown in Figure 1 , memory 1005, a computer storage medium, may include an operating system, a network communication module, a user interface module, and a network switching device forwarding capability evaluation program. The operating system is a program that manages and controls device hardware and software resources and supports the execution of the network switching device forwarding capability evaluation program and other software or programs. In the device shown in Figure 1 , user interface 1003 is primarily used for data communication with clients; network interface 1004 is primarily used for establishing a communication connection with a server; and processor 1001 is configured to invoke the network switching device forwarding capability evaluation program stored in memory 1005 and execute the network switching device forwarding capability evaluation method described in various embodiments.
[0033] Based on the above structure, various embodiments of a method for evaluating the forwarding capability of a network switching device are proposed.
[0034] Refer to Figure 2, which is a flow chart of the first embodiment of the forwarding capability evaluation method of the network switching device of the present application. The embodiment of the present application provides an embodiment of the forwarding capability evaluation method of the network switching device. Although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here. The execution subject of the forwarding capability evaluation method of the network switching device of the present application is not limited in each embodiment. For the convenience of description below, the execution subject is omitted to explain each embodiment. In this embodiment, the forwarding capability evaluation method of the network switching device includes steps S10 to S40:
[0035] Step S10: Acquire target parameter information of a target data stream, wherein the target parameter information includes a parameter value of the target data stream with respect to a first preset parameter and a parameter value of a second preset parameter.
[0036] In this embodiment, a network switching device can be a device used to forward data streams in a network environment, such as a router or switch. Data streams enter its input port, undergo internal processing and scheduling, and are then output from its output port. The network switching device is deployed with a processing module and a scheduling module for the data streams. The processing module is used to process the data streams. For example, it examines the destination IP address contained in each data packet's header, maps the destination IP address to an output link, and forwards the data packet to the correct link based on the routing table. Another example is storage of input packets, flow instruction processing, and traffic shaping. The scheduling module is used to schedule the data streams. For example, after being output from the processing module, the data packet enters the queue of the output port scheduling module. Based on the priority level in the data packet's header, the data packet is added to different queues of the output port. The scheduling module is used to schedule the data packets in the different queues according to pre-set scheduling criteria.
[0037] When evaluating the forwarding capability of a network switching device for a particular data stream or group of data streams, that data stream or group of data streams is used as the target data stream. In this embodiment, there are no restrictions on the method for determining the target data stream, nor on the use of the forwarding capability evaluation results obtained, which can be configured based on the needs of the specific application scenario. A group of data streams can include multiple data streams, and a data stream can include multiple data packets.
[0038] In this embodiment, the network switching device's forwarding capability for data flows is evaluated by the total latency of the data flow processed by the network switching device. Total latency describes the time difference between a data packet in a data flow arriving at the network switching device and leaving the network switching device. In this embodiment, total latency includes both the processing latency of the data flow in the processing module and the scheduling latency in the scheduling module. In specific implementations, other types of latency may also be included, and this is not a limitation in this embodiment.
[0039] In the following, the parameter information of the target data stream is referred to as target parameter information for distinction. The target parameter information may include parameter values of the target data stream with respect to a first preset parameter and parameter values with respect to a second preset parameter. The first preset parameter is a pre-set parameter related to the processing capability of the evaluation processing module for the data stream, that is, the specific value of the data stream with respect to the first preset parameter will affect the processing delay of the data stream by the processing module. In this embodiment, there is no restriction on which parameters the first preset parameter specifically includes, and they can be selected as needed. The second preset parameter is a pre-set parameter related to the scheduling capability of the evaluation scheduling module for the data stream, that is, the specific value of the data stream with respect to the second preset parameter will affect the scheduling delay of the data stream by the scheduling module. In this embodiment, there is no restriction on which parameters the second preset parameter specifically includes, and they can be selected as needed. In this embodiment, there is no restriction on the number of the first preset parameter and the second preset parameter. In a specific implementation manner, the second preset parameter and the second preset parameter may be partially the same or completely different.
[0040] Step S20: Substitute the parameter value of the first preset parameter in the target parameter information into a pre-built processing module delay model for calculation to obtain an estimated processing delay of the target data stream in the processing module.
[0041] A processing module delay model can be pre-constructed. This processing module delay model can reflect the relationship between the processing delay of a data stream in the processing module and the parameter value of the data stream with respect to a first preset parameter. In this embodiment, the specific form of the processing module delay model is not limited. For example, it can be a formula or a complex data model. In specific implementations, the model construction method adopted varies depending on the specific form of the processing module delay model. In this embodiment, the construction method of the processing module delay model is not limited.
[0042] After obtaining the target parameter information of the target data stream, the parameter value of the first preset parameter in the target parameter information can be substituted into the processing module delay model for calculation to obtain the processing delay of the target data stream in the processing module. Since this processing delay is obtained through model estimation, it is hereinafter referred to as the evaluated processing delay for distinction.
[0043] In this embodiment, the processing delay of different data flows within a processing module is not treated as a fixed quantity. Instead, a processing module delay model is used to evaluate the processing delay of a data flow within the processing module based on the specific parameter values of the data flow. This means that the relationship between the processing module's processing delay and the parameters of the input data flow is taken into account, thereby making the final evaluation result of the network switching device's forwarding capability for the target data flow more accurate. The specific representation and construction method of the processing module delay model can solve the technical problem addressed by this embodiment, namely, achieving a more accurate final evaluation result of the network switching device's forwarding capability for the target data flow.
[0044] Step S30: Substitute the parameter value of the second preset parameter in the target parameter information into a pre-built scheduling module delay model for calculation to obtain the estimated scheduling delay of the target data flow in the scheduling module.
[0045] A scheduling module delay model can be pre-constructed. This scheduling module delay model can reflect the relationship between the scheduling delay of a data flow in the scheduling module and the parameter value of the data flow with respect to a second preset parameter. In this embodiment, the specific form of the scheduling module delay model is not limited. For example, it can be a formula or a complex data model. In specific implementations, the model construction method adopted varies depending on the specific form of the scheduling module delay model. In this embodiment, the construction method of the scheduling module delay model is also not limited.
[0046] After obtaining the target parameter information of the target data stream, the parameter value of the second preset parameter in the target parameter information can be substituted into the scheduling module delay model for calculation to obtain the scheduling delay of the target data stream in the scheduling module. Since this scheduling delay is obtained through model estimation, it is referred to as the evaluated scheduling delay below to distinguish it.
[0047] Step S40: Obtain an evaluation result of the forwarding capability of the network switching device for the target data flow according to the evaluation processing delay and the evaluation scheduling delay.
[0048] Both the evaluation processing delay and the evaluation scheduling delay reflect the forwarding capability of the network switching device for the target data flow. Therefore, in this embodiment, the forwarding capability evaluation result of the network switching device for the target data flow can be obtained based on the evaluation processing delay and the evaluation scheduling delay. The forwarding capability evaluation result can be expressed in various forms, such as directly using the total delay as the forwarding capability evaluation result, or calculating a capability value using the total delay as the forwarding capability evaluation result, which is not limited in this embodiment.
[0049] In one feasible implementation, the step S40 includes step S401: adding the evaluation processing delay, the evaluation scheduling delay and the preset node forwarding delay to obtain a total delay, and using the total delay as an evaluation result of the forwarding capability of the network switching device for the target data flow.
[0050] In a modern packet switching network scenario, after a data packet (also known as a data packet) departs from a source node, it will pass through a series of packet network switching devices and communication links before finally reaching the destination node. The main types of delays generated during the forwarding of data services within a packet switching network include node internal processing delay (also known as processing delay in the processing module of the network switching device), node internal queuing delay (also known as scheduling delay in the scheduling module of the network switching device), node forwarding delay, and link propagation delay. Among them, node forwarding delay refers to the time required for a node to make a data block enter the transmission medium from the node when sending data, that is, the total time required for a site to start sending a data frame and complete the sending of the data frame. Propagation delay refers to the time it takes for an electromagnetic signal or an optical signal to propagate a certain distance in a transmission medium. In this embodiment, the delay generated when the data stream passes through the network switching device is used as an indicator to evaluate the device forwarding service capability. The delays considered may include three types of delays: delay generated within the processing module, delay generated within the scheduling module, and node forwarding delay: D overall =D pro +D sche +D forw
[0051] Among them, D pro Represents the delay of the processing module, D sche Represents the delay of the scheduling module, D forw represents the node forwarding delay, D overall Represents the total delay of a data packet incurred in the switching device.
[0052] In this embodiment, for a network switching device deployed with a processing module and a scheduling module for a data flow, target parameter information of a target data flow is obtained, wherein the target parameter information includes a parameter value of a first preset parameter and a parameter value of a second preset parameter of the target data flow; the parameter value of the first preset parameter in the target parameter information is substituted into a pre-built processing module delay model for calculation to obtain an estimated processing delay of the target data flow in the processing module; the parameter value of the second preset parameter in the target parameter information is substituted into a pre-built scheduling module delay model for calculation to obtain an estimated scheduling delay of the target data flow in the scheduling module; and an evaluation result of the forwarding capability of the network switching device for the target data flow is obtained based on the evaluated processing delay and the evaluated scheduling delay. The forwarding capability evaluation scheme of the network switching device proposed in the embodiment of the present application not only considers the scheduling delay of the scheduling module, but also further considers the relationship between the processing delay of the processing module and the parameters of the input data flow, that is, the processing delay is evaluated by using a pre-built delay processing model, so that the final evaluation result of the forwarding capability evaluation of the network switching device for the target data flow is more accurate.
[0053] Based on the above-mentioned first embodiment, a second embodiment of the forwarding capability evaluation method of the network switching device of the present application is proposed. In this embodiment, the processing module delay model can reflect the relationship between the processing delay of the data flow in the processing module and the first preset parameter and the service rate parameter value of the processing module, and the scheduling module delay model can reflect the relationship between the scheduling delay of the data flow in the scheduling module and the second preset parameter and the service rate parameter value of the scheduling module. Among them, the service rate parameter value of the processing module can be determined in the process of constructing the processing module delay model, which represents the amount of data that the processing module can process per unit time (the unit of the data amount can be selected as needed, such as the number of data packets or the number of bits). The service rate parameter value of the scheduling module can be determined in the process of constructing the scheduling module delay model, which represents the amount of data that the scheduling module can schedule per unit time (the unit of the data amount can be selected as needed, such as the number of data packets or the number of bits).
[0054] In one feasible implementation, the method for evaluating the forwarding capability of a network switching device further includes steps S50 to S60:
[0055] Step S50: Acquire test data obtained by performing a data flow forwarding test on the network switching device.
[0056] In various embodiments of the present application, the device that performs the forwarding capability evaluation method for a network switching device may be referred to as an evaluation device for purposes of distinction. The test device that performs data flow forwarding testing on the network switching device may be an evaluation device or another device. In other words, the evaluation device may obtain test data from the evaluation device or another device, without limitation.
[0057] The data flow forwarding test may be to set the parameter information of the data flow and send the data flow to the network switching device. The obtained test data may be data that can reflect the forwarding delay of the network switching device for the data flow, which is not specifically limited in this embodiment.
[0058] Step S60: Calculate the service rate parameter value of the processing module and the service rate parameter value of the scheduling module according to the test data to construct the processing module delay model and the scheduling module delay model.
[0059] Since the test data can reflect the forwarding delay of the network switching equipment for the data flow, and the data flow has pre-set parameter information, the service rate parameter value of the processing module and the service rate parameter value of the scheduling module can be calculated based on the relationship between the set parameter information and the forwarding delay, thereby obtaining the processing module delay model and the scheduling module delay model.
[0060] In one feasible implementation, a first delay model to be constructed and a second delay model to be constructed can be pre-set, wherein the first delay model to be constructed reflects the relationship between the processing delay of the data stream in the processing module and the first preset parameter and the service rate parameter of the processing module, and the second delay model to be constructed reflects the relationship between the scheduling delay of the data stream in the scheduling module and the second preset parameter and the service rate parameter of the scheduling module. Compared with the constructed processing module delay model, the service rate parameter in the first delay model to be constructed is a variable, and the service rate parameter value in the processing module delay model is the specific value corresponding to the service rate parameter variable. That is, the specific value of the service rate parameter in the first delay model to be constructed needs to be calculated. After determining the specific value of the service rate parameter in the first delay model to be constructed, the constructed processing module delay model can be obtained. Compared with the constructed scheduling module delay model, the service rate parameter in the second delay model to be constructed is a variable, and the service rate parameter value in the scheduling module delay model is the specific value corresponding to the service rate parameter variable, that is, it is necessary to calculate the specific value of the service rate parameter in the second delay model to be constructed. After determining the specific value of the service rate parameter in the second delay model to be constructed, the constructed scheduling module delay model can be obtained. In a feasible implementation, the specific value of the service rate parameter in the first delay model to be constructed (that is, the service rate parameter value of the processing module) and the specific value of the service rate parameter in the second delay model to be constructed (that is, the service rate parameter value of the scheduling module) can be calculated by the obtained test data. In a specific implementation, according to the difference between the first preset parameter and the second preset parameter, and according to the different specific expressions of the first delay model to be constructed and the second delay model to be constructed, the method of calculating the service rate parameter value of the processing module and the service rate parameter value of the scheduling module may be different, which is not limited here and can be set as needed.
[0061] In one feasible implementation, the test data may include actual total delay data, which may be obtained by sending a test data stream to a network switching device and collecting delay data. The test parameter information of the test data stream includes the parameter value of the test data stream with respect to the first preset parameter and the parameter value with respect to the second preset parameter. The data stream sent to the network switching device during the test is referred to as a test data stream to distinguish it from the target data stream. The parameter information of the test data stream is referred to as test parameter information to distinguish it from the parameter information of the target data stream. The actual total delay data may include the total delay of each data packet in the test data stream, or may include the maximum value of the total delay of each data packet in the test data stream, or may include other types of delays, such as the average total delay of each data packet in the test data stream. In a specific implementation, it may be selected as needed and is not limited here.
[0062] In one feasible implementation, step S60 includes steps S601 to S602:
[0063] Step S601: Calculate the service rate parameter value of the processing module and the service rate parameter value of the scheduling module based on the actual total delay data, the test parameter information, the preset first delay model to be constructed, and the preset second delay model to be constructed, wherein the first delay model to be constructed reflects the relationship between the processing delay of the data flow in the processing module and the first preset parameter and the service rate parameter of the processing module, and the second delay model to be constructed reflects the relationship between the scheduling delay of the data flow in the scheduling module and the second preset parameter and the service rate parameter of the scheduling module.
[0064] After obtaining the actual total delay data, the service rate parameter values for the processing module and the service rate parameter values for the scheduling module can be calculated based on the actual total delay data, the test parameter information, the first delay model to be constructed, and the second delay model to be constructed. In this embodiment, the specific calculation method is not limited; different calculation methods can be used depending on the specific data format of the actual total delay data and the specific representation of the first delay model to be constructed and the second delay model to be constructed.
[0065] Step S602: obtaining the processing module delay model based on the service rate parameter value of the processing module and the first delay model to be constructed, and obtaining the scheduling module delay model based on the service rate parameter value of the scheduling module and the second delay model to be constructed.
[0066] In one feasible implementation, step S50 includes steps S501 to S503:
[0067] Step S5011: Acquire the test parameter information.
[0068] In this embodiment, a test instrument can be used to send a test data stream to a network switching device and measure the actual total latency of the network switching device forwarding the test data stream. The evaluation device can first obtain test parameter information for the test data stream. The specific acquisition method is not limited and can, for example, receive test parameter information uploaded by a user.
[0069] Step S5012: Control the test instrument to send the test data stream to the network switching device according to the test parameter information.
[0070] The test instrument can be an instrument that can send data streams to a network switching device, control the parameter information of the sent data streams, and measure the actual total delay data of the network switching device's forwarding process of the data stream. In this embodiment, there is no restriction on the name, model, or type of the device.
[0071] Step S5013: Acquire actual total delay data of the process of forwarding the test data stream by the network switching device measured by the test instrument, and use the actual total delay data as the test data.
[0072] The evaluation device can obtain the actual total delay data measured by the test instrument and use the actual total delay as test data, and then calculate the service rate parameter value of the processing module and the service rate parameter value of the scheduling module based on the actual total delay data.
[0073] Based on the above-mentioned first and second embodiments, a third embodiment of the forwarding capability evaluation method of the network switching device of the present application is proposed. In this embodiment, there are two groups of test data streams, and the packet lengths of the two groups of test data streams are different. The actual total delay data includes the maximum delay values corresponding to the two groups of test data streams. The maximum delay value corresponding to one group of test data streams is the maximum value of the delays generated by the network switching device forwarding each data packet in the group of test data streams. A group of test data streams can include one or more data streams, which can be set as needed. The number of data packets included in a group of test data streams can also be set as needed, which is not limited in this embodiment. The packet length of a group of test data streams refers to the packet length of each data packet in the group of test data streams, and the packet length of each data packet in a group of test data streams is the same. In this embodiment, the actual total delay data includes the maximum delay values corresponding to the two groups of test data streams, which can be applied to application scenarios where the test conditions are limited and the delay corresponding to each data packet cannot be obtained.
[0074] In one feasible implementation, step S601 includes steps S6011 to S6012:
[0075] Step S6011: For each group of the test data streams, substitute the maximum delay value and the test parameter information corresponding to the test data stream into the first delay model to be constructed and the second delay model to be constructed to obtain an equation corresponding to the test data stream.
[0076] The parameter value of the first preset parameter in the test parameter information can be substituted into the first delay model to be constructed to obtain the expression (1) of the processing delay of the test data flow in the processing module. In the expression (1), the service rate parameter of the processing module is a variable to be solved. The parameter value of the second preset parameter in the test parameter information can be substituted into the second delay model to be constructed to obtain the expression (2) of the scheduling delay of the test data flow in the scheduling module. In the expression (2), the service rate parameter of the scheduling module is a variable to be solved. According to the expression (1) and the expression (2), the expression (3) of the total delay of the test data flow in the network switching device can be obtained. For example, the expression (1), the expression (2) and the preset constant representing the node forwarding delay are added to obtain the expression (3). The expression (3) is equal to the maximum delay corresponding to the test data flow to obtain an equation. In the equation, the service rate parameter of the processing module and the service rate parameter of the scheduling module are two variables to be solved.
[0077] Step S6012, the equations corresponding to the two groups of test data streams are combined into a set of equations about the service rate parameters of the processing module and the service rate parameters of the scheduling module, and the service rate parameter values of the processing module and the service rate parameter values of the scheduling module are calculated according to the set of equations.
[0078] Based on the two sets of test data streams, two equations can be obtained. By solving the system of equations composed of the two equations, the service rate parameter values of the processing module and the service rate parameter values of the scheduling module can be obtained, thereby obtaining the processing module delay model and the scheduling module delay model.
[0079] In one feasible implementation, the first delay model to be constructed can be expressed as:
[0080] Among them, D pro represents the processing delay of the data flow in the processing module, τ represents time, P represents probability, e represents a natural constant, ρ represents the utilization parameter of the processing module, λ represents the arrival rate parameter, which refers to the number of data packets arriving per unit time, and μ represents the service rate parameter of the processing module, specifically the number of data packets processed by the processing module per unit time.
[0081] The second delay model to be constructed can be expressed as:
[0082] Among them, D sche Indicates the scheduling delay of the scheduling module. i and Θ i The calculation method can be shown in Table 1:
[0083] Table 1
[0084] Among them, R sche Represents the service rate parameter of the scheduling module of the network switching device, r i The arrival curve is r i t+b i The arrival rate parameter in the data stream, b i The arrival curve is r i t+b i The burst parameter in the data stream, l i is the packet length of data stream i. i, j, and m are used to represent the data stream number. The packet length of a data stream refers to the length of each data packet in the data stream. The packet length of each data packet in the data stream is the same.
[0085] Exemplarily, the process of solving the service rate parameters of the processing module and the service rate parameters of the scheduling module is described by substituting specific data.
[0086] 1. Take the network scenario diagram shown in Figure 3 as an example. Assume that the first set of test data streams includes three data streams S1, S2 and S3. Through the test instrument, three different input ports of the network switching device are connected at a time interval of τ. i =1ms(i=1,2,3) The periodic injection packet length is l i = Three data streams of 1024 Bytes. The arrival curve of each data stream can be expressed as: i (t) = r i t+b i
[0087] in And set b i =l i = 1024 bytes. These periodic services are configured to flow to the same output port of the network switching device, output port R1 in Figure 3. For example, the SP scheduling algorithm is used as the target scheduling method. The network switching device uses the SP scheduling algorithm to process data flows 1, 2, and 3 from ports 1, 2, and 3. Data flow 3 has the highest priority, followed by data flow 2, while data flow 1 has the lowest priority.
[0088] Assume that the maximum delay of the test data stream obtained by the test is expressed as D overall,max , and assuming D overall,max=500μs. Node forwarding delay D forw It can be regarded as a constant, that is, the forwarding delay of a data packet. Assume that D forw =10us.
[0089] 2. Calculate the scheduling delay D of the first set of test data streams in the scheduling module sche .
[0090] Combined with the calculation formula given in Table 1, the rate R corresponding to the three data streams can be obtained i and Θ i , as shown in Table 2 below. Among them, R sche It is the service rate parameter of the scheduling module.
[0091] Table 2
[0092] Substitute R1,Θ1, R2,Θ2 and R3,Θ3 given in Table 2 into Then get three calculated values and take the maximum value as D sche Assuming that the scheduling delay corresponding to the third data stream is the largest, then:
[0093] 3. Calculate the processing delay D of the first set of test data streams in the processing module pro,max
[0094] R pro Represents the service rate parameters of the processing module, μ and R pro Both can be used as service rate parameters for processing modules, but the units are different and the two can be converted. pro / l1 replaces μ in formula 1, and 3 / τ1 replaces λ in formula 1, then the utilization parameter Substituting into formula 1, we can get:
[0095] Let the probability value on the right side of Formula 3 be equal to the preset probability value. Assuming that the preset probability value is set to 0.01, solving this formula can yield
[0096] That is, the maximum delay of the processing module when the preset probability value is 0.01, which is recorded as
[0097] 4. The total delay consists of three parts, namely D overall =D pro +D sche +D forw , where D forw =10us is set as a fixed value. The three are added together to obtain the maximum total delay, which is the equation corresponding to the first set of test data streams:
[0098] 4. Assume that the packet length of the second set of test streams is set to l′ i =1500Bytes. Using the same method as the first set of test data streams, we can calculate the equation corresponding to the second set of test data streams:
[0099] Assume D'overall,max = 600us
[0100] Combining the two equations, we get the following system of equations:
[0101] By calculating this set of equations, we can obtain R pro and R sche Parameter value, that is, obtain the service rate parameter value R of the processing module pro ' and the service rate parameter value R of the scheduling module sche '. R pro ' and R sche ' are the specific values solved, and are represented by letter symbols here.
[0102] The derivation principles of Formula 1 and Formula 2 in the above embodiment are given below.
[0103] When applying the measurement-based (R, e) model to model the forwarding capability of network switching devices, it was found that when only the packet length of the input data packet is changed while other conditions (such as the data flow arrival rate) remain unchanged, the switching device service rate R and the additional static device forwarding delay e incurred by the data packet in the network switching device, as shown in the statistically calculated network service curve, will change. In other words, experimental results show that changes in packet length affect the actual service rate R and static delay e. After comprehensively considering various factors that may affect device forwarding performance, it is believed that this phenomenon occurs because changes in packet length simultaneously affect the forwarding capability of the processing and scheduling modules, resulting in different forwarding performance (i.e., service rate R and static delay e) when processing packets of different packet lengths. At the same bit rate, the smaller the packet length, the more packets are processed per second by the processing and scheduling modules, and the greater the impact on the processing and scheduling modules. Data flows entering the network switching device from its input port enter the processing module to complete a series of actions (such as input message storage, routing table lookup, traffic shaping, etc.), and then enter the scheduling module at the output port of the designated link to complete queue scheduling, as shown in Figure 4. Therefore, in this embodiment, the total delay incurred by data packets passing through the network switching device is divided into two parts: the processing delay of the processing module and the scheduling delay of the scheduling module to establish a device forwarding service model. The processing delay of the processing module considered in this embodiment refers not only to the delay in completing the routing table lookup operation, but also to the sum of all delays, such as the delay in input and output message scheduling and flow control, the host network card delay, the delay caused by traffic shaping, and so on.
[0104] If the impact of packet length changes on the forwarding capability of the device is considered, the two-parameter (R, e) model mentioned above will not be sufficient to describe the service capability of real network switching devices. Unlike the current practice of treating processing delay as a fixed constant, this implementation treats the processing delay of the processing module as randomly varying and models the entire network switching device as a black box. The processing module and the scheduling module in the node are connected in series, jointly affecting the delay D of the service flow in the entire node. overall Therefore, using the parameter R pro To quantitatively analyze the service rate parameter of the processing module, parameter R sche To characterize the service rate parameter of the output port scheduling module. The service rate parameter R of the processing module pro and the service rate parameter R of the scheduling module sche Together they affect the actual service rate parameter R of the network switching equipment.
[0105] 1. Derivation principle of formula 1:
[0106] The data packets in the data stream input to the processing module of the network switching device usually arrive in large quantities and are unrelated to each other. The overall traffic characteristics tend to be stable, that is, the packet arrival process per unit time can be described by the traditional Poisson model. In this case, the Poisson model can be used to characterize the traffic characteristics in the switching network. Assume that the number of data packets arriving per unit time in the data stream input to the network switching device is a random variable X, then the random variable X satisfies
[0107] Among them, the parameter λ is used to represent the average arrival rate of data packets, k is the number of data packets, e is the base of the natural logarithm, and P is the probability.
[0108] Within the framework of network calculus theory, it's not possible to simply apply the cascade theorem to the two queues of the input processing module and the scheduling module to calculate the delay bound. Furthermore, establishing a network calculus service model for the processing module presents certain difficulties. Since the traffic input to the processing module can be considered Poisson flow, the service forwarding capacity of the network switching device is relatively certain. Therefore, in this embodiment, the M / D / 1 model from queuing theory is applied to model the processing module in the network switching device. First, the average queuing delay E[W] under the M / D / 1 model is:
[0109] Where T represents the random variable of the data packet service time, ρ represents the utilization parameter of the processing module, and λ is the arrival rate parameter of the input traffic (i.e., the number of data packets arriving per unit time, C = λ·l, where C is the input traffic bit rate and the arrival rate is related to the packet length l). For the M / D / 1 model, the service time can be obtained to satisfy And μ represents the number of data packets processed by the processing module per unit time, which can be used as the service rate parameter of the processing module. From this, the average queuing delay E[W] under the M / D / 1 model can be derived as:
[0110] Where ρ = λ / μ represents the utilization parameter of the processing module, μ represents the service rate parameter of the processing module, and λ represents the arrival rate parameter of the input traffic of the processing module. Therefore, the delay distribution of the queuing time W can be expressed as:
[0111] At the same time, we know that the total system delay of the processing module satisfies Then the total delay distribution of the processing module system can be rewritten as:
[0112] 2. Derivation principle of formula 2:
[0113] In this embodiment, the latency rate scheduling algorithm (LR) model under the network calculus theory framework is used to calculate the queuing delay D of the data packet in the scheduling module. sche In the Latency Rate (LR) scheduling algorithm, the service behavior of an LR server is characterized by two parameters: the service rate and the latency factor. The LR model describes the amount of service that a data flow can obtain from a network switch during a burst.
[0114] Burst period: The burst period of a data stream is defined as the time interval [t0,t * ], for any t∈[t0,t * ], the data packets in the data stream arrive at a rate greater than or equal to r. In other words, the arrival process A(t) of the data stream satisfies: A(t0,t)≥r(t-t0)
[0115] Based on the above concept of burst period, the definition of LR server is as follows.
[0116] Service curve of the delay rate server: Let t0 be the start time of a burst period of data flow in the network server, t * is the time when the last data packet arriving in the burst period leaves the server, then * ], the cumulative service process S(t0,t) satisfies: S(t0,t)≥R(t-t0-Θ) +
[0117] Normally, the parameter t0 in the LR model is often set to 0, so the service curve β of data flow i in the LR model is i (t) can be expressed as: β i (t) = R i (t-Θ i ) +
[0118] Under different scheduling methods, the device allocates different performance resources to data flows, resulting in different service curves provided by the scheduling module for the corresponding data flows. Table 1 lists the parameters of the LR model under different scheduling methods.
[0119] With the help of the delay theorem, we can find that the delay boundary of data flow i at the scheduling module satisfies:
[0120] Because the parameters involved in Formulas 1 and 2 do not include the packet length of the input data stream, they can decouple the packet length from the forwarding capability of the network switching device. This makes the processing module delay model and scheduling module delay model obtained based on Formulas 1 and 2 applicable to the forwarding capability evaluation of data streams with different packet lengths.
[0121] Based on the above-mentioned first and second embodiments, a fourth embodiment of the forwarding capability evaluation method of the network switching device of the present application is proposed. In this embodiment, the actual total delay data may include the total delay generated by the network switching device in forwarding each data packet in the test data stream, that is, the total delay corresponding to each data packet. In this embodiment, the test data stream may include one or more data streams. In a specific embodiment, when the test conditions are met, the arrival time and departure time of each data packet can be recorded at the input port and the output port of the network switching device, and the total delay experienced by the data packet in the network switching device is obtained by subtracting the arrival time from the departure time.
[0122] In one feasible implementation, step S601 includes steps S6013 to S6015:
[0123] Step S6013: obtaining an actual probability distribution of the total delay of the test data stream in the network switching device according to the actual total delay data.
[0124] In this embodiment, the total delay of each data packet included in the actual total delay data can be used to fit the probability distribution of the total delay of each data packet in the test data stream in the network switching device. Since this probability distribution is obtained by fitting the actual value, it is hereinafter referred to as the actual probability distribution for distinction. For example, in a feasible embodiment, if each data stream sends 10,000 packets and there are three data streams in total, then the three data streams have a total of 30,000 data packets, and 30,000 delay values will be obtained. overall,test Represents the data set consisting of these 30,000 delay values; based on the data set D overall,test As well as the definition of the complementary cumulative distribution function, the complementary cumulative distribution function of 30,000 delay values can be plotted, and then the function can be fitted using the negative exponential distribution. For example, assuming that the fitted negative exponential distribution function is e-3(d-0.0001).
[0125] Step S6014: Substitute the test parameter information into the first delay model to be constructed and the second delay model to be constructed to obtain a theoretical probability distribution of the total delay of the test data flow in the network switching device.
[0126] The parameter value of the first preset parameter in the test parameter information can be substituted into the first delay model to be constructed to obtain the theoretical probability distribution (1) of the processing delay of the test data flow in the processing module. The parameter value of the second preset parameter in the test parameter information can be substituted into the second delay model to be constructed to obtain the expression (1) of the scheduling delay of the test data flow in the scheduling module. According to the theoretical probability distribution (1) and the expression (1), the theoretical probability distribution (2) of the total delay of the test data flow in the network switching device can be obtained. For example, the theoretical probability distribution (1), the expression (1) and the preset constant representing the node forwarding delay are added to obtain the theoretical probability distribution (2).
[0127] Step S6015: Calculate the service rate parameter value of the processing module and the service rate parameter value of the scheduling module according to the actual probability distribution and the theoretical probability distribution.
[0128] Based on the actual probability distribution and theoretical probability distribution of the total delay of the test data flow in the network switching equipment, two equations can be combined. The two equations include two variables: the service rate parameter of the processing module and the service rate parameter of the scheduling module. By solving the system of equations composed of the two equations, the service rate parameter values of the processing module and the service rate parameter values of the scheduling module can be obtained, and then the delay model of the processing module and the delay model of the scheduling module can be obtained.
[0129] Exemplarily, the process of solving the service rate parameters of the processing module and the service rate parameters of the scheduling module is described by substituting specific data.
[0130] 1. Assume that the test data flow includes three data flows. Through the test instrument, send three different input ports of the network switching device with a time interval of τ i =1ms(i=1,2,3) The periodic injection packet length is l i = Three data streams of 1024 Bytes. The arrival curve of each data stream can be expressed as: i (t) = r i t+b i
[0131] in And set b i =l i = 1024 bytes. These periodic services are configured to flow to the same output port of the network switching device. For example, using SP scheduling as the target scheduling method, the network switching device uses SP scheduling to process data flows 1, 2, and 3 from ports 1, 2, and 3. Data flow 3 has the highest priority, followed by data flow 2, while data flow 1 has the lowest priority.
[0132] Assume that the dataset D of the test data stream obtained based on the test overall,test , including the total delay corresponding to each data packet in the test data stream. Based on the data set D overall,test As well as the definition of the complementary cumulative distribution function, the fitted negative exponential distribution function is e-3(d-0.0001).
[0133] 2. Calculate the scheduling delay D of the test data flow in the scheduling module sche .
[0134] Combined with the calculation formula given in Table 1, the rate R corresponding to the three data streams can be obtained i and Θ i , as shown in Table 2. Substitute R1,Θ1, R2,Θ2 and R3,Θ3 given in Table 2 into Then get three calculated values and take the maximum value as D sche Assuming that the scheduling delay corresponding to the third data stream is the largest, then:
[0135] 3. Calculate the probability distribution of the processing delay of the test data stream in the processing module
[0136] R pro Indicates the service rate parameter of the processing module, R pro / l1 replaces μ in formula 1, and 3 / τ1 replaces λ in formula 1, then the utilization parameter Substituting into formula 1, we can get:
[0137] Formula 3 is the theoretical probability distribution of the processing delay of the test data stream in the processing module.
[0138] 4. The total delay consists of three parts, namely D overall =D pro +D sche +D forw , where D forw =10us is set as a fixed value. The three are added together to obtain the theoretical probability distribution of the total delay of the test data flow in the network switching equipment:
[0139] Based on the previously assumed distribution function of e-3(d-0.0001) and Formula 4, we can obtain the following equations:
[0140] By calculating this set of equations, we can obtain R pro and R sche Parameter value, that is, obtain the service rate parameter value R of the processing module pro' and the service rate parameter value R of the scheduling module sche '. R pro ' and R sche ' are the specific values solved, and are represented by letter symbols here.
[0141] Based on the first, second, third, and / or fourth embodiments described above, a fifth embodiment of the forwarding capability assessment method for a network switching device of the present application is proposed. In this embodiment, the processing module delay model can be a probability distribution of the processing delay of a data flow in the processing module. This probability distribution can reflect the relationship between the probability of the processing delay of the data flow in the processing module, the first preset parameter, and the service rate parameter value of the processing module. The specific expression of this probability distribution is not limited in this embodiment and can be pre-set as needed.
[0142] In one feasible implementation, the step S20 includes step S201: substituting the preset probability value and the parameter value of the first preset parameter in the target parameter information into the processing module delay model for calculation, obtaining the delay value of the target data flow in the processing module with a probability of the preset probability value, and using the delay value as the evaluation processing delay of the target data flow in the processing module.
[0143] The preset probability value can be set as needed. The delay value at the right side of the processing module delay model with a probability of 0.01 can be selected as the evaluation processing delay of the target data stream in the processing module.
[0144] In one feasible embodiment, the first preset parameter may include a data flow arrival rate parameter. Thus, the parameter value of the target data flow with respect to the first preset parameter is the target data flow arrival rate parameter value. The data flow arrival rate parameter may refer to the amount of data arriving at the network switching device per unit time. The unit of data volume can be set as needed, for example, the number of packets or the number of bits.
[0145] In one feasible implementation, step S201 includes steps S2011 to S2012:
[0146] Step S2011: Calculate the utilization parameter value of the processing module according to the parameter value of the arrival rate parameter of the target data flow and the service rate parameter value of the processing module.
[0147] The utilization parameter value of the processing module can be calculated based on the relationship between the arrival rate parameter of the input data flow of the processing module, the service rate parameter of the processing module, and the utilization parameter of the processing module. For example, in one feasible embodiment, ρ = λ / μ represents the utilization parameter of the processing module, μ represents the service rate parameter of the processing module, and λ represents the arrival rate parameter of the input traffic of the processing module. Then, the utilization parameter value of the processing module can be obtained by dividing the parameter value of the arrival rate parameter of the target data flow by the service rate parameter value of the processing module.
[0148] Step S2012: Substitute the preset probability value, the utilization parameter value, and the parameter value of the target data flow with respect to the arrival rate parameter into the processing module delay model for calculation to obtain a delay value when the probability of the target data flow occurring in the processing module is the preset probability value.
[0149] The processing module delay model can reflect the relationship between the probability of processing delay of the data flow in the processing module and the utilization parameter of the processing module, the arrival rate parameter of the input data flow of the processing module and the service rate parameter value of the processing module. Then, the preset probability value, utilization parameter value and the parameter value of the target data flow regarding the arrival rate parameter are substituted into the processing module delay model for calculation, and the delay value of the target data flow with the probability of occurring in the processing module being the preset probability value can be obtained. Then, based on the delay value, the estimated processing delay of the target data flow in the processing module can be obtained.
[0150] In one feasible embodiment, when the service rate parameter of the processing module is the number of data packets processed by the processing module per unit time, the arrival rate parameter of the data flow may refer to the number of data packets arriving at the network switching device per unit time. The processing module delay model may be:
[0151] Among them, D pro represents the processing delay of the data flow in the processing module, τ represents time, P represents probability, e represents a natural constant, ρ represents the utilization parameter of the processing module, λ represents the arrival rate parameter, and μ' represents the service rate parameter value of the processing module, specifically the number of data packets processed by the processing module per unit time.
[0152] In other embodiments, when the unit of the service rate parameter of the processing module is different, for example, when it represents the number of bits processed by the processing module per unit time, the unit of the arrival rate parameter of the data stream and the formula of the processing module delay model can be adaptively adjusted according to the above formula 5, and are not listed one by one here.
[0153] Based on the first, second, third, fourth, and / or fifth embodiments described above, a sixth embodiment of a method for evaluating the forwarding capability of a network switching device of the present application is proposed. In this embodiment, a scheduling module delay model includes sub-models corresponding to multiple preset scheduling modes. The sub-model corresponding to a preset scheduling mode reflects the relationship between the scheduling delay of a data flow in a scheduling module scheduled according to the preset scheduling mode, a second preset parameter, and the service rate parameter value of the scheduling module. The multiple preset scheduling modes can be set as needed and are not limited in this embodiment. For example, they may include non-preemptive strict priority (SP), weighted round-robin (WRR), and weighted fair queuing (WFQ). It is understood that scheduling modules using different scheduling modes will generate different scheduling delays. Therefore, models can be constructed in advance for different scheduling modes. The scheduling module delay model includes sub-models corresponding to each scheduling mode. This can be applied to evaluating the forwarding capability of network switching devices that use different scheduling modes.
[0154] In one feasible implementation, step S30 includes steps S301 to S302:
[0155] Step S301: Acquire a pre-configured target scheduling mode of the network switching device.
[0156] The target scheduling mode is the scheduling mode adopted by the scheduling module when the network switching device forwards the target data flow. In a specific embodiment, the target scheduling mode can be pre-configured by the user, or can be pre-configured in other ways, which is not limited here.
[0157] Step S302: Substitute the parameter value of the second preset parameter in the target parameter information into the sub-model corresponding to the target scheduling mode for calculation to obtain the estimated scheduling delay of the target data flow in the scheduling module.
[0158] After the target scheduling mode is determined, the sub-model corresponding to the target scheduling mode can be used to evaluate the evaluation scheduling delay of the target data flow in the scheduling module.
[0159] In a feasible implementation, the second preset parameter may include the packet length of the data stream, the arrival rate parameter and the burst parameter in the arrival curve of the data stream. The arrival curve of the data stream i can be expressed as r i t+b i , where r i represents the arrival rate parameter of data stream i, b iRepresents the burst parameter of data stream i. A sub-model corresponding to a preset scheduling method may include a delay boundary model and a service curve parameter model; the delay boundary model reflects the maximum scheduling delay of the data stream in the scheduling module that is scheduled according to the preset scheduling method, and the relationship between the burst parameter of the data stream, the service rate and delay factor of the service curve provided by the scheduling module for the data stream; the service curve parameter model reflects the relationship between the service rate parameter and delay factor parameter of the service curve provided by the scheduling module for the data stream, the second preset parameter and the service rate parameter value of the scheduling module. Among them, the maximum scheduling delay of the data stream in the scheduling module refers to the maximum scheduling delay that may be generated in the scheduling module by the unit data volume of the data stream, and the unit data volume may refer to data packets or bits. The service curve provided by the scheduling module for data stream i can be expressed as β i (t) = R i (t-Θ i ) + , where Ri represents the service rate parameter of the service curve provided by the scheduling module for data flow i, Θ i Indicates the delay factor parameter.
[0160] In one feasible implementation, step S302 includes steps S3021 to S3022:
[0161] Step S3021, substitute the parameter value of the second preset parameter in the target parameter information into the service curve parameter model in the sub-model corresponding to the target scheduling method, and calculate the target service rate parameter value and target delay factor parameter value of the service curve provided by the scheduling module for the target data flow.
[0162] For example, in one feasible implementation, the service curve parameter models corresponding to the two scheduling modes of SP and WRR may be as shown in Table 3.
[0163] Table 3
[0164] Among them, R sche ' represents the service rate parameter value of the scheduling module of the network switching device, r i The arrival curve is r i t+b i The arrival rate parameter in the data stream, b i The arrival curve is r i t+b i The burst parameter in the data stream, l i is the packet length of data stream i. i, j, and m are used to indicate the number of the data stream.
[0165] If the target scheduling mode is SP, then the arrival rate parameter value in the arrival curve of the target data flow in the target parameter information can be substituted into The service rate parameter in the service curve provided by the scheduling module for the target data flow is calculated, and the packet length of the target data flow in the target parameter information and the burst parameter value in the arrival curve of the target data flow are substituted into The delay factor parameter in the service curve provided by the scheduling module for the target data stream is calculated. When there are multiple target data streams, the target service rate parameter value and target delay factor parameter value of the service curve provided by the scheduling module for each target data stream can be obtained.
[0166] Step S3023, substitute the parameter value of the burst parameter of the target data flow, the target service rate parameter value and the target delay factor parameter value into the delay boundary model in the sub-model corresponding to the target scheduling method, calculate the maximum delay value of the target data flow in the scheduling module, and use the maximum delay value as the evaluated scheduling delay.
[0167] For example, in a feasible implementation, the delay boundary models in the sub-models corresponding to various scheduling modes can all adopt In a specific implementation, when there is only one target data stream, the target service rate parameter value and the target delay factor parameter value corresponding to the target data stream can be substituted into the model to calculate the maximum delay value corresponding to the target data stream, and the maximum delay value can be used as the evaluation scheduling delay; when there are multiple target data streams, the target service rate parameter value and the target delay factor parameter value corresponding to each target data stream can be substituted into the model to calculate the maximum delay value corresponding to each target data stream, and the maximum value of the maximum delay values corresponding to each target data stream can be used as the evaluation scheduling delay.
[0168] In addition, an embodiment of the present application further provides a forwarding capability evaluation device for a network switching device, wherein a processing module and a scheduling module for data flow are deployed in the network switching device, and the forwarding capability evaluation device for the network switching device includes:
[0169] An acquisition module, configured to acquire target parameter information of a target data stream, wherein the target parameter information includes a parameter value of the target data stream with respect to a first preset parameter and a parameter value with respect to a second preset parameter;
[0170] a first calculation module, configured to substitute the parameter value of the first preset parameter in the target parameter information into a pre-built processing module delay model for calculation, and obtain an estimated processing delay of the target data stream in the processing module;
[0171] A second calculation module is configured to substitute the parameter value of the second preset parameter in the target parameter information into a pre-built scheduling module delay model for calculation to obtain an estimated scheduling delay of the target data flow in the scheduling module;
[0172] A determination module is used to obtain an evaluation result of the forwarding capability of the network switching device for the target data flow based on the evaluation processing delay and the evaluation scheduling delay.
[0173] In one feasible implementation, the processing module delay model reflects the relationship between the processing delay of the data flow in the processing module and the first preset parameter and the service rate parameter value of the processing module, and the scheduling module delay model reflects the relationship between the scheduling delay of the data flow in the scheduling module and the second preset parameter and the service rate parameter value of the scheduling module;
[0174] The forwarding capability evaluation device of the network switching device further includes:
[0175] An acquisition module, configured to acquire test data obtained by performing a data flow forwarding test on the network switching device;
[0176] A construction module is used to calculate the service rate parameter value of the processing module and the service rate parameter value of the scheduling module according to the test data, so as to construct the processing module delay model and the scheduling module delay model.
[0177] In one feasible implementation, the test data includes actual total delay data, the actual total delay data is obtained by sending a test data stream to the network switching device and collecting delay data, and the test parameter information of the test data stream includes a parameter value of the test data stream with respect to the first preset parameter and a parameter value with respect to the second preset parameter;
[0178] The building blocks are also used to:
[0179] Calculate, based on the actual total delay data, the test parameter information, a preset first delay model to be constructed, and a preset second delay model to be constructed, a service rate parameter value of the processing module and a service rate parameter value of the scheduling module, wherein the first delay model to be constructed reflects the relationship between the processing delay of the data flow in the processing module and the first preset parameter and the service rate parameter of the processing module, and the second delay model to be constructed reflects the relationship between the scheduling delay of the data flow in the scheduling module and the second preset parameter and the service rate parameter of the scheduling module;
[0180] The processing module delay model is obtained based on the service rate parameter value of the processing module and the first delay model to be constructed, and the scheduling module delay model is obtained based on the service rate parameter value of the scheduling module and the second delay model to be constructed.
[0181] In one feasible embodiment, there are two groups of test data streams, and the packet lengths of the two groups of test data streams are different. The actual total delay data includes the maximum delays corresponding to the two groups of test data streams, respectively. The maximum delay corresponding to the test data stream is the maximum value of the total delays generated by the network switching device when forwarding each data packet in the test data stream.
[0182] The building blocks are also used to:
[0183] For each group of the test data streams, substituting the maximum delay value and the test parameter information corresponding to the test data stream into the first delay model to be constructed and the second delay model to be constructed to obtain an equation corresponding to the test data stream;
[0184] The equations corresponding to the two groups of test data streams are combined into a set of equations about the service rate parameters of the processing module and the service rate parameters of the scheduling module, and the service rate parameter values of the processing module and the service rate parameter values of the scheduling module are calculated based on the set of equations.
[0185] In one feasible implementation, the actual total delay data includes the total delay generated when the network switching device forwards each data packet in the test data flow;
[0186] The building blocks are further configured to include:
[0187] Obtaining an actual probability distribution of the total delay of the test data stream in the network switching device according to the actual total delay data fitting;
[0188] Substituting the test parameter information into the first delay model to be constructed and the second delay model to be constructed to obtain a theoretical probability distribution of the total delay of the test data flow in the network switching device;
[0189] The service rate parameter value of the processing module and the service rate parameter value of the scheduling module are calculated according to the actual probability distribution and the theoretical probability distribution.
[0190] In one feasible implementation manner, the acquisition module is further configured to:
[0191] Obtaining the test parameter information;
[0192] Controlling the test instrument to send the test data stream to the network switching device according to the test parameter information;
[0193] Acquire actual total delay data of a process in which the network switching device forwards the test data stream, measured by the test instrument, and use the actual total delay data as the test data.
[0194] In one feasible embodiment, the processing module delay model is a probability distribution of the processing delay of the data flow in the processing module, and the probability distribution reflects the relationship between the probability of the processing delay of the data flow in the processing module and the first preset parameter and the service rate parameter value of the processing module;
[0195] The first calculation module is further configured to:
[0196] The preset probability value and the parameter value of the first preset parameter in the target parameter information are substituted into the processing module delay model for calculation to obtain a delay value in which the probability of the target data flow occurring in the processing module is the preset probability value, and the delay value is used as the evaluation processing delay of the target data flow in the processing module.
[0197] In one feasible implementation manner, the first preset parameter includes an arrival rate parameter of the data stream;
[0198] The first calculation module is further configured to:
[0199] Calculating a utilization parameter value of the processing module according to a parameter value of the target data flow with respect to the arrival rate parameter and a service rate parameter value of the processing module;
[0200] The preset probability value, the utilization parameter value and the parameter value of the target data flow with respect to the arrival rate parameter are substituted into the processing module delay model for calculation to obtain a delay value at which the probability of the target data flow occurring in the processing module is the preset probability value.
[0201] In one feasible implementation, the processing module delay model is:
[0202] Among them, D pro represents the processing delay of the data flow in the processing module, τ represents time, P represents probability, e represents a natural constant, ρ represents the utilization parameter of the processing module, λ represents the arrival rate parameter, which refers to the number of data packets arriving per unit time, and μ' represents the service rate parameter value of the processing module, which refers to the number of data packets processed by the processing module per unit time.
[0203] In one feasible embodiment, the scheduling module delay model includes sub-models corresponding to multiple preset scheduling modes, each of which reflects the relationship between the scheduling delay of the data flow in the scheduling module scheduled according to the preset scheduling mode, the second preset parameter, and the service rate parameter value of the scheduling module;
[0204] The second calculation module is further configured to:
[0205] Obtaining a preconfigured target scheduling mode of the network switching device;
[0206] Substitute the parameter value of the second preset parameter in the target parameter information into the sub-model corresponding to the target scheduling mode for calculation to obtain the estimated scheduling delay of the target data flow in the scheduling module.
[0207] In one feasible implementation manner, the second preset parameter includes a packet length of the data stream, an arrival rate parameter and a burst parameter in an arrival curve of the data stream;
[0208] The sub-model includes a delay boundary model and a service curve parameter model, wherein the delay boundary model reflects the relationship between the maximum scheduling delay of the data flow in the scheduling module that is scheduled according to the preset scheduling mode, the burst parameter of the data flow, the service rate and delay factor of the service curve provided by the scheduling module for the data flow, and the service curve parameter model reflects the relationship between the service rate parameter and delay factor parameter of the service curve provided by the scheduling module for the data flow, the second preset parameter, and the service rate parameter value of the scheduling module;
[0209] The second calculation module is further configured to:
[0210] Substituting the parameter value of the second preset parameter in the target parameter information into the service curve parameter model in the sub-model corresponding to the target scheduling mode, and calculating the target service rate parameter value and the target delay factor parameter value of the service curve provided by the scheduling module for the target data flow;
[0211] The parameter values of the burst volume parameter, the target service rate parameter value and the target delay factor parameter value of the target data flow are substituted into the delay boundary model in the sub-model corresponding to the target scheduling mode, and the maximum delay value of the target data flow in the scheduling module is calculated, and the maximum delay value is used as the evaluated scheduling delay.
[0212] In one feasible implementation manner, the determining module is further configured to:
[0213] The evaluation processing delay, the evaluation scheduling delay and the preset node forwarding delay are added together to obtain a total delay, and the total delay is used as an evaluation result of the forwarding capability of the network switching device for the target data flow.
[0214] In addition, an embodiment of the present application also proposes a computer-readable storage medium, which stores a forwarding capability evaluation program for a network switching device. When the forwarding capability evaluation program for the network switching device is executed by a processor, the steps of the forwarding capability evaluation method for the network switching device described below are implemented.
[0215] The various embodiments of the forwarding capability evaluation device and computer-readable storage medium of the network switching device of the present application can refer to the various embodiments of the forwarding capability evaluation method of the network switching device of the present application, and will not be repeated here.
[0216] As used herein, the terms "comprises," "comprising," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
[0217] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0218] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0219] The above are only some embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for evaluating the forwarding capability of a network switching device, wherein: The network switching device is deployed with a processing module and a scheduling module for data flow, and the forwarding capability evaluation method of the network switching device includes: Acquire target parameter information of a target data stream, wherein the target parameter information includes a parameter value of the target data stream with respect to a first preset parameter and a parameter value with respect to a second preset parameter; Substituting the parameter value of the first preset parameter in the target parameter information into a pre-built processing module delay model for calculation, to obtain an estimated processing delay of the target data flow in the processing module; Substituting the parameter value of the second preset parameter in the target parameter information into a pre-built scheduling module delay model for calculation, to obtain the estimated scheduling delay of the target data flow in the scheduling module; An evaluation result of the forwarding capability of the network switching device for the target data flow is obtained according to the evaluation processing delay and the evaluation scheduling delay.
2. The method for evaluating the forwarding capability of a network switching device according to claim 1, wherein: The processing module delay model reflects the relationship between the processing delay of the data flow in the processing module and the first preset parameter and the service rate parameter value of the processing module, and the scheduling module delay model reflects the relationship between the scheduling delay of the data flow in the scheduling module and the second preset parameter and the service rate parameter value of the scheduling module; The forwarding capability evaluation method of the network switching device also includes: Acquiring test data obtained by performing a data flow forwarding test on the network switching device; The service rate parameter value of the processing module and the service rate parameter value of the scheduling module are calculated according to the test data to construct the processing module delay model and the scheduling module delay model.
3. The method for evaluating the forwarding capability of a network switching device according to claim 2, wherein: The test data includes actual total delay data, which is obtained by sending a test data stream to the network switching device and collecting delay data, and the test parameter information of the test data stream includes a parameter value of the test data stream with respect to the first preset parameter and a parameter value with respect to the second preset parameter; The step of calculating the service rate parameter value of the processing module and the service rate parameter value of the scheduling module according to the test data to construct the processing module delay model and the scheduling module delay model comprises: The service rate parameter value of the processing module and the service rate parameter value of the scheduling module are calculated according to the actual total delay data, the test parameter information, the preset first delay model to be constructed and the preset second delay model to be constructed, wherein the first delay model to be constructed reflects the relationship between the processing delay of the data flow in the processing module and the first preset parameter and the service rate parameter of the processing module, and the second delay model to be constructed reflects the relationship between the scheduling delay of the data flow in the scheduling module and the second preset parameter and the service rate parameter of the scheduling module; The processing module delay model is obtained based on the service rate parameter value of the processing module and the first delay model to be constructed, and the scheduling module delay model is obtained based on the service rate parameter value of the scheduling module and the second delay model to be constructed.
4. The method for evaluating the forwarding capability of a network switching device according to claim 3, wherein: There are two groups of test data streams, and the packet lengths of the two groups of test data streams are different. The actual total delay data includes the maximum delay values corresponding to the two groups of test data streams, and the maximum delay value corresponding to the test data stream is the maximum value of the total delay generated by the network switching device forwarding each data packet in the test data stream; The step of calculating the service rate parameter value of the processing module and the service rate parameter value of the scheduling module according to the actual total delay data, the test parameter information, the preset first delay model to be constructed, and the preset second delay model to be constructed comprises: For each group of the test data streams, substituting the maximum delay value and the test parameter information corresponding to the test data stream into the first delay model to be constructed and the second delay model to be constructed to obtain an equation corresponding to the test data stream; The equations corresponding to the two groups of test data streams are combined into a set of equations about the service rate parameters of the processing module and the service rate parameters of the scheduling module, and the service rate parameter values of the processing module and the service rate parameter values of the scheduling module are calculated based on the set of equations.
5. The method for evaluating the forwarding capability of a network switching device according to claim 3, wherein: The actual total delay data includes the total delay generated by the network switching device forwarding each data packet in the test data stream; The step of calculating the service rate parameter value of the processing module and the service rate parameter value of the scheduling module according to the actual total delay data, the test parameter information, the preset first delay model to be constructed, and the preset second delay model to be constructed comprises: According to the actual total delay data, the actual probability distribution of the total delay of the test data flow in the network switching device is obtained by fitting; Substituting the test parameter information into the first delay model to be constructed and the second delay model to be constructed to obtain a theoretical probability distribution of the total delay of the test data flow in the network switching device; The service rate parameter value of the processing module and the service rate parameter value of the scheduling module are calculated according to the actual probability distribution and the theoretical probability distribution.
6. The method for evaluating the forwarding capability of a network switching device according to claim 3, wherein: The step of obtaining test data obtained by performing a data flow forwarding test on the network switching device comprises: Obtaining the test parameter information; Controlling the test instrument to send the test data stream to the network switching device according to the test parameter information; The actual total delay data of the forwarding process of the test data stream by the network switching device measured by the test instrument is obtained, and the actual total delay data is used as the test data.
7. The method for evaluating the forwarding capability of a network switching device according to claim 2, wherein: The processing module delay model is a probability distribution of the processing delay of the data flow in the processing module, and the probability distribution reflects the relationship between the probability of the processing delay of the data flow in the processing module and the first preset parameter and the service rate parameter value of the processing module; The step of substituting the parameter value of the first preset parameter in the target parameter information into a pre-built processing module delay model for calculation to obtain the estimated processing delay of the target data flow in the processing module includes: The preset probability value and the parameter value of the first preset parameter in the target parameter information are substituted into the delay model of the processing module for calculation, and a delay value is obtained in which the probability of the target data flow occurring in the processing module is the preset probability value, and the delay value is used as the evaluation processing delay of the target data flow in the processing module.
8. The method for evaluating the forwarding capability of a network switching device according to claim 7, wherein: The first preset parameter includes an arrival rate parameter of the data stream; The step of substituting the preset probability value and the parameter value of the first preset parameter in the target parameter information into the processing module delay model for calculation to obtain the delay value at which the probability of the target data flow occurring in the processing module is the preset probability value comprises: Calculate the utilization parameter value of the processing module according to the parameter value of the target data flow with respect to the arrival rate parameter and the service rate parameter value of the processing module; The preset probability value, the utilization parameter value and the parameter value of the target data flow with respect to the arrival rate parameter are substituted into the processing module delay model for calculation to obtain a delay value at which the probability of the target data flow occurring in the processing module is the preset probability value.
9. The method for evaluating the forwarding capability of a network switching device according to claim 8, wherein: The processing module delay model is: Among them, D pro represents the processing delay of the data flow in the processing module, τ represents time, P represents probability, e represents a natural constant, ρ represents the utilization parameter of the processing module, λ represents the arrival rate parameter, which refers to the number of data packets arriving per unit time, and μ' represents the service rate parameter value of the processing module, which refers to the number of data packets processed by the processing module per unit time.
10. The method for evaluating the forwarding capability of a network switching device according to claim 2, wherein: The scheduling module delay model includes sub-models corresponding to a plurality of preset scheduling modes, respectively, and the sub-models reflect the relationship between the scheduling delay of the data flow in the scheduling module scheduled according to the preset scheduling mode, and the second preset parameter and the service rate parameter value of the scheduling module; The step of substituting the parameter value of the second preset parameter in the target parameter information into a pre-built scheduling module delay model for calculation to obtain the estimated scheduling delay of the target data flow in the scheduling module includes: Acquire a preconfigured target scheduling mode of the network switching device; Substitute the parameter value of the second preset parameter in the target parameter information into the sub-model corresponding to the target scheduling mode for calculation to obtain the estimated scheduling delay of the target data flow in the scheduling module.
11. The method for evaluating the forwarding capability of a network switching device according to claim 10, wherein: The second preset parameters include a packet length of the data stream, an arrival rate parameter and a burst parameter in an arrival curve of the data stream; The sub-model includes a delay boundary model and a service curve parameter model, wherein the delay boundary model reflects the maximum scheduling delay of the data flow in the scheduling module that is scheduled according to the preset scheduling mode, and the relationship between the burst parameter of the data flow, the service rate and the delay factor of the service curve provided by the scheduling module for the data flow, and the service curve parameter model reflects the relationship between the service rate parameter and the delay factor parameter of the service curve provided by the scheduling module for the data flow, the second preset parameter and the service rate parameter value of the scheduling module; The step of substituting the parameter value of the second preset parameter in the target parameter information into the submodel corresponding to the target scheduling mode for calculation to obtain the estimated scheduling delay of the target data flow in the scheduling module includes: Substituting the parameter value of the second preset parameter in the target parameter information into the service curve parameter model in the sub-model corresponding to the target scheduling mode, and calculating the target service rate parameter value and the target delay factor parameter value of the service curve provided by the scheduling module for the target data flow; Substitute the parameter value of the burst volume parameter of the target data flow, the target service rate parameter value and the target delay factor parameter value into the delay boundary model in the sub-model corresponding to the target scheduling method, calculate the maximum delay value of the target data flow in the scheduling module, and use the maximum delay value as the evaluated scheduling delay.
12. The method for evaluating the forwarding capability of a network switching device according to any one of claims 1 to 11, wherein: The step of obtaining the forwarding capability evaluation result of the network switching device for the target data flow according to the evaluation processing delay and the evaluation scheduling delay comprises: The evaluation processing delay, the evaluation scheduling delay and the preset node forwarding delay are added together to obtain a total delay, and the total delay is used as a result of the forwarding capability evaluation of the network switching device for the target data flow.
13. A device for evaluating the forwarding capability of a network switching device, wherein: The forwarding capability evaluation device of the network switching device includes: a memory, a processor, and a forwarding capability evaluation program of the network switching device stored in the memory and executable on the processor. When the forwarding capability evaluation program of the network switching device is executed by the processor, the forwarding capability evaluation method of the network switching device as described in any one of claims 1 to 12 is implemented.
14. A computer-readable storage medium, wherein: The computer-readable storage medium stores a forwarding capability evaluation program for a network switching device, and when the forwarding capability evaluation program for a network switching device is executed by a processor, the forwarding capability evaluation method for a network switching device according to any one of claims 1 to 12 is implemented.
Citation Information
Patent Citations
End-to-end delay upper bound assessment method based on retransmission feedback for wireless sensor network
CN106102084A
Method for determining required bandwidth for transmitting data stream, equipment and system
CN112583735A
Multi-parameter performance modeling evaluation method based on network calculation
CN113742902A
Performance evaluation method, device and equipment for underwater acoustic sensor network and medium
CN115987833A
System for performing a lineage control in a data network
US20200117731A1
