Quality of Service (QoS) control method and device
By monitoring the characteristic parameters of network services in real time and dynamically adjusting the QoS mechanism, the problem that the QoS scheduling mechanism in the existing technology cannot adapt to complex network scenarios is solved, and efficient resource utilization and network service quality are achieved.
Patent Information
- Application Number
- CN202310498080.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-05
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2043-05-05
AI Technical Summary
The existing QoS scheduling mechanism is difficult to adapt to in complex network scenarios, resulting in blind opening or closing, unable to effectively improve network service quality, and may instead cause waste of network resources.
By monitoring the data flow characteristic parameters of network services in real time, such as service type, retransmission rate and traffic, dynamically turn on or off the QoS mechanism, and only start when specific conditions are met, avoid wasting resources in unnecessary scenarios.
The adaptive startup and shutdown of the QoS mechanism is realized, the quality of network services is improved, resource waste is avoided, and the transmission efficiency and user experience of network services are improved.
Smart Images

Figure CN117692347B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method and device for controlling quality of service (QoS). Background Art
[0002] With the development of network technology, network data has changed from a single data stream to a multi-service data stream. Under the condition of limited bandwidth, network congestion, packet loss and other problems may occur. The Quality of Service (QoS) mechanism can divide different priorities and bandwidths for data streams of different services (such as voice, live video, games, etc.), realize differentiated management of different service data streams, and thus ensure the service quality of important services. However, blindly implementing QoS scheduling strategies sometimes not only fails to produce the expected results, but also causes a waste of network resources. Summary of the invention
[0003] The present application provides a method and device for controlling quality of service (QoS), which is used to control the QoS mechanism to achieve adaptive startup and shutdown based on real-time changes in network scenarios, thereby improving network service experience while preventing waste of network resources.
[0004] In the first aspect, the present technical solution provides a method for controlling quality of service (QoS), including: after detecting the data flow corresponding to the network service, obtaining the characteristic parameters of the data flow of each network service, and judging the current network scenario based on the characteristic parameters of the data flow, and when it is determined that the current network scenario meets the preset conditions, controlling the start of the quality of service mechanism, and output scheduling of the data flow based on the quality of service mechanism.
[0005] The service quality QoS control method provided by the above technical solution can dynamically turn on and off the QoS mechanism based on the real-time changes of the network scenario, thereby controlling the QoS mechanism to start only in specific network scenarios, avoiding blindly starting QoS and causing waste of network resources.
[0006] In combination with the first aspect, in some implementations of the first aspect, the characteristic parameter includes at least one or a combination of multiple items of service type, retransmission rate, and traffic.
[0007] In this implementation, the service type, retransmission rate and traffic of the data flow are used as the basis for judging whether to enable the QoS mechanism. This can prevent the QoS mechanism from being blindly enabled in single-service scenarios, scenarios with low bandwidth occupancy, or scenarios with small traffic, resulting in a waste of network resources.
[0008] In combination with the first aspect, in certain implementations of the first aspect, before obtaining the characteristic parameters of the data streams of each network service, the above method also includes: detecting the data transmission status of the data streams of each network service; and determining whether the data streams of each network service have data transmission within a preset time period.
[0009] In this implementation, after determining that the network service corresponding to the data flow is in an activated state, characteristic parameters of each network service data flow are obtained. Based on this implementation, the terminated network service can be prevented from interfering with the subsequent startup control of QoS.
[0010] In combination with the first aspect, in certain implementations of the first aspect, determining that the current network scenario meets preset conditions based on characteristic parameters of the data flow includes: determining that the data flow corresponds to at least two service types based on the characteristic parameters of the data flow, and / or that the retransmission rate of the data flow is greater than a first threshold, and / or that the traffic of the data flow is greater than a second threshold.
[0011] In combination with the first aspect, in certain implementations of the first aspect, obtaining the service type of the data flow of each network service includes: identifying application information of the data flow of each network service; and determining the service type of the data flow based on the application information of the data flow of each network service.
[0012] In combination with the first aspect, in certain implementations of the first aspect, identifying application information of data flows of various network services includes: respectively identifying identification information of data flows of various network services; determining each data flow to be identified based on the identification information of each data flow; and respectively identifying application information of each data flow.
[0013] In combination with the first aspect, in certain implementations of the first aspect, determining that each data stream is to be identified is performed based on identification information of each data stream, including: querying a first table entry based on the identification information of each data stream; and determining that identification information of each data stream does not exist in the first table entry.
[0014] In this implementation, the identified data stream may be recorded through the first table entry, and before identifying the data stream, it is first determined whether the data stream has been identified, thereby avoiding repeated identification of the same data stream.
[0015] In combination with the first aspect, in some implementations of the first aspect, after identifying the application information of each data flow respectively, the method further includes: adding identification information of each data flow to the first table entry.
[0016] In combination with the first aspect, in certain implementations of the first aspect, adding identification information of each data stream to the first table entry includes: determining that application information of each data stream is successfully identified, and adding identification information of each data stream to the first table entry.
[0017] In this implementation, after successfully identifying the application information of a data flow, the data flow can be recorded in a timely manner through the first table entry, so that after subsequently receiving the data packet of the data flow, repeated identification of the data flow can be avoided based on the query result of the first table entry, thereby reducing the consumption of computing resources.
[0018] In combination with the first aspect, in certain implementations of the first aspect, the identification information of each data flow is added to the first table entry, including: determining that the application information identification of each data flow fails and the number of identifications exceeds a set threshold, and adding the identification information of each data flow to the first table entry.
[0019] In this implementation, when multiple identifications of application information of a data flow fail, the data flow can be recorded through the first table entry, so that after the data packet of the data flow is subsequently received, the identification of the data flow is abandoned based on the query result of the first table entry, thereby reducing the consumption of computing resources.
[0020] In combination with the first aspect, in certain implementations of the first aspect, before adding the identification information of each data stream to the first table entry, the above method also includes: transmitting each data stream based on a first transmission channel, and using the preset transmission rules of the first transmission channel to verify the legitimacy of each data stream; determining that each data stream has passed the verification; wherein the first transmission channel is a software-based transmission channel.
[0021] In this implementation, before recording the identification information of the data flow in the first table entry, the data flow may be first verified for legitimacy based on the software transmission rule, thereby ensuring that the data flow recorded in the first representation is an identified data flow that has passed software verification.
[0022] In combination with the first aspect, in certain implementations of the first aspect, after adding the identification information of each data flow to the first table entry, the above method also includes: in response to the data flow of each network service, transmitting each data flow based on a second transmission channel, and the second transmission channel is a hardware-based transmission channel.
[0023] In this implementation, since the data flow recorded in the first table entry is an identified data flow that has passed software verification, after the data packet of the data flow is subsequently received, it can be transmitted based on the hardware transmission channel, thereby improving the transmission efficiency of the data flow within the device and improving the service experience of the network business.
[0024] In the second aspect, the present technical solution provides an electronic device, including: an acquisition unit, used to obtain characteristic parameters of data streams of various network services; a first determination unit, used to determine whether the current network scenario meets preset conditions based on the characteristic parameters of the data streams; and a second determination unit, used to determine whether to enable a quality of service mechanism to perform output scheduling on the data streams of the various network services.
[0025] The electronic device provided by the above technical solution can dynamically turn on and off the QoS mechanism based on the real-time changes in the network scenario, thereby controlling the QoS mechanism to start only in specific network scenarios, avoiding blindly starting QoS and causing waste of network resources.
[0026] In a third aspect, the present technical solution provides an electronic device, comprising: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the device, enable the device to execute the method in the first aspect or any possible implementation of the first aspect.
[0027] In a fourth aspect, the present technical solution provides an electronic device, comprising a storage medium and a central processing unit, wherein the storage medium may be a non-volatile storage medium, wherein a computer executable program is stored in the storage medium, and the central processing unit is connected to the non-volatile storage medium and executes the computer executable program to implement the method in the first aspect or any possible implementation manner of the first aspect.
[0028] In a fifth aspect, the present technical solution provides a chip, comprising a processor and a data interface, wherein the processor reads instructions stored in a memory through the data interface to execute the method in the first aspect or any possible implementation of the first aspect.
[0029] Optionally, as an implementation method, the chip may also include a memory, in which instructions are stored, and the processor is used to execute the instructions stored in the memory. When the instructions are executed, the processor is used to execute the method in the first aspect or any possible implementation method of the first aspect.
[0030] In a sixth aspect, the present technical solution provides a computer-readable storage medium, wherein the computer-readable medium stores a program code for execution by a device, wherein the program code includes instructions for executing the method in the first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1This is a schematic scenario diagram of a method for controlling the quality of service (QoS) provided in an embodiment of the present application;
[0032] Figure 2 It is a schematic diagram of a software structure of an electronic device provided in an embodiment of the present application;
[0033] Figure 3 is a schematic flow chart of a method for controlling quality of service QoS provided in an embodiment of the present application;
[0034] Figure 4 is another schematic scenario diagram of the method for controlling the quality of service QoS provided in an embodiment of the present application;
[0035] Figure 5 is another software structure diagram of the electronic device provided in the embodiment of the present application;
[0036] Figure 6 is another software structure diagram of the electronic device provided in the embodiment of the present application;
[0037] Figure 7 is another schematic flow chart of a method for controlling quality of service QoS provided in an embodiment of the present application;
[0038] Figure 8 is another schematic flow chart of a method for controlling quality of service QoS provided in an embodiment of the present application;
[0039] Fig. 9 is another software structure diagram of the electronic device provided in the embodiment of the present application;
[0040] Fig.10 is another schematic flow chart of a method for controlling quality of service QoS provided in an embodiment of the present application;
[0041] Fig.11 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] Before describing the embodiments of the present application, the related technology is first introduced.
[0043] Nowadays, network data has shifted from the original single data stream to multi-service data streams, including voice services, video services, game services, live broadcast services, etc. Under the condition of limited network bandwidth, network congestion, packet loss and other problems may occur. Therefore, the Quality of Service (QoS) scheduling mechanism came into being. QoS can configure different priorities and bandwidths for data streams of different services, thereby matching different scheduling strategies for data streams of different services, thereby ensuring the service quality of different network services globally.
[0044] Furthermore, based on the original QoS mechanism, an AI-based QoS scheduling mechanism has been derived. Compared with the original QoS mechanism that limits the speed through fixed configuration, the AI-based QoS scheduling mechanism is more flexible and can dynamically adjust the priority and bandwidth of different network services, and reserve a certain amount of bandwidth for dynamic division.
[0045] However, in some network scenarios, the above QoS mechanisms not only fail to improve the quality of network services, but also waste network resources. For example, if the current network data is all data of the same service type, then all network data have the same priority. At this time, implementing QoS-based scheduling and reserving bandwidth will reduce the service quality; for another example, if the current network data occupies a low bandwidth and the network performance is good, then implementing QoS-based scheduling will waste system resources.
[0046] However, currently all kinds of QoS mechanisms provide fixed switches, and users manually control the opening and closing of QoS functions. However, ordinary users find it difficult to cope with complex network scenarios, and blindly turning on QoS mechanisms is not conducive to effectively improving network service quality.
[0047] Based on the above problems, this application is filed.
[0048] In the present application, a method for controlling quality of service (QoS) may be provided. Specifically, the method may be to monitor and analyze the data streams of various network services in real time, determine the service type, real-time traffic, packet loss rate, retransmission rate and other characteristic parameters of the current data stream, and identify the current network scenario based on the characteristic parameters. Furthermore, when it is determined that the current network scenario meets specific conditions, such as the presence of multiple service types, data retransmission, or network congestion, the QoS mechanism is controlled to start and schedule the data streams of the current network services. This enables the QoS mechanism to be adaptively started and shut down based on the actual network scenario.
[0049] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0050] Figure 1 A schematic scenario diagram of a method for controlling the quality of service (QoS) provided in an embodiment of the present application. Figure 1As shown, in an embodiment of the present application, a network system may include multiple electronic devices, which are topologically connected to each other, and the multiple electronic devices may include user devices and network devices. Among them, the network device can be any electronic device with data receiving and sending functions, such as a router, a server, a repeater, etc. The user device can be any electronic device with data receiving and sending functions, including but not limited to mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. There can be one or more user devices connected to the same network device, and the user device can send service data to the network device, and the network device receives and processes it, or forwards it to the corresponding opposite user device after receiving it. Alternatively, the user device can receive and process the service data sent by the network device, or continue to forward it after receiving it.
[0051] The QoS control method provided in the embodiment of the present application can be applied to Figure 1 The embodiments of the present application do not impose any limitation on the specific type of the electronic device.
[0052] Figure 2 The software architecture diagram of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the software system is divided into five layers, from top to bottom, namely, application layer 10, transport layer 20, network layer 30, data link layer 40, and physical layer 50.
[0053] Among them, the application layer 10 may include a variety of network applications. The transport layer 20 can be used to provide the Transmission Control Protocol (TCP) and the User Data Protocol (UDP). The network layer 30 may include a network filtering Netfilter framework, and the Netfilter framework may include multiple nodes, each of which can be used to implement different functions, such as packet filtering (firewall), connection tracking (Connect Track), network address translation (NAT), etc. In addition, in the embodiments of the present application, the nodes of the Netfilter framework are also used to implement functions such as traffic statistics and data flow characteristic parameter identification, which will be described in detail in the following embodiments. Further, the data link layer 40 may include a bridge, which can be used to receive network data, perform address filtering, and realize data interaction between network systems. At the same time, the data link layer may also include a data link layer protocol WAN of a wide area network.
[0054] Below Figure 1 The scenes shown and Figure 2 Taking the network device with the structure shown as an example, the control method of the quality of service QoS provided in this application is explained.
[0055] Figure 3 is a schematic flow chart of a method for controlling the quality of service QoS provided in an embodiment of the present application, such as Figure 3 As shown, the method for controlling the quality of service QoS provided in the embodiment of the present application includes:
[0056] 101. Obtain characteristic parameters of data flows of various network services.
[0057] 102. Determine, based on characteristic parameters of the data stream, whether the current network scenario meets a preset condition.
[0058] 103. Determine to enable the quality of service mechanism to perform output scheduling on the data flow of each network service.
[0059] In the embodiment of the present application, the network device can establish a network connection with the user device in a wired or wireless manner, perform network services with the user device, receive network data sent by the user device and route the received network data; or receive network data sent by other network devices and route the received network data to the corresponding user device. The number of user devices connected to the network device can be one or more.
[0060] like Figure 2As shown, the process of data stream input to the network device and output from the network device can be that the network device receives data streams of different network services sent by each user device through WiFi or network port. Then, each data stream passes through the physical layer, data link layer, and network layer of the network device in turn, and completes the corresponding software rule verification at the network layer, and then is transmitted to the data outlet and output through the network layer, data link layer, and physical layer.
[0061] Specifically, when the QoS scheduling mechanism is not enabled, at the data egress, the data streams of various network services may be output in sequence according to the order in which they are received.
[0062] When the QoS scheduling mechanism is enabled, Figure 2 As shown, at the data egress, the network device can divide each data stream into different packet sending queues, including queue0, queue1, queue2, etc., according to the service type, and configure different priorities and bandwidths for different packet sending queues, so as to perform differential output scheduling for each data stream according to different priorities and bandwidths.
[0063] In an embodiment of the present application, the network device can monitor the network scenario in real time based on the characteristic parameters of the data flow, and control the dynamic opening and closing of the above-mentioned QoS scheduling mechanism based on the monitoring results.
[0064] For ease of understanding, before describing the method provided in the embodiment of the present application, the concept of data flow is first explained. A data flow is a collection of multiple data packets, and the data packets of a data flow correspond to the same network service and have the same identification information, which can be a five-tuple information, and the five-tuple information includes source IP, destination IP, source port, destination port and protocol.
[0065] The QoS control method provided in the embodiment of the present application is described in detail below.
[0066] First, the network device can monitor the data flow of each current network service in real time to obtain characteristic parameters of the data flow. In the embodiment of the present application, the characteristic parameters may include any one or more combinations of service type, retransmission rate and flow rate.
[0067] In actual scenarios, when a data stream has no data packet transmission for more than a set period of time, it can be determined that the data stream is aged and the corresponding network service is terminated. Based on this, in order to prevent the terminated network service from affecting the judgment of the network scenario, in the embodiment of the present application, before determining the characteristic parameters of the current network data stream, the network device can also detect the data transmission status of each data stream.
[0068] If each data stream has data transmission within a preset time period, it is considered that each data stream is in an activated state and each network service has not yet ended. At this time, the characteristic parameters of each data stream can be determined, and the network scenario can be judged based on the characteristic parameters of each data stream.
[0069] For the data flow of any network service, if there is no data transmission in the data flow within the preset time period, it is considered that the data flow is in an inactive state and the network service has ended. Then, the data flow can be eliminated, and the characteristic parameters of the remaining data flows can be obtained, and the network scenario can be judged based on the characteristic parameters of the remaining data flows.
[0070] The following is an explanation of several methods for determining characteristic parameters.
[0071] Business type.
[0072] In the embodiment of the present application, for any data stream, after detecting its data packet, the network device can determine the application information corresponding to the data stream according to the data packet. Specifically, based on the service identification (SA) technology, the specific field of the data packet message can be identified and analyzed to determine the application information corresponding to the data stream. Furthermore, the service type of the data stream can be determined according to the application information corresponding to the data stream. For example, if the data stream is a data stream of a video application, then the service type of the data stream can be determined to be a video service.
[0073] Further, for any data stream, after determining its corresponding service type, the service type of each data stream can be marked respectively. In the embodiment of the present application, the service type can be stored in association with the identification information corresponding to the data stream. Specifically, the service type can be stored in association with the identification information of the data stream in a socket buffer (SKB) structure.
[0074] In an embodiment of the present application, after the service type of a data stream is determined, since data packets of the same data stream all correspond to the same service type, when data packets of the data stream are subsequently received again, the associated service type can be directly determined based on the identification information without having to identify its service type again.
[0075] Retransmission rate.
[0076] In the embodiment of the present application, the retransmission judgment of the data packet can be performed based on the Transmission Control Protocol (TCP) message sequence number. Specifically, TCP is a reliable transmission mechanism. The message sent by the sender carries a specific sequence number. After the server receives the message, it will send a reception response to the sender. When events such as message loss occur, the server will not be able to return a reception response to the sender. At this time, when the sender determines that the reception response has not been received for more than a time threshold, it resends the message with the same sequence number. Figure 4 As shown, after the sending end sends a message with a sequence number of 1 to the receiving end, it receives a receiving response sent by the receiving end. At this time, it continues to send a message with a sequence number of 2 to the receiving end. When it is determined that the receiving response has not been received after the preset time, the message with a sequence number of 2 is resent to the receiving end. Based on the above description, in the embodiment of the present application, the network device can determine that a retransmission occurs after receiving a message with the same sequence number. Furthermore, the retransmission rate can be determined according to the ratio of the number of retransmitted data packets to the total number of data packets per unit time.
[0077] flow.
[0078] The received data packets can be counted in real time to determine the real-time traffic.
[0079] Further, after obtaining the above characteristic parameters, the current network scenario can be judged according to the characteristic parameters of the data flow to determine whether the current network scenario meets the preset conditions. If it is determined that the preset conditions are met, the QoS mechanism can be turned on, so as to output the data flows of the current network services based on the QoS mechanism. If it is determined that the preset conditions are not met, the QoS mechanism can be kept closed.
[0080] In one possible implementation, the characteristic parameter includes a service type. In this implementation, determining that the preset condition is met may be determining that the current network service data flow corresponds to at least two service types. At this point, it can be considered that the current is in a multi-service scenario, and the QoS mechanism can be controlled to enable differentiated scheduling of each service data flow, thereby improving the network service quality. Based on this implementation, meaningless output scheduling of the same type of data flow can be prevented in a single service scenario.
[0081] In another possible implementation, the characteristic parameters include service type and retransmission rate. In this implementation, determining whether the preset condition is met may be to determine that the current network service data flow corresponds to at least two service types and the retransmission rate is greater than a preset first threshold. At this point, it is considered that the current is in a multi-service scenario and there is network congestion, and the QoS mechanism can be controlled to be turned on. Based on this implementation, it can be prevented from performing meaningless output scheduling on data streams of the same type in a single service scenario, and it can be prevented from turning on the QoS mechanism when the network performance is good and the service quality of various applications is good, resulting in a reduction in the user experience of some applications. Among them, the value of the first threshold can be flexibly set according to the needs of the actual scenario, for example, it can be 10%.
[0082] In another possible implementation, the characteristic parameters include service type and traffic. In this implementation, determining whether the preset condition is met may be determining that the current network service data flow corresponds to at least two service types and the traffic is greater than a preset second threshold. At this point, it is considered that the current scenario is multi-service and the traffic is too high, and the QoS mechanism can be controlled to be turned on. Based on this implementation, meaningless output scheduling of data flows of the same type in a single service scenario can be prevented, and the QoS mechanism can be prevented from being turned on in a low-traffic scenario, resulting in a waste of network resources. The value of the second threshold can be flexibly set according to the historical limit rate, for example, it can be 80% of the historical limit rate.
[0083] Alternatively, in another implementation, the characteristic parameters include service type, retransmission rate, and flow rate. When at least two service types are detected, the retransmission rate and flow rate may be further detected. When the retransmission rate is higher than a first threshold and / or the flow rate is higher than a second threshold, it may be considered that the network scenario meets the preset conditions and the QoS mechanism is enabled. And so on.
[0084] Through the above technical solution, the QoS mechanism can be dynamically adjusted to be turned on and off based on factors such as the service type, retransmission rate, and traffic of the current network data flow, thereby avoiding the waste of network resources in specific network scenarios due to blindly turning on the QoS mechanism.
[0085] Figure 5 Schematic diagram of a network layer network architecture in the embodiment of the present application. Figure 5 As shown, the netfilter architecture at the network layer may include multiple nodes, each of which may be used to implement different functions.
[0086] After the data flow enters the network device through WiFi or the network port, it can enter the network layer through the data ingress provided by the underlying protocol stack and be transmitted to the first node of the network layer network architecture.
[0087] The first node may be a pre_routing node, which is used to receive the data stream transmitted to the network layer. The second node may be a routing node, which is used to determine the transmission path of the data stream according to the destination IP of the data stream. If the destination IP of the data stream is the local IP, then the second node may transmit the data stream to the third node.
[0088] The third node may be an Input node, which may be used to upload the received data stream to a higher-layer protocol stack of the local end, including a transport layer, an application layer, and the like.
[0089] On the contrary, if the destination IP of the data flow is not the local IP, the second node may determine to forward the data flow. At this time, the second node may transmit the data flow to the fourth node.
[0090] The fourth node may be a forward node, and the fourth node may be used to process the data stream. The specific processing flow may refer to the following. Further, after the processing is completed, the fourth node may input the data stream to the seventh node.
[0091] The seventh node may be a post_rout ing node, and the seventh node may be used to output the data stream to the underlying protocol stack of the local device, and transmit the data stream to the WiFi or network port via the data outlet egress, and then forward the data stream to the destination device.
[0092] The QoS control method provided in the embodiment of the present application can be applied to the scenario where the second node forwards the data flow, and is used to control the startup and shutdown of the QoS mechanism in the data flow output scheduling link of the forwarding scenario.
[0093] Figure 6 This is a structural diagram of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device provided in the embodiment of the present application may include a statistical module, an identification module, a control module and an execution module. Among them, the statistical module may be located in the data link layer, and the identification module, the control module and the execution module may be located in the network layer, specifically, in Figure 5 The fourth node of the network layer netfilter architecture shown is the forward node. The statistical module may be a Fleet Conntrack (FC) module.
[0094] The following has Figure 6 Taking the electronic device with the structure shown as an example, the control method of the quality of service QoS provided by the present application is explained.
[0095] Figure 7 is another schematic flow chart of the method for controlling the quality of service QoS provided in the embodiment of the present application, such as Figure 7As shown, the method for controlling the quality of service QoS provided in the embodiment of the present application may include:
[0096] 201, the statistics module detects a data flow.
[0097] 202, the statistics module determines the retransmission rate and flow rate of the data flow.
[0098] 203, the identification module detects the data flow.
[0099] 204. The identification module determines the service type corresponding to the data flow.
[0100] 205. The control module obtains the retransmission rate and flow rate of the data flow from the statistical module.
[0101] 206. The control module obtains the service type of the data flow from the identification module.
[0102] 207, the control module sends a control instruction to the execution module according to the retransmission rate, flow rate and service type of the data flow.
[0103] 208. The execution module responds to the control instruction and starts the QoS mechanism.
[0104] In the embodiment of the present application, after the data flow of each network service enters the network device via WiFi or network port, it is first transmitted through the physical layer to the statistical module of the data link layer. After the statistical module detects the data flow, it can count and analyze each received data packet to determine the flow rate and retransmission rate of the network data flow per unit time. The specific statistical method of retransmission rate and flow rate can refer to the above embodiment.
[0105] Then, the data stream of each network service is further transmitted to the identification module of the network layer. After the identification module detects the data stream, it can identify the identification information of the data packet and determine whether the data packet belongs to the received data stream based on the identification information. If it is determined that the data packet does not belong to the received data stream, then the identification module can identify the specific fields of the data packet message based on the SA technology to determine the application information corresponding to the data stream. Then, the service type of the data stream can be determined based on the application information corresponding to the data stream. Furthermore, after the service type is determined, the identification module can store the identification information corresponding to the data stream and the service type in association.
[0106] On the contrary, if it is determined according to the identification information that the data packet belongs to the received data stream, then the identification module can further determine whether the service type of the data stream is successfully identified. Specifically, it can be queried whether the identification information is associated with a service type. If so, it is determined that the service type of the data stream is successfully identified. On the contrary, if not, it is determined that the service type of the data stream is not successfully identified. At this time, the identification module can identify the received data packet again to determine the service type of the corresponding data stream.
[0107] In the actual execution scenario, due to reasons such as application upgrades, after the application initiates a network service, the service type of the corresponding data stream may be difficult to identify. At this time, when the identification module identifies the service type of the data stream, it may be necessary to identify the application information of the data stream multiple times based on the received multiple data packets before it can be successfully identified. Even, there may be a situation where multiple data packets are identified but still cannot be successfully identified. Based on this realistic scenario, in an embodiment of the present application, before the identification module identifies the data packet, it may first determine whether the number of identified messages of the data stream has exceeded the set threshold. If the number of identified messages still does not exceed the set threshold, then the identification module may determine to identify the service type of the data stream again. If it has exceeded the set threshold and is still not correctly identified, then the identification module may give up identifying the service type of the data stream. Thereby, it can prevent the repeated identification of data streams whose service types are difficult to determine, and avoid adding unnecessary operations.
[0108] Furthermore, in an embodiment of the present application, the control module may obtain the service type, retransmission rate and flow rate of the current data flow from the statistical module located at the data link layer and the identification module located at the network layer according to a set period.
[0109] Specifically, the statistics module may provide a first interface and a second interface to the control module, and the identification module may provide a third interface to the control module. Thus, the control module may obtain the retransmission rate of the current data stream from the statistics module by accessing the first interface, obtain the traffic of the current data stream from the statistics module by accessing the second interface, and obtain the service type of the current data stream from the identification module by accessing the third interface. It should be noted that the embodiment of the present application does not limit the execution order of the above-mentioned steps 205 and 206. In the actual execution process, step 206 may be executed first, and then step 205, or, step 205 and step 206 may be executed simultaneously. Among them, the specific way for the control module to obtain the corresponding characteristic parameters through a specific interface may be to create a specific thread, and obtain the corresponding characteristic parameters from the corresponding interface based on the specific thread.
[0110] In a specific implementation scenario, for any data stream, if there is data packet transmission, it is considered that the data stream is in an activated state, and the corresponding network service is being executed. If there is no data packet transmission, and the duration exceeds the set duration, then the data stream is considered to be in an inactivated state, and the corresponding network service ends execution. Based on this, in order to prevent the terminated network service from interfering with the subsequent control of QoS, in an embodiment of the present application, the identification module may first identify the transmission status of each data stream before providing the service type of the current data stream to the control module each time. A specific method may be that the identification module queries the statistical module for the data transmission status of each data stream according to a set period, thereby determining the data stream in an activated state. Alternatively, the statistical module may send an indication message to the identification module when the data transmission status of the data stream changes.
[0111] According to the identification result of the data flow transmission status, if the data flow has data transmission within the preset time length, it is considered that the network service corresponding to the data flow is in an activated state. At this time, the identification module can report the service type corresponding to the data flow to the control module. On the contrary, if the data flow does not have data transmission within the preset time length, it is considered that the network service corresponding to the data flow is in an inactivated state. At this time, the identification module does not report the service type corresponding to the data flow. Based on this implementation method, it can be ensured that the control module performs QoS control based on the effective service type, thereby improving the accuracy of QoS control performed by the subsequent control module.
[0112] Furthermore, the control module may determine whether to enable the QoS mechanism based on the service type, retransmission rate, and flow rate of the current data flow. Figure 8 As shown:
[0113] 301, check whether the service type corresponding to the current data flow is a single type. If yes, execute step 305; otherwise, execute step 302.
[0114] 302, detect whether the retransmission rate corresponding to the current data stream exceeds a first threshold. If yes, execute step 304; otherwise, execute step 303.
[0115] 303, detect whether the flow rate corresponding to the current data flow exceeds the second threshold. If yes, execute step 304; otherwise, execute step 305.
[0116] 304, determine whether the QoS control mechanism is enabled.
[0117] 305, determine to keep the QoS mechanism closed.
[0118] In an embodiment of the present application, the control module may first determine the service type of the data stream, and when it is determined that the current network scenario is a single service type, the QoS mechanism may be kept closed. On the contrary, when it is determined that there are multiple service types in the current network scenario, the retransmission rate of the data stream may be further determined. If the retransmission rate is higher than the first threshold, the QoS mechanism may be controlled to be started. On the contrary, if the retransmission rate is lower than the first threshold, the traffic of the data stream may be further determined. When the traffic is higher than the second threshold, the QoS mechanism may be controlled to be started, and when the traffic is lower than the second threshold, the QoS mechanism may be kept closed.
[0119] It should be noted that the embodiments of the present application do not limit the execution order of the above 302 and 303. In other embodiments, the control module may, for example, first determine the flow rate of the data flow, and then determine the retransmission rate of the data flow when the flow rate is less than a set threshold.
[0120] After the control module determines to control the QoS mechanism to be turned on, it can send a control instruction to the execution module. Then, the execution module can respond to the control instruction and turn on the QoS mechanism. After the QoS mechanism is turned on, the data stream corresponding to each network service can be distributed to different queues according to the service type after being transmitted to the data outlet of the network device. Different queues correspond to different priorities and bandwidths. Then, the data streams of each service type can be output from the data outlet of the network device in sequence according to the priority and bandwidth of the queue.
[0121] In an embodiment of the present application, the classification of priorities may include, for example, four categories: highest priority, high priority, medium-low priority, and low priority. The priorities corresponding to different business types can be determined according to business attributes. For example, for gaming services, their business attributes require low latency and low packet loss, so their corresponding data streams can be assigned to the highest priority packet queue. For online conference services, their business attributes require data transmission stability, so their corresponding data streams can be assigned to high-priority packet queues. For video services, buffering is generally adopted, and their business attributes require smooth playback, so their corresponding data streams can be assigned to medium- and low-priority packet queues.
[0122] It should be noted that the above-mentioned division of priorities based on service attributes may not be fixed, and may be dynamically adjusted according to the distribution of different services in specific network scenarios. For example, in the case where the current network scenario simultaneously executes gaming services and online conference services, the gaming services may be assigned to the highest priority packet queue, and the online conference services may be assigned to the high priority packet queue. In the case where the current network scenario simultaneously executes online conference services and video services, the online conference services may be assigned to the highest priority packet queue, and the video services may be assigned to the high priority packet queue.
[0123] In another implementation, the priorities corresponding to different data flows can also be determined in combination with the service execution device. Specifically, usually, multiple devices connected to the same network device have a specific association. For example, multiple devices connected to the same device can be multiple office devices in an office scenario, or multiple devices in a home scenario. Based on this, the priorities of network service data flows corresponding to different devices can be determined in combination with the users of different devices. For example, in an office scenario, the highest priority can be assigned to network service data flows triggered by specific office personnel based on the work content of different office personnel. In this implementation, the device tag carried by the data flow can be identified, and then the packet sending queue corresponding to the data flow can be determined in combination with the service type and the device tag.
[0124] In the above technical solution, the statistical module located at the data link layer can perform retransmission rate and flow statistics on the received data stream, and the identification module located at the network layer can identify the service type of the received data stream. Then, the control module located at the network layer can obtain various characteristic parameters of the data stream from the statistical module and the identification module respectively according to a certain period, and dynamically adjust the opening and closing of the QoS mechanism based on the obtained characteristic parameters. Through the above technical solution, the opening and closing of the QoS mechanism can be adapted to the network scenario, and the network resources can be ensured not to be wasted while improving the service quality.
[0125] On the basis of the above embodiment, in another embodiment of the present application, in order to improve the transmission efficiency of data stream from the data inlet to the data outlet of the network device, the data stream can also be accelerated based on hardware transmission. The details are as follows.
[0126] To facilitate understanding, the transmission process of data flow from the data input to the data output of the network device is first explained.
[0127] like Fig. 9As shown, transmission channel 01 is a software-based transmission channel. As shown in transmission channel 01, after the data stream reaches the network device via WiFi or a network port, it passes through the physical layer, the hardware acceleration module, and the data link layer in sequence to reach the network layer. Among them, the hardware acceleration module is a hardware entity, for example, in the form of a hardware circuit. In an embodiment of the present application, the fourth node of the network layer netfilter architecture also includes a data verification module. The priority of the data verification module may be located before the identification module, and can be used to verify the data stream based on the preset software transmission rules after the network layer receives the data stream. After the verification is passed, the data stream passes through the data link layer and the physical layer in sequence, reaches the data outlet and is output. Among them, the preset software transmission rules include one or more items, for example, software rules (such as firewalls) for verifying whether the data stream is allowed to be sent to the destination device, rules for network address conversion (such as conversion of LAN addresses to WAN addresses), etc.
[0128] By analyzing the above transmission channel 01, it can be found that the software-based transmission channel needs to repeatedly verify each data packet in the data stream, which slows down the transmission efficiency of the data stream inside the network device. Therefore, in the embodiment of the present application, the data stream that has passed the above verification process at the network layer can be transmitted based on the transmission channel 02. Transmission channel 02 is a hardware-based transmission channel. As shown in transmission channel 02, after the data stream reaches the network device via WiFi or the network port, it reaches the hardware acceleration module through the physical layer, and then can be directly forwarded based on hardware through the hardware acceleration module, reaching the data outlet and output, without having to be transmitted to the network layer for repeated verification.
[0129] The QoS control method provided in this application will be further described below in combination with the above description of the transmission channel. Fig.10 1 is another schematic flow chart of a method for controlling the quality of service QoS provided in an embodiment of the present application. In an embodiment of the present application, for any data stream, the method for controlling the quality of service QoS may include:
[0130] 401, the hardware acceleration module detects whether a data stream is received. If yes, execute step 402; otherwise, continue to execute 401.
[0131] 402: The hardware acceleration module identifies identification information of the data stream.
[0132] 403, the hardware acceleration module determines whether the data flow is a data flow to be identified according to the identification information of the data flow. If it is not a data flow to be identified, execute step 404; otherwise, execute step 405.
[0133] In an embodiment of the present application, after detecting a data packet of any data stream, the hardware acceleration module may identify the identification information of the data packet. The identification information may be used to uniquely identify data packets of the same data stream, and the identification information may be a five-tuple. Then, based on the identification information, the hardware acceleration module may determine whether the currently detected data stream is a data stream to be identified. The data stream to be identified includes an unidentified data stream, and a data stream whose identification times do not exceed a set threshold and has not been successfully identified.
[0134] Specifically, the hardware acceleration module can query the first table entry, and the first table entry can record the identification information of the identified data stream. The identified data stream includes the data stream that has been identified and successfully identified, and the data stream that has been identified more than the set threshold and has not been successfully identified. If the first table entry contains the identification information of the current data stream, then it can be determined that the current data stream is an identified data stream, which means that the data packets of the current data stream have been verified by the data verification module of the network layer for software transmission rules, and the application information has been recognized by the identification module of the network layer. At this time, in order to improve the transmission efficiency of subsequent data packets of the data stream, it can be transmitted to the data outlet of the network device based on the second transmission channel, and distributed to different packet queues for output based on the application type at the data outlet. Among them, the second transmission channel is a hardware-based transmission channel, that is, Fig. 9 The transmission channel 02.
[0135] On the contrary, if the first table entry does not contain the identification information of the current data flow, then it can be determined that the current data flow is a data flow to be identified, that is, the data packet of the current data flow is received for the first time, or the current data flow already has a data packet that has passed the network layer for software transmission rule verification, but the application information has not been successfully identified and the number of identified messages is less than the set threshold. At this time, the hardware acceleration module can forward the data stream to the upper layer protocol stack and transmit it based on the first transmission channel. Furthermore, after transmission to the network layer based on the first transmission channel, the identification module can identify the application information of the data stream. Among them, the first transmission channel is a software-based transmission channel, that is, Fig. 9 The transmission channel 01.
[0136] 404 , the hardware acceleration module determines to transmit the data stream to the data outlet based on the second transmission channel.
[0137] 405 , the hardware acceleration module determines to transmit the data stream to the identification module located at the network layer based on the first transmission channel.
[0138] 406, the identification module identifies the application information of the data stream and determines whether the identification is successful. If the identification is not successful, execute step 407; otherwise, execute step 408.
[0139] 407, the identification module determines whether the number of identifications of the data packets in the data stream exceeds a set threshold. If it exceeds the set threshold, execute step 408; otherwise, transmit the data stream to the data outlet based on the first transmission channel and return to step 401.
[0140] 408 , the identification module marks the data flow as an identified data flow, and returns to step 401 .
[0141] After the identification module detects the data stream, the application information can be identified. If the identification is successful, the identification information of the data stream can be added to the first table item. When the data packet of the data stream is received again later, it can be directly transmitted via the second transmission channel. On the contrary, if the identification fails, it can be determined whether the number of message identifications in the data stream has exceeded the set threshold. If it has exceeded the set threshold and is still not correctly identified, then the probability of successful identification of the data stream is small, and continuing to identify the data stream may cause the data stream to be unable to accelerate transmission based on the hardware transmission channel, reducing the transmission efficiency of the data stream inside the network device. Therefore, the identification information of the data stream can be directly added to the first table item, so that after receiving the data packet of the data stream again, it can be distributed to the second transmission channel for transmission based on the first table item. If the identification fails, but the number of message identifications in the data stream has not exceeded the set threshold, then its identification information can be temporarily not added to the first table item. When the data packet of the data stream is received again later, it can try to identify its application information again, so that QoS scheduling can be performed based on the service type corresponding to the application information when QoS is turned on.
[0142] In the above technical solution, when the application information corresponding to the data flow is identified, the identification information of the data flow is added to the hardware acceleration table entry, so that the subsequent data packets of the data flow can be directly accelerated by the hardware transmission channel without passing through the identification module of the software transmission channel. Through the above technical solution, data transmission based on hardware acceleration can be combined with data flow output scheduling based on QoS, while improving the transmission efficiency of data flows within network devices and the service quality of different network services.
[0143] It is understandable that, in order to implement the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments.
[0144] In this embodiment, the electronic device can be divided into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0145] In the case of dividing each functional module into corresponding functional modules, Fig.11 A possible schematic diagram of the composition of the electronic device involved in the above embodiment is shown. Fig.11 As shown, the electronic device may include: an acquisition unit 601, a first determination unit 602, and a second determination unit 603, wherein:
[0146] The acquisition unit 601 is used to acquire characteristic parameters of the data flow of each network service.
[0147] The first determining unit 602 is configured to determine, based on characteristic parameters of the data stream, whether the current network scenario meets a preset condition.
[0148] The second determining unit 603 is used to determine whether to enable the quality of service mechanism to perform output scheduling on the data flow of each network service.
[0149] In a possible implementation manner, the characteristic parameter includes at least one of a service type, a retransmission rate, and a flow rate, or a combination of multiple thereof.
[0150] In a possible implementation, the acquisition unit 601 is further configured to detect a data transmission status of a data stream of each network service; and determine whether the data stream of each network service has data transmission within a preset time period.
[0151] In one possible implementation, the first determination unit 602 is specifically used to determine, based on characteristic parameters of the data stream, that the data stream corresponds to at least two service types, and / or that the retransmission rate of the data stream is greater than a first threshold, and / or that the traffic volume of the data stream is greater than a second threshold.
[0152] In a possible implementation, the acquisition unit 601 is specifically configured to identify application information of a data flow of each network service; and determine a service type of the data flow according to the application information of the data flow of each network service.
[0153] In a possible implementation, the acquisition unit 601 is specifically used to respectively identify identification information of data flows of various network services; determine each data flow to be identified according to the identification information of each data flow; and respectively identify application information of each data flow.
[0154] In a possible implementation manner, the acquisition unit 601 is specifically configured to query the first table entry according to the identification information of each data stream; and determine that the identification information of each data stream does not exist in the first table entry.
[0155] In a possible implementation, the acquiring unit 601 is further configured to add identification information of each data flow to the first table entry.
[0156] In a possible implementation, the acquisition unit 601 is specifically configured to determine whether the application information of each data stream is successfully identified, and add the identification information of each data stream to the first table entry.
[0157] In a possible implementation, the acquisition unit 601 is specifically configured to, after determining that identification of the application information of each data stream fails and the number of identifications exceeds a set threshold, add identification information of each data stream to the first table entry.
[0158] In a possible implementation, the acquisition unit 601 is also used to transmit each data stream based on the first transmission channel, and use the preset transmission rules of the first transmission channel to verify the legitimacy of each data stream; determine that each data stream has passed the verification; wherein the first transmission channel is a software-based transmission channel.
[0159] In a possible implementation, the acquisition unit 601 is further configured to, in response to the data stream of each network service, transmit each data stream based on a second transmission channel, where the second transmission channel is a hardware-based transmission channel.
[0160] The electronic device provided by the above solution can dynamically turn on and off the QoS mechanism based on the real-time changes in the network scenario, thereby controlling the QoS mechanism to start only in specific network scenarios, avoiding blindly starting QoS and causing waste of network resources.
[0161] It should be understood that the electronic device here is embodied in the form of a functional unit. The term "unit" here can be implemented in the form of software and / or hardware, and is not specifically limited to this. For example, a "unit" can be a software program, a hardware circuit, or a combination of the two that implements the above functions. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a proprietary processor, or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit, and / or other suitable components that support the described functions.
[0162] The present application also provides an electronic device, which includes a storage medium and a central processing unit. The storage medium may be a non-volatile storage medium, in which a computer executable program is stored. The central processing unit is connected to the non-volatile storage medium and executes the computer executable program to implement the above-mentioned service quality QoS control method.
[0163] The present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes each step of the method for controlling the quality of service QoS of the present application.
[0164] The present application also provides a computer program product comprising instructions, which, when executed on a computer or at least one processor, enables the computer to execute each step of the method for controlling the quality of service (QoS) of the present application.
[0165] The present application also provides a chip, including a processor and a data interface, wherein the processor reads instructions stored in a memory through the data interface to execute corresponding operations and / or processes performed by the quality of service QoS control method provided in the present application.
[0166] Optionally, the chip also includes a memory, which is connected to the processor via a circuit or wire, and the processor is used to read and execute the computer program in the memory. Further optionally, the chip also includes a communication interface, and the processor is connected to the communication interface. The communication interface is used to receive data and / or information to be processed, and the processor obtains the data and / or information from the communication interface and processes the data and / or information. The communication interface can be an input and output interface.
[0167] The memory can be a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or it can also be any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer.
[0168] In the embodiments of the present application, "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0169] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0170] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0171] In several embodiments provided in the present application, any function can be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as an independent product. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0172] The above is only a specific implementation of the present application. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for controlling quality of service (QoS). It is characterized in that include: Acquire characteristic parameters of data streams of various network services, wherein the characteristic parameters include service types; Determining, based on characteristic parameters of the data stream, that the current network scenario meets a preset condition; Determine to enable the quality of service mechanism to perform output scheduling on the data streams of each network service; Wherein, according to the characteristic parameters of the data flow, determining that the current network scenario meets the preset condition includes: Determining that the data flow corresponds to at least two service types; Get the service type of the data flow of each network service, including: Identify application information of data flows of various network services; Determine the service type of the data flow according to the application information of the data flow of each network service.
2. The method according to claim 1, It is characterized in that The characteristic parameters also include retransmission rate and / or flow rate.
3. The method according to claim 2, It is characterized in that Before obtaining the characteristic parameters of the data streams of each network service, the method further includes: Detect the data transmission status of the data stream of each network service; It is determined that the data stream of each network service has data transmission within the preset time period.
4. The method according to claim 2, It is characterized in that Determining, according to the characteristic parameters of the data flow, that the current network scenario meets a preset condition further includes: It is determined that the retransmission rate of the data flow is greater than a first threshold, and / or that the flow rate of the data flow is greater than a second threshold.
5. The method according to claim 1, It is characterized in that Identify application information of data flows of various network services, including: Identify the identification information of the data flow of each network service respectively; Determining, according to identification information of each data stream, that each data stream is to be identified; The application information of each of the data flows is identified respectively.
6. The method according to claim 5, It is characterized in that Determining, according to identification information of each data stream, that each data stream is to be identified includes: Query the first table entry according to the identification information of each data stream; It is determined that identification information of each of the data flows does not exist in the first table entry.
7. The method according to claim 6, It is characterized in that After respectively identifying the application information of each of the data streams, the method further includes: Add identification information of each of the data flows to the first table entry.
8. The method according to claim 7, It is characterized in that Adding identification information of each data flow to the first table entry includes: It is determined that the application information of each data flow is successfully identified, and the identification information of each data flow is added to the first table entry.
9. The method according to claim 7, It is characterized in that Adding identification information of each data flow to the first table entry includes: It is determined that identification of the application information of each data flow fails and the number of identifications exceeds a set threshold, and identification information of each data flow is added to the first table entry.
10. The method according to claim 7, It is characterized in that Before adding the identification information of each data flow to the first table entry, the method further includes: Transmitting each of the data streams based on the first transmission channel, and verifying the legitimacy of each of the data streams using a preset transmission rule of the first transmission channel; Determining that each of the data flows passes verification; Wherein, the first transmission channel is a software-based transmission channel.
11. The method according to claim 10, It is characterized in that After adding the identification information of each data flow to the first table entry, the method further includes: In response to the data streams of the respective network services, each data stream is transmitted based on a second transmission channel, where the second transmission channel is a hardware-based transmission channel.
12. An electronic device, It is characterized in that The electronic device comprises a memory for storing program instructions and a processor for executing the program instructions, wherein when the program instructions are executed by the processor, the electronic device is triggered to execute the method as described in any one of claims 1 to 11.
13. A chip, It is characterized in that The chip includes a processor and a data interface, and the processor reads instructions stored in a memory through the data interface to execute the method as described in any one of claims 1 to 11.
14. A storage medium, It is characterized in that The storage medium stores program instructions, which, when executed on an electronic device, enable the electronic device to execute the method as claimed in any one of claims 1 to 11.
