Bandwidth information transmission method and apparatus, communication network, device, and storage medium

By using bandwidth information transmission methods and devices in communication networks, bandwidth utilization, packet errors and packet loss information are obtained and transmitted, the problem of inability to intuitively present link bandwidth usage in the prior art is solved, and effective acquisition of link bandwidth usage and network burden is achieved.

WO2025130105A1PCT designated stage expired Publication Date: 2025-06-26ZTE CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/113263
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-21
Filing Date
2024-08-20
Publication Date
2025-06-26

AI Technical Summary

Technical Problem

In the prior art, the bandwidth information transmitted by network element devices in the network cannot intuitively present the link bandwidth usage, resulting in the inability to meet the need to obtain link bandwidth usage.

Method used

A method and device for transmitting bandwidth information is provided, by acquiring the bandwidth information of the link, including bandwidth utilization information, packet error information and packet loss information, and transmitting these information in a communication network using an extended transmission protocol.

Benefits of technology

It realizes intuitive presentation of link bandwidth usage, meets the need to acquire link bandwidth usage, and reduces the bandwidth information update notifications for flooding in the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024113263_26062025_PF_FP_ABST
    Figure CN2024113263_26062025_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a bandwidth information transmission method and apparatus, a communication network, a device, and a storage medium. The method comprises: a first device acquiring bandwidth information of a link, the link being a communication link between the first device and a neighboring second device, and the bandwidth information comprising at least one of bandwidth utilization information, packet error information, and packet loss information; and transmitting the bandwidth information by means of a first transmission protocol, the first transmission protocol comprising a first packet format used to support transmission of the bandwidth information.
Need to check novelty before this filing date? Find Prior Art

Description

Bandwidth information transmission method and device, communication network, equipment and storage medium

[0001] Cross-references

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on December 21, 2023, with application number 202311778513.0 and application name “Method and device for transmitting bandwidth information, communication network, equipment and storage medium”. The entire contents of the application are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of communication technology, and in particular to a method and apparatus for transmitting bandwidth information, a communication network, equipment, and a storage medium. Background Art

[0004] With the increasing demand for network intelligence and the development of bandwidth resource reservation technologies such as Flexible Ethernet (FlexE) and channelized sub-interfaces, it is becoming increasingly important for network operators to obtain the bandwidth usage of forwarding links in the network, both from the perspective of operation and maintenance management and business needs. In related technologies, network element devices (such as routers, switches, etc.) in the network can upload bandwidth information to the network control system through a transmission protocol, and then the network control system determines the bandwidth usage based on the bandwidth information uploaded by the network element devices. However, the bandwidth information transmitted by current transmission protocols is mainly based on the bandwidth information of neighbor links established by Intermediate System to Intermediate System (ISIS) or Open Shortest Path First (OSPF), and this bandwidth information is usually numerical data, such as an absolute value in Byte / s. The network control system needs to perform multi-dimensional combined calculations before evaluating the link status. It can be seen that the bandwidth information transmitted by network element devices in the current network has the problem of not being able to intuitively present the link bandwidth usage, resulting in the inability to meet the demand for obtaining link bandwidth usage.

[0005] Summary of the Invention

[0006] The present application provides a method and apparatus for transmitting bandwidth information, a communication network, a device, and a storage medium, which are used to solve the problem that the bandwidth information transmitted by network element devices in the current network cannot meet the demand for obtaining link bandwidth usage.

[0007] To solve the above technical problems, this application is implemented as follows:

[0008] In a first aspect, a method for transmitting bandwidth information is provided, which is applied to a first device in a communication network. The method includes: obtaining bandwidth information of a link, where the link is a communication link between the first device and an adjacent second device, the bandwidth information including at least one of bandwidth utilization information, error packet information, and packet loss information; and transmitting the bandwidth information through a first transmission protocol, where the first transmission protocol includes a first message format, and the first message format is used to support the transmission of the bandwidth information.

[0009] In a second aspect, a device for transmitting bandwidth information is provided, which is applied to a first device in a communication network. The device includes: an acquisition module for acquiring bandwidth information of a link, where the link is a communication link between the first device and an adjacent second device, and the bandwidth information includes at least one of bandwidth utilization information, error packet information, and packet loss information; a transmission module for transmitting the bandwidth information through a first transmission protocol, where the first transmission protocol includes a first message format, and the first message format is used to support the transmission of the bandwidth information.

[0010] In a third aspect, a method for transmitting bandwidth information is provided, which is applied to a network control system in a communication network. The method includes: receiving bandwidth information transmitted by a target device in the communication network through a first transmission protocol, the bandwidth information including at least one of bandwidth utilization information, error packet information and packet loss information, the first transmission protocol including a first message format, and the first message format is used to support the transmission of the bandwidth information.

[0011] In a fourth aspect, a device for transmitting bandwidth information is provided, which is applied to a network control system in a communication network. The device includes: a receiving module, which receives bandwidth information transmitted by a target device in the communication network through a first transmission protocol, wherein the bandwidth information includes at least one of bandwidth utilization information, error packet information and packet loss information, and the first transmission protocol includes a first message format, which is used to support the transmission of the bandwidth information.

[0012] In a fifth aspect, a communication network is provided, which includes multiple network element devices and a network control system, wherein: each network element device obtains bandwidth information of the link between the adjacent network element devices, and the bandwidth information includes at least one of bandwidth utilization information, error packet information and packet loss information; each network element device floods the obtained bandwidth information in the communication network through a first transmission protocol, and the first transmission protocol includes a first message format, and the first message format is used to support the transmission of the bandwidth information; the target device in the communication network transmits the bandwidth information obtained by each network element device to the network control system through the first transmission protocol; the network control system receives the bandwidth information transmitted by the target device through the first transmission protocol.

[0013] In a sixth aspect, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the method as described in the first aspect, or to implement the method as described in the third aspect.

[0014] In a seventh aspect, a computer-readable storage medium is provided, which, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute the method as described in the first aspect, or execute the method as described in the third aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in this application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0016] FIG1 is a schematic diagram of a communication network provided in an embodiment of the present application;

[0017] FIG2 is a schematic flow chart of a method for transmitting bandwidth information according to an embodiment of the present application;

[0018] FIG3 is a schematic diagram of a field format design of bandwidth utilization information according to an embodiment of the present application;

[0019] FIG4 is a schematic diagram of a field format design of error packet information according to an embodiment of the present application;

[0020] FIG5 is a schematic diagram of a field format design of packet loss information according to an embodiment of the present application;

[0021] FIG6 is a schematic flow chart of a method for transmitting bandwidth information according to an embodiment of the present application;

[0022] FIG7 is a schematic diagram of transmission of bandwidth utilization information according to an embodiment of the present application;

[0023] FIG8 is a schematic diagram of transmission of bandwidth utilization information according to an embodiment of the present application;

[0024] FIG9 is a schematic diagram of transmission of error packet information according to an embodiment of the present application;

[0025] FIG10 is a schematic structural diagram of an electronic device according to an embodiment of the present application;

[0026] FIG11 is a schematic structural diagram of a device for transmitting bandwidth information according to an embodiment of the present application;

[0027] FIG12 is a schematic structural diagram of a device for transmitting bandwidth information according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to help those skilled in the art better understand the technical solutions of this application, the following will clearly and completely describe the technical solutions of this application in conjunction with the drawings of one or more embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.

[0029] The terms "first," "second," and the like in this application and the claims are used to distinguish similar objects and are not used to describe a particular order or precedence. It should be understood that such terms are interchangeable where appropriate so that this application can be implemented in sequences other than those illustrated or described herein. In addition, the term "and / or" in this application and the claims refers to at least one of the connected objects, and the character " / " generally indicates that the connected objects are in an "or" relationship.

[0030] Figure 1 is a schematic diagram of a communication network provided in an embodiment of the present application. The communication network shown in Figure 1 includes a network control system and multiple network element devices R1, R2, R3, R4, and R5. Each network element device can provide network services to users. The network control system is connected to the multiple network element devices via a network, and the network control system can manage and control the multiple network element devices. The network element devices can be switches, routers, and the like.

