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

By acquiring and transmitting bandwidth information, including bandwidth utilization, packet errors and packet loss information, the problem of link bandwidth usage cannot be visually presented in the prior art, and effective acquisition and transmission of link bandwidth usage is achieved.

CN120201096APending Publication Date: 2025-06-24ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311778513.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-21
Publication Date
2025-06-24

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

By obtaining the bandwidth information of the link, including at least one of bandwidth utilization information, packet error information and packet loss information, and transmitting through an extended transmission protocol, the effective transmission of bandwidth information is supported.

Benefits of technology

It realizes intuitive presentation of link bandwidth usage, meets the need to obtain link bandwidth usage, and reduces the amount of flooded link bandwidth information in the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120201096A_ABST
    Figure CN120201096A_ABST
Patent Text Reader

Abstract

The invention provides a bandwidth information transmission method and device, a communication network, equipment and a storage medium. The method comprises: a first device obtaining bandwidth information of a link, the link being a communication link between the first device and an adjacent second device, the bandwidth information comprising at least one of bandwidth utilization rate information, error packet information and packet loss information; the bandwidth information is transmitted through a first transmission protocol, the first transmission protocol comprises a first message format, and the first message format is used for supporting transmission of the bandwidth information. The network element equipment in the embodiment of the invention can transmit richer bandwidth information, so that the link use conditions such as the congestion degree and the health degree of the link can be intuitively presented. Besides, when the bandwidth information is transmitted, the message format for supporting the transmission of the bandwidth information can be expanded in the transmission protocol, and the bandwidth information is transmitted through the expanded transmission protocol, so that the effective transmission of the bandwidth information can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technologies, and in particular, to a method and apparatus for transmitting bandwidth information, a communication network, a device, and a storage medium. Background Art

[0002] With the gradual increase in the demand for network intelligence and the development of bandwidth resource reservation technologies such as Flexible Ethernet (FlexE) and channelized sub-interfaces, it has become increasingly important for network operators to obtain the bandwidth usage of forwarding links in the network, whether from the perspective of operation and maintenance management or business requirements. 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 the current transmission protocol is mainly the bandwidth information of neighbor links established based on 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 to evaluate the link status. It can be seen that the bandwidth information transmitted by network element devices in the current network has the problem of being unable to intuitively present the link bandwidth usage, resulting in an inability to meet the requirement for obtaining the link bandwidth usage. Summary of the Invention

[0003] This 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 requirement for obtaining the link bandwidth usage.

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

[0005] In a first aspect, a method for transmitting bandwidth information is provided. The method is applied to a first device in a communication network, and the method includes:

[0006] Obtain the 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, packet error information, and packet loss information;

[0007] Transmit the bandwidth information through a first transmission protocol, where the first transmission protocol includes a first message format for supporting the transmission of the bandwidth information.

[0008] Second aspect, a transmission device for bandwidth information is provided. The device is applied to a first device in a communication network, and the device includes:

[0009] An obtaining module, which obtains the bandwidth information of a link. 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, packet error information, and packet loss information;

[0010] A transmission module, which transmits the bandwidth information through a first transmission protocol. The first transmission protocol includes a first message format, and the first message format is used to support the transmission of the bandwidth information.

[0011] Third aspect, a method for transmitting bandwidth information is provided. The method is applied to a network control system in a communication network, and the method includes:

[0012] Receiving, through a first transmission protocol, the bandwidth information transmitted by a target device in the communication network. The bandwidth information includes at least one of bandwidth utilization information, packet error 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.

[0013] Fourth aspect, a transmission device for bandwidth information is provided. The device is applied to a network control system in a communication network, and the device includes:

[0014] A receiving module, which receives, through a first transmission protocol, the bandwidth information transmitted by a target device in the communication network. The bandwidth information includes at least one of bandwidth utilization information, packet error 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.

[0015] Fifth aspect, a communication network is provided. The communication network includes multiple network element devices and a network control system, where:

[0016] Each network element device obtains the bandwidth information of the link between it and an adjacent network element device. The bandwidth information includes at least one of bandwidth utilization information, packet error information, and packet loss information;

[0017] Each network element device floods the obtained bandwidth information in the communication network through a first transmission protocol. The first transmission protocol includes a first message format, and the first message format is used to support the transmission of the bandwidth information;

[0018] A 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;

[0019] The network control system receives the bandwidth information transmitted by the target device through the first transmission protocol.

[0020] In a sixth aspect, there is provided an electronic device, including:

[0021] a processor;

[0022] a memory for storing executable instructions of the processor;

[0023] wherein, the processor is configured to execute the instructions to implement the method described in the first aspect or the method described in the third aspect.

[0024] In a seventh aspect, there is provided a computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enabling the electronic device to execute the method described in the first aspect or the method described in the third aspect.

[0025] In the embodiments of the present application, the bandwidth information transmitted by the network element device includes at least one of bandwidth utilization information, packet error information, and packet loss information. Compared with the bandwidth information transmitted by the network element device in the prior art, the bandwidth information transmitted by the network element device in the embodiments of the present application is richer, so that the usage situation of the link bandwidth can be intuitively presented, for example, the congestion degree, the health degree, etc. In addition, when transmitting the bandwidth information, since the message format for supporting the transmission of the bandwidth information can be extended in the transmission protocol and the bandwidth information is transmitted through the extended transmission protocol, the effective transmission of the bandwidth information can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings described below are only some embodiments recorded in the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0027] Figure 1 is a schematic communication network diagram provided by an embodiment of the present application;

[0028] Figure 2 is a schematic flowchart of a method for transmitting bandwidth information according to an embodiment of the present application;

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

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

[0031] Figure 5 It is a schematic diagram of the field format design of packet loss information in an embodiment of the present application;

[0032] Figure 6 It is a schematic flowchart of the transmission method of bandwidth information in an embodiment of the present application;

[0033] Figure 7 It is a schematic diagram of the transmission of bandwidth utilization information in an embodiment of the present application;

[0034] Figure 8 It is a schematic diagram of the transmission of bandwidth utilization information in an embodiment of the present application;

[0035] Figure 9 It is a schematic diagram of the transmission of incorrect packet information in an embodiment of the present application;

[0036] Figure 10 It is a schematic diagram of the structure of an electronic device in an embodiment of the present application;

[0037] Figure 11 It is a schematic diagram of the structure of a transmission device for bandwidth information in an embodiment of the present application;

[0038] Figure 12 It is a schematic diagram of the structure of a transmission device for bandwidth information in an embodiment of the present application. Detailed implementation manners

[0039] In order to enable those skilled in the art to better understand the technical solutions in the present application, the following will clearly and completely describe the technical solutions in the present application with reference to the drawings in one or more embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0040] The terms "first", "second", etc. in the present application and the claims are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the present application can be implemented in an order other than those illustrated or described herein. In addition, "and / or" in the present application and the claims means at least one of the connected objects, and the character " / " generally means that the associated objects before and after are in an "or" relationship.

[0041] Figure 1 It is a schematic communication network diagram provided by an embodiment of the present application. Figure 1The communication network shown includes a network control system and multiple network element devices R1, R2, R3, R4, and R5. Each network element device can provide network services for users. The network control system is connected to the multiple network element devices through a network, and the network control system can manage and control the multiple network element devices. Among them, the network element device can be a switch or a router, etc.

[0042] Based on the technical solution provided in the embodiment of the present application, link quality detection can be deployed among the network element devices in the Figure 1 shown network. Each network element device can obtain the bandwidth information of the link with its neighbor device. The bandwidth information includes at least one of bandwidth utilization information, packet error 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 aggregates 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 device in the prior art, the bandwidth information transmitted in the embodiment of the present application is richer, so that the usage situation of the link bandwidth can be presented intuitively. Further, the bandwidth information transmitted by the network element device can be two-way bandwidth information. Therefore, the number of link bandwidth information flooded in the network can be effectively reduced, and the network burden can be alleviated.

[0043] Figure 1 When the shown network element device transmits bandwidth information, it can use the extended protocol for transmission. The extended protocol can be a protocol obtained by extending the existing transmission protocol. The extension of the existing protocol is specifically to add a message format for supporting bandwidth information transmission in the existing protocol. Thus, the effective transmission of bandwidth information can be realized.

[0044] It should be noted that in practical applications, the number of network element devices included in the communication network can be any integer greater than or equal to 2, Figure 1 and only the case where the communication network includes 5 network element devices is taken as an example for illustration. In addition, the connection manner between the multiple network element devices can also be Figure 1 other connection manners other than the shown connection manner, and no specific limitation is made here.

[0045] The following will describe in detail the technical solutions provided in each embodiment of the present application with reference to the accompanying drawings.

[0046] Figure 2 is a schematic flowchart of a method for transmitting bandwidth information according to an embodiment of the present application. Figure 2 The shown method for transmitting bandwidth information can be executed by a first device, and the first device can be Figure 1 any one of the shown network element devices. Figure 2 The shown method for transmitting bandwidth information is described as follows.

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

[0048] During the process of providing network services, the first device can obtain the bandwidth information of the communication link with its neighbor device. Here, for the sake of easy distinction, the neighbor device of the first device can be represented as the second device, and the number of second devices can be one or more. When the first device obtains the bandwidth information, it can obtain the bandwidth information of the link with each second device. The bandwidth information can be information that can intuitively present the bandwidth usage of the link. Specifically, the bandwidth information can include at least one of bandwidth utilization information, packet error information, and packet loss information.

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

[0050] Optionally, in some embodiments, the bandwidth utilization information in the bandwidth information can include at least one of the outbound bandwidth utilization and the inbound bandwidth utilization. The packet error information can include at least one of the inbound packet error statistics and the outbound packet error statistics. The packet loss information can include at least one of the inbound packet loss statistics and the outbound packet loss statistics. Among them, outbound and inbound are related to the flow direction of the traffic carried by the link. For example, devices R1 and R2 are directly connected. For R1, outbound can be that the traffic flows out from R1 to R2, and inbound can be that the traffic flows in from R2 to R1. In the case where the bandwidth information is two-way bandwidth information, compared with one-way bandwidth information, it can effectively reduce the number of link bandwidth information flooded in the network, thereby reducing the network burden.

[0051] For a link, the outbound bandwidth utilization rate of the link can be the ratio of the outbound used bandwidth of the link to the outbound bandwidth. The outbound bandwidth can be the sum of the outbound remaining bandwidth and the outbound reserved bandwidth. The outbound reserved bandwidth can be 0 or non-zero. There can be one or more outbound traffic carried on the link. In the case where the link carries multiple outbound traffic, the outbound used bandwidth of the link can be the sum of the bandwidths occupied by the multiple outbound traffic. Similarly, the inbound bandwidth utilization rate of the link can be the ratio of the inbound used bandwidth of the link to 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. There can be one or more inbound traffic carried on the link. In the case where the link carries multiple inbound traffic, the inbound used bandwidth of the link can be the sum of the bandwidths occupied by the multiple inbound traffic.

[0052] Optionally, in some embodiments, the outbound bandwidth utilization rate and the inbound bandwidth utilization rate can be real-time bandwidth utilization rates, that is, the bandwidth utilization rate information can be the real-time bandwidth utilization rate information of the link. In other embodiments, the outbound bandwidth utilization rate and the inbound bandwidth utilization rate can also be the average values of the bandwidth utilization rates within a certain time period, that is, the bandwidth utilization rate information can be the average values of the bandwidth utilization rates within a certain time period. Here, for the sake of easy distinction, the time period corresponding to the inbound bandwidth utilization rate can be expressed as the first time period, and the time period corresponding to the outbound bandwidth utilization rate can be expressed as the second time period. Both the first time period and the second time period can be determined according to actual service requirements 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 rate and the outbound bandwidth utilization rate can be flexibly adjusted.

[0053] Optionally, the above-mentioned first time period can be equal to the second time period. For example, the outbound bandwidth utilization rate and the inbound bandwidth utilization rate can be the average values of the outbound bandwidth utilization rate within 5 minutes and the average values of the inbound bandwidth utilization rate within 5 minutes.

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

[0055] For a link, the inbound packet loss statistics and outbound packet loss statistics of the link can be real-time data of the current statistics, which is 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 some 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 losses may occur during the forwarding process due to different transmission methods and other reasons, resulting in 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 of the link. Similarly, when obtaining the outbound packet loss statistics of the link, if there are two sets of outbound packet loss statistics 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 of the link. For example, if devices R1 and R2 are directly connected, the number of outbound packet losses counted by device R1 is 200, and the number of inbound packet losses is 150. The number of outbound packet losses counted by R2 (which is the inbound packet loss number relative to R2) is 180, and the number of inbound packet losses (which is the outbound packet loss number relative to R2) is 190. Then, the packet loss information of the link between R1 and R2 can be: the outbound packet loss statistics are 200, and the inbound packet loss statistics are 190.

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

[0057] After obtaining the bandwidth information, the first device can transmit the bandwidth information. When the first device transmits the bandwidth information, it needs to use a transmission protocol for transmission. Considering that the bandwidth information transmitted by the existing transmission protocol is different from the bandwidth information transmitted in the embodiments of the present application, the existing transmission protocol may not support the transmission of the bandwidth information in the embodiments of the present application. Therefore, when the first device transmits the bandwidth information, it may not use the existing 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 embodiments of the present application, thereby enabling the effective transmission of the bandwidth information.

[0058] The first transmission protocol may be a protocol obtained by extending an existing transmission protocol. Optionally, in some embodiments, the first transmission 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). Among them, the first message format added to the ISIS protocol, OSPF protocol, and BGP protocol may be represented as a TLV or a Sub-TLV.

[0059] The first message format may have one or more formats. Specifically, when the bandwidth information is any one of bandwidth utilization information, packet error 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 has 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, packet error 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, packet error information, and packet loss information, the first message format may include three formats. The first format of the message is used to support the transmission of bandwidth utilization information, the second format of the message is used to support the transmission of packet error information, and the third format of the message is used to support the transmission of packet loss information.

[0060] In some embodiments, 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 setting field, a traffic type field, a reserved field, an inbound link bandwidth utilization field, and an outbound link bandwidth utilization field. Taking the first message format including these 7 fields: type field, valid value field, exception setting field, traffic type field, reserved field, inbound link bandwidth utilization field, and outbound link bandwidth utilization field as an example, the corresponding field format design may be as Figure 3 shown.

[0061] Figure 3 In it, the meanings of each field are as follows:

[0062] (1) Type field: Type, Type = TBD1 (To Be Determined 1) indicates carrying inbound bandwidth utilization information and outbound bandwidth utilization information;

[0063] (2) Valid value field: Length, which represents the number of bytes of the valid value field and can be 8;

[0064] (3) Abnormal setting field: A. When A is set, it indicates data abnormality (such as the bandwidth utilization rate exceeding 100%) or non-statistics;

[0065] (4) Traffic type field: V, which can represent different types through 2 bits. For example, 00 indicates statistics without distinguishing packet types, 01 represents only IPv4 statistics, 10 represents only IPv6 statistics, and 11 is a reserved value;

[0066] (5) Reserved field: Reserve, which is all 0;

[0067] (6) Link inbound bandwidth utilization field: Input Utilization, which represents the link inbound bandwidth utilization. It can include 16 bits, support valid values from 0 to 10000, and its unit is 1 / 10000. That is, when the filled value of this field is 1234, it means the current inbound bandwidth utilization is 12.34%. If the data in this field is greater than 10000, it is considered invalid information;

[0068] (7) Link outbound bandwidth utilization field: Output Utilization, which represents the link outbound bandwidth utilization. It can also include 16 bits, support valid values from 0 to 10000, and its unit is 1 / 10000. That is, when the filled value of this field is 1234, it means the current outbound bandwidth utilization is 12.34%. If the data in this field is greater than 10000, it is considered invalid information.

[0069] In some embodiments, the first packet format for supporting the transmission of mispacket information may include at least one of a type field, a valid value field, an abnormal setting field, a reserved field, a link inbound mispacket statistics field, and a link outbound mispacket statistics field. Taking the first packet format including these 6 fields: type field, valid value field, abnormal setting field, reserved field, link inbound mispacket statistics field, and link outbound mispacket statistics field as an example, the corresponding field format design can be as Figure 4 shown.

[0070] Figure 4 Among them, the meanings of each field are as follows:

[0071] (1) Type field: Type, where Type = TBD2 (to be determined 2) indicates carrying link outbound mispacket statistics information and inbound mispacket statistics information;

[0072] (2) Valid value field: Length, which represents the number of bytes of the valid value field and can be 8;

[0073] (3) Abnormal Set Field: A. When A is set, it indicates that the error packet count has exceeded the maximum value that Error Packets can represent, or the error packets are not counted at this time.

[0074] (4) Reserved Field: Reserved, all bits are 0.

[0075] (5) Link Input Error Packet Count Field: Input Error Packets, which represents the link input error packet count. It can represent valid values from 0 to 65535 through 16 bits. When the value is 4321, it means the number of input error packets is 4321.

[0076] (6) Link Output Error Packet Count Field: Output Error Packets, which represents the link output error packet count. It can also represent valid values from 0 to 65535 through 16 bits. When the value is 4321, it means the number of output error packets is 4321.

[0077] In some embodiments, the first packet format for supporting the transmission of packet loss information may include at least one of a type field, a valid value field, an abnormal set field, a reserved field, a link input packet loss count field, and a link output packet loss count field. Taking the first packet format including these 6 fields: type field, valid value field, abnormal set field, reserved field, link input packet loss count field, and link output packet loss count field as an example, the corresponding field format design can be as Figure 5 shown.

[0078] Figure 5 In, the meanings of each field are as follows:

[0079] (1) Type Field: Type. Type = TBD3 (To Be Determined 3) represents carrying the link input packet loss information and output packet loss information.

[0080] (2) Valid Value Field: Length, which represents the number of bytes of the valid value field and can be 8.

[0081] (3) Abnormal Set Field: A. When A is set, it indicates that the packet loss count has exceeded the maximum value that Discard Packets can represent, or the packet loss is not counted at this time.

[0082] (4) Reserved Field: Reserved, all bits are 0.

[0083] (5) Link Input Packet Loss Count Field: Input Discard Packets, which represents the link input packet loss count. It can represent valid values from 0 to 65535 through 16 bits. When the value is 4321, it means the number of input packet losses is 4321.

[0084] (6) Link output discard packet statistics field: Output Discard Packets, which represents the link output discard packet statistics. It can represent valid values from 0 to 65535 through 16 bits. When the value is 4321, it means the number of input discard packets is 4321.

[0085] In practical applications, to support the transmission of different bandwidth information, preferably, the first packet format can have the above three formats to support the transmission of three different bandwidth information. Correspondingly, when expanding the existing transmission protocol, three new packet formats can be added to the existing transmission protocol. For example, when expanding the existing ISIS protocol, the above three Sub-TLVs can be added to Extended IS Reachability TLV (type 22), Inter-AS Reachability TLV (type 141), and MT-ISN TLV (type 222) respectively, where 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 Link TLV, where 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, where the Type value of the corresponding TLV is to be determined.

[0086] When the first device transmits bandwidth information through the first transmission protocol, optionally, in some embodiments, the bandwidth information can be flooded in the communication network through the first transmission protocol to transmit the bandwidth information to other network element devices in the communication network, and then the other network element devices report the bandwidth information to the network control system so that the network control system can obtain the bandwidth usage of the link between the first device and its neighbor devices. In other embodiments, the first device can also directly report the bandwidth information to the network control system through the first transmission protocol. In this way, the network control system can directly obtain the bandwidth usage of the link between the first device and its neighbor devices from the first device.

[0087] When the first device transmits bandwidth information to the network control system through the first transmission protocol, optionally, the following steps can also be included:

[0088] Receive the bandwidth information of other links in the communication network;

[0089] Transmit the bandwidth information of other links to the network control system through the first transmission protocol.

[0090] The bandwidth information of other links can be statistically obtained by the network element devices corresponding to the other links and transmitted to the first device in a flooding manner. 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 packet error statistics and outbound packet error statistics. The packet loss information includes at least one of inbound packet loss statistics and outbound packet loss statistics. For specific details, reference can be made to the explanation of the bandwidth information obtained by the first device in S202 above, which will not be repeated here.

[0091] After receiving the bandwidth information of other links transmitted by other network element devices, the first device can report the bandwidth information of other links to the network control system through the first transmission protocol, so that the network control system can obtain the bandwidth usage of other links. Among them, when the first device reports the bandwidth information of other links to the network control system, it can report these bandwidth information and the bandwidth information obtained by the first device in S202 to the network control system together, so as to reduce the number of information reports. In addition, in the case where the first device reports the bandwidth information of other links, other network element devices do not need to report these bandwidth information to the network control system to avoid duplicate reporting.

[0092] In practical applications, after each device in the communication network obtains the bandwidth information of the link with its neighbor device, it can flood the bandwidth information in the network and then randomly select one device to report all the bandwidth information of the links to the network control system. Alternatively, it can also be pre-agreed that a certain device is the reporting device for bandwidth information. After obtaining the bandwidth information of the link with its neighbor device, the reporting device does not need to flood in the network. At the same time, after other network element devices obtain the bandwidth information of the link with their neighbors, they can flood in the network to transmit the link information to the reporting device. After receiving the bandwidth information of other links, the reporting device can report these bandwidth information and the bandwidth information obtained by the reporting device to the network control system together.

[0093] When the first device transmits bandwidth information through the first transmission protocol, optionally, in some embodiments, it may include the following steps:

[0094] Determine whether the bandwidth information meets the transmission conditions. The transmission conditions include that the transmission function of the first transmission protocol for the bandwidth information is in an enabled state, or the transmission function of the first transmission protocol for the bandwidth information is in an enabled state and the change amount of the bandwidth information exceeds a preset threshold;

[0095] When the bandwidth information meets the transmission conditions, transmit the bandwidth information through the first transmission protocol.

[0096] The first transmission protocol can support the enabling and disabling capabilities of the bandwidth information transmission function. When the transmission of bandwidth information is allowed, the first transmission protocol can enable the transmission function of bandwidth information. When the transmission of bandwidth information is not allowed, the first transmission protocol can disable the transmission function of bandwidth information. In this way, before transmitting bandwidth information, the first device can determine whether the transmission function of the first transmission protocol for bandwidth information is in the enabled state. If it is in the enabled state, the first device can transmit bandwidth information. If it is not in the enabled state, that is, in the disabled state, the first device can refrain from transmitting bandwidth information. Alternatively, the first device can also determine whether the transmission function of the first transmission protocol for bandwidth information is in the enabled state and whether the change amount of the bandwidth information exceeds a preset threshold. If it is in the enabled state and the change amount of the bandwidth information exceeds the preset threshold, the first device can transmit bandwidth information. If it is not in the enabled state or the change amount of the bandwidth information does not exceed the preset threshold, the first device can refrain from transmitting bandwidth information. Among them, the preset threshold can be set according to actual service requirements and is not specifically limited here. By flexibly setting the preset threshold, the reporting frequency of bandwidth information can be flexibly adjusted.

[0097] Since the transmission conditions can be set and the first device will only transmit bandwidth information through the first transmission protocol when the transmission conditions are met, it is possible to avoid the device from frequently updating bandwidth information and reduce the flooding of bandwidth information update announcements in the network.

[0098] Optionally, in some embodiments, the first transmission protocol can support the unified enabling or disabling of the transmission functions of different bandwidth information. For example, it can uniformly enable or disable the transmission functions of bandwidth utilization information, packet error information, and packet loss information. In the case of unified enabling or disabling, the first device can transmit or refrain from transmitting different bandwidth information simultaneously. In other embodiments, the first transmission protocol can support the independent enabling or disabling of the transmission functions of different bandwidth information. For example, the first transmission information can support the independent enabling and disabling of the transmission function of bandwidth utilization information, the independent enabling and disabling of the transmission function of packet error information, and the independent enabling and disabling of the transmission function of packet loss information. In the case of independent enabling or disabling, the first device can transmit or refrain from transmitting different bandwidth information separately, so that the flexible transmission of different bandwidth information can be achieved.

[0099] The bandwidth information may include at least one of outbound bandwidth information and inbound bandwidth information. Among them, when the bandwidth information includes both outbound bandwidth information and inbound bandwidth information, the change amount of the bandwidth information exceeding the preset threshold may be that the change amount of the outbound bandwidth information exceeds the preset threshold or the change amount of the inbound bandwidth information exceeds the preset threshold. That is, when the change amount of at least one of the outbound bandwidth information and the inbound bandwidth information exceeds the preset threshold, it can be considered that the change amount of the bandwidth information exceeds the preset threshold. Among them, the outbound bandwidth information may be at least one of inbound bandwidth utilization rate, inbound error packet statistics, and inbound packet loss statistics, and the outbound bandwidth information may be at least one of outbound bandwidth utilization rate, outbound error packet statistics, and outbound packet loss statistics. For example, when the transmission function of the bandwidth utilization rate information is in the enabled state, if the change amount of the outbound bandwidth utilization rate exceeds the preset threshold or the change amount of the inbound bandwidth utilization rate exceeds the preset threshold, the simultaneous transmission of the outbound bandwidth utilization rate and the inbound bandwidth utilization rate can be triggered. When the transmission function of the error packet information is in the enabled state, if the change amount of the outbound error packet statistics exceeds the preset threshold or the change amount of the inbound error packet statistics exceeds the preset threshold, the simultaneous transmission of the outbound error packet statistics and the inbound error packet statistics can be triggered. When the transmission function of the packet loss information is in the enabled state, if the change amount of the outbound packet loss statistics exceeds the preset threshold or the change amount of the inbound packet loss statistics exceeds the preset threshold, the simultaneous transmission of the outbound packet loss statistics and the inbound packet loss statistics can be triggered. In this way, since the transmission of the two-way bandwidth information can be triggered when the change amount of the unidirectional bandwidth information exceeds the preset threshold, it is convenient for the network control system to obtain the bandwidth usage situation after the link changes in a timely manner.

[0100] The above details the transmission of bandwidth information by the first device when the transmission conditions are met. In other possible implementation manners, the first device may also transmit the bandwidth information in real time or transmit the bandwidth information at a certain period, etc., which is not specifically limited here.

[0101] In the embodiments of the present application, the bandwidth information transmitted by the network element device includes at least one of bandwidth utilization rate information, error packet information, and packet loss information. Compared with the bandwidth information transmitted by the network element device in the prior art, the bandwidth information transmitted by the network element device in the embodiments of the present application is richer, so that the usage situation of the link bandwidth can be intuitively presented, such as the congestion degree, health degree, etc. In addition, when transmitting the bandwidth information, since the message format for supporting the transmission of the bandwidth information can be extended in the transmission protocol and the bandwidth information is transmitted through the extended transmission protocol, the effective transmission of the bandwidth information can be realized. Further, since the network element device can transmit two-way bandwidth information, compared with transmitting unidirectional bandwidth information, the number of link bandwidth information flooded in the network can be reduced.

[0102] Figure 6It is a schematic flowchart of a method for transmitting bandwidth information according to an embodiment of the present application. Figure 6 The illustrated method for transmitting bandwidth information can be Figure 1 executed by the illustrated network control system. Figure 6 The illustrated method for transmitting bandwidth information is described as follows.

[0103] S602: Receive the bandwidth information transmitted by a target device in the communication network through a first transmission protocol. The bandwidth information includes at least one of bandwidth utilization information, packet error 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.

[0104] When the network control system manages and controls multiple network element devices in the communication network, it can receive the 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 upon, and no specific limitation is made here. During the process of providing network services, each network element device in the communication network can obtain the bandwidth information of the communication link with its neighbor device, and then flood the bandwidth information in the communication network. Finally, the target device in the communication network aggregates 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. Among them, for the specific implementation methods of each network element device to obtain and transmit bandwidth information, reference can be made to Figure 2 the illustrated embodiment, which will not be elaborated here.

[0105] When the network control system receives the bandwidth information transmitted by the target device, it can receive it through the first transmission protocol. The first transmission protocol includes a first message format, and the first message format is used to support the transmission of bandwidth information. Thus, the effective reception of bandwidth information can be achieved.

[0106] The bandwidth information received by the network control system can include at least one of bandwidth utilization information, packet error information, and packet loss information. Among them, the bandwidth utilization information in the bandwidth information can include at least one of inbound bandwidth utilization and outbound bandwidth utilization. The packet error information can include at least one of inbound packet error statistics and outbound packet error statistics. The packet loss information can include at least one of inbound packet loss statistics and outbound packet loss statistics. For the explanatory descriptions of each item of bandwidth information, reference can be made to Figure 2 the corresponding content in the illustrated embodiment, which will not be described in detail here.

[0107] 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 the 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 within a first time period, and the outbound bandwidth utilization may be the average value of the outbound bandwidth utilization of the link within a second time period. Both the first time period and the second time period can be determined according to actual service requirements and are not specifically limited here. The first time period and the second time period may be the same or different.

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

[0109] Optionally, 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. 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. To better reflect the packet loss situation 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 of the link. Similarly, when obtaining the outbound packet loss statistics of the link, if there are two sets of outbound packet loss statistics 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 of the link.

[0110] The first transmission protocol can be a protocol obtained by extending an existing transmission protocol. Optionally, in some embodiments, the first transmission protocol can 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. For the specific method of adding the first message format to the ISIS protocol, OSPF protocol, and BGP protocol, reference can be made to Figure 2 the corresponding content in the illustrated embodiments, which will not be elaborated here. Among them, the first message format added to the ISIS protocol, OSPF protocol, and BGP protocol can be represented as TLV or Sub-TLV.

[0111] The first message format can have one or more formats. A message of one format can be used to support the transmission of one type of bandwidth information, and messages of different formats can 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 can include at least one of a type field, a valid value field, an exception setting field, a traffic type field, a reserved field, an inbound link bandwidth utilization field, and an outbound link bandwidth utilization field. When the bandwidth information includes packet error information, the first message format can include at least one of a type field, a valid value field, an exception setting field, a reserved field, an inbound link packet error statistics field, and an outbound link packet error statistics field. When the bandwidth information includes packet loss information, the first message format can include at least one of a type field, a valid value field, an exception setting field, a reserved field, an inbound link packet loss statistics field, and an outbound link packet loss statistics field. For the specific explanation of the first message format, reference can be made to Figure 2 the explanation of the first message format in the illustrated embodiments, which will not be described in detail here.

[0112] In the embodiments of the present application, the bandwidth information received by the network control system includes at least one of bandwidth utilization information, packet error information, and packet loss information. Compared with the bandwidth information received in the prior art, the bandwidth information received in the embodiments of the present application is richer, so that the usage situation of the link bandwidth, such as congestion degree, health degree, etc., can be intuitively presented. In addition, when receiving the bandwidth information, since the message format for supporting the transmission of the bandwidth information can be extended in the transmission protocol and the bandwidth information can be received through the extended transmission protocol, the effective reception of the bandwidth information can be achieved. Further, since the network element device can transmit two-way bandwidth information, compared with transmitting one-way bandwidth information, the number of link bandwidth information flooded in the network can be reduced.

[0113] To facilitate understanding of the technical solutions provided in the embodiments of the present application, reference can be made to Figures 7 to 9 .

[0114] Figure 7 It is a schematic diagram of the transmission of bandwidth utilization information in an embodiment of the present application. Figure 7 It 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 devices are configured with BGP for docking with the network control system, and the inbound and outbound statistical capabilities of the ports on the network elements are enabled. The links between all devices are 10GE links, and TE reserved bandwidth is not set. Among them, the link between R1 - R2 is marked as link ①, the link between R2 - R3 is marked as link ②, the link between R2 - R4 is marked as link ③, and the link between R4 - R5 is marked as link ④. Figure 7 There are a total of 4 traffic flows in the shown network, namely a 1G traffic flow from R1 to R5, a 2G traffic flow from R4 to R1, a 3G traffic flow from R1 to R3, and a 4G traffic flow from R3 to R5. The specific traffic flow directions are as Figure 7 shown.

[0115] Figure 7 When the shown network transmits bandwidth utilization information, the following steps may be included:

[0116] Step 1: Bandwidth utilization notification is not enabled.

[0117] On the interface where R1 is docked with R2, the outbound traffic is counted as 4G. At this time, R1 notifies that the unidirectional remaining bandwidth of link ① is 10G, the unidirectional available bandwidth is 6G, the unidirectional used bandwidth is 4G, and the bandwidth utilization rate is calculated externally as 40%. On the interface where R2 is docked with R1, the outbound traffic is counted as 2G. At this time, R2 notifies that the unidirectional remaining bandwidth of link ① is 10G, the unidirectional available bandwidth is 8G, the unidirectional used bandwidth is 2G, and the bandwidth utilization rate is calculated externally as 20%. In summary, the network control system can view that the two-way bandwidth utilization rates of link ① are 20% and 40% respectively;

[0118] Step 2: Bandwidth utilization notification is enabled.

[0119] On the interface of R1, the outbound bandwidth utilization rate is counted as 40%, and the inbound bandwidth utilization rate is 20%. R1 directly notifies that the two-way bandwidth utilization rates of link ① are 20% and 40% respectively.

[0120] Step 3: Bandwidth utilization notification is enabled.

[0121] Similarly, on R2, R3, and R4, the interface bandwidth utilization rates are respectively counted, and in the network, the two-way bandwidth utilization rates of link ② are notified as 30% and 40% respectively, the two-way bandwidth utilization rates of link ③ are notified as 20% and 50% respectively, and the two-way bandwidth utilization rates of link ④ are notified as 0% and 50% respectively.

[0122] Figure 8It is a schematic diagram of the transmission of bandwidth utilization information in an embodiment of the present application. Figure 8 It 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 devices are configured with BGP for docking with the network control system, and the inbound and outbound statistical capabilities of the ports on the network elements are enabled. The links between all devices are 10GE links, and TE reserved bandwidth is set. Among them, 2G bandwidth is reserved for the path from R1 to R5, and 3G bandwidth is reserved for the path from R4 to R1. The link from R1 to R2 is marked as link ①, the link from R2 to R3 is marked as link ②, the link from R2 to R4 is marked as link ③, and the link from R4 to R5 is marked as link ④. Figure 8 There are a total of 4 traffic flows in the shown network, namely a 1G traffic flow in the tunnel from R1 to R5, a 2G traffic flow in the tunnel from R4 to R1, a 3G traffic flow from R1 to R3, and a 4G traffic flow from R3 to R5. The specific traffic flow directions are as Figure 8 shown.

[0123] Figure 8 When the shown network transmits bandwidth utilization information, the following steps may be included:

[0124] Step 1: Bandwidth utilization notification is not enabled.

[0125] On the interface where R1 is docked with R2, the outbound traffic is counted as 4G. At this time, R1 notifies that the unidirectional remaining bandwidth of link ① is 8G, the unidirectional available bandwidth is 4G, the unidirectional used bandwidth is 4G, and the bandwidth utilization rate of the link is 40%. On the interface where R2 is docked with R1, the outbound traffic is counted as 2G. At this time, R2 notifies that the unidirectional remaining bandwidth of link ① is 7G, the unidirectional available bandwidth is 5G, the unidirectional used bandwidth is 2G, and the bandwidth utilization rate of the link is 20%. Due to the existence of TE reserved bandwidth, the calculated value of the used bandwidth / remaining bandwidth of the link at this time is not equal to the bandwidth utilization rate of the link.

[0126] Step 2: Bandwidth utilization notification is enabled.

[0127] On the interface of R1, the outbound bandwidth utilization rate is counted as 40%, and the inbound bandwidth utilization rate is 20%. R1 directly notifies that the bidirectional bandwidth utilization rates of link ① are 20% and 40% respectively.

[0128] Step 3: Bandwidth utilization notification is enabled.

[0129] Similarly, the interface bandwidth utilization rates are respectively counted on R2, R3, and R4, and the bidirectional bandwidth utilization rates of link ② are notified as 30% and 40% respectively in the network, the bidirectional bandwidth utilization rates of link ③ are 20% and 50% respectively, and the bidirectional bandwidth utilization rates of link ④ are 0% and 50% respectively.

[0130] Figure 9 It is a schematic diagram of the transmission of mispacket information in an embodiment of the present application. Figure 9 In the figure, devices R1 and R2 are directly connected, and the inbound and outbound mispacket statistics of the ports are enabled. Among them, there are 50 mispackets per second in the packets sent by R1, and 100 mispackets per second in the received packets. The current outbound mispacket statistics on the R1 side are 1000, and the inbound mispacket statistics are 1500. There are 100 mispackets per second in the packets sent by R2, and 50 mispackets per second in the received packets. The current outbound mispacket statistics on the R2 side are 2500, and the inbound mispacket statistics are 500.

[0131] Figure 9 When the network shown in the figure transmits mispacket information, the following steps may be included:

[0132] Step 1: Enable the notification of the inbound and outbound mispacket counts of R1, set the notification update threshold to 10%, and the currently notified inbound mispacket count is 1500, and the outbound mispacket count is 1000.

[0133] Step 2: After 1.5 s, the inbound mispackets increase by 150, and the outbound mispackets increase by 75. Among them, the increase in the inbound mispacket count exceeds 10%, and at this time, the protocol is updated, and the notification information is that the inbound mispacket count is 1650, and the outbound mispacket count is 1075.

[0134] Step 3: Enable the notification of the inbound and outbound mispacket counts of R2, set the notification update threshold to 20%, and the currently notified inbound mispacket count is 500, and the outbound mispacket count is 2500.

[0135] Step 4: After 2 s, the inbound mispackets increase by 100, and the outbound mispackets increase by 200. Among them, the increase in the inbound mispacket count exceeds 20%, and at this time, the protocol is updated, and the notification information is that the inbound mispacket count is 600, and the outbound mispacket count is 2700.

[0136] 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 the bandwidth utilization rate of the link. By defining new types of TLVs or Sub-TLVs in ISIS / OSPF / BGP, information related to the link bandwidth such as the inbound bandwidth utilization rate, the outbound bandwidth utilization rate, the inbound mispacket statistics, the outbound mispacket statistics, the inbound packet loss statistics, and the outbound packet loss statistics can be carried. It supports the manager to intuitively evaluate the congestion degree, health degree and other states of the link in the network control system. By simultaneously notifying the inbound and outbound bandwidth information by network element devices, the number of flooded link bandwidth information in the network is also reduced.

[0137] The above 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 may be performed in a different order than in the embodiments and still achieve the desired result. Additionally, the processes depicted in the drawings do not necessarily require the particular order or sequential order shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0138] Figure 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Please refer to Figure 10 , at the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. Among them, the memory may include internal memory, such as high-speed random access memory (Random-Access Memory, RAM), and may also include non-volatile memory, such as at least one disk memory, etc. Of course, the electronic device may also include other hardware required for other services.

[0139] The processor, network interface, and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 10 only a bidirectional arrow is used in [the figure] to represent it, but it does not mean that there is only one bus or one type of bus.

[0140] The memory is used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory may include internal memory and non-volatile memory, and provide instructions and data to the processor.

[0141] 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:

[0142] Obtain the 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, packet error information, and packet loss information; transmit the bandwidth information 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.

[0143] Or be used to perform the following operations:

[0144] Receive the 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, packet error 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.

[0145] The method performed by the transmission device for bandwidth information disclosed in the foregoing embodiments of the present application Figure 10 can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit in the hardware of the processor or by instructions in the form of software. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may 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, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the present application. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and combines its hardware to complete the steps of the above method.

[0146] The electronic device can also execute Figure 2 and Figure 6 the method, and implement the transmission device for bandwidth information in Figure 2and Figure 6 The functions in the embodiments shown are not elaborated herein for this application.

[0147] Of course, in addition to the software implementation, the electronic device of this application does not exclude other implementation manners, 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, and can also be hardware or a logic device.

[0148] This application also proposes a computer-readable storage medium that stores one or more programs. The one or more programs include instructions that, when executed by a portable electronic device including multiple application programs, can cause the portable electronic device to execute Figure 2 and Figure 6 the methods of the embodiments shown, and specifically used to perform the following operations:

[0149] Obtain 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, packet error information, and packet loss information; transmit the bandwidth information through a first transmission protocol, where the first transmission protocol includes a first message format for supporting the transmission of the bandwidth information.

[0150] Or used to perform the following operations:

[0151] 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, packet error information, and packet loss information, and the first transmission protocol includes a first message format for supporting the transmission of the bandwidth information.

[0152] Figure 11 It is a schematic structural diagram of a bandwidth information transmission device 110 according to an embodiment of this application. Please refer to Figure 11 , in a software implementation manner, the bandwidth information transmission device 110 may include: an acquisition module 111 and a transmission module 112, where:

[0153] The acquisition module 111 obtains 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, packet error information, and packet loss information;

[0154] The transmission module 112 transmits the bandwidth information through a first transmission protocol, where the first transmission protocol includes a first message format for supporting the transmission of the bandwidth information.

[0155] Optionally, in some embodiments, the bandwidth utilization information includes at least one of inbound bandwidth utilization and outbound bandwidth utilization;

[0156] The packet error information includes at least one of inbound packet error statistics and outbound packet error statistics;

[0157] The packet loss information includes at least one of inbound packet loss statistics and outbound packet loss statistics.

[0158] Optionally, in some embodiments, the inbound bandwidth utilization is the average value of the inbound bandwidth utilization of the link within a first time period;

[0159] The outbound bandwidth utilization is the average value of the outbound bandwidth utilization of the link within a second time period;

[0160] In the case where there are two sets of inbound packet error statistics for the link, the inbound packet error statistics are the maximum value of the two sets of inbound packet error statistics;

[0161] In the case where there are two sets of outbound packet error statistics for the link, the outbound packet error statistics are the maximum value of the two sets of outbound packet error statistics;

[0162] In the case where there are two sets of inbound packet loss statistics for the link, the inbound packet loss statistics are the maximum value of the two sets of inbound packet loss statistics;

[0163] In the case where there are two sets of outbound packet loss statistics for the link, the outbound packet loss statistics are the maximum value of the two sets of outbound packet loss statistics.

[0164] Optionally, in some embodiments, the first transmission protocol includes any one of the following:

[0165] A protocol obtained by adding the first message format to the Intermediate System to Intermediate System ISIS protocol;

[0166] A protocol obtained by adding the first message format to the Open Shortest Path First OSPF protocol;

[0167] A protocol obtained by adding the first message format to the Border Gateway Protocol BGP.

[0168] 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;

[0169] When the bandwidth information includes the packet error information, the first packet format includes at least one of a type field, a valid value field, an exception setting field, a reserved field, a link incoming packet error statistics field, and a link outgoing packet error statistics field;

[0170] When the bandwidth information includes the packet loss information, the first packet format includes at least one of a type field, a valid value field, an exception setting field, a reserved field, a link incoming packet loss statistics field, and a link outgoing packet loss statistics field.

[0171] Optionally, in some embodiments, the transmission module 112 transmits the bandwidth information through a first transmission protocol, including:

[0172] Flooding the bandwidth information in the communication network through the first transmission protocol; or,

[0173] Transmitting the bandwidth information to a network control system through the first transmission protocol.

[0174] Optionally, in some embodiments, when the transmission module 112 transmits the bandwidth information to a network control system through the first transmission protocol, it further includes:

[0175] Receiving the bandwidth information of other links in the communication network;

[0176] Transmitting the bandwidth information of the other links to the network control system through the first transmission protocol.

[0177] Optionally, in some embodiments, the transmission module 112 transmits the bandwidth information through a first transmission protocol, including:

[0178] Determining whether the bandwidth information meets the 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 the transmission function of the first transmission protocol for the bandwidth information is in an enabled state and the change amount of the bandwidth information exceeds a preset threshold;

[0179] When the bandwidth information meets the transmission condition, transmitting the bandwidth information through the first transmission protocol.

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

[0181] Optionally, in some embodiments, when the bandwidth information includes outbound bandwidth information and inbound bandwidth information, a change amount of the bandwidth information exceeding a preset threshold includes a change amount of the inbound bandwidth information exceeding the preset threshold or a change amount of the outbound bandwidth information exceeding the preset threshold;

[0182] Wherein, the inbound bandwidth information includes at least one of an inbound bandwidth utilization rate, an inbound error packet statistic, and an inbound packet loss statistic, and the outbound bandwidth information includes at least one of an outbound bandwidth utilization rate, an outbound error packet statistic, and an outbound packet loss statistic.

[0183] The bandwidth information transmission device 110 provided in the embodiments of the present application can also execute Figure 2 the method, and implement the functions of the bandwidth information transmission device 110 in Figure 2 the illustrated embodiments, which will not be elaborated here.

[0184] Figure 12 is a schematic structural diagram of a bandwidth information transmission device 120 according to an embodiment of the present application. Please refer to Figure 12 , in a software implementation manner, the bandwidth information transmission device 120 may include a receiving module 121, wherein:

[0185] The receiving module 121 receives the bandwidth information transmitted by a target device in the communication network through a first transmission protocol. The bandwidth information includes at least one of bandwidth utilization rate 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.

[0186] Optionally, in some embodiments, the bandwidth utilization rate information includes at least one of an inbound bandwidth utilization rate and an outbound bandwidth utilization rate;

[0187] The error packet information includes at least one of an inbound error packet statistic and an outbound error packet statistic;

[0188] The packet loss information includes at least one of an inbound packet loss statistic and an outbound packet loss statistic.

[0189] Optionally, in some embodiments, the inbound bandwidth utilization rate is an average value of the inbound bandwidth utilization rate of the link in a first time period;

[0190] The outbound bandwidth utilization rate is an average value of the outbound bandwidth utilization rate of the link in a second time period;

[0191] When there are two groups of inbound error packet statistics for the link, the inbound error packet statistic is the maximum value of the two groups of inbound error packet statistics;

[0192] When there are two sets of outbound error packet statistics for the link, the outbound error packet statistics is the maximum value of the two sets of outbound error packet statistics;

[0193] When there are two sets of inbound packet loss statistics for the link, the inbound packet loss statistics is the maximum value of the two sets of inbound packet loss statistics;

[0194] When there are two sets of outbound packet loss statistics for the link, the outbound packet loss statistics is the maximum value of the two sets of outbound packet loss statistics.

[0195] Optionally, in some embodiments, the first transport protocol includes any one of the following:

[0196] A protocol obtained by adding the first message format to the Intermediate System to Intermediate System ISIS protocol;

[0197] A protocol obtained by adding the first message format to the Open Shortest Path First OSPF protocol;

[0198] A protocol obtained by adding the first message format to the Border Gateway Protocol BGP.

[0199] 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;

[0200] 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;

[0201] 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.

[0202] The bandwidth information transmission device 120 provided by the embodiments of the present application can also execute Figure 6 the method, and implement the functions of the bandwidth information transmission device 120 in Figure 6 the embodiments shown, which will not be elaborated here.

[0203] The embodiments of the present application also provide a communication network, which includes multiple network element devices and a network control system, where:

[0204] Each network element device obtains bandwidth information of the link between it and an adjacent network element device, and the bandwidth information includes at least one of bandwidth utilization information, packet error information, and packet loss information;

[0205] 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 for supporting the transmission of bandwidth information;

[0206] 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;

[0207] The network control system receives the bandwidth information transmitted by the target device through the first transmission protocol.

[0208] When each network element device obtains the bandwidth information of the link between it and a neighbor device and transmits the bandwidth information, the specific implementation manner can refer to Figure 2 the specific implementation manner of the first device obtaining and transmitting the bandwidth information in the illustrated embodiment, which will not be elaborated here.

[0209] The target device can be a device pre-agreed among multiple network element devices or a device randomly selected from multiple network element devices, which is not specifically limited here. When the target device reports the bandwidth information, the specific implementation manner can refer to the specific implementation manner of the first device reporting the bandwidth information in the above Figure 2 illustrated embodiment, which will not be elaborated here.

[0210] In the embodiment of the present application, the bandwidth information transmitted by the network element device is richer and can intuitively present the usage situation of the link bandwidth, such as congestion degree, health degree, etc. In addition, when transmitting the bandwidth information, since the message format for supporting the transmission of bandwidth information can be extended in the transmission protocol and the bandwidth information is transmitted through the extended transmission protocol, the effective transmission of the bandwidth information can be achieved. Further, since the network element device can transmit two-way bandwidth information, compared with transmitting one-way bandwidth information, the number of link bandwidth information flooded in the network can be reduced.

[0211] In summary, the above are only the preferred embodiments of the present application and are not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

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

[0213] Computer-readable media includes both permanent and non-permanent, removable and non-removable media and can store information by any method or technology. 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 technologies, compact disc read-only memory (CD-ROM), digital versatile discs (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 media such as modulated data signals and carrier waves.

[0214] It should also be noted that the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, commodity or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or elements inherent to such process, method, commodity or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, commodity or device comprising the element.

[0215] Each embodiment in this application is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the description of the method embodiment.

Claims

1. A method for transmitting bandwidth information, applied to a first device in a communication network, includes: Obtaining the 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, packet error information, and packet loss information; Transmitting the bandwidth information through a first transmission protocol, where the first transmission protocol includes a first message format for supporting the transmission of the bandwidth information.

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

3. The method according to claim 2 includes at least one of the following: The inbound bandwidth utilization is the average value of the inbound bandwidth utilization of the link within a first time period; The outbound bandwidth utilization is the average value of the outbound bandwidth utilization of the link within a second time period; When there are two sets of inbound packet error statistics for the link, the inbound packet error statistics are the maximum value of the two sets of inbound packet error statistics; When there are two sets of outbound packet error statistics for the link, the outbound packet error statistics are the maximum value of the two sets of outbound packet error statistics; When there are two sets of inbound packet loss statistics for the link, the inbound packet loss statistics are the maximum value of the two sets of inbound packet loss statistics; When there are two sets of outbound packet loss statistics for the link, the outbound packet loss statistics are the maximum value of the two sets of outbound packet loss statistics.

4. The method according to claim 1, where 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 Border Gateway Protocol (BGP).

5. The method according to claim 1, 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 packet error 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 error statistics field, and a link outbound packet error 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.

6. The method according to any one of claims 1 to 5, where transmitting the bandwidth information through the first transmission protocol includes: Flooding the bandwidth information in the communication network through the first transmission protocol; Or, Transmit the bandwidth information to the network control system through the first transmission protocol.

7. The method according to claim 6, when transmitting the bandwidth information to the network control system through the first transmission protocol, the method further includes: Receiving the bandwidth information of other links in the communication network; Transmitting the bandwidth information of the other links to the network control system through the first transmission protocol.

8. The method according to any one of claims 1 to 5, the transmitting the bandwidth information through the first transmission protocol includes: Determining whether the bandwidth information meets the 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, the transmission function of the first transmission protocol for the bandwidth information is in an enabled state and the change amount of the bandwidth information exceeds a preset threshold; When the bandwidth information meets the transmission condition, transmitting the bandwidth information through the first transmission protocol.

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

10. The method according to claim 8, when the bandwidth information includes outbound bandwidth information and inbound bandwidth information, the change amount of the bandwidth information exceeding the preset threshold includes 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; Among them, The inbound bandwidth information includes at least one of inbound bandwidth utilization, inbound wrong packet statistics, and inbound packet loss statistics, and the outbound bandwidth information includes at least one of outbound bandwidth utilization, outbound wrong packet statistics, and outbound packet loss statistics.

11. A method for transmitting bandwidth information, applied to a network control system in a communication network, includes: Receiving, through a first transmission protocol, bandwidth information transmitted by a target device in the communication network, where the bandwidth information includes at least one of bandwidth utilization information, wrong packet information, and packet loss information, and the first transmission protocol includes a first message format for supporting the transmission of the bandwidth information.

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

13. The method according to claim 12 includes at least one of the following: The inbound bandwidth utilization is the average value of the inbound bandwidth utilization of the link in the first time period; The outbound bandwidth utilization is the average value of the outbound bandwidth utilization of the link in the second time period; When there are two sets of inbound wrong packet statistics for the link, the inbound wrong packet statistics are the maximum value of the two sets of inbound wrong packet statistics; When there are two sets of outbound wrong packet statistics for the link, the outbound wrong packet statistics are the maximum value of the two sets of outbound wrong packet statistics; When there are two sets of inbound packet loss statistics for the link, the inbound packet loss statistics are the maximum value of the two sets of inbound packet loss statistics; When there are two sets of outbound packet loss statistics for the link, the outbound packet loss statistics are the maximum value of the two sets of outbound packet loss statistics.

14. The method according to claim 11, wherein 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 Border Gateway Protocol BGP.

15. The method according to claim 11, 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 packet error 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 error statistics field, and a link outbound packet error 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.

16. A transmission device for bandwidth information, applied to a first device in a communication network, comprising: An acquisition module that acquires the 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, packet error information, and packet loss information; A transmission module that transmits 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.

17. A transmission device for bandwidth information, applied to a network control system in a communication network, comprising: A receiving module that receives the bandwidth information transmitted by a target device in the communication network through a first transmission protocol, where the bandwidth information includes at least one of bandwidth utilization information, packet error 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 the bandwidth information of the link between it and an adjacent network element device, and the bandwidth information includes at least one of bandwidth utilization information, packet error 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 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.

19. An electronic device, comprising: A processor; A memory for storing executable instructions of the processor; Wherein, 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 the instructions in the storage medium are executed by a processor of an electronic device, enabling the electronic device to execute the method according to any one of claims 1 to 10, or to execute the method according to any one of claims 11 to 15.