A method, device and system for regulating switching network board congestion
By sending signaling applications and responses in the router switching network board, and adjusting the data transmission amount according to the priority of the target line card, the problem of congestion on the switching network board is solved and the reliability and efficiency of the network is improved.
Patent Information
- Application Number
- CN202111450916.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-01
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2041-12-01
AI Technical Summary
In the prior art, router switching network boards are prone to congestion during data transmission, and the existing methods of adjusting bandwidth convergence ratio and real-time monitoring delay cannot effectively avoid congestion, resulting in limited network reliability.
The source line card sends a signaling application containing the amount of data to be transmitted to the target line card, and determines the amount of data to be transmitted according to the priority of the target line card, adjusts the data transmission method to avoid congestion, including generating a first signaling request and response , determine the amount of data to be transmitted, and gradually send data through the exchange network board to optimize the number of data transmission times and data volume.
It achieves more accurate avoidance of switching network board congestion, improves network reliability and efficiency, reduces cost and reduces data transmission delay.
Smart Images

Figure CN114157604B_ABST
Abstract
Description
Background Art
[0002] With the continuous development of network-borne services, operators and users have put forward higher and higher requirements for network reliability. As an important network device, the high availability of routers plays a decisive role in network reliability. As the core part of the router, the switching network system is mainly responsible for completing the information exchange of network data packets.
[0003] The switching network system mainly includes a source line card, a target line card and a switching network board, wherein the source line card sends a data message to the target line card through the switching network board. In the prior art, there is a situation where the switching network board is prevented from being congested by adjusting the bandwidth convergence ratio between the source line card and the switching network board, but this is costly and during the data message transmission process, if the amount of data that the source line card needs to send to the target line card through the switching network board is greater than the amount of data that can be sent according to the increased bandwidth convergence ratio, the switching network board will still be congested. In addition, there is a situation where the switching network board is prevented from being congested by real-time monitoring of the delay of the data amount of each data message transmitted in the switching network board, but since the delay detection has a lag, the switching network board will still be congested. Summary of the invention
[0004] The embodiments of the present application provide a method, device and system for regulating congestion of a switching network board, thereby avoiding congestion of the switching network board.
[0005] In a first aspect, an embodiment of the present application provides a method for adjusting congestion of a switching network board, the method comprising:
[0006] Parsing the received data message to obtain the target line card identifier corresponding to the data message, the data volume of the data message, and the data to be transmitted contained in the data message;
[0007] Generate a first signaling request based on the data volume, send the first signaling request to the target line card corresponding to the target line card identifier through the switching network board, and receive a first signaling response sent by the target line card; the first signaling response includes at least a first amount of data to be transmitted determined by the target line card based on the priority of the first signaling request;
[0008] The data to be transmitted is sent to the target line card according to the first amount of data to be transmitted.
[0009] Compared with the prior art which adjusts the bandwidth convergence ratio between the source line card and the switching network board or monitors the data volume delay of each data message transmitted in the switching network board in real time, the present application sends a signaling application containing the data volume of the data to be transmitted to the target line card through the source line card, and after the target line card determines the signaling response containing the data volume to be transmitted according to the priority of the signaling application sent by the source line card, the data to be transmitted is sent to the target line card according to the data volume to be transmitted, thereby more accurately avoiding congestion in the switching network board.
[0010] Optionally, sending the data to be transmitted to the target line card according to the first amount of data to be transmitted includes:
[0011] Determine, based on the bandwidth of the target line card, a preset time period, and the first amount of data to be transmitted, the number of times the second signaling request is sent to the target line card through the switching network board and the amount of second data to be transmitted sent to the target line card each time;
[0012] Send the second signaling request the number of times to the target line card, and after each receipt of the second signaling response containing the second amount of data to be transmitted sent by the target line card, send the second amount of data to be transmitted to the target line card until the first amount of data to be transmitted in the data to be transmitted is sent to the target line card.
[0013] The present application further determines the number of times the source line card sends the second signaling request to the target line card and the amount of data sent each time through the bandwidth of the target line card, the preset time period and the amount of first data to be transmitted, so that the data to be transmitted can be sent to the target line card more accurately.
[0014] Optionally, the source line card includes a pre-allocated number of times of sending the second signaling request to the target line card, and the method further includes:
[0015] If the source line card sends the second signaling request to the target line card through the switching network board, reducing the pre-allocated times;
[0016] If the source line card receives the second signaling response sent by the target line card through the switching network board, increasing the pre-allocated number of times;
[0017] When the pre-allocated times are less than or equal to zero, the data to be transmitted in the source line card is discarded to facilitate adjusting congestion of the switching network board.
[0018] The present application can reduce the delay of each data transmission by setting the pre-allocated number of second signaling requests in the source line card, and can also more accurately determine whether the data to be transmitted in the source line card is discarded data, thereby avoiding congestion in the switching network board.
[0019] Optionally, the determining, based on the bandwidth of the target line card, a preset time period, and the first amount of data to be transmitted, the number of times the second signaling request is sent to the target line card through the switching network board and the amount of second data to be transmitted sent to the target line card each time includes:
[0020] Determine a quotient obtained by dividing the bandwidth of the target line card by the preset time period as the second amount of data to be transmitted sent to the target line card each time;
[0021] The number of times the second signaling request is sent to the target line card is determined by dividing the first amount of data to be transmitted by the second amount of data to be transmitted.
[0022] The present application further determines the number of times the source line card sends the second signaling request to the target line card and the amount of data sent each time through a specific calculation method between the bandwidth of the target line card, the preset time period and the first amount of data to be transmitted, so that the data to be transmitted can be sent to the target line card more accurately.
[0023] Optionally, the target line card includes a plurality of target ports of different priorities, and the parsing of the received data message to obtain a target line card identifier corresponding to the data message, a data volume of the data message, and data to be transmitted contained in the data message includes:
[0024] The received data message is parsed to obtain the target port identifier in the target line card corresponding to the data message, the data volume of the data message, and the data to be transmitted contained in the data message.
[0025] The present application sets target ports of different priorities for the target line card, so that after the source line card parses the data message, it can transmit data to the corresponding target port more accurately, thereby avoiding congestion in the switching network board.
[0026] In a second aspect, an embodiment of the present application provides a method for adjusting congestion of a switching network board, which is applied to a target line card, and the method includes:
[0027] receiving a first signaling request sent by a source line card through a switching network board; the first signaling request is generated based on a data volume, and the data volume is obtained after the source line card parses a received data message;
[0028] Generate a first signaling response according to the priority of the first signaling request, which at least includes sending a first signaling response of a first amount of data to be transmitted to the source line card, and send the first signaling response to the source line card, so that the source line card sends the data to be transmitted obtained after parsing the data message to the target line card according to the first amount of data to be transmitted.
[0029] Optionally, after sending the first signaling response to the source line card, the method further includes:
[0030] receiving a second signaling request sent by the source line card through the switching network board; the number of times the second signaling request is received is determined based on the bandwidth of the target line card, a preset time period and the first amount of data to be transmitted;
[0031] Each time the second signaling request is received, a second signaling response including a second amount of data to be transmitted is sent to the source line card until data of the first amount of data to be transmitted is received from the data to be transmitted; the second amount of data to be transmitted is determined based on the bandwidth of the target line card, the preset time period and the first amount of data to be transmitted.
[0032] In a third aspect, an embodiment of the present application provides a device for adjusting congestion of a switching network board, which is applied to a source line card, and the device includes:
[0033] A parsing module, configured to parse the received data message to obtain a target line card identifier corresponding to the data message, a data volume of the data message, and data to be transmitted contained in the data message;
[0034] a processing module, configured to generate a first signaling request based on the data volume, send the first signaling request to a target line card corresponding to the target line card identifier through a switching network board, and receive a first signaling response sent by the target line card; the first signaling response at least includes a first data volume to be transmitted determined by the target line card based on the priority of the first signaling request;
[0035] A sending module is used to send the data to be transmitted to the target line card according to the first amount of data to be transmitted.
[0036] Optionally, the sending module is specifically used to:
[0037] Determine, based on the bandwidth of the target line card, a preset time period, and the first amount of data to be transmitted, the number of times the second signaling request is sent to the target line card through the switching network board and the amount of second data to be transmitted sent to the target line card each time;
[0038] Send the second signaling request the number of times to the target line card, and after each receipt of the second signaling response containing the second amount of data to be transmitted sent by the target line card, send the second amount of data to be transmitted to the target line card until the first amount of data to be transmitted in the data to be transmitted is sent to the target line card.
[0039] Optionally, the source line card includes a pre-allocated number of times of sending the second signaling request to the target line card, and the device further includes:
[0040] If the source line card sends the second signaling request to the target line card through the switching network board, reducing the pre-allocated times;
[0041] If the source line card receives the second signaling response sent by the target line card through the switching network board, increasing the pre-allocated number of times;
[0042] When the pre-allocated times are less than or equal to zero, the data to be transmitted in the source line card is discarded to facilitate adjusting congestion of the switching network board.
[0043] Optionally, the sending module determines, based on the bandwidth of the target line card, a preset time period, and the first amount of data to be transmitted, the number of times the second signaling request is sent to the target line card through the switching network board and the amount of second data to be transmitted sent to the target line card each time, specifically for:
[0044] Determine a quotient obtained by dividing the bandwidth of the target line card by the preset time period as the second amount of data to be transmitted sent to the target line card each time;
[0045] The number of times the second signaling request is sent to the target line card is determined by dividing the first amount of data to be transmitted by the second amount of data to be transmitted.
[0046] Optionally, the target line card includes a plurality of target ports of different priorities, and the parsing module parses the received data message to obtain a target line card identifier corresponding to the data message, a data volume of the data message, and data to be transmitted contained in the data message, specifically for:
[0047] The received data message is parsed to obtain the target port identifier in the target line card corresponding to the data message, the data volume of the data message, and the data to be transmitted contained in the data message.
[0048] In a fourth aspect, an embodiment of the present application provides a device for adjusting congestion of a switching network board, which is applied to a target line card, and the device includes:
[0049] A receiving module, configured to receive a first signaling request sent by a source line card through a switching network board; the first signaling request is generated based on a data volume, and the data volume is obtained after the source line card parses a received data message;
[0050] A generation module is used to generate a first signaling response including at least sending a first amount of data to be transmitted to the source line card according to the priority of the first signaling request, and send the first signaling response to the source line card, so that the source line card can send the data to be transmitted obtained after parsing the data message to the target line card according to the first amount of data to be transmitted.
[0051] Optionally, after sending the first signaling response to the source line card, the generating module is further configured to:
[0052] receiving a second signaling request sent by the source line card through the switching network board; the number of times the second signaling request is received is determined based on the bandwidth of the target line card, a preset time period and the first amount of data to be transmitted;
[0053] Each time the second signaling request is received, a second signaling response including a second amount of data to be transmitted is sent to the source line card until data of the first amount of data to be transmitted is received from the data to be transmitted; the second amount of data to be transmitted is determined based on the bandwidth of the target line card, the preset time period and the first amount of data to be transmitted.
[0054] In a fifth aspect, an embodiment of the present application provides a system for regulating congestion of a switching network board, the system comprising: a source line card, a target line card and a switching network board;
[0055] The source line card is configured to parse the received data message to obtain a target line card identifier corresponding to the data message, a data volume of the data message, and data to be transmitted contained in the data message; and generate a first signaling request based on the data volume, and send the first signaling request to the target line card corresponding to the target line card identifier through the switching network board;
[0056] The target line card is configured to receive the first signaling request sent by the source line card through the switching network board, generate a first signaling response at least including sending a first amount of data to be transmitted to the source line card according to the priority of the first signaling request, and send the first signaling response to the source line card;
[0057] The source line card is further configured to receive the first signaling response sent by the target line card; and send the data to be transmitted to the target line card according to the first amount of data to be transmitted.
[0058] Optionally, when the source line card sends the data to be transmitted to the target line card according to the first amount of data to be transmitted, the source line card is specifically configured to:
[0059] The source line card determines, based on the bandwidth of the target line card, a preset time period, and the first amount of data to be transmitted, the number of times the second signaling request is sent to the target line card through the switching network board and the amount of second data to be transmitted sent to the target line card each time;
[0060] Send the second signaling request the number of times to the target line card, and after each receipt of the second signaling response containing the second amount of data to be transmitted sent by the target line card, send the second amount of data to be transmitted to the target line card until the first amount of data to be transmitted in the data to be transmitted is sent to the target line card.
[0061] Optionally, the source line card includes a pre-allocated number of times of sending the second signaling request to the target line card, and the source line card is further used for:
[0062] If the source line card sends the second signaling request to the target line card through the switching network board, reducing the pre-allocated times;
[0063] If the source line card receives the second signaling response sent by the target line card through the switching network board, increasing the pre-allocated number of times;
[0064] When the pre-allocated times are less than or equal to zero, the data to be transmitted in the source line card is discarded to facilitate adjusting congestion of the switching network board.
[0065] Optionally, when the source line card determines the number of times the second signaling request is sent to the target line card through the switching network board and the second amount of data to be transmitted sent to the target line card each time based on the bandwidth of the target line card, the preset time period and the first amount of data to be transmitted, the source line card is specifically configured to:
[0066] Determine a quotient obtained by dividing the bandwidth of the target line card by the preset time period as the second amount of data to be transmitted sent to the target line card each time;
[0067] The number of times the second signaling request is sent to the target line card is determined by dividing the first amount of data to be transmitted by the second amount of data to be transmitted.
[0068] Optionally, the target line card includes a plurality of target ports of different priorities, and the source line card parses the received data message to obtain the target line card identifier corresponding to the data message, the data volume of the data message, and the data to be transmitted contained in the data message, specifically for:
[0069] The received data message is parsed to obtain the target port identifier in the target line card corresponding to the data message, the data volume of the data message, and the data to be transmitted contained in the data message.
[0070] In a sixth aspect, an embodiment of the present application provides a device for adjusting congestion of a switching network board, including: a processor and a display;
[0071] The display is used to display a user operation interface;
[0072] The processor is configured to execute any one of the methods provided in the first aspect or the method provided in the second aspect.
[0073] In the seventh aspect, an embodiment of the present application further provides a computer-readable storage medium. When the instructions in the computer-readable storage medium are executed by a processor of a device for adjusting congestion of a switching network board, the device for adjusting congestion of the switching network board can execute any method provided in the first aspect of the present application or the method described in the second aspect.
[0074] In an eighth aspect, an embodiment of the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements any method provided in the first aspect of the present application or the method described in the second aspect.
[0075] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings introduced below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0077] Figure 1 A schematic diagram of an application scenario of the method for adjusting switching network board congestion provided in an embodiment of the present application;
[0078] Figure 2 A flow chart of a method for adjusting switching network board congestion provided in an embodiment of the present application;
[0079] Figure 3 A schematic diagram of a structure in which a source line card according to an embodiment of the present application sends data to a target line card through a switching network board;
[0080] Figure 4 A schematic diagram of the structure of a target line card including multiple priority target ports provided in an embodiment of the present application;
[0081] Figure 5 A schematic diagram of a flow chart of interaction between a source line card, a switching network board and a target line card in a system for regulating switching network board congestion provided in an embodiment of the present application;
[0082] Figure 6 A schematic diagram of the structure of a device for adjusting switching network board congestion provided in an embodiment of the present application;
[0083] Figure 7 A schematic diagram of the structure of a device for regulating congestion of a switching network board provided in an embodiment of the present application;
[0084] Figure 8 A schematic diagram of a device for regulating congestion of a switching network board provided in an embodiment of the present application. DETAILED DESCRIPTION
[0085] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0086] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0087] Below, some terms in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.
[0088] (1) Line Card (LC) is a device interface between the access line and access device of a switch, router or other network device.
[0089] (2) A source line card refers to a line card that receives a data message and sends the data to be transmitted contained in the parsed data message.
[0090] (3) The target line card refers to the line card that receives the data to be transmitted from the source line card.
[0091] (4) A switching network board is used to send data from multiple source line cards to corresponding target line cards.
[0092] In practice, with the continuous development of network-borne services, operators and users have put forward higher and higher requirements for network reliability. As an important network device, the high availability of routers plays a decisive role in network reliability. As the core part of the router, the switching network system is mainly responsible for completing the information exchange of network data packets.
[0093] The switching network system mainly includes a source line card, a target line card and a switching network board, wherein the source line card sends a data message to the target line card through the switching network board. In the prior art, there is a situation where the switching network board is prevented from being congested by adjusting the bandwidth convergence ratio between the source line card and the switching network board, but this is costly and during the data message transmission process, if the amount of data that the source line card needs to send to the target line card through the switching network board is greater than the amount of data that can be sent according to the increased bandwidth convergence ratio, the switching network board will still be congested. In addition, there is a situation where the switching network board is prevented from being congested by real-time monitoring of the delay of the data amount of each data message transmitted in the switching network board, but since the delay detection has a lag, the switching network board will still be congested.
[0094] To this end, the present application provides a method for regulating congestion of a switching network board, wherein a signaling request containing the amount of data to be transmitted is sent by a source line card to a target line card, and after a signaling response containing the amount of data to be transmitted is determined by the target line card according to the priority of the signaling request sent by the source line card, the data to be transmitted is sent to the target line card according to the amount of data to be transmitted, thereby more accurately avoiding congestion in the switching network board.
[0095] After introducing the design ideas of the embodiments of the present application, the following briefly introduces the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of the present application and are not limited. In specific implementation, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.
[0096] refer to Figure 1, which is a schematic diagram of an application scenario of the method for regulating the congestion of a switching network board provided in an embodiment of the present application. The application scenario includes line card 1, line card 2, line card 3, line card 4 and a switching network board. Assuming that line card 1 receives a data message, line card 1, as a source line card, parses the received data message to obtain the target line card identifier corresponding to the data message, the data volume of the data message, and the data to be transmitted contained in the data message. Assuming that the target line card is determined to be line card 3 according to the target line card identifier, line card 1 generates a first signaling request based on the data volume, sends the first signaling request to line card 3 through the switching network board, and line card 3 generates a first signaling response containing at least the first amount of data to be transmitted based on the priority of the first signaling request, and sends the first signaling response to line card 1, so that line card 1 sends the data to be transmitted to line card 3 according to the first amount of data to be transmitted.
[0097] Of course, the method provided in the embodiment of the present application is not limited to Figure 1 The application scenarios shown can also be used in other possible application scenarios, and the embodiments of the present application are not limited thereto. Figure 1 The functions that can be implemented by each device in the application scenario shown will be described in the subsequent method embodiments, and will not be described in detail here.
[0098] To further illustrate the technical solution provided by the embodiment of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present application provides the method operation steps shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiment of the present application.
[0099] Combine the following Figure 1 The application scenario shown illustrates the technical solution provided by the embodiment of the present application.
[0100] refer to Figure 2 , the embodiment of the present application provides a method for adjusting the congestion of a switching network board, comprising the following steps:
[0101] S201, parsing a received data message to obtain a target line card identifier corresponding to the data message, a data volume of the data message, and data to be transmitted contained in the data message.
[0102] like Figure 3As shown, it is assumed that line card 1 and line card 2 are both source line cards, line card 3 is the target line card, line card 1 and line card 2 send data to line card 3 through the switching network board, line card 1, line card 2 and line card 3 all include panel port 1, panel port 2, ..., panel port n (n is a positive integer), and the bandwidth of line card 1, line card 2 and line card 3 is the sum of the bandwidth of their corresponding panel port 1, panel port 2, ..., panel port n. For example, if the bandwidth of panel port 1, panel port 2, ..., panel port n corresponding to line card 1 is 10G, then the bandwidth of line card 1 is 10nG.
[0103] After line card 1 and line card 2 receive the data message, they parse the data message and determine that the target line card is line card 3 according to the target line card identifier corresponding to the data message. At the same time, line card 1 can also obtain the data volume of the data message is 200G and the data to be transmitted contained in the data message according to the parsing result. Line card 2 can also obtain the data volume of the data message is 100G and the data to be transmitted contained in the data message according to the parsing result.
[0104] S202, generate a first signaling request based on the data volume, send the first signaling request to the target line card corresponding to the target line card identifier through the switching network board, and receive a first signaling response sent by the target line card; the first signaling response includes at least a first amount of data to be transmitted determined by the target line card based on the priority of the first signaling request.
[0105] For example, Figure 3 As shown, line card 1 as a source line card may further include a signaling management unit 1, wherein the signaling management unit 1 includes a signaling register 11 corresponding to target line card 1, a signaling register 12 corresponding to target line card 2, ..., and a signaling register 1n corresponding to target line card n. Similarly, line card 2 also includes a signaling management unit 2, wherein the signaling management unit 2 includes a signaling register 21 corresponding to target line card 1, a signaling register 22 corresponding to target line card 2, ..., and a signaling register 2n corresponding to target line card n.
[0106] Line card 3 as a target line card may further include a scheduling management unit 1, wherein the scheduling management unit 1 includes a signaling application counter 1 corresponding to source line card 1, a signaling application counter 2 corresponding to source line card 2, ..., a signaling application counter n corresponding to source line card n.
[0107] Assume that the data volume in the first signaling request sent by line card 1 is 200G, and the data volume in the first signaling request sent by line card 2 is 100G. Line card 3 is the target line card. After receiving the first signaling request containing 200G data volume sent by line card 1 and the first signaling request containing 100G data volume sent by line card 2, if it is determined that the priority of the first signaling request of line card 1 is lower than the priority of the first signaling request of line card 2, the 200G data volume that line card 3 can receive is allocated to line card 1 as 100G data volume, and the 100G data volume is allocated to line card 2. That is, the first signaling response of line card 1 contains at least 100G of the first data volume to be transmitted, and the first signaling response of line card 2 contains at least 100G of the first data volume to be transmitted. Therefore, line card 1 and line card 2 can continue to send multiple second signaling requests to line card 3 respectively, so as to send the data of the first data volume to be transmitted of 100G that each needs to transmit to line card 3.
[0108] Since there are times in the signaling register corresponding to each target line card in the signaling management unit of the source line card, the source line card can send a second signaling request to the corresponding target line card. In order to reduce the delay in sending data from the source line card to the corresponding target line card, a preset number of times can be allocated to the signaling register corresponding to each target line card.
[0109] Specifically, the source line card includes a pre-allocated number of times for sending a second signaling request to the target line card. If the source line card sends the second signaling request to the target line card through the switching network board, the pre-allocated number is reduced; if the source line card receives the second signaling response sent by the target line card through the switching network board, the pre-allocated number is increased; when the pre-allocated number is less than or equal to zero, the data to be transmitted in the source line card is discarded to facilitate regulating the congestion of the switching network board.
[0110] Continuing with the above example, assuming that the target line card 1 in the signaling management unit 1 in line card 1 is line card 3, and the source line card 1 in the scheduling management unit 1 in line card 3 is line card 1, then line card 1 sends a second signaling request to line card 3 once, the number in the signaling register 11 decreases by one, line card 1 receives a second signaling response sent by line card 3 once, and the number in the signaling register 11 increases by one. Line card 3 receives a second signaling request sent by line card 1 once, the number in the signaling application counter 1 increases by one, line card 3 sends a second signaling response to line card 1 once, and the number in the signaling application counter 1 decreases by one.
[0111] For example, the number of pre-allocations for the signaling register 11 is 3. When the number of pre-allocations is reduced to 0 and the second signaling response is still not received, the data to be transmitted in the line card 1 is discarded to avoid congestion of the switching network board.
[0112] S203: Send the data to be transmitted to the target line card according to the first amount of data to be transmitted.
[0113] Specifically, based on the bandwidth of the target line card, the preset time period and the first amount of data to be transmitted, the number of times the second signaling request is sent to the target line card through the switching network board and the second amount of data to be transmitted sent to the target line card each time are determined, the second signaling request is sent to the target line card a certain number of times, and after each time a second signaling response containing the second amount of data to be transmitted is received from the target line card, data of the second amount of data to be transmitted is sent to the target line card until the data of the first amount of data to be transmitted in the data to be transmitted is sent to the target line card.
[0114] For example, the quotient obtained by dividing the bandwidth of the target line card by the preset time period is determined as the second amount of data to be transmitted sent to the target line card each time; the first amount of data to be transmitted is divided by the second amount of data to be transmitted to determine the number of times the second signaling request is sent to the target line card.
[0115] For example, if the bandwidth of the target line card is 400G and the preset time period is 10us, the second amount of data to be transmitted sent to the target line card each time is 400G / 10us=4Mbit. If the first amount of data to be transmitted is 100G, the number of times the second signaling request is sent to the target line card is 100G / 4Mbit=25000 times.
[0116] In one embodiment of the present application, when the target line card includes multiple target ports of different priorities, the received data packet is parsed to obtain the target port identifier in the target line card corresponding to the data packet, the data volume of the data packet, and the data to be transmitted contained in the data packet.
[0117] like Figure 4 As shown, assuming Figure 3 The line card 3 in the example includes a target port 31 and a target port 32, and the priority of the target port 31 is higher than the priority of the target port 32, the target port 31 includes a queue 311 and a queue 312, the target port 32 includes a queue 321 and a queue 322, and the priority of the queue 311 is higher than the priority of the queue 312, and the priority of the queue 321 is higher than the priority of the queue 322. The queue 311, the queue 312, the queue 321 and the queue 322 respectively include a scheduling management unit, wherein each scheduling management unit includes a signaling application counter 1 corresponding to the source line card 1, a signaling application counter 2 corresponding to the source line card 2, ..., a signaling application counter n corresponding to the source line card n (n is a positive integer).
[0118] Assume that the first amount of data to be transmitted sent by line card 1 to line card 3 is 300G, of which 10G is sent to queue 311 and 290G is sent to queue 312. Since the priority of queue 311 is higher than that of queue 312, the 10G data sent to queue 311 will be sent first. By further setting the priority of the target line card, the source line card can parse the data message and transmit the data to the corresponding target port more accurately, avoiding congestion in the switching network board.
[0119] like Figure 5 As shown, a schematic diagram of the flow of interaction between a source line card, a switching network board, and a target line card in a system for adjusting switching network board congestion provided by an embodiment of the present application is shown, including the following steps:
[0120] S501, the source line card parses the received data message, obtains the target line card identifier corresponding to the data message, the data volume of the data message, and the data to be transmitted contained in the data message, and generates a first signaling request based on the data volume;
[0121] S502, the source line card sends the first signaling request to the target line card corresponding to the target line card identifier through the switching network board;
[0122] S503, the target line card generates a first signaling response including at least a first amount of data to be transmitted based on the priority of the first signaling request;
[0123] S504, the target line card sends the first signaling response to the source line card through the switching network board;
[0124] S505, the source line card determines the number of times the second signaling request is sent to the target line card through the switching network board and the second amount of data to be transmitted to the target line card each time based on the bandwidth of the target line card, the preset time period and the first amount of data to be transmitted, and pre-allocates the number of times for the second signaling request;
[0125] S506, the source line card sends a second signaling request to the target line card a number of times, and after receiving a second signaling response including a second amount of data to be transmitted sent by the target line card, sends data of the second amount of data to be transmitted to the target line card each time, until the data of the first amount of data to be transmitted in the data to be transmitted is sent to the target line card completely;
[0126] S507, if the source line card sends a second signaling request to the target line card through the switching network board, the pre-allocation times are reduced; if the source line card receives a second signaling response sent by the target line card through the switching network board, the pre-allocation times are increased; when the pre-allocation times are less than or equal to zero, the data to be transmitted in the source line card are discarded.
[0127] Based on the same inventive concept, a device for adjusting the congestion of a switching network board is proposed, which is applied to a source line card, such as Figure 6 As shown, the device 600 includes:
[0128] The parsing module 601 is used to parse the received data message to obtain the target line card identifier corresponding to the data message, the data volume of the data message, and the data to be transmitted contained in the data message;
[0129] The processing module 602 is configured to generate a first signaling request based on the data volume, send the first signaling request to a target line card corresponding to the target line card identifier through a switching network board, and receive a first signaling response sent by the target line card; the first signaling response at least includes a first amount of data to be transmitted determined by the target line card based on the priority of the first signaling request;
[0130] The sending module 603 is configured to send the data to be transmitted to the target line card according to the first amount of data to be transmitted.
[0131] Optionally, the sending module 603 is specifically configured to:
[0132] Based on the bandwidth of the target line card, the preset time period and the amount of the first data to be transmitted, determining the number of times the second signaling request is sent to the target line card through the switching network board and the amount of the second data to be transmitted sent to the target line card each time;
[0133] Send a second signaling request to the target line card a number of times, and after each receipt of a second signaling response containing a second amount of data to be transmitted sent by the target line card, send data of the second amount of data to be transmitted to the target line card until the first amount of data to be transmitted in the data to be transmitted is sent to the target line card.
[0134] Optionally, the source line card includes a pre-allocated number of times of sending the second signaling request to the target line card, and the device further includes:
[0135] If the source line card sends a second signaling request to the target line card through the switching network board, the number of pre-allocations is reduced;
[0136] If the source line card receives a second signaling response sent by the target line card through the switching network board, the pre-allocated times are increased;
[0137] When the pre-allocation times are less than or equal to zero, the data to be transmitted in the source line card is discarded to facilitate adjusting the congestion of the switching network board.
[0138] Optionally, the sending module 603 determines the number of times the second signaling request is sent to the target line card through the switching network board and the second amount of data to be transmitted sent to the target line card each time based on the bandwidth of the target line card, the preset time period and the first amount of data to be transmitted, which is specifically used to:
[0139] The quotient obtained by dividing the bandwidth of the target line card by the preset time period is determined as the second amount of data to be transmitted sent to the target line card each time;
[0140] The number of times the second signaling request is sent to the target line card is determined by dividing the first amount of data to be transmitted by the second amount of data to be transmitted.
[0141] Optionally, the target line card includes a plurality of target ports of different priorities, and the parsing module 601 parses the received data message to obtain the target line card identifier corresponding to the data message, the data volume of the data message, and the data to be transmitted contained in the data message, which is specifically used for:
[0142] The received data message is parsed to obtain the target port identifier in the target line card corresponding to the data message, the data volume of the data message, and the data to be transmitted contained in the data message.
[0143] like Figure 7 As shown, another embodiment of the present application provides a device for adjusting congestion of a switching network board, which is applied to a target line card, and the device 700 includes:
[0144] The receiving module 701 is used to receive a first signaling request sent by a source line card through a switching network board; the first signaling request is generated based on the data volume, and the data volume is obtained after the source line card parses the received data message;
[0145] The generation module 702 is used to generate a first signaling response including at least sending a first amount of data to be transmitted to the source line card according to the priority of the first signaling request, and send the first signaling response to the source line card, so that the source line card can send the data to be transmitted obtained after parsing the data message to the target line card according to the first amount of data to be transmitted.
[0146] Optionally, after sending the first signaling response to the source line card, the generating module 702 is further configured to:
[0147] receiving a second signaling request sent by the source line card through the switching network board; the number of times the second signaling request is received is determined based on the bandwidth of the target line card, a preset time period and the first amount of data to be transmitted;
[0148] Each time the second signaling request is received, a second signaling response including a second amount of data to be transmitted is sent to the source line card until data of the first amount of data to be transmitted is received from the data to be transmitted; the second amount of data to be transmitted is determined based on the bandwidth of the target line card, the preset time period and the first amount of data to be transmitted.
[0149] After introducing the method, device and system for adjusting the congestion of a switching network board according to an exemplary embodiment of the present application, next, an apparatus for adjusting the congestion of a switching network board according to another exemplary embodiment of the present application is introduced.
[0150] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.
[0151] In some possible implementations, the device for adjusting the congestion of a switching network board according to the present application may include at least one processor and at least one memory. The memory stores a program code, and when the program code is executed by the processor, the processor executes the steps in the method for adjusting the congestion of a switching network board according to various exemplary implementations of the present application described above in this specification. For example, the processor may execute the steps in the method for adjusting the congestion of a switching network board.
[0152] Refer to the following Figure 8 The device 120 for regulating congestion of a switching network board according to this embodiment of the present application is described. Figure 8 The device 120 for adjusting the congestion of the switching network board shown is only an example and should not bring any limitation to the function and scope of use of the embodiment of the present application.
[0153] like Figure 8 As shown, the device 120 for adjusting the congestion of the switching network board is presented in the form of a general device for adjusting the congestion of the switching network board. The components of the device 120 for adjusting the congestion of the switching network board may include but are not limited to: the at least one processor 121, the at least one memory 122, and a bus 123 connecting different system components (including the memory 122 and the processor 121).
[0154] Bus 123 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
[0155] The memory 122 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 1221 and / or a cache memory 1222 , and may further include a read-only memory (ROM) 1223 .
[0156] The memory 122 may also include a program / utility 1225 having a set (at least one) of program modules 1224, such program modules 1224 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0157] The device 120 for adjusting the congestion of the switching network board may also communicate with one or more external devices 124 (e.g., keyboards, pointing devices, etc.), may also communicate with one or more devices that enable a user to interact with the device 120 for adjusting the congestion of the switching network board, and / or may communicate with any device (e.g., routers, modems, etc.) that enables the device 120 for adjusting the congestion of the switching network board to communicate with one or more other devices for adjusting the congestion of the switching network board. Such communication may be performed through an input / output (I / O) interface 125. In addition, the device 120 for adjusting the congestion of the switching network board may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 126. As shown in the figure, the network adapter 126 communicates with other modules of the device 120 for adjusting the congestion of the switching network board through a bus 123. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the device 120 for regulating congestion of the switching network board, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0158] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 122 including instructions, and the instructions can be executed by the processor 121 to complete the above method. Alternatively, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0159] In an exemplary embodiment, a computer program product is also provided, including a computer program / instruction, which, when executed by the processor 121, implements any method of the method for adjusting the congestion of a switching network board as provided in the present application.
[0160] In an exemplary embodiment, various aspects of a method for regulating congestion of a switching network board provided in the present application can also be implemented in the form of a program product, which includes a program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of a method for regulating congestion of a switching network board according to various exemplary embodiments of the present application described above in this specification.
[0161] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0162] The program product for adjusting the congestion of the switching network board of the embodiment of the present application can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a device for adjusting the congestion of the switching network board. However, the program product of the present application is not limited to this. In this document, the readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, device or device.
[0163] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein readable program code is carried. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0164] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0165] The program code for performing the operation of the present application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also conventional procedural programming languages such as "C" language or similar programming languages. The program code can be executed entirely on the device for adjusting the congestion of the switching network board by the user, partially on the user's device, as an independent software package, partially on the device for adjusting the congestion of the switching network board by the user, partially on the device for remotely adjusting the congestion of the switching network board, or completely on the device or service end for remotely adjusting the congestion of the switching network board. In the case of a device for remotely adjusting the congestion of the switching network board, the device for remotely adjusting the congestion of the switching network board can be connected to the device for adjusting the congestion of the switching network board by the user through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external device for adjusting the congestion of the switching network board (for example, using an Internet service provider to connect through the Internet).
[0166] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.
[0167] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0168] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0169] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device for adjusting the congestion of a switching network board to produce a machine, so that the instructions executed by the processor of the computer or other programmable device for adjusting the congestion of the switching network board generate instructions for implementing the process Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0170] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable device for adjusting the congestion of a switching network board to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0171] These computer program instructions may also be loaded onto a computer or other programmable device for adjusting the congestion of the switching network board, so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0172] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0173] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for regulating congestion of a switching network board, It is characterized in that Applied in a source line card, the method comprises: Parsing the received data message to obtain a target line card identifier, a target port identifier, a data volume of the data message, and data to be transmitted contained in the data message; Generate a first signaling request based on the data volume, send the first signaling request to the target line card corresponding to the target line card identifier through the switching network board, and receive a first signaling response sent by the target line card; wherein the target line card includes a plurality of target ports with different priorities, each of the target ports includes different queues with different priorities, and the first signaling response includes at least a first amount of data to be transmitted determined by the target line card based on the priority of the first signaling request; The data to be transmitted is sent to the target line card according to the first amount of data to be transmitted, the priority of the target port, and the priority of the queue.
2. The method according to claim 1, It is characterized in that The sending the data to be transmitted to the target line card according to the first amount of data to be transmitted includes: Determine, based on the bandwidth of the target line card, a preset time period, and the first amount of data to be transmitted, the number of times the second signaling request is sent to the target line card through the switching network board and the amount of second data to be transmitted sent to the target line card each time; Send the second signaling request the number of times to the target line card, and after each receipt of the second signaling response containing the second amount of data to be transmitted sent by the target line card, send the second amount of data to be transmitted to the target line card until the first amount of data to be transmitted in the data to be transmitted is sent to the target line card.
3. The method according to claim 2, It is characterized in that The source line card includes a pre-allocated number of times of sending the second signaling request to the target line card, and the method further includes: If the source line card sends the second signaling request to the target line card through the switching network board, reducing the pre-allocated times; If the source line card receives the second signaling response sent by the target line card through the switching network board, increasing the pre-allocated number of times; When the pre-allocated times are less than or equal to zero, the data to be transmitted in the source line card is discarded to facilitate adjusting congestion of the switching network board.
4. The method according to claim 2, It is characterized in that The determining, based on the bandwidth of the target line card, the preset time period, and the first amount of data to be transmitted, the number of times the second signaling request is sent to the target line card through the switching network board and the amount of second data to be transmitted sent to the target line card each time, comprises: The product obtained by multiplying the bandwidth of the target line card by the preset time period is determined as the second amount of data to be transmitted sent to the target line card each time; The number of times the second signaling request is sent to the target line card is determined by dividing the first amount of data to be transmitted by the second amount of data to be transmitted.
5. The method according to claim 1, It is characterized in that The step of parsing the received data message to obtain a target line card identifier corresponding to the data message, a data volume of the data message, and data to be transmitted contained in the data message includes: The received data message is parsed to obtain the target port identifier in the target line card corresponding to the data message, the data volume of the data message, and the data to be transmitted contained in the data message.
6. A method for regulating congestion of a switching network board, It is characterized in that Applied in a target line card, the method comprises: receiving a first signaling request sent by a source line card through a switching network board; the first signaling request is generated based on a data volume, and the data volume is obtained after the source line card parses a received data message; generating a first signaling response including at least sending a first amount of data to be transmitted to the source line card according to the priority of the first signaling request, and sending the first signaling response to the source line card; Among them, the target line card includes multiple target ports with different priorities, each of the target port includes queues with different priorities, the first signaling response includes at least the first amount of data to be transmitted determined by the target line card based on the priority of the first signaling request, and the source line card sends the data to be transmitted obtained after parsing the data packet to the target line card according to the first amount of data to be transmitted, the priority of the target port and the priority of the queue.
7. A device for regulating congestion of a switching network board, It is characterized in that Applied in a source line card, the device comprises: A parsing module, used to parse the received data message to obtain the target line card identifier and the target port identifier corresponding to the data message, the data volume of the data message, and the data to be transmitted contained in the data message; a processing module, configured to generate a first signaling request based on the data volume, send the first signaling request to a target line card corresponding to the target line card identifier through a switching network board, and receive a first signaling response sent by the target line card; wherein the target line card includes a plurality of target ports with different priorities, each of the target ports includes queues with different priorities, and the first signaling response includes at least a first amount of data to be transmitted determined by the target line card based on the priority of the first signaling request; A sending module is used to send the data to be transmitted to the target line card according to the first amount of data to be transmitted, the priority of the target port and the priority of the queue.
8. The device according to claim 7, It is characterized in that The sending module is specifically used for: Determine, based on the bandwidth of the target line card, a preset time period, and the first amount of data to be transmitted, the number of times the second signaling request is sent to the target line card through the switching network board and the amount of second data to be transmitted sent to the target line card each time; Send the second signaling request the number of times to the target line card, and after each receipt of the second signaling response containing the second amount of data to be transmitted sent by the target line card, send the second amount of data to be transmitted to the target line card until the first amount of data to be transmitted in the data to be transmitted is sent to the target line card.
9. A device for regulating congestion of a switching network board, It is characterized in that Applied in a target line card, the device comprises: A receiving module, configured to receive a first signaling request sent by a source line card through a switching network board; the first signaling request is generated based on a data volume, and the data volume is obtained after the source line card parses a received data message; a generating module, configured to generate a first signaling response including at least sending a first amount of data to be transmitted to the source line card according to the priority of the first signaling request, and send the first signaling response to the source line card; Among them, the target line card includes multiple target ports with different priorities, each of the target port includes queues with different priorities, the first signaling response includes at least the first amount of data to be transmitted determined by the target line card based on the priority of the first signaling request, and the source line card sends the data to be transmitted obtained after parsing the data packet to the target line card according to the first amount of data to be transmitted, the priority of the target port and the priority of the queue.
10. A system for regulating congestion of a switching network board, It is characterized in that The system comprises: a source line card, a target line card and a switching network board; The source line card is used to parse the received data message to obtain the target line card identifier, the target port identifier, the data volume of the data message, and the data to be transmitted contained in the data message corresponding to the data message; and generate a first signaling request based on the data volume, and send the first signaling request to the target line card corresponding to the target line card identifier through the switching network board; The target line card is configured to receive the first signaling request sent by the source line card through the switching network board, generate a first signaling response at least including sending a first amount of data to be transmitted to the source line card according to the priority of the first signaling request, and send the first signaling response to the source line card; The target line card includes a plurality of target ports of different priorities, each of the target ports includes queues of different priorities, and the first signaling response includes at least the first amount of data to be transmitted determined by the target line card based on the priority of the first signaling request; The source line card is further configured to receive the first signaling response sent by the target line card; and send the data to be transmitted to the target line card according to the first amount of data to be transmitted, the priority of the target port and the priority of the queue.