[0031] Based on the technical solution provided by the embodiment of the present application, link quality detection can be deployed between network element devices in the network shown in Figure 1. Each network element device can obtain bandwidth information of the link between the neighboring device, and the bandwidth information includes at least one of bandwidth utilization information, error packet information and packet loss information. After obtaining the bandwidth information, the network element device can flood the bandwidth information in the network, and then one of the network element devices summarizes the bandwidth information of all links and reports it to the network control system. After receiving the reported bandwidth information, the network control system can determine the bandwidth usage of each link. Compared with the bandwidth information transmitted by the network element devices in the related art, the bandwidth information transmitted by the embodiment of the present application is richer, so that the link bandwidth usage can be intuitively presented. Furthermore, the bandwidth information transmitted by the network element device can be bidirectional bandwidth information, so the amount of link bandwidth information flooded in the network can be effectively reduced, thereby reducing the network burden.

[0032] The network element device shown in Figure 1 can use an extended protocol to transmit bandwidth information. This extended protocol can be a protocol that expands a traditional transmission protocol. Specifically, the extension of the traditional protocol adds a message format to the traditional protocol to support bandwidth information transmission. This allows for efficient transmission of bandwidth information.

[0033] It should be noted that, in actual applications, the number of network element devices included in a communication network can be any integer greater than or equal to 2. FIG1 illustrates an example of a communication network including five network element devices. Furthermore, the connection between multiple network element devices can also be in other connection modes besides the connection mode shown in FIG1 , which is not specifically limited here.

[0034] The following describes in detail the technical solutions provided by various embodiments of the present application in conjunction with the accompanying drawings.

[0035] Figure 2 is a flow chart of a method for transmitting bandwidth information according to an embodiment of the present application. The method for transmitting bandwidth information shown in Figure 2 can be executed by a first device, which can be any network element device shown in Figure 1. The method for transmitting bandwidth information shown in Figure 2 is described as follows.

[0036] S202: Obtain bandwidth information of a link, where the link is a communication link between a first device and an adjacent second device. The bandwidth information includes at least one of bandwidth utilization information, error packet information, and packet loss information.

[0037] While providing network services, a first device can obtain bandwidth information for communication links with neighboring devices. For ease of distinction, the neighboring devices of the first device can be represented as second devices, and there can be one or more second devices. When obtaining bandwidth information, the first device can obtain bandwidth information for the link between it and each second device. Bandwidth information can be information that intuitively presents the bandwidth usage of the link. Specifically, bandwidth information can include at least one of bandwidth utilization, packet error information, and packet loss information.

[0038] It should be noted that the bandwidth information obtained by the first device can be obtained based on the output and input statistics of the interface on the first device. The embodiment of the present application does not focus on how to obtain the bandwidth information, that is, it does not care about the source of the bandwidth information, but only focuses on the transmission of the bandwidth information in the network.

[0039] Optionally, in some embodiments, the bandwidth utilization information in the bandwidth information may include at least one of the outgoing bandwidth utilization and the incoming bandwidth utilization, the error packet information may include at least one of the incoming error packet statistics and the outgoing error packet statistics, and the packet loss information may include at least one of the incoming packet loss statistics and the outgoing packet loss statistics. The outgoing and incoming directions are related to the flow direction of the traffic carried by the link. For example, if devices R1 and R2 are directly connected, for R1, the outgoing direction may be traffic flowing from R1 to R2, and the incoming direction may be traffic flowing from R2 to R1. In the case where the bandwidth information is bidirectional bandwidth information, compared with unidirectional bandwidth information, the amount of link bandwidth information flooded in the network can be effectively reduced, thereby reducing the network burden.

[0040] For a link, the outbound bandwidth utilization of the link can be the ratio between the outbound used bandwidth of the link and the outbound bandwidth. The outbound bandwidth can be the sum of the outbound remaining bandwidth and the outbound reserved bandwidth of the link. The outbound reserved bandwidth can be 0 or non-zero. The link can carry one or more outbound traffic flows. When the link carries multiple outbound traffic flows, the outbound used bandwidth of the link can be the sum of the bandwidths occupied by the multiple outbound traffic flows. Similarly, the inbound bandwidth utilization of the link can be the ratio between the inbound used bandwidth of the link and the inbound bandwidth. The inbound bandwidth can be the sum of the inbound remaining bandwidth and the inbound reserved bandwidth. The inbound reserved bandwidth can be 0 or non-zero. The link can carry one or more inbound traffic flows. When the link carries multiple inbound traffic flows, the inbound used bandwidth of the link can be the sum of the bandwidths occupied by the multiple inbound traffic flows.

[0041] Optionally, in some embodiments, the outbound bandwidth utilization and the inbound bandwidth utilization may be real-time bandwidth utilization, that is, the bandwidth utilization information may be real-time bandwidth utilization information of the link. In other embodiments, the outbound bandwidth utilization and the inbound bandwidth utilization may also be average values ​​of bandwidth utilization within a certain time period, that is, the bandwidth utilization information may be average values ​​of bandwidth utilization within a certain time period. For ease of distinction, the time period corresponding to the inbound bandwidth utilization may be represented as a first time period, and the time period corresponding to the outbound bandwidth utilization may be represented as a second time period. Both the first time period and the second time period may be determined based on actual business needs and are not specifically limited here. By flexibly setting the first time period and the second time period, the update rates of the inbound bandwidth utilization and the outbound bandwidth utilization may be flexibly adjusted.

[0042] Optionally, the first time period may be equal to the second time period. For example, the outbound bandwidth utilization and the inbound bandwidth utilization may be an average value of the outbound bandwidth utilization within 5 minutes and an average value of the inbound bandwidth utilization within 5 minutes.

[0043] For a link, the link's incoming error packet statistics and outgoing error packet statistics can be real-time data of current statistics, which is a statistical value. In some embodiments, the outgoing error packet statistics at one end of the link are equal to the incoming error packet statistics at the other end of the link, and the incoming error packet statistics at one end of the link are equal to the outgoing error packet statistics at the other end of the link. In other embodiments, the outgoing error packet statistics at one end of the link may not be equal to the incoming error packet statistics at the other end, and / or the incoming error packet statistics at one end of the link are not equal to the outgoing error packet statistics at the other end. This is because new error packets may be generated during the forwarding process due to reasons such as different transmission modes, which in turn leads to different error packet statistics at both ends of the link. In this case, the link will have two groups of incoming error packet statistics and / or two groups of outgoing error packet statistics. In order to better reflect the error packet situation of the link, when obtaining the incoming error packet statistics of the link, if there are two groups of incoming error packet statistics for the link, the maximum value of the two groups of incoming error packet statistics can be used as the final incoming error packet statistics of the link. Similarly, when obtaining the outbound error packet statistics for a link, if the link has two sets of outbound error packet statistics, the maximum value of the two sets of outbound error packet statistics can be used as the final outbound error packet statistics for the link. For example, if devices R1 and R2 are directly connected, and the outbound error packet count of device R1 is 100 and the inbound error packet count is 150, and the outbound error packet count of device R2 (relative to R2, the inbound error packet count) is 120 and the inbound error packet count (relative to R2, the outbound error packet count) is 110, then the error packet information for the link between R1 and R2 can be: outbound error packet count is 120, and inbound error packet count is 150.

[0044] For a link, the link's inbound packet loss statistics and outbound packet loss statistics can be real-time data currently being counted, and are a statistical value. In some embodiments, the outbound packet loss statistics at one end of the link are equal to the inbound packet loss statistics at the other end of the link, and the inbound packet loss statistics at one end of the link are equal to the outbound packet loss statistics at the other end of the link. In other embodiments, the outbound packet loss statistics at one end of the link may not be equal to the inbound packet loss statistics at the other end, and / or the inbound packet loss statistics at one end of the link are not equal to the outbound packet loss statistics at the other end. This is because new packet loss may occur during the forwarding process due to factors such as different transmission modes, which in turn leads to different packet loss statistics at both ends of the link. In this case, there will be two sets of inbound packet loss statistics and / or two sets of outbound packet loss statistics for the link. In order to better reflect the packet loss situation of the link, when obtaining the inbound packet loss statistics of the link, if there are two sets of inbound packet loss statistics for the link, the maximum value of the two sets of inbound packet loss statistics can be used as the final inbound packet loss statistics for the link. Similarly, when obtaining outbound packet loss statistics for a link, if two sets of outbound packet loss statistics exist for the link, the maximum value of the two sets of outbound packet loss statistics can be used as the final outbound packet loss statistics for the link. For example, if devices R1 and R2 are directly connected, and R1's outbound packet loss statistics are 200 and its inbound packet loss statistics are 150, while R2's outbound packet loss statistics (relative to R2, these are inbound packet loss statistics) are 180 and its inbound packet loss statistics (relative to R2, these are outbound packet loss statistics) are 190, then the packet loss information for the link between R1 and R2 can be: outbound packet loss statistics are 200 and inbound packet loss statistics are 190.

[0045] S204: Transmit the bandwidth information through a first transmission protocol, where the first transmission protocol includes a first message format, and the first message format is used to support transmission of the bandwidth information.

[0046] After obtaining the bandwidth information, the first device can transmit the bandwidth information. When transmitting the bandwidth information, the first device needs to use a transmission protocol for transmission. Taking into account that the bandwidth information transmitted by the traditional transmission protocol is different from the bandwidth information transmitted in the embodiment of the present application, the traditional transmission protocol may not support the transmission of the bandwidth information in the embodiment of the present application. Therefore, when transmitting the bandwidth information, the first device may not use the traditional transmission protocol for transmission, but use the first transmission protocol for transmission. The first transmission protocol includes a first message format, and the first message format supports the transmission of the bandwidth information in the embodiment of the present application, thereby achieving effective transmission of the bandwidth information.

[0047] The first transport protocol may be a protocol obtained by expanding a traditional transport protocol. Optionally, in some embodiments, the first transport protocol may be a protocol obtained by adding a first message format to the Intermediate System to Intermediate System (ISIS) protocol, or a protocol obtained by adding a first message format to the Open Shortest Path First (OSPF) protocol, or a protocol obtained by adding a first message format to the Border Gateway Protocol (BGP). The first message format added to the ISIS protocol, the OSPF protocol, and the BGP protocol may be expressed as a TLV or a Sub-TLV.

[0048] The first message format may have one or more formats. Specifically, when the bandwidth information is any one of bandwidth utilization information, error packet information, and packet loss information, the first message format may have one format, and the message of this format is used to support the transmission of one type of bandwidth information. For example, if the bandwidth information is bandwidth utilization information, the first message format may have one format, and the message of this format is used to support the transmission of bandwidth utilization information. When the bandwidth information includes at least two of bandwidth utilization information, error packet information, and packet loss information, the first message format may have at least two formats, and messages of different formats are used to support the transmission of different bandwidth information. For example, when the bandwidth information includes bandwidth utilization information, error packet information, and packet loss information, the first message format may include three formats, the message of the first format is used to support the transmission of bandwidth utilization information, the message of the second format is used to support the transmission of error packet information, and the message of the third format is used to support the transmission of packet loss information.

[0049] In some implementations, the first message format for supporting the transmission of bandwidth utilization information may include at least one of a type field, a valid value field, an exception bit set field, a traffic type field, a reserved field, a link inbound bandwidth utilization field, and a link outbound bandwidth utilization field. Taking the example of a first message format including seven fields: a type field, a valid value field, an exception bit set field, a traffic type field, a reserved field, a link inbound bandwidth utilization field, and a link outbound bandwidth utilization field, the corresponding field format design may be as shown in FIG3 .

[0050] In Figure 3, the meaning of each field is as follows:

[0051] (1) Type field: Type, Type=TBD1 (to be determined 1) indicates that it carries the inbound bandwidth utilization information and the outbound bandwidth utilization information.

[0052] (2) Valid value field: Length, which indicates the number of bytes in the valid value field, which can be 8.

[0053] (3) Abnormal set field: A. When A is set, it indicates that the data is abnormal (for example, the bandwidth utilization exceeds 100%) or has not been counted.

[0054] (4) Traffic type field: V, which can be used to represent different types using 2 bits. For example, 00 indicates statistics regardless of packet type, 01 indicates statistics only for IPv4, 10 indicates statistics only for IPv6, and 11 is a reserved value.

[0055] (5) Reserved field: Reserve, all 0s.

[0056] (6) Link Inbound Bandwidth Utilization Field: This field indicates the link inbound bandwidth utilization. It can consist of 16 bits and supports valid values ​​from 0 to 10,000. Its unit is 1 / 10,000. That is, when the value filled in this field is 1234, it means that the current inbound bandwidth utilization is 12.34%. If the data in this field is greater than 10,000, it is considered invalid information.

[0057] (7) Link Outbound Bandwidth Utilization Field: Output Utilization, indicates the link outbound bandwidth utilization. It can also include 16 bits and support valid values ​​0-10000. Its unit is 1 / 10000. That is, when the fill value of this field is 1234, it means that the current outbound bandwidth utilization is 12.34%. If the data in this field is greater than 10000, it is considered invalid information.

[0058] In some implementations, the first message format for supporting error packet information transmission may include at least one of a type field, a valid value field, an exception bit set field, a reserved field, a link inbound error packet statistics field, and a link outbound error packet statistics field. Taking the example of a first message format including six fields: a type field, a valid value field, an exception bit set field, a reserved field, a link inbound error packet statistics field, and a link outbound error packet statistics field, the corresponding field format design may be as shown in FIG4 .

[0059] In Figure 4, the meaning of each field is as follows:

[0060] (1) Type field: Type, Type=TBD2 (to be determined 2) indicates that it carries the outgoing error packet statistics information and the incoming error packet statistics information of the link.

[0061] (2) Valid value field: Length, which indicates the number of bytes in the valid value field, which can be 8.

[0062] (3) Abnormal set field: A. When A is set, it means that the error packet statistics have exceeded the maximum value that can be represented by Error Packets, or the error packets are not counted at this time.

[0063] (4) Reserved field: Reserved, all 0s.

[0064] (5) Link Inbound Error Packet Statistics Field: Input Error Packets, indicates the inbound error packet statistics of the link. It can represent a valid value of 0-65535 using 16 bits. When the value is 4321, it means that the number of inbound error packets is 4321.

[0065] (6) Link Outgoing Error Packets Statistics Field: Output Error Packets, indicates the outgoing error packet statistics of the link. It can also represent a valid value of 0-65535 using 16 bits. When the value is 4321, it means that the number of outgoing error packets is 4321.

[0066] In some implementations, a first message format for supporting packet loss information transmission may include at least one of a type field, a valid value field, an exception bit set field, a reserved field, a link inbound packet loss statistics field, and a link outbound packet loss statistics field. Taking the example of a first message format including six fields: a type field, a valid value field, an exception bit set field, a reserved field, a link inbound packet loss statistics field, and a link outbound packet loss statistics field, the corresponding field format design may be as shown in FIG5 .

[0067] In Figure 5, the meaning of each field is as follows:

[0068] (1) Type field: Type, Type=TBD3 (to be determined 3) represents the incoming packet loss information and outgoing packet loss information of the link.

[0069] (2) Valid value field: Length, which indicates the number of bytes in the valid value field, which can be 8.

[0070] (3) Abnormally set field: A. When A is set, it indicates that the packet loss statistics have exceeded the maximum value that can be represented by Discard Packets, or that the packet loss statistics are not being counted at this time.

[0071] (4) Reserved field: Reserved, all 0s.

[0072] (5) Link Inbound Packet Loss Statistics Field: Input Discard Packets, indicates the inbound packet loss statistics of the link. It can be represented by 16 bits with a valid value of 0-65535. When the value is 4321, it means that the number of inbound packet losses is 4321.

[0073] (6) Output Discard Packets: This field represents the outbound packet loss statistics of the link. It can represent a valid value of 0-65535 using 16 bits. When the value is 4321, it means that the number of inbound packet loss is 4321.

[0074] In practical applications, in order to support the transmission of different bandwidth information, preferably, the first message format can have the above three formats to support the transmission of three different bandwidth information. Accordingly, when expanding the traditional transmission protocol, three new message formats can be added to the traditional transmission protocol. For example, when expanding the traditional ISIS protocol, the above three Sub-TLVs can be added to the Extended IS Reachability TLV (type 22), Inter-AS Reachability TLV (type 141), and MT-ISN TLV (type 222), respectively, wherein the Type value of the corresponding Sub-TLV is to be determined. When expanding the OSPF protocol, the above three Sub-TLVs can be added to the Link TLV, wherein the Type value of the corresponding Sub-TLV is to be determined. When expanding the BGP protocol, the above three BGP-LS Link Attribute TLVs can be directly added, wherein the Type value of the corresponding TLV is to be determined.

[0075] When the first device transmits bandwidth information via the first transmission protocol, optionally, in some embodiments, the bandwidth information may be flooded in the communication network via the first transmission protocol to transmit the bandwidth information to other network element devices in the communication network. The other network element devices then report the bandwidth information to the network control system, allowing the network control system to obtain bandwidth usage information for the link between the first device and the neighboring device. In other embodiments, the first device may also report the bandwidth information directly to the network control system via the first transmission protocol, so that the network control system can obtain bandwidth usage information for the link between the first device and the neighboring device directly from the first device.

[0076] In the case where the first device transmits the bandwidth information to the network control system through the first transmission protocol, the method may optionally further include the following steps: receiving bandwidth information of other links in the communication network; and transmitting the bandwidth information of other links to the network control system through the first transmission protocol.

[0077] The bandwidth information of other links can be obtained by statistics collected by the network element devices corresponding to the other links and transmitted to the first device via flooding. The bandwidth information of other links includes at least one of bandwidth utilization information, packet error information, and packet loss information. The bandwidth utilization information includes at least one of outbound bandwidth utilization and inbound bandwidth utilization. The packet error information includes at least one of inbound error packet statistics and outbound error packet statistics. The packet loss information includes at least one of inbound packet loss statistics and outbound packet loss statistics. For details, please refer to the explanation of the bandwidth information obtained by the first device in S202 above, and will not be repeated here.

[0078] After receiving bandwidth information about other links transmitted by other network element devices, the first device may report the bandwidth information about other links to the network control system via the first transmission protocol, so that the network control system can obtain bandwidth usage information about other links. When reporting the bandwidth information about other links to the network control system, the first device may report this bandwidth information together with the bandwidth information obtained by the first device in S202 to the network control system, thereby reducing the number of information reports. Furthermore, if the first device reports the bandwidth information about other links, other network element devices may not need to report this bandwidth information to the network control system, thereby avoiding duplicate reporting.

[0079] In practical applications, after obtaining bandwidth information about links between neighboring devices, each device in the communication network can flood this information across the network. A randomly selected device then reports the bandwidth information for all links to the network control system. Alternatively, a specific device can be pre-determined to serve as the bandwidth reporting device. Upon obtaining bandwidth information about links between neighboring devices, this reporting device can avoid flooding the network. Meanwhile, other network element devices, upon obtaining bandwidth information about links between neighboring devices, can flood the network to transmit this information to the reporting device. Upon receiving the bandwidth information for other links, the reporting device can report this information, along with the bandwidth information obtained by the reporting device, to the network control system.

[0080] When the first device transmits bandwidth information through the first transmission protocol, optionally, in some embodiments, the following steps may be included: determining whether the bandwidth information meets the transmission conditions, the transmission conditions including that the first transmission protocol's function of transmitting bandwidth information is enabled, or that the first transmission protocol's function of transmitting bandwidth information is enabled and the amount of change in bandwidth information exceeds a preset threshold; if the bandwidth information meets the transmission conditions, transmitting the bandwidth information through the first transmission protocol.

[0081] The first transmission protocol may support the ability to enable and disable bandwidth information transmission. If bandwidth information transmission is permitted, the first transmission protocol may enable the bandwidth information transmission function; if bandwidth information transmission is not permitted, the first transmission protocol may disable the bandwidth information transmission function. Thus, before transmitting bandwidth information, the first device may determine whether the first transmission protocol's bandwidth information transmission function is enabled. If so, the first device may transmit the bandwidth information. If not, i.e., disabled, the first device may not transmit the bandwidth information. Alternatively, the first device may determine whether the first transmission protocol's bandwidth information transmission function is enabled and whether the change in bandwidth information exceeds a preset threshold. If so, the first device may transmit the bandwidth information. If not, or the change in bandwidth information does not exceed the preset threshold, the first device may not transmit the bandwidth information. The preset threshold may be set based on actual service needs and is not specifically defined herein. By flexibly setting the preset threshold, the frequency of bandwidth information reporting can be flexibly adjusted.

[0082] Since the transmission condition can be set, and the first device transmits the bandwidth information through the first transmission protocol only when the transmission condition is met, it can avoid the device from frequently updating the bandwidth information and reduce the bandwidth information update notifications flooding the network.

[0083] Optionally, in some embodiments, the first transmission protocol may support unified enabling or disabling of transmission functions for different bandwidth information. For example, the transmission functions for bandwidth utilization information, error packet information, and packet loss information may be uniformly enabled or disabled. In the case of unified enabling or disabling, the first device may transmit or not transmit different bandwidth information at the same time. In other embodiments, the first transmission protocol may support independent enabling or disabling of transmission functions for different bandwidth information. For example, the first transmission information may support independent enabling and disabling of the transmission function for bandwidth utilization information, support independent enabling and disabling of the transmission function for error packet information, and support independent enabling and disabling of the transmission function for packet loss information. In the case of independent enabling or disabling, the first device may transmit or not transmit different bandwidth information separately, so that flexible transmission of different bandwidth information can be achieved.

[0084] The bandwidth information may include at least one of outbound bandwidth information and inbound bandwidth information. Where the bandwidth information includes outbound bandwidth information and inbound bandwidth information, the amount of change in the bandwidth information exceeding the preset threshold may be that the amount of change in the outbound bandwidth information exceeds the preset threshold or the amount of change in the inbound bandwidth information exceeds the preset threshold. That is, where the amount of change in at least one of the outbound bandwidth information and the inbound bandwidth information exceeds the preset threshold, it can be considered that the amount of change in the bandwidth information exceeds the preset threshold. The outbound bandwidth information may be at least one of inbound bandwidth utilization, inbound error packet statistics, and inbound packet loss statistics, and the outbound bandwidth information may be at least one of outbound bandwidth utilization, outbound error packet statistics, and outbound packet loss statistics. For example, where the transmission function of bandwidth utilization information is enabled, if the amount of change in the outbound bandwidth utilization exceeds the preset threshold or the amount of change in the inbound bandwidth utilization exceeds the preset threshold, the simultaneous transmission of the outbound bandwidth utilization and the inbound bandwidth utilization may be triggered. When the transmission function of error packet information is enabled, if the change in the outgoing error packet statistics exceeds a preset threshold or the change in the incoming error packet statistics exceeds a preset threshold, the simultaneous transmission of the outgoing error packet statistics and the incoming error packet statistics can be triggered. When the transmission function of packet loss information is enabled, if the change in the outgoing packet loss statistics exceeds a preset threshold or the change in the incoming packet loss statistics exceeds a preset threshold, the simultaneous transmission of the outgoing packet loss statistics and the incoming packet loss statistics can be triggered. In this way, since the transmission of bidirectional bandwidth information can be triggered when the change in unidirectional bandwidth information exceeds the preset threshold, it is convenient for the network control system to promptly obtain the bandwidth usage after the link change.

[0085] The above describes in detail that the first device transmits bandwidth information when the transmission conditions are met. In other possible implementations, the first device may also transmit bandwidth information in real time or at a certain period, etc., which is not specifically limited here.

[0086] In an embodiment of the present application, the bandwidth information transmitted by the network element device includes at least one of bandwidth utilization information, error packet information, and packet loss information. Compared with the bandwidth information transmitted by the network element device in the related art, the bandwidth information transmitted by the network element device in the embodiment of the present application is richer, so that the usage of the link bandwidth, such as the congestion level, health level, etc., can be intuitively presented. In addition, when transmitting bandwidth information, since the message format used to support bandwidth information transmission can be expanded in the transmission protocol, and the bandwidth information is transmitted through the expanded transmission protocol, the effective transmission of bandwidth information can be achieved. Furthermore, since the network element device can transmit bidirectional bandwidth information, the amount of link bandwidth information flooded in the network can be reduced compared to transmitting unidirectional bandwidth information.

[0087] Figure 6 is a flow chart of a bandwidth information transmission method according to an embodiment of the present application. The bandwidth information transmission method shown in Figure 6 can be executed by the network control system shown in Figure 1. The bandwidth information transmission method shown in Figure 6 is described as follows.

[0088] S602: Receive bandwidth information transmitted by a target device in a communication network through a first transmission protocol, where the bandwidth information includes at least one of bandwidth utilization information, error packet information, and packet loss information. The first transmission protocol includes a first message format, and the first message format is used to support the transmission of bandwidth information.

[0089] When the network control system manages and controls multiple network element devices in a communication network, it can receive bandwidth information transmitted by a target device in the communication network. The target device can be any network element device in the communication network. The network element device can be randomly selected or pre-agreed, and is not specifically limited here. In the process of providing network services, each network element device in the communication network can obtain bandwidth information of the communication link between the neighboring device, and then flood the bandwidth information in the communication network. Finally, the target device in the communication network summarizes the bandwidth information of all links in the network and transmits it to the network control system. At this time, the network control system can receive the bandwidth information transmitted by the target device. The specific implementation method of each network element device obtaining bandwidth information and transmitting bandwidth information can be referred to the embodiment shown in Figure 2, and will not be described in detail here.

