Data packet sending method and system for configuring queue rule according to power business demand

By adding the geiri_tc power service rules module to the TCP/IP network protocol stack, setting queue rules and flow control strategies according to the power service classification, the high reliability problem of power service in the network is solved, and the reliable transmission and communication capabilities of power service data are realized. , enhancing the safety and stability of power business.

CN119135619APending Publication Date: 2024-12-13GLOBAL ENERGY INTERCONNECTION RES INST CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410971531.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

The prior art cannot effectively ensure the high reliability of power services in the network, especially when network data traffic bursts, which may lead to data cache or discarding, affecting the stability of power equipment and the power grid.

Method used

By adding the geiri_tc power service rule module to the TCP/IP network protocol stack, setting queue rules according to the power service classification, and allocating data packet transmission space for power service data of the same priority, different flow control strategies are used to allocate SKB resources. Ensure reliable transmission of power service data.

Benefits of technology

In the event of emergencies, the customization and optimization of power service data is achieved, the network communication capabilities of multiple power service data streams are ensured, the security and strength of power services are increased, and the key messages such as heartbeat messages are ensured. Communication mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119135619A_ABST
    Figure CN119135619A_ABST
Patent Text Reader

Abstract

The invention discloses a data packet sending method and system for configuring a queue rule according to a power business demand, and the method comprises the steps: setting a queue rule corresponding to a business according to power business classification, configuring a priority, and distributing a rule scheme of a data packet sending space for different power business data with the same priority; the method comprises the following steps of: marking different types of power services through a giritc power service rule module added in a TCP / IP (Transmission Control Protocol / Internet Protocol) network protocol stack, and marking different flow control strategies according to queue rules corresponding to the services; and calling a corresponding network drive to send the data packet according to a queue rule realized by software. According to the method, a method of modifying a network data protocol stack in network equipment is adopted, the power business is customized and optimized and is matched with the power grid business demand when the flow overflows in an emergency, and multiple pieces of power business data still have the network communication capability under the condition that multiple pieces of power business data flow have the same priority, so that the network communication efficiency is improved. And the safety and the robustness of the power business are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power business network protocol stack flow control, and in particular to a data packet sending method and system for configuring queue rules according to power business requirements. Background Art

[0002] There are many types of power services. The control-type power services with higher priority include but are not limited to distributed power supply regulation, new energy storage regulation, distribution automation "three remote controls", precise load control, distribution network protection, intelligent distributed feeder automation, new power load management and other services. There are also relatively low-priority power data services such as data collection, image and video, and auxiliary operation and maintenance.

[0003] When the power business is connected to the network in the traditional way, the network equipment uses different priority sending queues for different priority business data, and generally uses the first-in-first-out strategy to send data packets for the same priority power business data. With the development and progress of the times, network data traffic has increased sharply. When the business data traffic of the same priority bursts, the network equipment may cache or discard part of the network data. The power business needs to ensure high reliability. Even in the most difficult times, it is best to ensure a minimum communication mechanism to ensure the stability of power equipment and power grids. Summary of the invention

[0004] In order to solve the problem that the existing technology cannot meet the needs of high reliability of power business, the present invention proposes a data packet sending method that configures queue rules according to power business requirements, including:

[0005] According to the classification of power business, the queue rules corresponding to the business are set and the priority is configured, and the rule scheme for allocating data packet sending space for different power business data with the same priority;

[0006] By adding the geiri_tc power business rule module in the TCP / IP network protocol stack, different types of power business are marked, and different flow control strategies are matched according to the queue rules corresponding to the business;

[0007] The queue rules implemented by software call the corresponding network driver to send data packets.

[0008] Optionally, the queue discipline implemented by software calls a corresponding network driver to send a data packet, including:

[0009] When the network data packets to be sent belong to different power business categories, the corresponding network driver is called to send the data packets according to the queue rules corresponding to the power business category;

[0010] When the network data packets to be sent have the same priority, SKB resources are allocated to different service data flows according to the different flow control strategies.

[0011] Optionally, allocating SKB resources to different service data flows according to the different flow control strategies includes:

[0012] Implement the corresponding Qdisc_ops structure according to the different flow control strategies, and replace the Qdisc and Qdisc_ops corresponding to the network device in register_netdevice;

[0013] Rewrite the logic of sending network packets in the Qdisc->enqueue function;

[0014] Based on the rewritten logic of sending network data packets, the corresponding network device driver is called in qdisc_run to send data packets.

[0015] Optionally, the rule scheme for allocating transmission space for different power service data of the same priority level includes:

[0016] When the power service of the same priority is a fast forwarding service or a best-effort service, it is determined whether the SKB space is sufficient. If sufficient, a set proportion of SKB is allocated to the fast forwarding service or the best-effort service. Otherwise, a low proportion of SKB is allocated according to the rules to ensure the sending of service management messages and heartbeat messages of the fast forwarding service or the best-effort service.

[0017] When the power business with the same priority is a secure forwarding business, the SKB is allocated first to ensure the secure forwarding business.

[0018] Optionally, the step of setting queue rules corresponding to the services and configuring priorities according to the power service classification includes:

[0019] The weight of the performance indicator is set according to the power site conditions and the characteristics of the workload, and the queue rules corresponding to the service are adjusted according to the weight of the performance indicator;

[0020] Setting priorities according to characteristics of the business communication requirements;

[0021] The service communication requirements include: bandwidth, latency, reliability and characteristics;

[0022] The performance indicators include: rate, delay, network quality, and bandwidth;

[0023] The power field conditions include: the number and bandwidth of terminals connected to the field network equipment;

[0024] The characteristics of the workload include: whether the network where the terminal service is located is an intranet / extranet, the importance of the terminal service to the site, and the tolerance for rate, delay, network quality, and bandwidth performance indicators.

[0025] Optionally, setting the priority according to the characteristics of the service communication requirement includes:

[0026] Set the first priority to ensure secure forwarding services;

[0027] Set best-effort services as the second priority;

[0028] Set the fast forwarding service to the third priority;

[0029] The characteristics of the service communication requirements include: ensuring secure forwarding services, best-effort services and fast forwarding services;

[0030] The first priority level>the second priority level>the third priority level.

[0031] On the other hand, the present invention also provides a data packet sending system for configuring queue rules according to power business requirements, comprising:

[0032] The planning scheme module sets the queue rules corresponding to the business and configures the priority according to the classification of power business, and allocates the rule scheme of data packet sending space for different power business data with the same priority;

[0033] The geiri_tc power business rule module is set in the TCP / IP network protocol stack to mark different types of power business and match different flow control strategies according to the queue rules corresponding to the business;

[0034] Software: used to implement queue rules and call the corresponding network driver to send data packets.

[0035] Optionally, the software includes:

[0036] The electric power service marking submodule is used to mark the electric power service category to which the network data packet to be sent belongs, and select the corresponding preset queue rule according to the electric power service category;

[0037] The same-level calling submodule is used to allocate SKB resources to different business data flows according to the different flow control strategies when the network data packets to be sent belong to the same priority.

[0038] Optionally, the planning scheme module includes:

[0039] The priority configuration submodule is used to set the queue rules corresponding to the business and configure the priority according to the power business classification;

[0040] The space allocation submodule is used to allocate data packet sending space rules for different power business data of the same priority.

[0041] Optionally, the priority configuration submodule is specifically used for:

[0042] The weight of the performance indicator is set according to the power site conditions and the characteristics of the workload, and the queue rules corresponding to the service are adjusted according to the weight of the performance indicator;

[0043] Setting priorities according to characteristics of the business communication requirements;

[0044] The service communication requirements include: bandwidth, latency, reliability and characteristics;

[0045] The performance indicators include: rate, delay, network quality, and bandwidth;

[0046] The power site conditions include: for example, according to the number and bandwidth of terminals connected to the on-site network equipment, a large number of accesses may lead to a large number of business types, large CPU consumption, and less bandwidth surplus. When formulating business rules, it is necessary to make certain trade-offs based on the on-site business types. Basically, the business of power zone 1 and part of zone 2 involves power switches and protection services, which require extremely high security protection. They are all GSS services and need to be given priority when customizing rules. For example, power business inspection and other services can be processed later when formulating rules, but some important equipment inspections or power lines that are in extreme weather conditions all year round need troubleshooting, and the rules required at this time can be processed in advance;

[0047] The characteristics of the workload include: whether the network where the terminal business is located is an intranet / extranet, whether the terminal business is the business of a certain power zone, the importance of the terminal business to the site, and the tolerance for performance indicators such as rate, latency, network quality, and bandwidth.

[0048] Optionally, setting the priority according to the characteristics in the service communication requirement in the priority configuration submodule is implemented by the following steps:

[0049] Set the first priority to ensure secure forwarding services;

[0050] Set best-effort services as the second priority;

[0051] Set the fast forwarding service to the third priority;

[0052] The characteristics of the service communication requirements include: ensuring secure forwarding services, best-effort services and fast forwarding services;

[0053] The first priority level>the second priority level>the third priority level.

[0054] Optionally, the space allocation submodule is specifically used for:

[0055] When the power service of the same priority is a fast forwarding service or a best effort service, it is determined whether the SKB space is sufficient. If sufficient, a set proportion of SKB is allocated to the fast forwarding service. Otherwise, a low proportion of SKB is allocated according to the rules to ensure the sending of service management messages and heartbeat messages.

[0056] When the power business with the same priority is a secure forwarding business, the SKB is allocated first to ensure the secure forwarding business.

[0057] In another aspect, the present application further provides a computing device, comprising: at least one processor and a memory; the memory and the processor are connected via a bus;

[0058] The memory is used to store one or more programs;

[0059] When the one or more programs are executed by the at least one processor, a method for sending data packets with queue rules configured according to power business requirements as described above is implemented.

[0060] On the other hand, the present application further provides a computer-readable storage medium having an execution program stored thereon, and when the execution program is executed, a method for sending data packets according to the configuration of queue rules based on power business requirements as described above is implemented.

[0061] Compared with the prior art, the present invention has the following beneficial effects:

[0062] The present invention provides a data packet sending method for configuring queue rules according to power business requirements, including: setting queue rules corresponding to services and configuring priorities according to power business classification, and allocating data packet sending space rule schemes for different power business data of the same priority; marking different categories of power services by adding a geiri_tc power business rule module in a TCP / IP network protocol stack, and matching different flow control strategies according to the queue rules corresponding to the services; calling corresponding network drivers to send data packets through software-implemented queue rules. The method of the present invention adopts a method of modifying a network data protocol stack in a network device to reserve space and flow control for related power business data streams, so as to achieve customized optimization for power business when flow overflows in a sudden situation, match power grid business requirements, and enable multiple power business data to have network communication capabilities when multiple power business data streams have the same priority, and ensure similar heartbeat messages, goose messages, and other notification equipment safety (or other management messages) message communication mechanisms without modifying the hardware of power communication equipment, thereby increasing the security and robustness of power business. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 A flow chart of a method for sending data packets according to the configuration of queue rules based on power business requirements of the present invention;

[0064] Figure 2 This is a schematic diagram of an application of a method for sending data packets according to a specific embodiment of the present invention that configures queue rules according to power business requirements;

[0065] Figure 3 The figure is a schematic diagram of the structure of a computer device of the present invention. DETAILED DESCRIPTION

[0066] The present invention proposes a data packet sending method that configures queue rules according to power business requirements, and adopts a method of modifying the network data protocol stack in the network device to reserve space and flow control for the relevant power business data flow, so as to achieve customized optimization for the power business when the flow overflows in the case of a sudden situation, match the power grid business requirements, and enable multiple power business data to have network communication capabilities when multiple power business data flows have the same priority, and ensure the communication mechanism of messages such as heartbeat messages, goose messages, etc. that notify device safety (or other management messages) without modifying the hardware of the power communication equipment, thereby increasing the security and robustness of the power business. .

[0067] Embodiment 1:

[0068] A method for sending data packets with queue rules configured according to power business requirements, such as Figure 1 As shown, including:

[0069] Step 1: Set the queue rules corresponding to the services and configure the priorities according to the power service classification, and allocate the rule scheme for sending data packets for different power service data with the same priority;

[0070] Step 2: Mark different types of power services by adding the geiri_tc power service rule module in the TCP / IP network protocol stack, and match different flow control strategies according to the queue rules corresponding to the services;

[0071] Step 3: Call the corresponding network driver to send data packets through the queue rules implemented by software.

[0072] The following is a further description of each step:

[0073] Step 1: Set the queue rules corresponding to the service and configure the priority according to the power service classification, and allocate the rule scheme for sending data packets for different power service data with the same priority, including:

[0074] The weight of the performance indicator is set according to the power site conditions and the characteristics of the workload, and the queue rules corresponding to the service are adjusted according to the weight of the performance indicator;

[0075] Setting priorities according to characteristics of the business communication requirements;

[0076] When the power service of the same priority is a fast forwarding service or a best-effort service, it is determined whether the SKB space is sufficient. If sufficient, a set proportion of SKB is allocated to the fast forwarding service or the best-effort service. Otherwise, a low proportion of SKB is allocated according to the rules to ensure the sending of service management messages and heartbeat messages of the fast forwarding service or the best-effort service.

[0077] When the power business of the same priority is to ensure the safe forwarding business, SKB is allocated first to ensure the safe forwarding business;

[0078] The service communication requirements include: bandwidth, latency, reliability and characteristics;

[0079] The performance indicators include: rate, delay, network quality, and bandwidth;

[0080] The power site conditions include: for example, according to the number and bandwidth of terminals connected to the on-site network equipment, a large number of accesses may lead to a large number of business types, large CPU consumption, and less bandwidth surplus. When formulating business rules, it is necessary to make certain trade-offs based on the on-site business types. Basically, the business of power zone 1 and part of zone 2 involves power switches and protection services, which require extremely high security protection. They are all GSS services and need to be given priority when customizing rules. For example, power business inspection and other services can be processed later when formulating rules, but some important equipment inspections or power lines that are in extreme weather conditions all year round need troubleshooting, and the rules required at this time can be processed in advance;

[0081] The characteristics of the workload include: whether the network where the terminal business is located is an intranet / extranet, whether the terminal business is the business of a certain power zone, the importance of the terminal business to the site, and the tolerance for performance indicators such as rate, latency, network quality, and bandwidth.

[0082] Furthermore, setting the priority according to the characteristics of the service communication requirements includes:

[0083] Set the first priority to ensure secure forwarding services;

[0084] Set best-effort services as the second priority;

[0085] Set the fast forwarding service to the third priority;

[0086] The characteristics of the service communication requirements include: ensuring secure forwarding services, best-effort services and fast forwarding services;

[0087] The first priority level>the second priority level>the third priority level.

[0088] The following is a detailed description of step 1 with examples:

[0089] Customized optimization is carried out for power services to match the needs of power grid services, including but not limited to distributed power supply regulation, new energy storage regulation, distribution automation "three remote", precise load control, distribution network protection, intelligent distributed feeder automation, new power load management and other services. According to the on-site operation requirements and traffic conditions, power services are classified into: fast forwarding services (highspeed service hss), guaranteed safety forwarding services (guarantee safety service), best-effort services (Best-effort Service bes) and other types, and priority is assigned. Then, the rules for allocating and sending space for different power service data of the same priority are customized (Qdisc Queue Discipline, queue rules). The business communication requirements corresponding to each business scenario are shown in Table 1:

[0090] Table 1

[0091]

[0092]

[0093] The queue rules corresponding to each power service can set the weights of corresponding performance indicators (rate, delay, etc.) according to the power site conditions and the characteristics of the workload, so as to dynamically adjust the rules corresponding to the service so that the service traffic is reasonably allocated to the SKB (short for struct sk_buff data structure): fast forwarding service (hss), guaranteed security forwarding service (gss), and best effort service (bes).

[0094] (1) Fast forwarding service (hss): The service time response requirement is not high and the service data volume is not large. In this case, if there is SKB space, a set proportion of SKB should be allocated. The set proportion here can be up to 90% and at least 10%, that is, up to 90% of SKB can be allocated to the hss service, but at least 10% of SKB should be guaranteed to ensure service security. Ensure that the request can be forwarded to the server of the main station.

[0095] (2) Best-effort service (BES): A large amount of network data transmission is required. In this case, the proportion of network and IO is appropriately increased. When the network is congested or conditions do not allow, a large number of data requests can be cached in the server memory or even the hard disk with sufficient resources. However, the service management messages and heartbeats are still allocated by SKB. The situations where conditions do not allow include: network interruption, poor signal quality, heartbeat or keep-alive message interruption, etc.

[0096] (3) Guaranteed secure forwarding service (gss): The service requires the system to respond quickly and ensure safe delivery. This type of service is basically of very high priority. At this time, various factors can be taken into account and data can be forwarded first as much as possible. That is, when the queue rules are formulated according to the power business in step 1, the rules can be customized to prioritize the allocation of skb, so as to ensure the response time and other performance of the system. The queue rules corresponding to each power business can set the weights of the corresponding performance indicators (rate, delay, etc.) according to the power site conditions and the characteristics of the workload, so as to dynamically adjust the rules corresponding to the business so that the business traffic is reasonably allocated to the skb.

[0097] Step 2: Different types of power services are marked by the geiri_tc power service rule module added to the TCP / IP network protocol stack, and different flow control strategies are matched according to the queue rules corresponding to the services, including:

[0098] Add the geiri_tc power business rule module in the TCP / IP network protocol stack net / core / dev.c to mark different power businesses, and follow step 1 to match different flow control strategies.

[0099] According to different power business flow control strategies, the corresponding kernel network queue discipline structure (Qdisc_ops) is implemented, and the kernel network queue discipline (Qdisc) and Qdisc_ops corresponding to the network device are replaced in the kernel network device registration function (register_netdevice).

[0100] Rewrite the logic of sending network data packets in the enqueue function (enqueue) of Qdisc->queue rules, and allocate SKB resources to different business data streams with the same priority according to the pre-customized rules in step 1 to ensure that multiple power business data streams have network communication capabilities when they have the same priority.

[0101] Step 3: Call the corresponding network driver to send data packets through the queue rules implemented by software, including:

[0102] When the network data packets to be sent belong to different power business categories, the corresponding network driver is called to send the data packets according to the queue rules corresponding to the power business category;

[0103] When the network data packets to be sent have the same priority, SKB resources are allocated to different service data flows according to the different flow control strategies.

[0104] The specific implementation process is as follows: in the kernel network queue discipline running function (qdisc_run), the corresponding network device driver (similar to dev->hard_start_xmit) is called to send data packets.

[0105] Combine the following Figure 2 The specific application of the present invention is further introduced:

[0106] The network card receives the network data packet to be sent, marks the power business data flow with the same priority through the kernel protocol stack IP STACK Ingress Qdisc, writes a new queue rule, and allocates SKB resources to different business data flows with the same priority according to the pre-defined rules;

[0107] Following the principle of ensuring that different service data flows with the same priority can be allocated corresponding SKB resources in the same sending buffer, SKB resources are sent for power service 1…power service N;

[0108] The network data packet to be sent is sent through the network card, that is, the corresponding network device driver (similar to dev->hard_start_xmit) is called in the kernel network queue discipline running function (qdisc_run) to send the data packet.

[0109] Embodiment 2:

[0110] The present invention based on the same inventive concept also provides a data packet sending system for configuring queue rules according to power business requirements, including:

[0111] The planning scheme module sets the queue rules corresponding to the business and configures the priority according to the classification of power business, and allocates the rule scheme of data packet sending space for different power business data with the same priority;

[0112] The geiri_tc power business rule module is set in the TCP / IP network protocol stack to mark different types of power business and match different flow control strategies according to the queue rules corresponding to the business;

[0113] Software: used to implement queue rules and call the corresponding network driver to send data packets.

[0114] Optionally, the software includes:

[0115] The electric power service marking submodule is used to mark the electric power service category to which the network data packet to be sent belongs, and select the corresponding preset queue rule according to the electric power service category;

[0116] The same-level calling submodule is used to allocate SKB resources to different business data flows according to the different flow control strategies when the network data packets to be sent belong to the same priority.

[0117] Optionally, the same-level calling submodule is specifically used for:

[0118] Implement the corresponding Qdisc_ops structure according to the different flow control strategies, and replace the Qdisc and Qdisc_ops corresponding to the network device in register_netdevice;

[0119] Rewrite the logic of sending network packets in the Qdisc->enqueue function;

[0120] Based on the rewritten logic of sending network data packets, the corresponding network device driver is called in qdisc_run to send data packets.

[0121] Optionally, the planning scheme module includes:

[0122] The priority configuration submodule is used to set the queue rules corresponding to the business and configure the priority according to the power business classification;

[0123] The space allocation submodule is used to allocate data packet sending space rules for different power business data of the same priority.

[0124] Optionally, the priority configuration submodule is specifically used for:

[0125] The weight of the performance indicator is set according to the power site conditions and the characteristics of the workload, and the queue rules corresponding to the service are adjusted according to the weight of the performance indicator;

[0126] Setting priorities according to characteristics of the business communication requirements;

[0127] The service communication requirements include: bandwidth, latency, reliability and characteristics;

[0128] The performance indicators include: rate, delay, network quality, and bandwidth;

[0129] The power field conditions include: the number and bandwidth of terminals connected to the field network equipment;

[0130] The characteristics of the workload include: whether the network where the terminal service is located is an intranet / extranet, the importance of the terminal service to the site, and the tolerance for rate, delay, network quality, and bandwidth performance indicators.

[0131] Optionally, setting the priority according to the characteristics in the service communication requirement in the priority configuration submodule is implemented by the following steps:

[0132] Set the first priority to ensure secure forwarding services;

[0133] Set best-effort services as the second priority;

[0134] Set the fast forwarding service to the third priority;

[0135] The characteristics of the service communication requirements include: ensuring secure forwarding services, best-effort services and fast forwarding services;

[0136] The first priority level>the second priority level>the third priority level.

[0137] Embodiment 3:

[0138] like Figure 3 As shown, the present invention also provides an electronic device, which may be a computer device, a single-chip device, an intelligent mobile device, etc. The electronic device in this embodiment may include a processor, a memory, a transceiver component, etc. The memory, the processor, and the transceiver component are connected via a bus; the memory may be used to store an execution program, and an exemplary execution program may include instructions; the processor is used to execute the instructions stored in the memory. The memory may also be used to store data, which may be called and / or modified when the instructions are executed.

[0139] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions in a storage medium to implement the corresponding method flow or corresponding functions, so as to implement the steps of a data packet sending method in the above embodiment that configures queue rules according to power business needs.

[0140] Embodiment 4:

[0141] Based on the same inventive concept, the present invention also provides a readable storage medium, specifically an electronic device readable storage medium (Memory), which is a memory device in an electronic device for storing programs and data. It can be understood that the storage medium here can include both built-in storage media in electronic devices and, of course, extended storage media supported by electronic devices. The storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more execution programs (including program codes). It should be noted that the storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor loads and executes one or more instructions stored in the storage medium, which can implement the steps of a method for sending a data packet in the above embodiment according to the configuration of queue rules according to power business needs.

[0142] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0143] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0144] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0145] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0146] The above are merely embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are included in the scope of the claims of the present invention to be approved.

Claims

1. A method for sending data packets with queue rules configured according to power business requirements, It is characterized in that include: According to the classification of power services, queue rules corresponding to the services are set and priorities are configured, and a rule scheme for allocating data packet sending space for different power service data with the same priority; By adding the geiri_tc power business rule module in the TCP / IP network protocol stack, different types of power business are marked, and different flow control strategies are matched according to the queue rules corresponding to the business; The queue rules implemented by software call the corresponding network driver to send data packets.

2. The method according to claim 1, It is characterized in that The queue rules implemented by software call the corresponding network driver to send data packets, including: When the network data packets to be sent belong to different power business categories, the corresponding network driver is called to send the data packets according to the queue rules corresponding to the power business category; When the network data packets to be sent have the same priority, SKB resources are allocated to different service data flows according to the different flow control strategies.

3. The method according to claim 2, It is characterized in that The allocating SKB resources to different service data flows according to the different flow control strategies includes: Implement corresponding Qdisc_ops according to the different traffic control strategies, and replace Qdisc and Qdisc_ops corresponding to the network device in register_netdevice; Rewrite the logic of sending network packets in the Qdisc->enqueue function; Based on the rewritten logic of sending network data packets, the corresponding network device driver is called in qdisc_run to send data packets.

4. The method according to claim 1, It is characterized in that The rule scheme for allocating data packet transmission space for different power service data of the same priority level includes: When the power service of the same priority is a fast forwarding service or a best-effort service, it is determined whether the SKB space is sufficient. If sufficient, a set proportion of SKB is allocated to the fast forwarding service or the best-effort service. Otherwise, a low proportion of SKB is allocated according to the rules to ensure the sending of service management messages and heartbeat messages of the fast forwarding service or the best-effort service. When the power business with the same priority is a secure forwarding business, the SKB is allocated first to ensure the secure forwarding business.

5. The method according to claim 1, It is characterized in that The step of setting queue rules corresponding to the services and configuring priorities according to the power service classification includes: The weight of the performance indicator is set according to the power site conditions and the characteristics of the workload, and the queue rules corresponding to the service are adjusted according to the weight of the performance indicator; Setting priorities according to characteristics of the business communication requirements; The service communication requirements include: bandwidth, latency, reliability and characteristics; The performance indicators include: rate, delay, network quality, and bandwidth; The power field conditions include: the number and bandwidth of terminals connected to the field network equipment; The characteristics of the workload include: whether the network where the terminal service is located is an intranet / extranet, the importance of the terminal service to the site, and the tolerance for rate, delay, network quality, and bandwidth performance indicators.

6. The method according to claim 5, It is characterized in that The setting of the priority according to the characteristics of the service communication requirements includes: Set the first priority to ensure secure forwarding services; Set best-effort services as second priority; Set the fast forwarding service to the third priority; The characteristics of the service communication requirements include: ensuring secure forwarding services, best-effort services and fast forwarding services; The first priority level>the second priority level>the third priority level.

7. A data packet sending system that configures queue rules based on power business needs, It is characterized in that include: The planning scheme module sets the queue rules corresponding to the business and configures the priority according to the classification of power business, and allocates the rule scheme of data packet sending space for different power business data with the same priority; The geiri_tc power business rule module is set in the TCP / IP network protocol stack to mark different types of power business and match different flow control strategies according to the queue rules corresponding to the business; Software: used to implement queue rules and call the corresponding network driver to send data packets.

8. The system of claim 7, It is characterized in that The software includes: The electric power service marking submodule is used to mark the electric power service category to which the network data packet to be sent belongs, and select the corresponding preset queue rule according to the electric power service category; The same-level calling submodule is used to allocate SKB resources to different business data flows according to the different flow control strategies when the network data packets to be sent belong to the same priority.

9. A computer device, It is characterized in that include: at least one processor and memory; The memory and the processor are connected via a bus; The memory is used to store one or more programs; When the one or more programs are executed by the at least one processor, a method for sending data packets according to configuring queue rules based on power business requirements as described in any one of claims 1 to 6 is implemented.

10. A computer-readable storage medium, It is characterized in that An execution program is stored thereon, and when the execution program is executed, a method for sending data packets according to any one of claims 1 to 6 for configuring queue rules based on power business requirements is implemented.

Citation Information

Cited By

  • Scheduling method and system for power transaction data collection task

    CN122985359A