Defect quality adjustment method, communication device and storage medium
By adjusting the cache of incoming and outgoing ports in network equipment, the quality poor quality caused by delay during network transmission is solved, and the network intelligent adaptive operation and maintenance capabilities are improved to ensure business quality.
Patent Information
- Application Number
- CN202310674793.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-07
- Publication Date
- 2024-12-10
AI Technical Summary
The prior art may cause excessive service transmission delay during the transmission process of network equipment, resulting in poor quality problems that cannot be solved by the application equipment triggered link switching, and even link switching may not be able to fix poor quality problems.
After receiving the service quality notification message, the network equipment adjusts the cache of the target incoming port and/or the target outgoing port to solve the problem of service quality and improves the operation and maintenance capabilities of intelligent adaptive networks.
By adjusting the cache of network equipment, the problem of poor business quality can be effectively solved, and customer service perception and network intelligent adaptive operation and maintenance capabilities can be improved.
Smart Images

Figure CN119109984A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of network equipment, and in particular to a quality difference adjustment method, a communication device and a storage medium. Background Art
[0002] Usually, there is a backup link between the application device (such as a video server, a service server, etc.) and the network device. When the main link between the application device and the network device fails, the service can be switched to the backup link to avoid service interruption.
[0003] However, due to the complexity of network equipment transmission, some business traffic may be congested during transmission, resulting in excessive delay in business transmission and poor quality. Such a situation does not trigger the application device to switch links, so the poor quality problem cannot be solved. Moreover, if there is no problem with the transmission path directly connected to the network device, even if the link is switched, the poor quality problem may not be fixed. Summary of the invention
[0004] The embodiments of the present application provide a quality difference adjustment method, a communication device and a storage medium for adjusting service quality difference and improving the intelligent adaptive operation and maintenance capability of the network.
[0005] On the one hand, a quality difference adjustment method is provided, which is applied to a network device; the network device is a network device in a target service path; the method comprises:
[0006] receiving a first message; wherein the first message is used to inform the target service that the quality is poor; wherein the target service is a service transmitted through the target service path;
[0007] According to the first message, the cache of the target inbound port and / or the target outbound port of the network device is adjusted; wherein the target inbound port is the input port of the message of the target service; and the target outbound port is the output port of the message of the target service.
[0008] On the other hand, a quality difference adjustment method is provided, which is applied to an application device; the application device is an application device in a target service path; the method comprises:
[0009] Determining that a target service has poor quality; wherein the target service is a service transmitted through a target service path;
[0010] A first message is sent to a network device connected to an application device in a target service path, so that the network device adjusts the cache of a target input port and / or a target output port of the network device according to the first message; wherein the first message is used to inform the network device that the target service has poor quality; the target input port is the input port of the target service message; and the target output port is the output port of the target service message.
[0011] In another aspect, an adjustment device is provided, comprising:
[0012] A receiving module, configured to receive a first message, wherein the first message is used to inform a target service that the target service has poor quality, wherein the target service is a service transmitted through a target service path;
[0013] The adjustment module is used to adjust the cache of the target inbound port and / or target outbound port of the network device according to the first message; wherein the target inbound port is the input port of the message of the target service; and the target outbound port is the output port of the message of the target service.
[0014] In another aspect, an adjustment device is provided, comprising:
[0015] A determination module, used to determine that a target service has poor quality; wherein the target service is a service transmitted through a target service path;
[0016] A sending module is used to send a first message to a network device connected to an application device in a target service path, so that the network device adjusts the cache of a target input port and / or a target output port of the network device according to the first message; wherein the first message is used to inform the network device that the target service has poor quality; the target input port is the input port of the message of the target service; and the target output port is the output port of the message of the target service.
[0017] On the other hand, a communication node is provided, comprising: a memory and a processor; the memory and the processor are coupled; the memory is used to store a computer program; and the processor implements the quality difference adjustment method of any of the above embodiments when executing the computer program.
[0018] On the other hand, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the quality difference adjustment method of any of the above embodiments is implemented.
[0019] On the other hand, a computer program product is provided, which includes computer program instructions, and when the computer program instructions are executed by a processor, the quality difference adjustment method of any of the above embodiments is implemented.
[0020] Based on the quality difference adjustment method provided in the embodiment of the present application, after the network device learns that the target service has poor quality, it can adjust the cache of the target inbound port (the target inbound port is the input port of the message of the target service) and / or the target outbound port (the target outbound port is the output port of the message of the target service) of the network device according to the poor service quality to solve the problem of poor service quality. In this way, it can improve the service perception of customers and enhance the intelligent adaptive operation and maintenance capability of the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solution in the present application, the drawings required for use in some embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only drawings of some embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0022] Figure 1 A schematic diagram of a system architecture provided for some embodiments of the present application;
[0023] Figure 2 A schematic diagram of the structure of a network device provided in some embodiments of the present application;
[0024] Figure 3 A process of a quality difference adjustment method provided in some embodiments of the present application Figure 1 ;
[0025] Figure 4 A process of a quality difference adjustment method provided in some embodiments of the present application Figure 2 ;
[0026] Figure 5 A process of a quality difference adjustment method provided in some embodiments of the present application Figure 3 ;
[0027] Figure 6 A process of a quality difference adjustment method provided in some embodiments of the present application Figure 4 ;
[0028] Figure 7 A schematic diagram of a usage scenario provided for some embodiments of the present application;
[0029] Figure 8 A schematic diagram of a structure of an adjustment device provided in some embodiments of the present application Figure 1 ;
[0030] Fig. 9 A schematic diagram of a structure of an adjustment device provided in some embodiments of the present application Figure 2 ;
[0031] Fig.10 A schematic diagram of the structure of a communication device provided for some embodiments of the present application. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0033] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0034] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0035] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" means one or more, and "multiple" means two or more.
[0036] Usually, there is a backup link between the application device (such as a video server, a service server, etc.) and the network device. When a link between the application device and the network device fails, the service can be switched to the backup link to avoid service interruption.
[0037] The link switching between the application device and the network device is as follows:
[0038] 1. When the application device senses that an abnormality occurs on the ports of the application device and the network device (for example, the port is down), the application device can switch the abnormal link between the application device and the network device to a backup link.
[0039] Exemplarily, the above port abnormality includes: an abnormal value of a cyclic redundancy check (CRC) of the port exceeds a threshold, etc.
[0040] 2. When the application device senses that abnormal services occur on the ports of the application device and the network device, and the number of abnormal services is greater than a threshold, the application device may switch the abnormal link between the application device and the network device to a backup link.
[0041] It can be seen that the abnormal situations that require link switching all come from the application device's own perception, and the primary and backup links of the application device are switched to protect the service from interruption or serious problems. However, due to the transmission complexity of network devices, some business traffic may be congested during transmission, resulting in excessive delay in business transmission and poor quality. Such situations will not trigger the application device to switch links, so the poor quality problem cannot be solved. In addition, if there is a problem with the transmission path that is not directly connected to the network device, even if the link is switched, it may not be able to fix the poor quality problem.
[0042] In view of the above technical problems, the embodiment of the present application provides a method for adjusting the quality difference, the idea of which is that after the network device learns that the target service has poor quality, it can adjust the cache of the target inbound port (the target inbound port is the input port of the message of the target service) and / or the target outbound port (the target outbound port is the output port of the message of the target service) of the network device according to the poor service quality to solve the problem of poor service quality. In this way, the customer's service perception can be improved, and the network's intelligent adaptive operation and maintenance capabilities can be improved.
[0043] See also Figure 1 , is a schematic diagram of the system architecture involved in the quality difference adjustment method provided in the embodiment of the present application. Figure 1 As shown, the system 100 includes: an application device 110 , a first network device 120 , a second network device 130 , a third network device 140 and a network server 150 .
[0044] In some embodiments, the application device 110, the first network device 120, the second network device 130 and the third network device 140 are devices in a target service path, wherein the target service path is used to transmit the target service.
[0045] The application device 110 is used to receive business data and process the business data.
[0046] Exemplarily, the application device 110 is configured to receive a message of a target service through a target service path.
[0047] Exemplarily, the application device 110 may be a video server, a service server, or other device.
[0048] The network device (eg, the first network device 120, the second network device 130, and the third network device 140) is used to transmit data. For example, the network device can be used to transmit a message of a target service.
[0049] Exemplarily, the network devices (including the first network device 120, the second network device 130 and the third network device 140) may be switches, routers, and IPRAN based on Internet protocol (IP) and radio access network (RAN).
[0050] In some embodiments, Figure 2 As shown, the structure of the network device (including the first network device 120, the second network device 130 and the third network device 140) includes: at least one egress port, at least one ingress port, a forwarding chip and a processor.
[0051] Among them, at least one input port is used to receive data sent by other devices; at least one output port is used to send data to other devices.
[0052] In the embodiment of the present application, a port for receiving a message of a target service among at least one inbound port is a target inbound port; a port for outputting a message of a target service among at least one outbound port is a target outbound port.
[0053] Forwarding chip, used to complete data forwarding.
[0054] In some embodiments, the forwarding chip includes a forwarding table (also called a forwarding database or a routing directory) for recording each forwarding item executed by the forwarding chip. Exemplarily, when a network device receives a data, it first records the source media access control (MAC) address and the destination MAC address in the data in the forwarding table.
[0055] It is understandable that the forwarding chip can help the data flowing through the network device to complete addressing and forwarding by maintaining the forwarding table.
[0056] The processor is used to read instructions and execute them one by one according to the instruction sequence.
[0057] In some embodiments, the processor is configured to adjust a cache of a target ingress port and / or a target egress port of a network device.
[0058] The network server 150 is used to manage and maintain network devices, and complete the unified arrangement and scheduling of resources.
[0059] Exemplarily, the network server 150 may be the brain of the computing network.
[0060] In some embodiments, the application device 110 is further configured to determine whether the received target service has poor quality. Exemplarily, the application device 110 may determine whether the target service has poor quality based on the delay of the received target service message; for example, when the delay of the target service message is greater than or equal to a preset threshold, it is determined that the target service has poor quality.
[0061] In some embodiments, the application device 110 is further configured to inform network devices in the target service path of the poor quality of the target service, so that the network devices can make corresponding adjustments.
[0062] Exemplarily, the application device 110 notifies the first network device 120 of the poor quality of the target service, and the first network device 120 adjusts the cache of the target inbound port and / or the target outbound port of the first network device 120. The target inbound port is the input port of the message of the target service; the target outbound port is the output port of the message of the target service.
[0063] If the first network device 120 solves the problem of poor quality of the target service after adjusting the cache of the target ingress port and / or the target egress port, the adjustment is terminated.
[0064] If the first network device 120 has not resolved the poor quality problem of the target service after adjusting the cache of the target inbound port and / or the target outbound port, the first network device 120 will inform the second network device 130 of the poor quality of the target service, and the second network device 130 will adjust the cache of the target inbound port and / or the target outbound port of the second network device 130.
[0065] If the second network device 130 solves the problem of poor quality of the target service after adjusting the cache of the target inbound port and / or the target outbound port, the adjustment is terminated.
[0066] If the second network device 130 has not solved the poor quality problem of the target service after adjusting the cache of the target inbound port and / or the target outbound port, the second network device 130 will inform the third network device 140 of the poor quality of the target service, and the third network device 140 will adjust the cache of the target inbound port and / or the target outbound port of the third network device 140.
[0067] If the third network device 140 solves the problem of poor quality of the target service after adjusting the cache of the target ingress port and / or the target egress port, the adjustment is terminated.
[0068] If the third network device 140 fails to resolve the poor quality problem of the target service after adjusting the cache of the target inbound port and / or the target outbound port, the third network device 140 will inform the network server 150 of the poor quality of the target service and the cache adjustment status of the network devices in the target service path, and the network server 150 will uniformly adjust the cache of the target inbound port and / or the target outbound port of the network devices (including the first network device 120, the second network device 130 and the third network device 140) in the target service path.
[0069] It should be noted that the system architecture and application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0070] A quality difference adjustment method provided in an embodiment of the present application is described below in conjunction with the accompanying drawings.
[0071] The method provided in the embodiment of the present application can be applied to the quality difference processing scenario of network equipment and application equipment of the computing power network.
[0072] See also Figure 3 , is a flow chart of a quality difference adjustment method provided in an embodiment of the present application. Figure 3 As shown, the reset method provided in the embodiment of the present application can be implemented as the following steps:
[0073] S201. An application device determines that a target service has poor quality.
[0074] The target service is the service transmitted through the target service path.
[0075] In some embodiments, the application device may determine whether the target service has poor quality based on the delay of the received message of the target service. Exemplarily, when the delay of the message of the target service is greater than or equal to a preset threshold, it is determined that the target service has poor quality. For example, the preset threshold may be 500ms.
[0076] It should be noted that the quality difference in the above embodiment is caused by the delay of the target service, but it does not mean that the method provided in the embodiment of the present application is only applied to the scenario of quality difference caused by service delay. For other more serious abnormal situations (such as service packet loss, service interruption, etc.), they can also be handled by the method provided in the embodiment of the present application, which can intelligently handle various problems in the network.
[0077] It is understandable that the application device can perceive or measure the service with poor quality from the user's perspective. For example, taking the target service as a video service, if the target service's message is delayed, the user can clearly perceive the current video freeze; if the target service's message has service packet loss, the user can clearly perceive that part of the video image is lost; if the target service's message has service interruption, the user can clearly perceive that the video stops playing.
[0078] S202: The application device sends a first message to a first network device connected to the application device in a target service path.
[0079] The first message is used to inform the target service of poor quality.
[0080] As a possible implementation, the first message may be a protocol message (i.e., the first message is obtained by expanding the protocol message). The protocol message needs to be consistent with the delivery path of the service flow of the target service. Exemplarily, the protocol message may be: Internet Group Management Protocol (IGMP), protocol independent multicast (PIM) and other protocol messages.
[0081] As another possible implementation, the first message may be a private protocol message, wherein the private protocol message needs to be consistent with the transmission path of the service flow of the target service.
[0082] It should be noted that, when the target service path adopts tunneling technology (Tunneling) to transmit data, the protocol message and the private protocol message can only adjust the network device on the non-tunnel side.
[0083] Among them, tunnel technology is a technology that uses a tunnel protocol to encapsulate the message to be transmitted into a tunnel message and then transmits it. The logical path that the encapsulated tunnel message passes through when transmitted on the basic network is called a tunnel.
[0084] Exemplarily, the tunnel protocol may be Generic Routing Encapsulation (GRE). The tunnel message is a message transmitted based on the tunnel protocol.
[0085] It can be understood that, since the encapsulated messages are invisible, the protocol messages and private protocol messages are invisible on the tunnel side (ie, cannot be identified by the network device).
[0086] As another possible implementation method, the first message may be a message of the target service. For example, the message of the target service is processed by using a flow coloring method so that the message of the target service carries poor quality information (for example, the message of the target service may carry poor quality delay duration).
[0087] Exemplarily, the above-mentioned flow coloring method can be to modify the source port number of the user datagram protocol (UDP) to a special value (for example, to 1000, representing that the quality difference delay duration is 1000ms) to transmit the quality difference information.
[0088] It should be noted that when the target service path uses tunnel technology to transmit data, the encapsulated tunnel message can be dyed according to the tunnel dyeing transmission technology (for example, the UDP source port number dye is transmitted to the identifiable field of the tunnel message).
[0089] It can be seen that the service packets using the flow coloring method are visible on the tunnel side (that is, they can be identified by network devices). Therefore, no matter the service packets are transmitted on the tunnel side or in ordinary layer 2 or 3 service transmission, they can be identified by network devices. Therefore, the service packets using the flow coloring method can adjust the network devices related to the target service on the entire path.
[0090] Correspondingly, after receiving the first message sent by the application device, the first network device learns that the target service has poor quality, and then the first network device adjusts the poor quality of the target service by executing the following step S203.
[0091] S203: The first network device adjusts the cache of the target inbound port and / or the target outbound port of the first network device according to the first message.
[0092] The target input port is the input port of the message of the target service; the target output port is the output port of the message of the target service.
[0093] In some embodiments, the first message includes an identifier of the target service. Before step S203, the method may further include: determining a target inbound port and a target outbound port according to the identifier of the target service and a service entry of the first network device.
[0094] The service table entry of the first network device refers to the table entry information recorded in the forwarding table of the forwarding chip of the first network device. For example, the forwarding table may load the source media access control (MAC) address and destination MAC address of the target service message; and the input port and output port of the target service message.
[0095] Exemplarily, the first network device searches the service table of the first network device according to the identifier of the target service, finds the table entry corresponding to the target service, and then finds the target inbound port and the target outbound port from the table entry corresponding to the target service.
[0096] For example, the egress port can be directly obtained by querying the multicast routing table and other information. The ingress port can be determined by counting the multicast message of 224.0.0.123 on the uplink port of network device A through the access control list (ACL); or, it can be obtained by querying the reverse path routing table of the source IP address of the multicast message of 224.0.0.123.
[0097] In some embodiments, the first message includes: a quality difference delay duration, wherein the quality difference delay duration is the delay time of the message of the target service during the transmission process.
[0098] Then the above step S203 can be implemented as follows: adjusting the cache of the target inbound port and / or the target outbound port of the first network device according to the quality difference delay time, wherein the quality difference delay time is positively correlated with the cache of the target inbound port and / or the target outbound port.
[0099] Exemplarily, if the quality difference delay duration is 1000 ms, the cache of the target inbound port and / or the target outbound port of the first network device is adjusted to increase by 10%.
[0100] It is understandable that the size of the cache of the target inlet port of the first network device determines the amount of data read by the first network device from other devices per unit time. Therefore, the larger the cache of the target inlet port, the faster the first network device reads data and the smaller the latency. The size of the cache of the target outlet port of the first network device determines the amount of data sent by the first network device to other devices per unit time. Therefore, the larger the cache of the target outlet port, the faster the first network device sends data and the smaller the latency. Therefore, the method provided in the embodiment of the present application can adjust the quality difference of the target service by adjusting the cache of the target inlet port and / or the target outlet port of the first network device.
[0101] It should be noted that the cache adjustment strategy of the target egress port and the target ingress port of the network device can be determined according to the type of the forwarding chip of the network device, and the embodiments of the present application do not limit this.
[0102] It can be seen that based on the quality difference adjustment method provided in the embodiment of the present application, after the network device learns that the target service has poor quality, it can adjust the cache of the target inbound port (the target inbound port is the input port of the message of the target service) and / or the target outbound port (the target outbound port is the output port of the message of the target service) of the network device according to the poor service quality to solve the problem of poor service quality. In this way, it can improve the customer's service perception and improve the network's intelligent adaptive operation and maintenance capabilities.
[0103] In addition, the quality difference adjustment method provided in the embodiment of the present application can be applied to the networking of intelligent computing power networks, and in scenarios where the network needs to have a high degree of autonomy, it can intelligently handle various problems in the network and improve the automatic operation and maintenance capabilities of the computing power network.
[0104] In some embodiments, after the above step S203, the above method further includes: the first network device determines whether the poor quality problem of the target service is resolved.
[0105] Exemplarily, the first network device may perform message interaction with the application device to obtain the adjusted quality difference.
[0106] Exemplarily, the first network device may determine whether the poor quality problem of the target service is solved according to whether the first message is received again within a preset time period. For example, if the first network device receives the first message again within the preset time period, the poor quality problem of the target service is not solved; if the first network device does not receive the first message within the preset time period, the poor quality problem of the target service is solved.
[0107] It is understandable that after the above step S203, the application device determines whether the quality problem of the target service still exists according to the delay of the target service message received. If the delay of the target service message received by the application device is less than the preset threshold, it is determined that the quality problem of the target service has been solved; if the delay of the target service message received by the application device is greater than or equal to the preset threshold, it is determined that the quality problem of the target service has not been solved, and the application device continues to send the first message to the first network device. Figure 4 As shown, after the first network device receives the first message, the method further includes the following steps:
[0108] S204: When the number of first messages received by the first network device within a preset time period is greater than or equal to a first preset threshold, send the first message to a second network device connected to the first network device.
[0109] The second network device is a next-hop network device of the first network device in the target service path.
[0110] It should be noted that the "previous hop network device" and "next hop network device" mentioned in the embodiments of the present application specifically refer to the "previous network device" and "next network device" in the service flow direction of the target service path. For a bidirectional service flow, the "previous hop network device" and "next hop network device" are different in the two directions according to the different directions of the service flow.
[0111] Exemplarily, the preset time period may be determined according to the time when the application device receives the message of the target service. Exemplarily, the preset time period may be the time when the application device completely receives the message of the target service. For example, the preset time period may be 10 minutes.
[0112] Exemplarily, the first preset threshold may be 1.
[0113] It can be understood that when the first network device receives the first message for the first time, it has adjusted the cache of its own target egress port and / or target ingress port. If the first network device receives the first message again within a preset time period, it means that the adjustment of the first network device has not solved the poor quality problem of the target service. Therefore, the first network device can send the first message to the second network device to enable the second network device to make adjustments.
[0114] S205: The second network device adjusts the cache of the target inbound port and / or the target outbound port of the second network device according to the first message.
[0115] In some embodiments, the first message includes an identifier of the target service. Before step S205, the method may further include: determining a target inbound port and a target outbound port according to the identifier of the target service and a service entry of the second network device.
[0116] The service entry of the second network device refers to the entry information recorded in the forwarding table of the forwarding chip of the second network device.
[0117] Exemplarily, the second network device searches the service table of the second network device according to the identifier of the target service, finds the table entry corresponding to the target service, and then finds the target inbound port and the target outbound port from the table entry corresponding to the target service.
[0118] In some embodiments, the first message includes: quality difference delay duration, and the above step S205 can be implemented as: adjusting the cache of the target inbound port and / or target outbound port of the second network device according to the quality difference delay duration.
[0119] In some embodiments, after the above step S205, the above method further includes: the application device determines whether the quality difference of the target service still exists according to the delay of the received message of the target service. If the delay of the message of the target service received by the application device is less than the preset threshold, it is determined that the quality difference problem of the target service has been solved; if the delay of the message of the target service received by the application device is greater than or equal to the preset threshold, it is determined that the quality difference problem of the target service has not been solved, and the application device continues to send the first message to the first network device.
[0120] Correspondingly, since the first network device has adjusted the cache of its own target egress port and / or target ingress port when it first received the first message, when the first network device receives the first message again within a preset time period, the first network device can send the first message to the second network device to enable the second network device to make adjustments.
[0121] Correspondingly, since the second network device has adjusted the cache of its own target egress port and / or target ingress port when it first received the first message, if the second network device receives the first message again within the preset time period, it means that the adjustment of the second network device has not solved the poor quality problem of the target service. Therefore, the second network device can send the first message to the third network device (the next-hop network device of the second network device) to enable the third network device to repeat the above operation until the poor quality problem of the target service is solved, or until the last network device in the target service path completes the adjustment.
[0122] In some embodiments, Figure 5 As shown, after the above step S203, the above method further includes the following steps:
[0123] S301: When the number of first messages received by a target network device within a preset time period is greater than or equal to a second preset threshold, the target network device sends a second message to a network server.
[0124] The second message is used to inform the network server of the poor quality of the target service and the cache adjustment of the network device in the target service path. Exemplarily, the cache adjustment of the network device includes at least one of the following: adjustment success or adjustment failure, and the adjustment value of the cache of the network device.
[0125] The target network device may be any network device in the target service path, for example, the target network device may be the last hop network device in the target service path; or, the target network device may be the first network device, the second network device or the third network device.
[0126] Exemplarily, the first preset threshold may be 1.
[0127] It is understandable that when the target network device first receives the first message, it has adjusted the cache of its own target egress port and / or target ingress port. If the target network device receives the first message again within a preset time period, it means that the adjustment of the target network device and the network devices before the target network device has not solved the poor quality problem of the target service. Therefore, the target network device can send a second message to the network server to enable the network server to make adjustments.
[0128] For example, when the target network device is the last-hop network device in the target service path, if the target network device receives the first message again within a preset time period, it means that all network devices in the target service path have been adjusted, but the poor quality problem of the target service has not been solved. Therefore, the target network device can send a second message to the network server, and the network server will uniformly adjust all network devices in the target service path.
[0129] S302: The network server adjusts the cache of a target inbound port and / or a target outbound port of a network device in a target service path according to the second message.
[0130] In some embodiments, the network device adjusts the cache of the target inlet port and / or target outlet port of the network device in the target service path according to the cache adjustment status of the network device in the target service path (i.e., the network device adjusts the cache of its own target inlet port and / or target outlet port after receiving the first message).
[0131] Optionally, the cache adjustment status of the network devices in the above-mentioned target business path (for example, the adjustment value of the cache of the network devices) can be collected by the network server; or, the cache adjustment status of the network devices in the above-mentioned target business path (for example, the adjustment value of the cache of the network devices) can be sent by the network devices in the target business path to the network server.
[0132] Exemplarily, after receiving the second message (the network server can learn from the second message that the target service has poor quality and that the cache adjustment of the network device in the target service path has failed), the network server can collect the cache adjustment status of each network device in the target service path. Exemplarily, the network server can collect the cache adjustment status of the first network device, the second network device, and the third network device.
[0133] Exemplarily, when the number of first messages received by the target network device within a preset time period is greater than or equal to a second preset threshold, the target network device can send a specific colored message to other network devices in the target service path to notify each network device in the service path to report the cache adjustment status to the network server.
[0134] In some embodiments, the second message may include the quality difference delay duration, and the above step S207 may be implemented as follows: the network device adjusts the cache of the target ingress port and / or target egress port of the network device in the target service path according to the quality difference delay duration.
[0135] Optionally, the network device may adjust the cache of the target ingress port and / or the target egress port of all or part of the network devices in the target service path.
[0136] It is understandable that, after receiving the first message, each network device in the target service path can perform self-adjustment according to the quality difference delay duration included in the first message and the current cache status of the target input port and / or the target output port. However, when each network device performs self-adjustment, it is not clear about the cache status of the target input port and / or the target output port of other network devices in the target service path, so the self-adjustment result of each network device may not necessarily solve the quality difference problem of the target service. Therefore, in the embodiment of the present application, the network server can make unified adjustments according to the cache adjustment status of each network device in the target service path to solve the quality difference problem of the target service.
[0137] In some embodiments, Figure 6 As shown, after the above step S203, the above method further includes the following steps:
[0138] S401: When the number of first messages received by a target network device within a preset time period is greater than or equal to a third preset threshold, the target network device sends a third message to a network server.
[0139] The third message is used to inform the network server that the target service has poor quality.
[0140] The target network device may be any network device in the target service path, for example, the target network device may be the last hop network device in the target service path; or, the target network device may be the first network device, the second network device or the third network device.
[0141] Exemplarily, the first preset threshold may be 1.
[0142] It is understandable that when the target network device first receives the first message, it has adjusted the cache of its own target egress port and / or target ingress port. If the target network device receives the first message again within a preset time period, it means that the adjustment of the target network device and the network devices before the target network device has not solved the poor quality problem of the target service. Therefore, the target network device can send a second message to the network server to enable the network server to re-plan the service transmission path for the target service.
[0143] For example, when the target network device is the last-hop network device in the target service path, if the target network device receives the first message again within a preset time period, it means that all network devices in the target service path have been adjusted, but the poor quality problem of the target service has not been solved. Therefore, the target network device can send a second message to the network server, and the network server will re-plan the service transmission path for the target service.
[0144] S402: The network server re-plans a service transmission path for the target service according to the third message.
[0145] In some embodiments, the third message includes an identifier of the target service, and the above step S402 can be implemented as follows: the network server can re-plan the service transmission path for the target service according to the identifier of the target service.
[0146] It is understandable that, after receiving the first message, each network device in the target service path can perform self-adjustment according to the quality difference delay duration included in the first message and the current cache status of the target input port and / or the target output port. However, when each network device performs self-adjustment, it is not clear about the cache status of the target input port and / or the target output port of other network devices in the target service path, so the self-adjustment result of each network device may not necessarily solve the quality difference problem of the target service. Therefore, in the embodiment of the present application, the network server can re-plan the service path for the target service to solve the quality difference problem of the target service.
[0147] For ease of understanding, the quality difference adjustment method provided in the embodiment of the present application is described below in the form of an example.
[0148] For example, Figure 7 As shown, assuming that the application device is a video processing server and the target service is the multicast 224.0.0.123 channel service, the quality adjustment solution when the 224.0.0.123 service has poor quality can be implemented as follows:
[0149] Step 1: The application device detects that the 224.0.0.123 service has poor quality.
[0150] Step 2: The application device sends a poor-quality message with address 224.0.0.123 to the directly connected network device A.
[0151] Exemplarily, the poor quality message of 224.0.0.123 may use protocol messages such as IGMP and PIM; or, the poor quality message of 224.0.0.123 may be a multicast message of 224.0.0.123.
[0152] In some embodiments, the poor quality message of 224.0.0.123 carries the poor quality delay duration of 1000ms perceived by the application device.
[0153] Step 3: The network device determines the egress and ingress ports of the 224.0.0.123 service based on the poor quality message of 224.0.0.123.
[0154] In some embodiments, after receiving the poor quality message 224.0.0.123 sent by the application device, network device A searches the egress port and ingress port of the 224.0.0.123 service from the forwarding table of the forwarding chip according to the poor quality message 224.0.0.123.
[0155] For example, the egress port can be directly obtained by querying the multicast routing table and other information. The ingress port can be determined by counting the multicast message of 224.0.0.123 on the uplink port of network device A through the access control list (ACL); or, it can be obtained by querying the reverse path routing table of the source IP address of the multicast message of 224.0.0.123.
[0156] Step 4: Network device A adjusts the cache of the egress port and the ingress port of the 224.0.0.123 service, and increases the cache by 10% according to the delay of 1000 ms.
[0157] Step 5: Network device A determines whether the poor quality problem of the 224.0.0.123 service is resolved.
[0158] Exemplarily, the network device A may perform message interaction with the application device to obtain the adjusted quality difference.
[0159] Exemplarily, within a preset time period, if the application device no longer sends poor quality messages of 224.0.0.123, network device A determines that the poor quality problem of the 224.0.0.123 service has been resolved; if within the preset time period, the application device continues to send poor quality messages of 224.0.0.123, network device A determines that the poor quality problem of the 224.0.0.123 service has not been resolved.
[0160] Step 6: When the poor quality problem of the 224.0.0.123 service is not resolved, network device A sends a poor quality message of 224.0.0.123 to network device B.
[0161] Exemplarily, the above-mentioned poor quality message of 224.0.0.123 can be obtained by coloring the multicast data stream of 224.0.0.123. Exemplarily, the coloring method is: modify the UDP source port number to a special value, such as 1000, which means that the poor quality delay duration is 1000ms.
[0162] Step 7: After receiving the poor quality message of 224.0.0.123, network device B can adjust the cache through steps 3-4, and network device A continues to determine whether the poor quality problem of the 224.0.0.123 service is resolved.
[0163] Step 8: If the network device B still fails to resolve the poor quality problem of the 224.0.0.123 service after performing cache adjustment, the network device B sends a poor quality message of the 224.0.0.123 service to the network device C.
[0164] Step 9: After receiving the poor quality message of 224.0.0.123, network device C can adjust the cache through steps 3-4, and network device A continues to determine whether the poor quality problem of the 224.0.0.123 service is resolved.
[0165] If network device C still fails to resolve the poor quality problem of service 224.0.0.123 after performing cache adjustment, network device C may send a poor quality message of 224.0.0.123 to other network devices in the service path, which will then perform cache adjustment until the last network device in the service path completes the adjustment.
[0166] If the last network device in the service path can still receive the poor-quality message of 224.0.0.123 after adjustment, the last network device in the service path can report the situation to the network server, and the network server will handle it.
[0167] Exemplarily, there are two reporting methods: Method 1: The last network device in the service path can send a poor quality message of 224.0.0.123 and information about the failure of network device adjustment to the network server, and the network server will collect the cache adjustment status of each network device from each network device in the service path. Method 2: The last network device in the service path can send a special coloring message to notify each network device in the service path to report the adjustment failure information and the cache adjustment status of each network device to the network server.
[0168] For example, network device A, network device B, and network device C may send the cache adjustment that has been made, the 224.0.0.123 service path, and the 224.0.0.123 service IP address to the network server.
[0169] Correspondingly, after receiving the above information, the network server makes a unified adjustment to the network devices in the service path, for example, reducing the cache of a certain port, or increasing the cache of a certain port.
[0170] Alternatively, after receiving the above information, the network server may calculate other better paths to replace the original forwarding path of 224.0.0.123.
[0171] The above has completed the solution of automatic intelligent adjustment of service quality poorness, from the application device initiating the poor quality notification, to the automatic adjustment of the network device, to the overall adjustment of the network server.
[0172] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the method. It is understandable that in order to realize the above functions, the adjustment device includes at least one of the hardware structure and software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of 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. 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 exceed the scope of the embodiments of the present application.
[0173] It is understandable that, in order to realize the above functions, the adjustment device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the algorithm steps of each example described in the embodiments of the present application, 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. 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 the present application.
[0174] The embodiment of the present application can divide the functional modules of the adjustment device according to the above method embodiment. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one functional module. The above integrated module can be implemented in the form of hardware or software. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. The following is an example of dividing each functional module corresponding to each function.
[0175] Figure 8 is a schematic diagram of the structure of an adjustment device provided in an embodiment of the present application. The adjustment device is applied to a network device and can execute the quality difference adjustment method provided in the above method embodiment. Figure 8 As shown, the adjustment device 500 includes: a communication module 501 and an adjustment module 502. In some other embodiments, the adjustment device 500 further includes: a determination module 503.
[0176] The communication module 501 is used to receive a first message, wherein the first message is used to inform the target service of poor quality; wherein the target service is a service transmitted through a target service path.
[0177] The adjustment module 502 is used to adjust the cache of the target inbound port and / or the target outbound port of the network device according to the first message; wherein the target inbound port is the input port of the message of the target service; and the target outbound port is the output port of the message of the target service.
[0178] In some embodiments, the first message includes: a quality difference delay duration; the quality difference delay duration is the time during which the message of the target service is delayed during the transmission process; an adjustment module 502 is specifically used to adjust the cache of the target input port and / or target output port of the network device according to the quality difference delay duration; wherein the quality difference delay duration is positively correlated with the cache of the target input port and / or target output port.
[0179] In some embodiments, the communication module 501 is also used to send a first message to a next-hop network device of the network device when the number of first messages received by the network device within a preset time period is greater than or equal to a first preset threshold, so that the next-hop network device adjusts the cache of the target ingress port and / or target egress port of the next-hop network device according to the first message.
[0180] In some embodiments, the communication module 501 is also used to send a second message to the network server when the number of first messages received by the network device within a preset time period is greater than or equal to a second preset threshold, so that the network server adjusts the cache of the target ingress port and / or target egress port of the network device in the target service path according to the second message; wherein the third message is used to inform the network server of the poor quality of the target service and the cache adjustment status of the network device in the target service path.
[0181] In some embodiments, the communication module 501 is also used to send a third message to the network server when the number of first messages received by the network device within a preset time period is greater than or equal to a third preset threshold, so that the network server re-plans the service transmission path for the target service according to the third message; wherein the third message is used to inform the network server that the target service has poor quality.
[0182] In some embodiments, the communication module 501 is specifically configured to receive a first message sent by an application device in a target service path; or receive a first message sent by other network devices connected to the network device in the target service path.
[0183] In some embodiments, the first message includes an identifier of the target service; the determination module 503 is used to determine the target inbound port and the target outbound port according to the identifier of the target service and the service table entry of the network device.
[0184] Fig. 9 is a schematic diagram of the structure of an adjustment device provided in an embodiment of the present application. The adjustment device is applied to an application device and can execute the quality difference adjustment method provided in the above method embodiment. Fig. 9 As shown, the adjustment device 600 includes: a determination module 601 and a communication module 602 .
[0185] The determination module 601 is used to determine whether the target service has poor quality; wherein the target service is the service transmitted through the target service path.
[0186] Communication module 602 is used to send a first message to a network device connected to an application device in a target service path, so that the network device adjusts the cache of a target input port and / or a target output port of the network device according to the first message; wherein the first message is used to inform the network device that the target service has poor quality; the target input port is the input port of the target service message; and the target output port is the output port of the target service message.
[0187] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present application provides a possible structure of the communication device involved in the above-mentioned embodiment. Fig.10As shown, the communication device 700 includes: a processor 702 and a bus 704. Optionally, the communication device 700 may further include a memory 701; optionally, the communication device 700 may further include a communication interface 703.
[0188] The processor 702 may be a processor that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments of the present application. The processor 702 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments of the present application. The processor 702 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0189] The communication interface 703 is used to connect with other devices via a communication network, such as Ethernet, wireless access network, wireless local area network (WLAN), etc.
[0190] The memory 701 may be a read-only memory (ROM) or 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 disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0191] As a possible implementation, the memory 701 may exist independently of the processor 702, and the memory 701 may be connected to the processor 702 via a bus 704 for storing instructions or program codes. When the processor 702 calls and executes the instructions or program codes stored in the memory 701, the quality difference adjustment method provided in the embodiment of the present application can be implemented.
[0192] In another possible implementation, the memory 701 may also be integrated with the processor 702 .
[0193] The bus 704 may be an extended industry standard architecture (EISA) bus, etc. The bus 704 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0194] Some embodiments of the present application provide a computer-readable storage medium (e.g., a non-transitory computer-readable storage medium), which stores computer program instructions. When the computer program instructions are executed on a computer, the computer executes the quality difference adjustment method as described in any of the above embodiments.
[0195] Exemplarily, the above-mentioned computer-readable storage media may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks or magnetic tapes, etc.), optical disks (e.g., compact disks (CD), digital versatile disks (DVD), etc.), smart cards and flash memory devices (e.g., erasable programmable read-only memory (EPROM), cards, sticks or key drives, etc.). The various computer-readable storage media described in this application may represent one or more devices and / or other machine-readable storage media for storing information. The term "machine-readable storage medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing and / or carrying instructions and / or data.
[0196] An embodiment of the present application provides a computer program product comprising instructions. When the computer program product is run on a computer, the computer is enabled to execute the quality difference adjustment method described in any one of the above embodiments.
[0197] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A quality difference adjustment method, characterized in that: Applied to a network device; the network device is a network device in a target service path; the method comprises: Receive a first message; wherein the first message is used to inform the target service that the quality is poor; wherein the target service is a service transmitted through the target service path; According to the first message, the cache of the target inbound port and / or the target outbound port of the network device is adjusted; wherein the target inbound port is the input port of the message of the target service; and the target outbound port is the output port of the message of the target service.
2. The method according to claim 1, characterized in that The first message includes: a quality difference delay duration; the quality difference delay duration is the delay time of the message of the target service during the transmission process; The step of adjusting the cache of the target inbound port and / or the target outbound port of the network device according to the first message includes: The cache of the target inbound port and / or the target outbound port of the network device is adjusted according to the quality difference delay duration; wherein the quality difference delay duration is positively correlated with the cache of the target inbound port and / or the target outbound port.
3. The method according to claim 1, characterized in that After adjusting the cache of the target inbound port and / or the target outbound port of the network device according to the first message, the method further includes: When the number of the first messages received by the network device within a preset time period is greater than or equal to a first preset threshold, the first message is sent to the next-hop network device of the network device, so that the next-hop network device adjusts the cache of the target ingress port and / or target egress port of the next-hop network device according to the first message.
4. The method according to claim 1, characterized in that: After adjusting the cache of the target inbound port and / or the target outbound port of the network device according to the first message, the method further includes: When the number of the first messages received by the network device within a preset time period is greater than or equal to a second preset threshold, a second message is sent to the network server, so that the network server adjusts the cache of the target ingress port and / or target egress port of the network device in the target service path according to the second message; wherein the third message is used to inform the network server of the poor quality of the target service and the cache adjustment status of the network device in the target service path.
5. The method according to claim 1, characterized in that After adjusting the cache of the target inbound port and / or the target outbound port of the network device according to the first message, the method further includes: When the number of the first messages received by the network device within a preset time period is greater than or equal to a third preset threshold, a third message is sent to the network server so that the network server re-plans the service transmission path for the target service according to the third message; wherein the third message is used to inform the network server that the target service has poor quality.
6. The method according to claim 1, characterized in that The receiving of the first message comprises: Receiving the first message sent by the application device in the target service path; Alternatively, the first message is received from other network devices connected to the network device in the target service path.
7. The method according to claim 1, characterized in that The first message includes an identifier of the target service; before adjusting the cache of the target inbound port and / or the target outbound port of the network device according to the first message, the method further includes: The target inbound port and the target outbound port are determined according to the identifier of the target service and the service entry of the network device.
8. A quality difference adjustment method, characterized in that: Applied to an application device; the application device is an application device in a target service path; the method comprises: Determining that a target service has poor quality; wherein the target service is a service transmitted through the target service path; A first message is sent to a network device connected to the application device in the target service path, so that the network device adjusts the cache of the target input port and / or target output port of the network device according to the first message; wherein the first message is used to inform the network device that the target service has poor quality; the target input port is the input port of the message of the target service; and the target output port is the output port of the message of the target service.
9. A communication device, characterized in that: include: a processor and a memory for storing instructions executable by the processor; The processor is configured to execute the instruction so that the communication device performs the quality difference adjustment method as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the quality difference adjustment method as claimed in any one of claims 1 to 8.