[0090] When receiving bandwidth information transmitted by a target device, the network control system can receive the information via a first transmission protocol. The first transmission protocol includes a first message format that is used to support the transmission of bandwidth information. This allows for efficient reception of bandwidth information.

[0091] The bandwidth information received by the network control system may include at least one of bandwidth utilization information, packet error information, and packet loss information. The bandwidth utilization information in the bandwidth information may include at least one of inbound bandwidth utilization and outbound bandwidth utilization, the packet error information may include at least one of inbound error packet statistics and outbound error packet statistics, and the packet loss information may include at least one of inbound packet loss statistics and outbound packet loss statistics. For explanations of each item of bandwidth information, please refer to the corresponding content in the embodiment shown in FIG. 2 and will not be described in detail here.

[0092] Optionally, in some embodiments, the outbound bandwidth utilization and the inbound bandwidth utilization may be real-time bandwidth utilization. In other embodiments, the outbound bandwidth utilization and the inbound bandwidth utilization may also be average values ​​over a certain time period. For example, the inbound bandwidth utilization may be the average value of the inbound bandwidth utilization of the link over a first time period, and the outbound bandwidth utilization may be the average value of the outbound bandwidth utilization of the link over a second time period. Both the first time period and the second time period may be determined based on actual service needs and are not specifically limited herein. The first time period and the second time period may be the same or different.

[0093] Optionally, in some embodiments, the outgoing error packet statistics at one end of the link are equal to the incoming error packet statistics at the other end of the link, and the incoming error packet statistics at one end of the link are equal to the outgoing error packet statistics at the other end of the link. In other embodiments, the outgoing error packet statistics at one end of the link may not be equal to the incoming error packet statistics at the other end, and / or, the incoming error packet statistics at one end of the link are not equal to the outgoing error packet statistics at the other end. In this case, there will be two groups of incoming error packet statistics and / or two groups of outgoing error packet statistics in the link. In order to better reflect the error packet situation of the link, if there are two groups of incoming error packet statistics in the link, the maximum value of the two groups of incoming error packet statistics can be used as the final incoming error packet statistics of the link. Similarly, when obtaining the outgoing error packet statistics of the link, if there are two groups of outgoing error packet statistics in the link, the maximum value of the two groups of outgoing error packet statistics can be used as the final outgoing error packet statistics of the link.

[0094] Optionally, in some embodiments, the outgoing packet loss statistics at one end of the link are equal to the incoming packet loss statistics at the other end of the link, and the incoming packet loss statistics at one end of the link are equal to the outgoing packet loss statistics at the other end of the link. In other embodiments, the outgoing packet loss statistics at one end of the link may not be equal to the incoming packet loss statistics at the other end, and / or the incoming packet loss statistics at one end of the link are not equal to the outgoing packet loss statistics at the other end. In this case, there will be two sets of incoming packet loss statistics and / or two sets of outgoing packet loss statistics for the link. In order to better reflect the packet loss situation of the link, if there are two sets of incoming packet loss statistics for the link, the maximum value of the two sets of incoming packet loss statistics can be used as the final incoming packet loss statistics for the link. Similarly, when obtaining the outgoing packet loss statistics of the link, if there are two sets of outgoing packet loss statistics for the link, the maximum value of the two sets of outgoing packet loss statistics can be used as the final outgoing packet loss statistics for the link.

[0095] The first transmission protocol may be a protocol obtained by expanding a traditional transmission protocol. Optionally, in some implementations, the first transmission protocol may be a protocol obtained by adding a first message format to the ISIS protocol, or a protocol obtained by adding a first message format to the OSPF protocol, or a protocol obtained by adding a first message format to the BGP protocol. For details on how to add the first message format to the ISIS protocol, the OSPF protocol, and the BGP protocol, please refer to the corresponding content in the embodiment shown in FIG2 , which will not be described in detail here. Among them, the first message format added to the ISIS protocol, the OSPF protocol, and the BGP protocol can be expressed as TLV or Sub-TLV.

[0096] The first message format may have one or more formats. A message of one format may be used to support the transmission of one type of bandwidth information, and messages of different formats may be used to support the transmission of different types of bandwidth information. Optionally, in some embodiments, when the bandwidth information includes bandwidth utilization information, the first message format may include at least one of a type field, a valid value field, an exception setting field, a traffic type field, a reserved field, a link inbound bandwidth utilization field, and a link outbound bandwidth utilization field. When the bandwidth information includes error packet information, the first message format may include at least one of a type field, a valid value field, an exception setting field, a reserved field, a link inbound error packet statistics field, and a link outbound error packet statistics field. When the bandwidth information includes packet loss information, the first message format may include at least one of a type field, a valid value field, an exception setting field, a reserved field, a link inbound packet loss statistics field, and a link outbound packet loss statistics field. For details, please refer to the explanation of the first message format in the embodiment shown in Figure 2, which will not be described in detail here.

[0097] In an embodiment of the present application, the bandwidth information received by the network control system includes at least one of bandwidth utilization information, error packet information, and packet loss information. Compared to the bandwidth information received in related technologies, the bandwidth information received by the embodiment of the present application is richer, thereby being able to intuitively present the usage of the link bandwidth, such as the degree of congestion, health, etc. In addition, when receiving bandwidth information, since the message format used to support the transmission of bandwidth information can be expanded in the transmission protocol, and the bandwidth information is received through the expanded transmission protocol, effective reception of bandwidth information can be achieved. Furthermore, since the network element device can transmit bidirectional bandwidth information, the amount of link bandwidth information flooded in the network can be reduced compared to transmitting unidirectional bandwidth information.

[0098] To facilitate understanding of the technical solutions provided in the embodiments of the present application, please refer to Figures 7 to 9.

[0099] Figure 7 is a schematic diagram of the transmission of bandwidth utilization information in an embodiment of the present application. Figure 7 includes a total of 5 router devices, namely R1, R2, R3, R4, and R5. The basic configuration IGP between devices is ISIS or OSPF, the network element device is connected to the network control system to configure BGP, and the inbound and outbound statistics capabilities of the network element port are enabled. The links between all devices are 10GE links, and no TE reserved bandwidth is set. Among them, the link between R1 and R2 is marked as link ①, the link between R2 and R3 is marked as link ②, the link between R2 and R4 is marked as link ③, and the link between R4 and R5 is marked as link ④. There are 4 traffic flows in the network shown in Figure 7, namely, 1G traffic from R1 to R5, 2G traffic from R4 to R1, 3G traffic from R1 to R3, and 4G traffic from R3 to R5. The specific traffic flows are shown in Figure 7.

[0100] The network shown in FIG7 may include the following steps when transmitting bandwidth utilization information:

[0101] Step 1: Bandwidth usage notification is disabled.

[0102] Statistics show that the outbound traffic on the interface connecting R1 to R2 is 4G. R1 reports that the unidirectional remaining bandwidth of link ① is 10G, the unidirectional available bandwidth is 6G, and the unidirectional used bandwidth is 4G. External calculation shows that the bandwidth utilization is 40%. Statistics show that the outbound traffic on the interface connecting R2 to R1 is 2G. R2 reports that the unidirectional remaining bandwidth of link ① is 10G, the unidirectional available bandwidth is 8G, and the unidirectional used bandwidth is 2G. External calculation shows that the bandwidth utilization is 20%. In summary, the network control system shows that the bidirectional bandwidth utilization of link ① is 20% and 40%, respectively.

[0103] Step 2: Enable bandwidth usage notification.

[0104] Statistics on R1's interface show that the outbound bandwidth utilization is 40%, and the inbound bandwidth utilization is 20%. R1 directly notifies that the bidirectional bandwidth utilization of link ① is 20% and 40% respectively.

[0105] Step 3: Enable bandwidth usage notification.

[0106] Similarly, interface bandwidth utilization statistics are collected on R2, R3, and R4. The bidirectional bandwidth utilization of link ② is 30% and 40%, respectively; the bidirectional bandwidth utilization of link ③ is 20% and 50%, respectively; and the bidirectional bandwidth utilization of link ④ is 0% and 50%, respectively.

[0107] Figure 8 is a schematic diagram of bandwidth utilization information transmission according to an embodiment of the present application. Figure 8 includes five routers, R1, R2, R3, R4, and R5. The basic IGP configuration between devices is ISIS or OSPF. The network element devices are connected to the network control system using BGP, and the inbound and outbound statistics capabilities on the network element ports are enabled. All links between devices are 10GE links, with TE reserved bandwidth set. The R1-R5 path reserves 2G bandwidth, and the R4-R1 path reserves 3G bandwidth. The R1-R2 link is labeled as link ①, the R2-R3 link is labeled as link ②, the R2-R4 link is labeled as link ③, and the R4-R5 link is labeled as link ④. The network shown in Figure 8 contains four traffic flows: 1G traffic in the R1-R5 tunnel, 2G traffic in the R4-R1 tunnel, 3G traffic from R1 to R3, and 4G traffic from R3 to R5. The specific traffic flows are shown in Figure 8.

[0108] The network shown in FIG8 may include the following steps when transmitting bandwidth utilization information:

[0109] Step 1: Bandwidth usage notification is disabled.

[0110] Statistics show that the outbound traffic on the interface connecting R1 to R2 is 4G. R1 advertises 8G of unidirectional remaining bandwidth, 4G of unidirectional available bandwidth, and 4G of unidirectional used bandwidth for link ①, resulting in a link bandwidth utilization of 40%. Statistics show that the outbound traffic on the interface connecting R2 to R1 is 2G. R2 advertises 7G of unidirectional remaining bandwidth, 5G of unidirectional available bandwidth, and 2G of unidirectional used bandwidth for link ①, resulting in a link bandwidth utilization of 20%. Due to the presence of TE reserved bandwidth, the calculated value of used bandwidth / remaining bandwidth does not equal the link bandwidth utilization.

[0111] Step 2: Enable bandwidth usage notification.

[0112] Statistics on R1's interface show that the outbound bandwidth utilization is 40%, and the inbound bandwidth utilization is 20%. R1 directly notifies that the bidirectional bandwidth utilization of link ① is 20% and 40% respectively.

[0113] Step 3: Enable bandwidth usage notification.

[0114] Similarly, interface bandwidth utilization statistics are collected on R2, R3, and R4. The bidirectional bandwidth utilization of link ② is 30% and 40%, respectively; the bidirectional bandwidth utilization of link ③ is 20% and 50%, respectively; and the bidirectional bandwidth utilization of link ④ is 0% and 50%, respectively.

[0115] Figure 9 is a schematic diagram of the transmission of error packet information in an embodiment of the present application. Devices R1 and R2 in Figure 9 are directly connected, and the port's inbound and outbound error packet statistics are enabled. The message sent by R1 contains 50 error packets per second, and the message received contains 100 error packets per second. The current statistics on the R1 side for outbound error packets are 1000, and the statistics on inbound error packets are 1500. The message sent by R2 contains 100 error packets per second, and the message received contains 50 error packets per second. The current statistics on the R2 side for outbound error packets are 2500, and the statistics on inbound error packets are 500.

[0116] The network shown in FIG9 may include the following steps when transmitting error packet information:

[0117] Step 1: Enable R1 to notify the number of incoming error packets and outgoing error packets, set the notification update threshold to 10%, and set the currently notified number of incoming error packets to 1500 and the number of outgoing error packets to 1000.

[0118] Step 2: After 1.5 seconds, the number of incoming error packets increases by 150 and the number of outgoing error packets increases by 75. The increase in the number of incoming error packets exceeds 10%. At this time, a protocol update is triggered, and the notification information is that the number of incoming error packets is 1650 and the number of outgoing error packets is 1075.

[0119] Step 3: Enable R2 to notify the number of incoming error packets and outgoing error packets, set the notification update threshold to 20%, and set the currently notified number of incoming error packets to 500 and the number of outgoing error packets to 2500.

[0120] Step 4: After 2 seconds, the number of incoming error packets increases by 100 and the number of outgoing error packets increases by 200. The increase in the number of incoming error packets exceeds 20%. At this time, a protocol update is triggered, and the notification information is that the number of incoming error packets is 600 and the number of outgoing error packets is 2700.

[0121] It can be seen that the embodiment of the present application proposes an extended design of a basic routing protocol, which can be used to transmit information such as link bandwidth utilization. By defining a new type of TLV or Sub-TLV in ISIS / OSPF / BGP, information related to link bandwidth such as inbound bandwidth utilization, outbound bandwidth utilization, inbound error packet statistics, outbound error packet statistics, inbound packet loss statistics, and outbound packet loss statistics can be carried. It supports managers to intuitively evaluate the congestion level, health level, and other status of the link in the network control system, and simultaneously announces the inbound and outbound bandwidth information through network element devices, thereby reducing the amount of link bandwidth information flooded in the network.

[0122] The foregoing description describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0123] FIG10 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Referring to FIG10 , at the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage device. Of course, the electronic device may also include hardware required for other services.

[0124] The processor, network interface, and memory can be interconnected via an internal bus, such as an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus. These buses can be classified as address buses, data buses, and control buses. For ease of illustration, FIG10 shows only one bidirectional arrow, but this does not imply that there is only one bus or only one type of bus.

[0125] The memory is used to store programs. Specifically, the program may include program code, which includes computer operating instructions. The memory may include internal memory and non-volatile memory, and provides instructions and data to the processor.

[0126] The processor reads the corresponding computer program from the non-volatile memory into the internal memory and then runs it, forming a transmission device for bandwidth information at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:

[0127] Obtain bandwidth information of a link, where the link is a communication link between the first device and an adjacent second device, the bandwidth information including at least one of bandwidth utilization information, error packet information, and packet loss information; and transmit the bandwidth information through a first transmission protocol, where the first transmission protocol includes a first message format, and the first message format is used to support transmission of the bandwidth information.

[0128] Or to do the following:

[0129] Bandwidth information transmitted by a target device in a communication network is received through a first transmission protocol, wherein the bandwidth information includes at least one of bandwidth utilization information, error packet information, and packet loss information. The first transmission protocol includes a first message format, and the first message format is used to support the transmission of the bandwidth information.

[0130] The method performed by the bandwidth information transmission device disclosed in the embodiment shown in FIG10 of the present application can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the method can be completed by hardware integrated logic circuits in the processor or by software instructions. The processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The methods, steps, and logic block diagrams disclosed in this application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above method.

[0131] The electronic device can also execute the methods of Figures 2 and 6, and realize the functions of the bandwidth information transmission device in the embodiments shown in Figures 2 and 6, which will not be described in detail in this application.

[0132] Of course, in addition to software implementation, the electronic device of this application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0133] The present application also proposes a computer-readable storage medium that stores one or more programs, each of which includes instructions that, when executed by a portable electronic device that includes multiple application programs, enable the portable electronic device to execute the method of the embodiments shown in Figures 2 and 6, and is specifically used to perform the following operations: obtaining bandwidth information of a link, the link being a communication link between the first device and an adjacent second device, the bandwidth information including at least one of bandwidth utilization information, error packet information, and packet loss information; transmitting the bandwidth information via a first transmission protocol, the first transmission protocol including a first message format, the first message format being used to support the transmission of the bandwidth information. Or, performing the following operations: receiving bandwidth information transmitted by a target device in a communication network via a first transmission protocol, the bandwidth information including at least one of bandwidth utilization information, error packet information, and packet loss information, the first transmission protocol including a first message format, the first message format being used to support the transmission of the bandwidth information.

[0134] Figure 11 is a schematic diagram of the structure of a bandwidth information transmission device 110 according to an embodiment of the present application. Referring to Figure 11, in one software implementation, the bandwidth information transmission device 110 may include: an acquisition module 111 and a transmission module 112. Acquisition module 111 acquires bandwidth information of a link, where the link is a communication link between a first device and an adjacent second device, the bandwidth information including at least one of bandwidth utilization information, packet error information, and packet loss information; and transmission module 112 transmits the bandwidth information via a first transmission protocol, where the first transmission protocol includes a first message format, which is used to support the transmission of the bandwidth information.

[0135] Optionally, in some embodiments, the bandwidth utilization information includes at least one of inbound bandwidth utilization and outbound bandwidth utilization; the error packet information includes at least one of inbound error packet statistics and outbound error packet statistics; and the packet loss information includes at least one of inbound packet loss statistics and outbound packet loss statistics.

[0136] Optionally, in some embodiments, the inbound bandwidth utilization is the average value of the inbound bandwidth utilization of the link in a first time period; the outbound bandwidth utilization is the average value of the outbound bandwidth utilization of the link in a second time period; when there are two sets of inbound error packet statistics on the link, the inbound error packet statistics is the maximum value of the two sets of inbound error packet statistics; when there are two sets of outbound error packet statistics on the link, the outbound error packet statistics is the maximum value of the two sets of outbound error packet statistics; when there are two sets of inbound packet loss statistics on the link, the inbound packet loss statistics is the maximum value of the two sets of inbound packet loss statistics; when there are two sets of outbound packet loss statistics on the link, the outbound packet loss statistics is the maximum value of the two sets of outbound packet loss statistics.

[0137] Optionally, in some embodiments, the first transmission protocol includes any one of the following: a protocol obtained by adding the first message format to the Intermediate System to Intermediate System ISIS protocol; a protocol obtained by adding the first message format to the Open Shortest Path First OSPF protocol; a protocol obtained by adding the first message format to the inter-domain routing protocol BGP.

[0138] Optionally, in some embodiments, when the bandwidth information includes the bandwidth utilization information, the first message format includes at least one of a type field, a valid value field, an exception setting field, a traffic type field, a reserved field, a link inbound bandwidth utilization field, and a link outbound bandwidth utilization field; when the bandwidth information includes the error packet information, the first message format includes at least one of a type field, a valid value field, an exception setting field, a reserved field, a link inbound error packet statistics field, and a link outbound error packet statistics field; when the bandwidth information includes the packet loss information, the first message format includes at least one of a type field, a valid value field, an exception setting field, a reserved field, a link inbound packet loss statistics field, and a link outbound packet loss statistics field.

[0139] Optionally, in some embodiments, the transmission module 112 transmits the bandwidth information through a first transmission protocol, including flooding the bandwidth information in the communication network through the first transmission protocol; or transmits the bandwidth information to a network control system through the first transmission protocol.

[0140] Optionally, in some embodiments, the transmission module 112, when transmitting the bandwidth information to the network control system through the first transmission protocol, further includes: receiving bandwidth information of other links in the communication network; and transmitting the bandwidth information of the other links to the network control system through the first transmission protocol.

[0141] Optionally, in some embodiments, the transmission module 112 transmits the bandwidth information through the first transmission protocol, including: determining whether the bandwidth information meets the transmission conditions, the transmission conditions including that the transmission function of the first transmission protocol for the bandwidth information is enabled, or that the transmission function of the first transmission protocol for the bandwidth information is enabled and the change in the bandwidth information exceeds a preset threshold; if the bandwidth information meets the transmission conditions, transmitting the bandwidth information through the first transmission protocol.

[0142] Optionally, in some embodiments, the first transmission protocol supports independent enabling and disabling of a transmission function of any one of the bandwidth utilization information, the error packet information, and the packet loss information.

[0143] Optionally, in some embodiments, when the bandwidth information includes outbound bandwidth information and inbound bandwidth information, the change in the bandwidth information exceeding a preset threshold includes the change in the inbound bandwidth information exceeding the preset threshold or the change in the outbound bandwidth information exceeding the preset threshold; wherein, the inbound bandwidth information includes at least one of inbound bandwidth utilization, inbound error packet statistics, and inbound packet loss statistics, and the outbound bandwidth information includes at least one of outbound bandwidth utilization, outbound error packet statistics, and outbound packet loss statistics.

[0144] The bandwidth information transmission device 110 provided in the embodiment of the present application can also execute the method of Figure 2 and realize the functions of the bandwidth information transmission device 110 in the embodiment shown in Figure 2, which will not be repeated here.

[0145] Figure 12 is a schematic diagram of the structure of a bandwidth information transmission device 120 according to an embodiment of the present application. Referring to Figure 12, in one software implementation, the bandwidth information transmission device 120 may include a receiving module 121, wherein: receiving module 121 receives bandwidth information transmitted from a target device in the communication network via a first transmission protocol, the bandwidth information including at least one of bandwidth utilization information, error packet information, and packet loss information; the first transmission protocol includes a first message format, and the first message format is used to support the transmission of the bandwidth information.

[0146] Optionally, in some embodiments, the bandwidth utilization information includes at least one of inbound bandwidth utilization and outbound bandwidth utilization; the error packet information includes at least one of inbound error packet statistics and outbound error packet statistics; and the packet loss information includes at least one of inbound packet loss statistics and outbound packet loss statistics.

[0147] Optionally, in some embodiments, the inbound bandwidth utilization is the average value of the inbound bandwidth utilization of the link in a first time period; the outbound bandwidth utilization is the average value of the outbound bandwidth utilization of the link in a second time period; when there are two sets of inbound error packet statistics on the link, the inbound error packet statistics is the maximum value of the two sets of inbound error packet statistics; when there are two sets of outbound error packet statistics on the link, the outbound error packet statistics is the maximum value of the two sets of outbound error packet statistics; when there are two sets of inbound packet loss statistics on the link, the inbound packet loss statistics is the maximum value of the two sets of inbound packet loss statistics; when there are two sets of outbound packet loss statistics on the link, the outbound packet loss statistics is the maximum value of the two sets of outbound packet loss statistics.

[0148] Optionally, in some embodiments, the first transmission protocol includes any one of the following: a protocol obtained by adding the first message format to the Intermediate System to Intermediate System ISIS protocol; a protocol obtained by adding the first message format to the Open Shortest Path First OSPF protocol; a protocol obtained by adding the first message format to the inter-domain routing protocol BGP.

[0149] Optionally, in some embodiments, when the bandwidth information includes the bandwidth utilization information, the first message format includes at least one of a type field, a valid value field, an exception setting field, a traffic type field, a reserved field, a link inbound bandwidth utilization field, and a link outbound bandwidth utilization field; when the bandwidth information includes the error packet information, the first message format includes at least one of a type field, a valid value field, an exception setting field, a reserved field, a link inbound error packet statistics field, and a link outbound error packet statistics field; when the bandwidth information includes the packet loss information, the first message format includes at least one of a type field, a valid value field, an exception setting field, a reserved field, a link inbound packet loss statistics field, and a link outbound packet loss statistics field.

[0150] The bandwidth information transmission device 120 provided in the embodiment of the present application can also execute the method of Figure 6 and realize the functions of the bandwidth information transmission device 120 in the embodiment shown in Figure 6, which will not be repeated here.

[0151] An embodiment of the present application also provides a communication network, which includes multiple network element devices and a network control system, wherein: each network element device obtains bandwidth information of a link between an adjacent network element device, and the bandwidth information includes at least one of bandwidth utilization information, error packet information, and packet loss information; each network element device floods the obtained bandwidth information in the communication network through a first transmission protocol, and the first transmission protocol includes a first message format, which is used to support the transmission of bandwidth information; the target device in the communication network transmits the bandwidth information obtained by each network element device to the network control system through the first transmission protocol; and the network control system receives the bandwidth information transmitted by the target device through the first transmission protocol.

[0152] When each network element device obtains bandwidth information of the link between the neighbor device and transmits the bandwidth information, the specific implementation method can refer to the specific implementation method of the first device obtaining bandwidth information and transmitting bandwidth information in the embodiment shown in Figure 2, which will not be described in detail here.

[0153] The target device may be a pre-agreed device among multiple network element devices or a randomly selected device from multiple network element devices, and is not specifically limited here. When the target device reports bandwidth information, the specific implementation method can refer to the specific implementation method of the first device reporting bandwidth information in the embodiment shown in Figure 2 above, and will not be described in detail here.

[0154] In the embodiments of the present application, the bandwidth information transmitted by the network element devices is richer, and can intuitively present the link bandwidth usage, such as the congestion level and health level. In addition, when transmitting bandwidth information, because the message format used to support bandwidth information transmission can be expanded in the transmission protocol, and the bandwidth information is transmitted through the expanded transmission protocol, the bandwidth information can be effectively transmitted. Furthermore, because the network element devices can transmit bidirectional bandwidth information, the amount of link bandwidth information flooded in the network can be reduced compared to transmitting unidirectional bandwidth information.

[0155] In short, the above description is only a preferred embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

[0156] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0157] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0158] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0159] The various embodiments in this application are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiment is generally similar to the method embodiment, so the description is relatively simple. For relevant parts, refer to the partial description of the method embodiment.

Claims

1. A method for transmitting bandwidth information, applied to a first device in a communication network, comprising: Acquire bandwidth information of a link, where the link is a communication link between the first device and an adjacent second device, where the bandwidth information includes at least one of bandwidth utilization information, error packet information, and packet loss information; The bandwidth information is transmitted through a first transmission protocol, where the first transmission protocol includes a first message format, and the first message format is used to support the transmission of the bandwidth information.

2. The method according to claim 1, wherein the bandwidth utilization information comprises at least one of an inbound bandwidth utilization and an outbound bandwidth utilization; The error packet information includes at least one of an inbound error packet statistics and an outbound error packet statistics; The packet loss information includes at least one of inbound packet loss statistics and outbound packet loss statistics.

3. The method of claim 2, comprising at least one of the following: The inbound bandwidth utilization is an average value of the inbound bandwidth utilization of the link in a first time period; The outbound bandwidth utilization is an average value of the outbound bandwidth utilization of the link in the second time period; In the case where there are two sets of inbound error packet statistics on the link, the inbound error packet statistics is the maximum value of the two sets of inbound error packet statistics; In the case where there are two sets of outbound error packet statistics on the link, the outbound error packet statistics is the maximum value of the two sets of outbound error packet statistics; In the case where there are two sets of inbound packet loss statistics on the link, the inbound packet loss statistics is the maximum value of the two sets of inbound packet loss statistics; In the case that there are two sets of outbound packet loss statistics for the link, the outbound packet loss statistics is a maximum value of the two sets of outbound packet loss statistics.

4. The method according to claim 1, wherein the first transmission protocol comprises any one of the following: A protocol obtained by adding the first message format to the intermediate system to intermediate system ISIS protocol; A protocol obtained by adding the first message format to the Open Shortest Path First (OSPF) protocol; A protocol obtained by adding the first message format to the inter-domain routing protocol BGP.

5. The method according to claim 1, wherein when the bandwidth information includes the bandwidth utilization information, the first message format includes at least one of a type field, a valid value field, an abnormal setting field, a traffic type field, a reserved field, a link inbound bandwidth utilization field, and a link outbound bandwidth utilization field; In the case where the bandwidth information includes the error packet information, the first message format includes a type field, a valid value field, an abnormal setting field, a reserved field, a link inbound error packet statistics field, and a link outbound error packet statistics field. At least one; In the case where the bandwidth information includes the packet loss information, the first message format includes at least one of a type field, a valid value field, an abnormal setting field, a reserved field, a link inbound packet loss statistics field, and a link outbound packet loss statistics field.

6. The method according to any one of claims 1 to 5, wherein transmitting the bandwidth information through a first transmission protocol comprises: flooding the bandwidth information in the communication network via the first transmission protocol; or, The bandwidth information is transmitted to the network control system through the first transmission protocol.

7. The method according to claim 6, wherein, in the case where the bandwidth information is transmitted to the network control system through the first transmission protocol, the method further comprises: Receiving bandwidth information of other links in the communication network; The bandwidth information of the other links is transmitted to the network control system through the first transmission protocol.

8. The method according to any one of claims 1 to 5, wherein transmitting the bandwidth information through a first transmission protocol comprises: Determine whether the bandwidth information meets a transmission condition, where the transmission condition includes that the transmission function of the first transmission protocol for the bandwidth information is in an enabled state, or that the transmission function of the first transmission protocol for the bandwidth information is in an enabled state and a change amount of the bandwidth information exceeds a preset threshold; When the bandwidth information meets the transmission condition, the bandwidth information is transmitted through the first transmission protocol.

9. The method according to claim 8, wherein the first transmission protocol supports independent enabling and disabling of a transmission function for any one of the bandwidth utilization information, the error packet information, and the packet loss information.

10. The method according to claim 8, wherein when the bandwidth information includes outbound bandwidth information and inbound bandwidth information, the change amount of the bandwidth information exceeding the preset threshold comprises that the change amount of the inbound bandwidth information exceeds the preset threshold or the change amount of the outbound bandwidth information exceeds the preset threshold; in, The inbound bandwidth information includes at least one of inbound bandwidth utilization, inbound error packet statistics, and inbound packet loss statistics; the outbound bandwidth information includes at least one of outbound bandwidth utilization, outbound error packet statistics, and outbound packet loss statistics.

11. A method for transmitting bandwidth information, applied to a network control system in a communication network, comprising: Bandwidth information transmitted by a target device in the communication network is received through a first transmission protocol, the bandwidth information including at least one of bandwidth utilization information, error packet information and packet loss information, the first transmission protocol including a first message format, and the first message format is used to support the transmission of the bandwidth information.

12. The method according to claim 11, wherein the bandwidth utilization information comprises at least one of an inbound bandwidth utilization and an outbound bandwidth utilization; The error packet information includes at least one of an inbound error packet statistics and an outbound error packet statistics; The packet loss information includes at least one of inbound packet loss statistics and outbound packet loss statistics.

13. The method of claim 12, comprising at least one of the following: The inbound bandwidth utilization is an average value of the inbound bandwidth utilization of the link in the first time period; The outbound bandwidth utilization is an average value of the outbound bandwidth utilization of the link in the second time period; In the case where there are two sets of inbound error packet statistics on the link, the inbound error packet statistics is the maximum value of the two sets of inbound error packet statistics; In the case where there are two sets of outbound error packet statistics on the link, the outbound error packet statistics is the maximum value of the two sets of outbound error packet statistics; In the case where there are two sets of inbound packet loss statistics on the link, the inbound packet loss statistics is the maximum value of the two sets of inbound packet loss statistics; In the case that there are two sets of outbound packet loss statistics for the link, the outbound packet loss statistics is a maximum value of the two sets of outbound packet loss statistics.

14. The method according to claim 11, wherein the first transmission protocol comprises any one of the following: A protocol obtained by adding the first message format to the intermediate system to intermediate system ISIS protocol; A protocol obtained by adding the first message format to the Open Shortest Path First (OSPF) protocol; A protocol obtained by adding the first message format to the inter-domain routing protocol BGP.

15. The method according to claim 11, wherein when the bandwidth information includes the bandwidth utilization information, the first message format includes at least one of a type field, a valid value field, an abnormal setting field, a traffic type field, a reserved field, a link inbound bandwidth utilization field, and a link outbound bandwidth utilization field; In the case where the bandwidth information includes the error packet information, the first message format includes at least one of a type field, a valid value field, an abnormal setting field, a reserved field, a link inbound error packet statistics field, and a link outbound error packet statistics field; In the case where the bandwidth information includes the packet loss information, the first message format includes at least one of a type field, a valid value field, an abnormal setting field, a reserved field, a link inbound packet loss statistics field, and a link outbound packet loss statistics field.

16. A bandwidth information transmission device, applied to a first device in a communication network, comprising: an acquisition module, which acquires bandwidth information of a link, where the link is a communication link between the first device and an adjacent second device, and the bandwidth information includes at least one of bandwidth utilization information, error packet information, and packet loss information; The transmission module transmits the bandwidth information through a first transmission protocol, wherein the first transmission protocol includes a first message format, and the first message format is used to support the transmission of the bandwidth information.

17. A bandwidth information transmission device, applied to a network control system in a communication network, comprising: A receiving module receives bandwidth information transmitted by a target device in the communication network through a first transmission protocol, wherein the bandwidth information includes at least one of bandwidth utilization information, error packet information and packet loss information, and the first transmission protocol includes a first message format, and the first message format is used to support the transmission of the bandwidth information.

18. A communication network, comprising a plurality of network element devices and a network control system, wherein: Each network element device acquires bandwidth information of a link between itself and an adjacent network element device, wherein the bandwidth information includes at least one of bandwidth utilization information, error packet information, and packet loss information; Each network element device floods the acquired bandwidth information in the communication network through a first transmission protocol, where the first transmission protocol includes a first message format, and the first message format is used to support the transmission of the bandwidth information; The target device in the communication network transmits the bandwidth information acquired by each network element device to the network control system through the first transmission protocol; The network control system receives the bandwidth information transmitted by the target device through the first transmission protocol.

19. An electronic device comprising: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 10, or to implement the method according to any one of claims 11 to 15.

20. A computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 10, or execute the method according to any one of claims 11 to 15.

Citation Information

Patent Citations

  • Packet loss rate reporting method, communication device and system

    CN116566540A

  • Method and device for determining path

    CN116684347A

  • Communication method and device

    CN117041125A

  • Method and device for link failure diagnosis

    WO2018145560A1