CN111343099B - Switch, flow control system and flow control method - Google Patents

Switch, flow control system and flow control method Download PDF

Info

Publication number
CN111343099B
CN111343099B CN202010198247.4A CN202010198247A CN111343099B CN 111343099 B CN111343099 B CN 111343099B CN 202010198247 A CN202010198247 A CN 202010198247A CN 111343099 B CN111343099 B CN 111343099B
Authority
CN
China
Prior art keywords
time window
flow control
time
switch
data traffic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010198247.4A
Other languages
Chinese (zh)
Other versions
CN111343099A (en
Inventor
吕航
杨贵
李力
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NR Electric Co Ltd
NR Engineering Co Ltd
Original Assignee
NR Electric Co Ltd
NR Engineering Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NR Electric Co Ltd, NR Engineering Co Ltd filed Critical NR Electric Co Ltd
Priority to CN202010198247.4A priority Critical patent/CN111343099B/en
Publication of CN111343099A publication Critical patent/CN111343099A/en
Application granted granted Critical
Publication of CN111343099B publication Critical patent/CN111343099B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/22Traffic shaping
    • H04L47/225Determination of shaping rate, e.g. using a moving window
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/27Evaluation or update of window size, e.g. using information derived from acknowledged [ACK] packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/40Constructional details, e.g. power supply, mechanical construction or backplane
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention is suitable for the technical field of communication, and provides a switch, a flow control system and a flow control method, wherein the switch comprises: the central processing unit CPU is used for configuring flow control parameters; the flow control parameters at least include: a width of the first time window and a width of the second time window; a Field Programmable Gate Array (FPGA) module for determining a first data flow of a link of the switch within each of at least N consecutive first time windows based on the flow control parameter; obtaining second data traffic in at least one corresponding second time window based on the first data traffic in each of at least N consecutive first time windows; and controlling the flow of the link based on the second data flow; and the exchange chip is used for carrying out message exchange on the link after the flow control is carried out.

Description

Switch, flow control system and flow control method
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a switch, a flow control system, and a flow control method.
Background
In order to prevent the link from being blocked, data traffic in the link needs to be monitored in real time, and the related art controls the data traffic in the link by sliding a time window. The implementation of the sliding time window has high requirements on the hardware of the device, and the switch cannot implement the sliding time window.
Disclosure of Invention
In order to solve the above problem, embodiments of the present invention provide an exchanger, a flow control system, and a flow control method, so as to at least solve the problem that the exchanger in the related art cannot implement a sliding time window.
The technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a switch, where the switch includes:
a central processing unit CPU for configuring flow control parameters; the flow control parameters at least comprise: a width of the first time window and a width of the second time window; the switch performs flow control by taking the second time window as a time unit; the width of the second time window is N times of the width of the first time window, and N is an integer greater than 1;
the FPGA module is used for determining first data flow of a link of the switch in each of at least N continuous first time windows based on the flow control parameter; obtaining second data traffic in at least one corresponding second time window based on the first data traffic in each of at least N consecutive first time windows; and controlling the link flow based on the second data flow;
and the exchange chip is used for carrying out message exchange on the link after the flow control is carried out.
In the foregoing solution, when the FPGA module performs flow control on the link based on the second data flow, the FPGA module is configured to:
determining a flow control value based on a second data flow within at least one second time window;
determining whether the flow control value is greater than a set value;
and under the condition that the flow control value is determined to be larger than the set value, discarding the message in the link.
In the foregoing solution, when the FPGA module obtains the second data traffic in the corresponding at least one second time window based on the first data traffic in each of the at least N consecutive first time windows, the FPGA module is configured to:
determining a start time of the second time window;
and accumulating the first data traffic in each of N continuous first time windows from the starting time to obtain second data traffic in the second time window.
In the foregoing solution, the CPU is further configured to:
and sending the second data flow to a monitoring end.
In a second aspect, an embodiment of the present invention provides a flow control system, where the system includes:
the switch of the first aspect;
and the monitoring end is in communication connection with the switch.
In a third aspect, an embodiment of the present invention provides a flow control method, where the method is implemented based on a switch in the first aspect, and the flow control method includes:
configuring flow control parameters; the flow control parameters at least include: a width of the first time window and a width of the second time window; the switch performs flow control by taking the second time window as a time unit; the width of the second time window is N times of that of the first time window, and N is an integer greater than 1;
determining, based on the flow control parameter, a first data flow for a link of the switch within each of at least N consecutive first time windows; obtaining a second data flow in at least one corresponding second time window based on the first data flow in each of at least N continuous first time windows; and controlling the link flow based on the second data flow;
and carrying out message exchange based on the link after the flow control.
In the foregoing solution, when the flow control is performed on the link based on the second data flow, the method includes:
determining a flow control value based on a second data flow within at least one second time window;
determining whether the flow control value is greater than a set value;
and under the condition that the flow control value is determined to be larger than the set value, discarding the message in the link.
In the above solution, when obtaining the second data traffic in the corresponding at least one second time window based on the first data traffic in each of the at least N consecutive first time windows, the method includes:
determining a start time of the second time window;
and accumulating the first data traffic in each of N continuous first time windows from the starting time to obtain second data traffic in the second time window.
The embodiment of the invention configures flow control parameters through a CPU; the flow control parameters at least include: a width of the first time window and a width of the second time window; the width of the second time window is N times of the width of the first time window, and N is an integer greater than 1; the FPGA module determines a first data flow of a link of the switch in each of at least N consecutive first time windows based on the flow control parameter; obtaining second data traffic in at least one corresponding second time window based on the first data traffic in each of at least N consecutive first time windows; and controlling the link flow based on the second data flow; and the exchange chip carries out message exchange based on the link after the flow control. In the embodiment of the invention, when the second time window slides each time, only the data flow of the current first time window needs to be counted, and the data flow of each first time window in the second time window does not need to be counted. Therefore, the embodiment of the invention has small data processing amount and low requirement on equipment hardware, and does not need to change the hardware of the switch. In addition, the embodiment of the invention can obtain the second data traffic by statistics every other first time window, so the traffic granularity counted by the embodiment of the invention is small, and the specific time of the data traffic abnormality in the link can be accurate.
Drawings
FIG. 1 is a schematic diagram of a sliding time window provided by an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a switch provided in an embodiment of the present invention;
FIG. 3 is a schematic diagram of another sliding time window provided by embodiments of the present invention;
fig. 4 is a schematic structural diagram of a switch provided in an application embodiment of the present invention;
fig. 5 is a schematic structural diagram of a flow control system according to an embodiment of the present invention;
fig. 6 is a schematic flow chart of an implementation of a flow control method according to an embodiment of the present invention;
fig. 7 is a schematic flow chart illustrating an implementation of another flow control method according to an embodiment of the present invention;
fig. 8 is a schematic flow chart of an implementation of another flow control method according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The technical means described in the embodiments of the present invention may be arbitrarily combined without conflict.
In addition, in the embodiments of the present invention, "first", "second", and the like are used for distinguishing similar objects, and are not necessarily used for describing a specific order or a sequential order.
Network congestion can cause performance degradation of some or even the entire network, affecting the normal operation of networking equipment. For example, in an intelligent substation, network congestion may seriously affect the real-time performance and reliability of information flow, and may also impact all networking devices in a process layer and a bay layer of the intelligent substation, thereby challenging the reliable operation of secondary devices such as a protection control device and the like, and seriously affecting the safe and stable operation of the intelligent substation.
The intelligent transformer substation is a modern transformer substation which is constructed by layering intelligent primary equipment and networked secondary equipment such as an electronic transformer, an intelligent switch and the like, is established on the basis of the global universal standard (IEC 61850 standard) in the field of power system automation and can realize information sharing and interoperation between intelligent electrical equipment in the transformer substation. In an intelligent substation, cables between primary equipment and protection, measurement and control in a conventional substation are replaced by optical cables; the direct current signals (positive voltage/negative voltage/ground voltage) and alternating current signals (secondary current, voltage) transmitted in the cable are replaced by messages transmitted in the network; the relay hardware loop used to implement the protection logic is replaced by a software program in the microcomputer protection device.
The intelligent substation system is divided into 3 layers: the process layer, the spacing layer and the station control layer are only arranged on the intelligent substation, and the conventional substation is only arranged on the spacing layer and the station control layer. The switch provided by the embodiment of the invention is applied to a process layer of an intelligent substation, the process layer mainly comprises an electronic transformer, a merging unit and an intelligent terminal, and the switch is mainly used for collecting real-time running electric quantity, monitoring the running state of equipment, executing a control command and the like. In the intelligent substation, the switch is not separated in the communication between layers and the communication between devices in the process layer. A switch is a network device for electrical (optical) signal forwarding that can provide an exclusive electrical signal path for any two network nodes accessing the switch. The switch is a junction for communication between secondary equipment of the intelligent substation and is key secondary equipment. Once the switch fails, the safe operation of the relay protection and measurement and control device of the intelligent substation is influenced in a large range.
Therefore, in the intelligent substation, the role of the switch is very important. In an intelligent substation, a switch needs to realize real-time data transmission, monitor the flow condition of a process layer network in real time, and take control measures in time when the flow of a certain link is abnormal, so as to avoid influencing the data transmission of other normal links.
Currently, there are two methods for controlling the flow rate through a time window in the related art. The first is a fixed time window, which counts the data traffic transmitted in the link within a fixed time interval, and if the data traffic is greater than a threshold, it is determined that the link is blocked. However, the flow granularity counted by the fixed time window is coarse, and if a link has instantaneous large flow impact at a certain time point, the fixed time window algorithm can only know the flow condition in the link after the fixed time. And if the abnormal traffic spans two fixed time windows, the flow control may not be triggered.
The second is a sliding time window, and the sliding time window algorithm is generated according to the scene that a fixed time window algorithm has instant large flow impact at a certain time point. It divides the time window into smaller time slices, and every time slice passes, the sliding time window slides by one. For example, as shown in fig. 1, fig. 1 divides the sliding time window into 6 cells, and assuming that one sliding time window is 6ms, the sliding time window is divided, so each cell represents 1ms. Every 1ms, the time window is slid one frame to the right. The flow of the sliding time window is counted every 1ms, and the counted flow is more accurate than the flow counted every one minute. The finer the division of the sliding time window, the smoother the sliding of the sliding time window and the more accurate the statistical traffic will be. However, each time the sliding time window slides, the flow value of each time window in one sliding time window needs to be counted, and if the sliding time window is divided into smaller sections or the width of the sliding time window is longer, the throughput of the device is larger. When the device needs to process data traffic of multiple links in parallel, which is a high requirement for hardware of the device, the switch cannot implement the sliding time window.
In view of the foregoing disadvantages of the related art, embodiments of the present invention provide a switch, which can implement a sliding time window on the switch, and accurately implement link flow control and accurate monitoring functions. In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
As shown in fig. 2, fig. 2 is a schematic structural diagram of a switch according to an embodiment of the present invention, where the switch includes: a Central Processing Unit (CPU), a Field Programmable Gate Array (FPGA) module, and a switching chip.
The CPU is used for configuring flow control parameters; the flow control parameters at least include: a width of the first time window and a width of the second time window; the switch performs flow control by taking the second time window as a time unit; the width of the second time window is N times of the width of the first time window, and N is an integer greater than 1.
The FPGA module is used for determining first data flow of a link of the switch in each of at least N continuous first time windows based on the flow control parameter; obtaining second data traffic in at least one corresponding second time window based on the first data traffic in each of at least N consecutive first time windows; and performing flow control on the link based on the second data flow.
And the exchange chip is used for carrying out message exchange on the link after the flow control is carried out.
The CPU is used for configuring flow control parameters, and the flow control parameters at least comprise: the width of the first time window and the width of the second time window, wherein the width of the second time window is N times of the width of the first time window, and N is an integer greater than 1. The time window is characterized by a time period, and the width of the time window is the length of the time period. And after the CPU configures the flow control parameters, the CPU sends the flow control parameters to the FPGA module.
The switch performs flow control in units of time of the second time window, for example, assuming that the width of the second time window is 5ms, that is, the switch performs flow control according to data flow within 5ms each time. The first time window may be 1ms, so that the width of the second time window is 5 times the width of the first time window, or the second time window is divided into 5 first time windows.
The FPGA module is a chip which can change the internal structure through programming, the FPGA is used as a semi-custom circuit in the field of special integrated circuits, and the FPGA not only solves the defects of the custom circuit, but also overcomes the defect that the number of gate circuits of the original editable device is limited. In an embodiment of the present invention, the FPGA module is configured to determine, based on the flow control parameter, a first data flow of a link of the switch in each of at least N consecutive first time windows; obtaining a second data flow in at least one corresponding second time window based on the first data flow in each of at least N continuous first time windows; and performing flow control on the link based on the second data flow.
Since the switch performs flow control in time units of the second time window, for example, the second time window is 5ms, and the first time window is 1ms. The first second time window is 0-5ms, the second time window is 1-6ms, the third second time window is 2-7ms, and so on. Similarly, 0-1ms is the first time window, 1-2ms is the second first time window, 2-3ms is the third first time window, and so on. Since the width of the second time window is 5 times the width of the first time window, it is necessary to count the data traffic of 5 consecutive first time windows at least to obtain the data traffic in one second time window. And when the second time window slides, the switch only acquires the data traffic in the current first time window. If the switch is to acquire the data traffic in the first second time window, accumulating the data traffic in the first to fifth first time windows; if the data traffic in the second time window is to be acquired, the data traffic in the second to sixth first time windows is accumulated, and so on. And after the second data flow in at least one second time window is obtained, the switch controls the flow of the link according to the second data flow in the second time window.
Since the width of the second time window is N times the width of the first time window, and N consecutive first time windows constitute one second time window, it is necessary to count at least the first data traffic in each of the N consecutive first time windows, so as to obtain the second data traffic in at least one second time window.
In the embodiment of the invention, the FPGA module is used for realizing the statistics of the flow. The messages are transmitted in the link of the switch, so the flow corresponds to the frame number and byte number of the messages. There are many methods for traffic statistics, for example, the traffic entering a link may be counted at a port of a switch. In an embodiment of the present invention, after the FPGA module obtains the first data traffic, the FPGA module stores the counted traffic value in a cache of the switch, where the cache may be a cache of the FPGA module, a dedicated storage, or a memory cache of the switch.
Further, when the FPGA module obtains a second data traffic in the corresponding at least one second time window based on the first data traffic in each of the at least N consecutive first time windows, the FPGA module is configured to:
determining a start time of the second time window.
And accumulating the first data traffic in each of N continuous first time windows from the starting time to obtain second data traffic in the second time window.
A second time window is formed by N consecutive first time windows, and thus, accumulating the first data traffic within each of the N consecutive first time windows results in a second data traffic within the second time window.
If the data traffic of a certain second time window is to be acquired, the start time of the second time window is first acquired, and the first data traffic in each of N consecutive first time windows from the start time is accumulated to obtain the data traffic of the second time window.
Under the environment of real-time monitoring, first data traffic of a current first time window and first data traffic of first N-1 continuous first time windows of the current first time window are obtained, and the first data traffic are accumulated to obtain second data traffic in a second time window. Therefore, a second data flow can be obtained at intervals of a first time window, the flow is monitored in real time, and the real-time performance and the reliability of information are guaranteed. In practical application, the switch is in communication connection with the monitoring terminal, and the CPU of the switch may send the second data traffic to the monitoring terminal through a Multimedia Messaging Service (MMS) or a Simple Network Management Protocol (SNMP).
Referring to fig. 3, each cell in fig. 3 represents a first time window, the width of the second time window is 5 times the width of the first time window, and the 5 connected dark-colored cell descendants in fig. represent a second time window. Fig. 3 represents that the second time window slides from left to right, and when the second time window slides each time, only the data traffic of the rightmost one of the 5 dark-color small grids in fig. 3 needs to be obtained, and the data traffic of the 5 small grids does not need to be obtained. For example, assume that the second time window is 5ms and the first time window is 1ms. The first second time window is 0-5ms and the second time window is 1-6ms. If the second time window slides from 0-5 seconds to 1-6ms, only 5-6ms of data traffic need be acquired, and 1-6ms of data traffic need not be acquired. In the embodiment of the present invention, in the sliding process of the second time window, only the data traffic of the current first time window (5-6 ms) needs to be counted, and the data traffic of the past time (1-5 ms) does not need to be repeatedly acquired. If the data traffic in a certain second time window needs to be obtained, the data traffic in the second time window can be obtained only by obtaining the start time of the second time window and accumulating the first data traffic in each of 5 consecutive first time windows from the start time. Therefore, the embodiment of the invention can quickly obtain the data traffic in any second time window.
Further, when the FPGA module performs flow control on the link based on the second data flow, the FPGA module is configured to:
the flow control value is determined based on a second data flow within at least one second time window.
It is determined whether the flow control value is greater than a set value.
And under the condition that the flow control value is determined to be larger than the set value, discarding the message in the link.
In practical application, the second data flows in the second time window with continuous set number can be obtained, the average value of the corresponding set number of the second data flows is obtained, and the average value is used as the flow control value. Alternatively, after obtaining one second data flow, the second data flow may be directly used as the flow control value.
The set value is a flow threshold for the switch to perform flow control, if the flow control value is greater than the set value, it indicates that the data flow borne by the link is large, and if the flow is not controlled to be unblocked in time, the link may be blocked to affect the normal operation of the networking equipment. In an embodiment of the present invention, when it is determined that the flow control value is greater than the set value, the packet in the link is discarded, and the link can be immediately unblocked, so that the link is restored to the optimal transmission state.
In an embodiment, when it is determined that the flow control value is greater than the set value, the corresponding link may be further closed, where the link is closed, which means that transmission of the message is suspended. And the link is closed in time, so that the message forwarding of other links can be prevented from being influenced.
And the switching chip is used for carrying out message switching on the link after the flow control.
The switch chip is a chip in the switch that is specifically responsible for forwarding messages, for example, re-forwarding discarded messages.
The embodiment of the invention configures flow control parameters through a CPU; the flow control parameters at least include: a width of the first time window and a width of the second time window; the width of the second time window is N times of that of the first time window, and N is an integer greater than 1; the FPGA module determines a first data flow of a link of the switch in each of at least N continuous first time windows based on the flow control parameter; obtaining second data traffic in at least one corresponding second time window based on the first data traffic in each of at least N consecutive first time windows; and controlling the link flow based on the second data flow; and the exchange chip carries out message exchange based on the link after the flow control. In the embodiment of the invention, when the second time window slides each time, only the data flow of the current first time window needs to be counted, and the data flow of each first time window in the second time window does not need to be counted. Therefore, the embodiment of the invention has small data processing amount and low requirement on equipment hardware, and does not need to change the hardware of the switch. In addition, the embodiment of the invention can obtain the second data traffic by statistics every other first time window, so the traffic granularity counted by the embodiment of the invention is small, and the specific time of the data traffic abnormality in the link can be accurate. For the intelligent substation, the embodiment of the invention effectively improves the flow statistical accuracy of the switch in the process layer of the intelligent substation, and ensures the real-time performance and the reliability of information. The switch can realize the window flow statistics of any time starting point, and the network monitoring of a process layer is enhanced. When the switch finds that the flow of a certain link is abnormal, the switch can take control measures in time, and data transmission of all links is guaranteed.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a switch provided in an application embodiment of the present invention, where the switch includes: CPU, FPGA module, exchange chip, port 1 to port N and monitor port 1 to monitor port M.
The CPU is used for configuring flow control parameters; the flow control parameters include: the width of the first time window and the width, the set value and the set duration of the second time window are obtained, and the CPU sends the flow control parameters to the FPGA module. The switching chip is responsible for message forwarding, and when the message is forwarded, the FPGA module counts data traffic in each link of each port, for example, data traffic in a link 1 to a link N of the port 1, based on the flow control parameter. Specifically, the FPGA module determines a first data traffic of a link of the switch within each of at least N consecutive first time windows; obtaining second data traffic in at least one corresponding second time window based on the first data traffic in each of at least N consecutive first time windows; and flow control is performed on the link based on the second data flow. The monitoring port of the switch is connected with the monitoring terminal, and the switch can be connected with a plurality of monitoring terminals. After the second data traffic is obtained, the CPU may send the second data traffic to the monitoring terminal through the monitoring port, so as to implement real-time monitoring of the data traffic. In practical application, a certain monitoring end can be set to monitor the data traffic of certain links. The monitoring end can also issue flow control parameters to the switch, and the switch controls the flow in the link according to the flow control parameters.
According to the embodiment of the invention, the second data flow can be obtained every other first time window, and the specific time of the abnormal data flow in the link can be accurate. The embodiment of the invention has small data processing amount, and the exchanger can process the multilink data flow in parallel.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a flow control system according to an embodiment of the present invention, where the flow control system includes: the system comprises a switch and a monitoring terminal.
In the embodiment of the invention, the switch and the monitoring terminal are in communication connection. The switch is the switch in the embodiment shown in fig. 2, and the switch includes an FPGA module, a CPU, and a switching chip. The monitoring end can be an electronic device such as a mobile phone, a computer, a server and the like, and can set flow control parameters and send the flow control parameters to the switch. For example, the user can remotely set the widths of the first time window and the second time window through the monitoring terminal.
And in practical application, the switch sends one second data flow to the monitoring end every other first time window so that the monitoring end can monitor the flow state in a link of the switch in real time.
Fig. 6 is a schematic implementation flow diagram of a flow control method according to an embodiment of the present invention, where the execution main body of the method is the switch in fig. 2. As shown in fig. 6, the flow control method includes:
s601, configuring flow control parameters; the flow control parameters at least include: a width of the first time window and a width of the second time window; the switch performs flow control by taking the second time window as a time unit; the width of the second time window is N times of the width of the first time window, and N is an integer greater than 1.
The main execution body of step S601 is the CPU in fig. 2.
S602, determining, based on the flow control parameter, a first data flow of a link of the switch in each of at least N consecutive first time windows; obtaining a second data flow in at least one corresponding second time window based on the first data flow in each of at least N continuous first time windows; and controlling the link flow based on the second data flow;
the main execution body of step S602 is the FPGA module in fig. 2.
S603, message exchange is carried out based on the link after flow control.
The main body of step S603 is the swap chip in fig. 2.
The embodiment of the invention configures flow control parameters; the flow control parameters at least include: a width of the first time window and a width of the second time window; the width of the second time window is N times of the width of the first time window, and N is an integer greater than 1; determining, based on the flow control parameter, a first data flow for a link of the switch within each of at least N consecutive first time windows; obtaining second data traffic in at least one corresponding second time window based on the first data traffic in each of at least N consecutive first time windows; and controlling the link flow based on the second data flow; and carrying out message exchange based on the link after the flow control. According to the embodiment of the invention, the second data traffic can be obtained every other first time window, so that the traffic granularity counted by the embodiment of the invention is small, and the specific time of the data traffic abnormality in the link can be accurate. In addition, in the embodiment of the invention, when the second time window slides each time, only the data traffic of the current first time window needs to be counted, and the data traffic of each first time window in the sliding time window does not need to be counted. Therefore, the embodiment of the invention has small data processing amount and low requirement on equipment hardware, and does not need to change the hardware of the switch.
Referring to fig. 7, in an embodiment, the controlling the link based on the second data traffic includes:
s701, determining a flow control value based on a second data flow within at least one second time window.
S702, determining whether the flow control value is larger than a set value.
And S703, under the condition that the flow control value is determined to be larger than the set value, discarding the message in the link.
Referring to fig. 8, in an embodiment, when obtaining the second data traffic in the corresponding at least one second time window based on the first data traffic in each of the at least N consecutive first time windows, the obtaining includes:
s801, determining the starting time of the second time window.
S802, accumulating the first data traffic in each of N consecutive first time windows from the start time to obtain a second data traffic in the second time window.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by functions and internal logic of the process, and should not limit the implementation process of the embodiments of the present invention in any way.
The flow control method provided by the above embodiment and the switch embodiment belong to the same concept, and the specific implementation process thereof is described in detail in the method embodiment and will not be described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The above-mentioned embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (8)

1. A switch, comprising:
the central processing unit CPU is used for configuring flow control parameters; the flow control parameters at least comprise: a width of the first time window and a width of the second time window; the switch performs flow control by taking the second time window as a time unit; the width of the second time window is N times of that of the first time window, and N is an integer greater than 1;
the FPGA module is used for determining first data flow of a link of the switch in each of at least N continuous first time windows based on the flow control parameter; obtaining second data traffic in at least one corresponding second time window based on the first data traffic in each of at least N consecutive first time windows; and controlling the link flow based on the second data flow;
and the exchange chip is used for carrying out message exchange on the link after the flow control is carried out.
2. The switch of claim 1, wherein the FPGA module, when controlling the flow of the link based on the second data traffic, is configured to:
determining a flow control value based on a second data flow within at least one second time window;
determining whether the flow control value is greater than a set value;
and under the condition that the flow control value is determined to be larger than the set value, discarding the message in the link.
3. The switch of claim 1, wherein the FPGA module, when obtaining the second data traffic within the corresponding at least one second time window based on the first data traffic within each of the at least N consecutive first time windows, is configured to:
determining a start time of the second time window;
and accumulating the first data traffic in each of N continuous first time windows from the starting time to obtain second data traffic in the second time window.
4. The switch of claim 1, wherein the CPU is further configured to:
and sending the second data flow to a monitoring end.
5. A flow control system, comprising:
the switch of any of claims 1 to 4;
and the monitoring end is in communication connection with the switch.
6. A flow control method implemented based on the switch according to any of claims 1 to 4, characterized in that the flow control method comprises:
configuring flow control parameters; the flow control parameters at least include: a width of the first time window and a width of the second time window; the switch performs flow control by taking the second time window as a time unit; the width of the second time window is N times of that of the first time window, and N is an integer greater than 1;
determining, based on the flow control parameter, a first data flow for a link of the switch within each of at least N consecutive first time windows; obtaining second data traffic in at least one corresponding second time window based on the first data traffic in each of at least N consecutive first time windows; controlling the link based on the second data traffic;
and carrying out message exchange on the link after the flow control is carried out.
7. The method of claim 6, wherein the controlling the link based on the second data traffic comprises:
determining a flow control value based on a second data flow within at least one second time window;
determining whether the flow control value is greater than a set value;
and under the condition that the flow control value is determined to be larger than the set value, discarding the message in the link.
8. The method according to claim 6, wherein the obtaining the second data traffic in the corresponding at least one second time window based on the first data traffic in each of the at least N consecutive first time windows comprises:
determining a start time of the second time window;
and accumulating the first data traffic in each of N continuous first time windows from the starting time to obtain second data traffic in the second time window.
CN202010198247.4A 2020-03-19 2020-03-19 Switch, flow control system and flow control method Active CN111343099B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010198247.4A CN111343099B (en) 2020-03-19 2020-03-19 Switch, flow control system and flow control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010198247.4A CN111343099B (en) 2020-03-19 2020-03-19 Switch, flow control system and flow control method

Publications (2)

Publication Number Publication Date
CN111343099A CN111343099A (en) 2020-06-26
CN111343099B true CN111343099B (en) 2023-04-07

Family

ID=71187672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010198247.4A Active CN111343099B (en) 2020-03-19 2020-03-19 Switch, flow control system and flow control method

Country Status (1)

Country Link
CN (1) CN111343099B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088403A (en) * 2010-11-10 2011-06-08 中国人民解放军信息工程大学 Method and system for calculating dynamic bandwidth of network link

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088403A (en) * 2010-11-10 2011-06-08 中国人民解放军信息工程大学 Method and system for calculating dynamic bandwidth of network link

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于流量控制的智能变电站网络传输可靠性提升方案;赵明君;《电力系统保护与控制》;20190516;第47卷(第10期);参见正文第141-145页 *

Also Published As

Publication number Publication date
CN111343099A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
US9270560B2 (en) Session layer for monitoring utility application traffic
CN100411345C (en) Local guarantee management apparatus of equipment parts used in communication network
US20190273653A1 (en) Trigger alarm actions and alarm-triggered network flows in software-defined networks
CN102185387A (en) Triple play method of process layer in intelligent substation
EP3479530B1 (en) Message schema control
CN111970759B (en) Delay adjustment method and device for end-to-end service, storage medium and electronic device
US20140280673A1 (en) Systems and methods for communicating data state change information between devices in an electrical power system
US20140280672A1 (en) Systems and Methods for Managing Communication Between Devices in an Electrical Power System
CN110994565A (en) Relay protection method and device
CN111343099B (en) Switch, flow control system and flow control method
US20190132269A1 (en) Message schema control
Kurtz et al. Empirical comparison of virtualized and bare-metal switching for SDN-based 5G communication in critical infrastructures
CN102736716A (en) Control apparatus for cabinet power supply and monitor method thereof
CN109964450B (en) Method and device for determining shared risk link group
Ingalalli et al. SCD based IEC 61850 traffic estimation for substation automation networks
CN113541845A (en) Power communication relay protection service time delay control method and system and relay protection equipment
CN114124709A (en) Optimization method and device for network slice configuration and readable storage medium
CN108599372A (en) A kind of novel distribution network automatic measure control terminal
US10498633B2 (en) Traffic activity-based signaling to adjust forwarding behavior of packets
Dimitrova et al. Contemporary Trends for Increasing the Reliability of the SCADA systems Communication Level
Wang et al. Centralized Network Management in SDN-based Communication Network of substation
CN114629841A (en) Communication method, device and system
CN117354646A (en) Mapping method and device of customer service, storage medium and electronic device
CN112260968A (en) Method and device for processing telemetering data message
EP2020774A1 (en) Method and device for utilizing an object in a communication network, management system and communication system compris-ing such device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant