Priority-based data packet forwarding method and device, equipment and storage medium
By classifying and mapping multi-dimensional characteristic parameters of data packets and performing protocol mapping, combined with network status parameters, traffic forwarding between different switches is achieved, solving the problem of unstable network traffic caused by the inflexibility of the 802.1p protocol and improving the stability of network traffic and configuration efficiency.
Patent Information
- Application Number
- CN202510880381.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-27
- Publication Date
- 2025-09-12
AI Technical Summary
The existing 802.1p protocol is inflexible in traffic management, resulting in unstable network traffic transmission and difficulty in meeting the diverse needs of actual application scenarios.
By obtaining the multi-dimensional characteristic parameters of the data packet, classification and priority information are determined, and combined with the network traffic status parameters, protocol mapping and priority queue management are performed to achieve data packet forwarding.
Improves the stability of network traffic transmission, ensures that the priority of key services remains consistent across different switches, dynamically adjusts priorities to cope with traffic fluctuations, simplifies the configuration process and reduces errors.
Smart Images

Figure CN120639715A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data forwarding technology, and in particular to a priority-based data packet forwarding method, apparatus, device, and storage medium. Background Art
[0002] Currently, network switches commonly use the 802.1p protocol to implement QoS (Quality of Service) management and priority processing. This protocol manages traffic priorities by providing up to eight priority levels for the Priority Code Point (PCP) field in Ethernet frames. However, the existing 802.1p protocol is inflexible in traffic management. While 802.1p priority levels can support basic traffic classification, there is still a gap between its priority division and the diverse needs of actual application scenarios, resulting in unstable network traffic transmission. Therefore, how to improve the stability of network traffic transmission remains an unresolved issue.
[0003] The above content is only used to assist in understanding the technical solution of this application and does not constitute an admission that the above content is prior art. Summary of the Invention
[0004] The main purpose of this application is to provide a priority-based data packet forwarding method, device, equipment and storage medium, aiming to solve the technical problem of how to improve the stability of network traffic transmission.
[0005] To achieve the above objectives, the present application proposes a priority-based data packet forwarding method, the method comprising:
[0006] Acquire a data packet, classify the data packet to obtain a classification result; determine priority information of the data packet according to the classification result; perform protocol mapping on the priority information to obtain general priority information; and forward the data packet according to the general priority information.
[0007] In one embodiment, the step of classifying the data packet to obtain a classification result includes:
[0008] Extracting multidimensional characteristic parameters of the data packet, wherein the multidimensional characteristic parameters include at least content, source address, destination address, and protocol type;
[0009] Determine the traffic type of the data packet using the multi-dimensional characteristic parameters;
[0010] The classification result is determined according to the traffic type.
[0011] In one embodiment, the step of determining the priority information of the data packet according to the classification result includes:
[0012] Obtaining state parameters of current network traffic, including bandwidth utilization and service delay;
[0013] Priority information is calculated based on the classification result and the state parameter according to a preset priority strategy.
[0014] In one embodiment, before calculating the priority information based on the classification result and the state parameter according to a preset priority strategy, the method further includes:
[0015] receiving an operation instruction, wherein the operation instruction is generated by a user by dragging the visualization module;
[0016] Obtaining a preset priority strategy according to the operation instruction;
[0017] The preset priority policy is synchronized to the target switch device.
[0018] In one embodiment, the step of performing protocol mapping on the priority information to obtain universal priority information includes:
[0019] Parse the device protocol support list of the target switch;
[0020] Determining a priority compatible format according to the device protocol support list;
[0021] Protocol mapping is performed on the priority information according to the compatible format to obtain universal priority information.
[0022] In one embodiment, the step of forwarding the data packet according to the general priority information includes:
[0023] determining a priority queue for the data packet according to the general priority information;
[0024] Data packets are forwarded according to the priority queue and preset queue forwarding rules.
[0025] In one embodiment, after forwarding the data packet according to the general priority information, the method further includes:
[0026] Collect network traffic status change data in real time;
[0027] The general priority information is adjusted based on the state change data.
[0028] In addition, to achieve the above-mentioned purpose, the present application also proposes a priority-based data packet forwarding device, the priority-based data packet forwarding device comprising:
[0029] A classification module is used to obtain data packets, classify the data packets, and obtain classification results;
[0030] A determination module, configured to determine priority information of the data packet according to the classification result;
[0031] A mapping module, configured to perform protocol mapping on the priority information to obtain universal priority information;
[0032] A forwarding module is used to forward data packets according to the general priority information.
[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a priority-based data packet forwarding device, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program is configured to implement the steps of the priority-based data packet forwarding method as described above.
[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the priority-based data packet forwarding method as described above are implemented.
[0035] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the steps of the priority-based data packet forwarding method as described above.
[0036] The present application provides a priority-based data packet forwarding method, which obtains data packets, classifies the data packets, and obtains classification results; determines priority information of the data packets based on the classification results; performs protocol mapping on the priority information to obtain general priority information; and forwards data packets based on the general priority information.
[0037] In summary, this application maps priority information to obtain universal priority information, which can smoothly forward traffic on each switch, manage network traffic in more detail, and improve the stability of network traffic transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0040] Figure 1 A flowchart illustrating a first embodiment of a priority-based packet forwarding method of the present application is provided;
[0041] Figure 2 A flowchart illustrating a second embodiment of the priority-based packet forwarding method of the present application is provided;
[0042] Figure 3 A schematic diagram of a simplified flow chart of a priority-based data packet forwarding method provided in Example 1 of the present application;
[0043] Figure 4 This is a schematic diagram of the module structure of a priority-based data packet forwarding device according to an embodiment of the present application;
[0044] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the priority-based data packet forwarding method in the embodiment of the present application.
[0045] The purpose, features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0046] It should be understood that the specific embodiments described herein are merely used to explain the technical solutions of the present application and are not intended to limit the present application.
[0047] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0048] The main solution of this application is to obtain data packets, classify the data packets, and obtain classification results; determine the priority information of the data packets based on the classification results; perform protocol mapping on the priority information to obtain general priority information; and forward the data packets based on the general priority information.
[0049] Currently, network switches commonly use the 802.1p protocol to implement QoS (Quality of Service) management and priority processing. This protocol manages traffic priorities by providing up to eight priority levels for the Priority Code Point (PCP) field in Ethernet frames. However, the existing 802.1p protocol is inflexible in traffic management. While 802.1p priority levels can support basic traffic classification, there is still a gap between its priority division and the diverse needs of actual application scenarios, resulting in unstable network traffic transmission. Therefore, how to improve the stability of network traffic transmission remains an unresolved issue.
[0050] This application maps priority information to obtain universal priority information, which can smoothly forward traffic on various switches, manage network traffic in more detail, and improve the stability of network traffic transmission.
[0051] Based on this, the embodiment of the present application provides a method for forwarding data packets based on priority, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the priority-based data packet forwarding method of the present application.
[0052] In this embodiment, the priority-based data packet forwarding method includes steps S10 to S40:
[0053] Step S10: Acquire a data packet, classify the data packet, and obtain a classification result;
[0054] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, mobile phone, etc., or an electronic device capable of implementing the above functions, a priority-based packet forwarding device, etc. The following describes this embodiment and the following embodiments using a priority-based packet forwarding device as an example.
[0055] As you can understand, every packet in the network is labeled and classified into different traffic types. The classification process is based on multiple factors such as the packet's content, source, destination, and protocol.
[0056] In a feasible manner, the step of classifying the data packet and obtaining the classification result includes: extracting the multidimensional feature parameters of the data packet, the multidimensional feature parameters including at least content, source address, destination address and protocol type; determining the traffic type of the data packet using the multidimensional feature parameters; and determining the classification result based on the traffic type.
[0057] It is understood that multi-dimensional features include at least content, source address, destination address, and protocol type. The multi-dimensional feature parameters are used to determine the traffic type of the packet, such as voice traffic, video traffic, and data traffic. Different traffic types have different priorities in different scenarios, so traffic priorities need to be differentiated to ensure that important traffic is forwarded first.
[0058] It should be noted that in order to simplify the management and configuration of 802.1p priority, this embodiment provides a unified priority management platform. This platform can help administrators easily configure traffic priority rules in the network. The platform provides a user-friendly graphical operation interface, and network administrators can configure priority policies by simply dragging and selecting. There is no need to configure each device separately through the command line, which improves management efficiency; once the administrator completes the configuration of the priority policy, the platform will automatically push the configuration to all required switch devices. This process reduces the complexity of manual operations and the occurrence of errors. The platform can also monitor the priority configuration of devices in the network in real time. If the priority configuration of certain switches is found to be abnormal (such as inconsistent configuration or wrong priority), the system will automatically correct it.
[0059] Step S20: determining the priority information of the data packet according to the classification result;
[0060] As you can see, traffic types are determined based on the classification results, and then assigned to different priority queues based on business needs and network conditions. Traffic priorities can be adjusted dynamically. For example, during periods of high network load, the network will prioritize video traffic to ensure stable video calls.
[0061] Step S30: performing protocol mapping on the priority information to obtain general priority information;
[0062] It should be noted that switches from different manufacturers may use different protocols and have different priority definitions. Therefore, protocol mapping is required to identify the priority definitions of different switches and map the traffic priority information to a format supported by each switch.
[0063] In a feasible manner, the step of performing protocol mapping on the priority information to obtain general priority information includes: parsing the device protocol support list of the target switch; determining the priority compatible format based on the device protocol support list; performing protocol mapping on the priority information according to the compatible format to obtain general priority information.
[0064] It is understandable that the device protocol support list of the target switch is obtained and the original priority is adjusted to a compatible format that can be recognized by all switches. In this process, protocol parsing and mapping algorithms, cross-vendor device compatibility analysis and data packet priority information transmission and verification mechanisms are used.
[0065] Step S40: forwarding the data packet according to the general priority information.
[0066] As you can see, once traffic is marked and prioritized, the protocol mapping mechanism ensures that this information is passed throughout the network and correctly interpreted. This allows traffic priorities to be consistent across switches from different vendors, improving network performance.
[0067] In a feasible manner, the step of forwarding the data packet according to the general priority information includes: determining the priority queue of the data packet according to the general priority information; and forwarding the data packet according to the priority queue in accordance with a preset queue forwarding rule.
[0068] After forwarding the data packet according to the general priority information, the method further includes: collecting state change data of network traffic in real time; and adjusting the general priority information based on the state change data.
[0069] It is understandable that real-time traffic analysis is required during traffic transmission. Specifically, network status monitoring tools are used to collect network traffic data in real time and analyze traffic trends and congestion conditions in the network. For example, when a certain service's traffic surges, this change will be detected. Based on the results of the real-time analysis, the priority of the traffic needs to be adjusted. For example, when there is excessive data traffic at a certain moment, the priority of non-critical services will be lowered to ensure that the high priority of critical services (such as voice or video) is guaranteed. This mechanism uses dynamic algorithms, such as adjustment algorithms based on bandwidth prediction or traffic prediction models, to handle traffic priority adjustments.
[0070] It should be noted that the hardware used in this embodiment includes switch hardware, which must support the SONiC system and have high-performance data processing capabilities. The hardware acceleration function can improve the efficiency of protocol expansion, dynamic priority adjustment and traffic optimization; the network controller is responsible for managing the intelligent analysis and control of network traffic, can adjust the priority setting according to the network status, and pass the configuration information to the switch; the management platform provides network administrators with a graphical operation interface and management tools to ensure a simplified configuration process.
[0071] This embodiment obtains data packets, classifies the data packets to obtain classification results; determines priority information of the data packets based on the classification results; performs protocol mapping on the priority information to obtain general priority information; and forwards the data packets based on the general priority information.
[0072] In summary, this embodiment maps priority information to obtain universal priority information, which can smoothly forward traffic on each switch, manage network traffic in more detail, and improve the stability of network traffic transmission.
[0073] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above embodiment 1 can be referred to the above introduction and will not be described in detail later. Figure 2 , step S20 further includes steps S201 to S202:
[0074] Step S201: Acquire state parameters of current network traffic, including bandwidth utilization and service delay;
[0075] It is understandable that when determining the priority of a data packet, it is not only necessary to divide the priority according to the parameters and type of the data packet itself, but also to combine the status of network traffic and determine the most appropriate priority of the data packet under different network traffic conditions.
[0076] Step S202: Priority information is calculated based on the classification result and the state parameter according to a preset priority strategy.
[0077] As you can understand, data packets are classified into voice, video, and data traffic. Traffic is assigned to different priority queues based on service needs and network conditions. Traffic priorities can be adjusted dynamically. For example, during periods of high network load, the network will prioritize video traffic to ensure stable video calls. Traffic priorities are not fixed but are adjusted based on real-time monitoring of network traffic. The system dynamically adjusts the priorities of different traffic types based on real-time network status analysis and parameters such as bandwidth utilization. This effectively avoids network congestion and prioritizes critical business traffic.
[0078] In a feasible manner, before calculating the priority information based on the classification result and the state parameter according to a preset priority strategy, the method further includes:
[0079] receiving an operation instruction, wherein the operation instruction is generated by a user by dragging the visualization module;
[0080] Obtaining a preset priority strategy according to the operation instruction;
[0081] The preset priority policy is synchronized to the target switch device.
[0082] It is understandable that this embodiment provides a graphical operation interface and management tool for network administrators, and administrators can complete policy configuration by dragging and dropping rather than commands, which reduces the configuration difficulty and simplifies the configuration process.
[0083] This embodiment obtains status parameters of current network traffic, which include bandwidth utilization and service delay; and calculates priority information based on the classification result and the status parameters according to a preset priority strategy.
[0084] This embodiment determines the priority information of the data packet through the state parameters and the classification result, which can ensure that important data packets can be forwarded smoothly during data packet forwarding, thereby improving the stability of network traffic transmission.
[0085] For example, in order to help understand the implementation process of the priority-based data packet forwarding method obtained by combining this embodiment with the above embodiment 1, please refer to Figure 3 , Figure 3 This paper provides a simplified flowchart of a priority-based packet forwarding method. Specifically, it begins with network initialization and configuration, setting up a preliminary traffic priority policy. This is followed by packet classification and priority assignment, categorizing and assigning traffic priorities. This is followed by protocol mapping and conversion, ensuring priority consistency through protocol conversion. This is followed by cross-switch coordination, ensuring priority information is passed between switches. Finally, real-time traffic monitoring and priority adjustment are performed, dynamically adjusting priorities to cope with traffic fluctuations. Furthermore, priority management and configuration push are implemented, pushing priority configurations to all switches. Finally, problem detection and correction are performed, automatically correcting configuration issues.
[0086] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the priority-based packet forwarding method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0087] This application also provides a priority-based data packet forwarding device, please refer to Figure 4 , the priority-based data packet forwarding device includes:
[0088] The classification module 10 is used to obtain data packets, classify the data packets, and obtain classification results;
[0089] A determination module 20, configured to determine priority information of the data packet according to the classification result;
[0090] A mapping module 30, configured to perform protocol mapping on the priority information to obtain universal priority information;
[0091] The forwarding module 40 is configured to forward data packets according to the general priority information.
[0092] This embodiment obtains data packets, classifies the data packets to obtain classification results; determines priority information of the data packets based on the classification results; performs protocol mapping on the priority information to obtain general priority information; and forwards the data packets based on the general priority information.
[0093] In summary, this embodiment maps priority information to obtain universal priority information, which can smoothly forward traffic on each switch, manage network traffic in more detail, and improve the stability of network traffic transmission.
[0094] In one embodiment, the classification module 10 is also used to extract multidimensional feature parameters of the data packet, and the multidimensional feature parameters include at least content, source address, destination address and protocol type; determine the traffic type of the data packet based on the multidimensional feature parameters; and determine the classification result based on the traffic type.
[0095] In one embodiment, the determination module 20 is further configured to obtain status parameters of current network traffic, including bandwidth utilization and service delay; and calculate priority information based on the classification result and the status parameters according to a preset priority strategy.
[0096] In one embodiment, the mapping module 30 is further configured to receive an operation instruction generated by a user by dragging the visualization module; obtain a preset priority policy according to the operation instruction; and synchronize the preset priority policy to a target switch device.
[0097] In one embodiment, the mapping module 30 is further configured to parse a device protocol support list of the target switch; determine a priority compatible format according to the device protocol support list; and perform protocol mapping on the priority information according to the compatible format to obtain universal priority information.
[0098] In one embodiment, the forwarding module 40 is further configured to determine a priority queue for the data packet according to the general priority information; and forward the data packet according to a preset queue forwarding rule based on the priority queue.
[0099] In one embodiment, the forwarding module 40 is further configured to collect state change data of network traffic in real time; and adjust the general priority information based on the state change data.
[0100] The priority-based packet forwarding device provided in this application, which adopts the priority-based packet forwarding method in the above-mentioned embodiment, can solve the technical problem of how to improve the stability of network traffic transmission. Compared with the prior art, the beneficial effects of the priority-based packet forwarding device provided in this application are the same as the beneficial effects of the priority-based packet forwarding method provided in the above-mentioned embodiment, and the other technical features of the priority-based packet forwarding device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.
[0101] The present application provides a priority-based packet forwarding device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the priority-based packet forwarding method in the above-mentioned embodiment one.
[0102] Reference below Figure 5 , which shows a schematic diagram of the structure of a priority-based packet forwarding device suitable for implementing the embodiments of the present application. The priority-based packet forwarding device in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 5 The priority-based data packet forwarding device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present application.
[0103] like Figure 5As shown, the priority-based packet forwarding device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes based on a program stored in a ROM (Read Only Memory) 1002 or a program loaded from a storage device 1003 into a RAM (Random Access Memory) 1004. Various programs and data required for the operation of the priority-based packet forwarding device are also stored in the RAM 1004. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, hard disk, etc.; and communication devices 1009. The communication devices 1009 can allow the priority-based packet forwarding device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a priority-based packet forwarding device with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems may be implemented or have alternatively.
[0104] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0105] The priority-based packet forwarding device provided in this application, which employs the priority-based packet forwarding method of the aforementioned embodiment, can solve the technical problem of how to improve the stability of network traffic transmission. Compared with the prior art, the beneficial effects of the priority-based packet forwarding device provided in this application are the same as the beneficial effects of the priority-based packet forwarding method provided in the aforementioned embodiment, and the other technical features of the priority-based packet forwarding device are the same as those disclosed in the method of the aforementioned embodiment, and are not further described here.
[0106] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0107] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0108] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, a computer program) stored thereon, wherein the computer-readable program instructions are used to execute the priority-based data packet forwarding method in the above-mentioned embodiment.
[0109] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0110] The computer-readable storage medium may be included in the priority-based data packet forwarding device; or may exist independently without being assembled into the priority-based data packet forwarding device.
[0111] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by a priority-based packet forwarding device, the priority-based packet forwarding device enables the following: to obtain data packets, classify the data packets, and obtain classification results; to determine the priority information of the data packets based on the classification results; to perform protocol mapping on the priority information to obtain general priority information; and to forward data packets based on the general priority information.
[0112] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0113] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0114] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.
[0115] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., a computer program) for executing the above-mentioned priority-based packet forwarding method, and can solve the technical problem of how to improve the stability of network traffic transmission. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the priority-based packet forwarding method provided in the above-mentioned embodiment, and will not be repeated here.
[0116] The present application also provides a computer program product, including a computer program, which implements the steps of the priority-based data packet forwarding method as described above when executed by a processor.
[0117] The computer program product provided in this application can solve the technical problem of how to improve the stability of network traffic transmission. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the priority-based packet forwarding method provided in the above embodiment, and will not be repeated here.
[0118] The above description is only part of the embodiments of the present application and does not limit the patent scope of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A priority-based data packet forwarding method, characterized in that: The method includes: Acquire a data packet, classify the data packet, and obtain a classification result; Determining priority information of the data packet according to the classification result; Performing protocol mapping on the priority information to obtain universal priority information; Data packets are forwarded according to the general priority information.
2. The method according to claim 1, wherein The step of classifying the data packets to obtain a classification result comprises: Extracting multidimensional characteristic parameters of the data packet, wherein the multidimensional characteristic parameters include at least content, source address, destination address, and protocol type; Determine the traffic type of the data packet using the multi-dimensional characteristic parameters; The classification result is determined according to the traffic type.
3. The method according to claim 1, wherein The step of determining the priority information of the data packet according to the classification result includes: Obtaining state parameters of current network traffic, including bandwidth utilization and service delay; Priority information is calculated based on the classification result and the state parameter according to a preset priority strategy.
4. The method according to claim 3, wherein Before calculating the priority information based on the classification result and the state parameter according to the preset priority strategy, the method further includes: receiving an operation instruction, wherein the operation instruction is generated by a user by dragging the visualization module; Obtaining a preset priority strategy according to the operation instruction; The preset priority policy is synchronized to the target switch device.
5. The method according to claim 1, wherein The step of performing protocol mapping on the priority information to obtain universal priority information includes: Parse the device protocol support list of the target switch; Determining a priority compatible format according to the device protocol support list; Protocol mapping is performed on the priority information according to the compatible format to obtain universal priority information.
6. The method according to claim 1, wherein The step of forwarding data packets according to the general priority information comprises: determining a priority queue for the data packet according to the general priority information; Data packets are forwarded according to the priority queue and preset queue forwarding rules.
7. The method according to claim 1, wherein After forwarding the data packet according to the general priority information, the method further includes: Collect network traffic status change data in real time; The general priority information is adjusted based on the state change data.
8. A priority-based data packet forwarding device, characterized in that: The device comprises: A classification module, configured to obtain data packets, classify the data packets, and obtain classification results; A determination module, configured to determine priority information of the data packet according to the classification result; A mapping module, configured to perform protocol mapping on the priority information to obtain universal priority information; A forwarding module is used to forward data packets according to the general priority information.
9. A priority-based data packet forwarding device, characterized in that: The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the priority-based data packet forwarding method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the priority-based data packet forwarding method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
System and method for dynamic network traffic prioritization
CN101553797A
Network classification for applications
CN106716368A
Method for dynamically adjusting Qos (Quality of Service) based on data stream
CN117336249A
Data processing method and device, equipment and storage medium
CN119299389A
Terminal side data transmission scheduling method and device, equipment, storage medium and product
CN119603321A