CN108199975A - A kind of flow control methods and device - Google Patents
A kind of flow control methods and device Download PDFInfo
- Publication number
- CN108199975A CN108199975A CN201810266657.0A CN201810266657A CN108199975A CN 108199975 A CN108199975 A CN 108199975A CN 201810266657 A CN201810266657 A CN 201810266657A CN 108199975 A CN108199975 A CN 108199975A
- Authority
- CN
- China
- Prior art keywords
- port
- flow
- source
- target
- equipment
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/26—Flow control; Congestion control using explicit feedback to the source, e.g. choke packets
- H04L47/263—Rate modification at the source after receiving feedback
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of flow control methods and device, this method include:Port set traffic statistics are carried out according to the source MAC address and target MAC (Media Access Control) address of the flow of forwarding;When determining ports-Extending equipment up going port flow congestion, according to the flow sequence from big to small of target port group, pass sequentially through the source port transmitted traffic control message that each target port group includes, corresponding data-source device to be notified to reduce flow transmission rate, until the ports-Extending equipment up going port flow congestion releases.The network resources waste between data-source device and CB equipment, the granularity of refinement flow reduction of speed processing can be reduced using the embodiment of the present invention.
Description
Technical field
The present invention relates to network communication technology field more particularly to a kind of flow control methods and device.
Background technology
IRF3 (Intelligent Resilient Framework 3, third generation intelligent elastic framework) is to improve
Access capability and the efficiency of management of network access layer and the portrait network developed integrates virtualization technology.Its core concept be by
More PE (Port Extender, port expander) equipment are connected to CB (Controlling Bridge, control bridge) equipment
On, progress is necessary with postponing, and by every PE device virtualization into one block of remote interface plate of CB equipment, is managed by CB equipment is unified
Reason.Can network topology, drop to improve the interface density of CB equipment, be simplified with relatively low cost using this virtualization technology
Low network operation cost.
However practice is found, when flow congestion occurs for PE equipment up going port (port that CB equipment is connected in PE equipment),
It can only notify that the mode that CB equipment reduces the flow transmission rate of cascade port (port that PE equipment is connected in CB equipment) is delayed
Solution, and can not notify that data-source device reduces flow transmission rate, causes network resources waste;In addition, subtracted by CB equipment
The flow transmission rate of few cascade port alleviates in the realization method of the flow congestion of PE equipment up going ports all ends in PE equipment
The flow of mouth can be affected, and granularity is excessive.
Invention content
The present invention provides a kind of flow control methods and device, to solve existing PE equipment up going port flow congestion releasing side
There are network resources waste in case, and the problem of granularity is excessive.
It is according to embodiments of the present invention in a first aspect, a kind of flow control methods are provided, applied to control bridge device, the party
Method includes:
Port set traffic statistics are carried out according to the source MAC address and target MAC (Media Access Control) address of the flow of forwarding;
Wherein, the port set includes source port and destination interface, and source port is to learn to the port of the source MAC of flow, purpose
Port is the port for the target MAC (Media Access Control) address that flow is arrived in study;
When determining ports-Extending equipment up going port flow congestion, according to flow from big to small suitable of target port group
Sequence passes sequentially through the source port transmitted traffic control message that each target port group includes, to notify corresponding data-source device
Flow transmission rate is reduced, until the ports-Extending equipment up going port flow congestion releases;Wherein, target port group includes
Destination interface belong to the ports-Extending equipment.
Second aspect according to embodiments of the present invention provides a kind of volume control device, applied to control bridge device, the dress
Put including:
Traffic statistics unit, for the flow according to forwarding source MAC address and target MAC (Media Access Control) address into
Row port set traffic statistics;Wherein, the port set includes source port and destination interface, and source port is the source that flow is arrived in study
The port of MAC Address, destination interface are the port for the target MAC (Media Access Control) address that flow is arrived in study;
Transmitting element, for when determining ports-Extending equipment up going port flow congestion, according to the flow of target port group
Sequence from big to small passes sequentially through the source port transmitted traffic control message that each target port group includes, to notify to correspond to
Data-source device reduce flow transmission rate, until the ports-Extending equipment up going port flow congestion release;Wherein, target
The destination interface that port set includes belongs to the ports-Extending equipment.
Using the embodiment of the present invention, port set is carried out by the source MAC and target MAC (Media Access Control) address of the flow according to forwarding
Traffic statistics, when determining ports-Extending equipment up going port flow congestion, according to flow from big to small suitable of target port group
Sequence passes sequentially through the source port transmitted traffic control message that each target port group includes, to notify corresponding data-source device
Flow transmission rate is reduced, until ports-Extending equipment up going port flow congestion releases, reduces data-source device and CB equipment
Between network resources waste, refined flow reduction of speed processing granularity.
Description of the drawings
Fig. 1 is a kind of flow diagram of flow control methods provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of concrete application scene provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of another concrete application scene provided in an embodiment of the present invention;
Fig. 4 is a kind of structure diagram of volume control device provided in an embodiment of the present invention;
Fig. 5 is the structure diagram of another volume control device provided in an embodiment of the present invention.
Specific embodiment
In order to which those skilled in the art is made to more fully understand the technical solution in the embodiment of the present invention, and make of the invention real
Apply the above-mentioned purpose of example, feature and advantage can be more obvious understandable, below in conjunction with the accompanying drawings to technical side in the embodiment of the present invention
Case is described in further detail.
Fig. 1 is referred to, is a kind of flow diagram of flow control methods provided in an embodiment of the present invention, wherein, the stream
Amount control method can be applied to CB equipment, as shown in Figure 1, the flow control methods include the following steps:
Step 101 carries out port according to the source MAC and target MAC (Media Access Control) address of the flow of forwarding and carries out a group traffic statistics;
Wherein, port set includes source port and destination interface, and source port is to learn to the port of the source MAC of flow, destination interface
To learn to the port of the target MAC (Media Access Control) address of flow.
In the embodiment of the present invention, it is contemplated that current vertical stack using 802.1br protocol realizations, CB equipment and PE equipment it
Between the message that transmits be the ether network packet of standard, and MAC (Media Access in source can be carried in the ether network packet of standard
Control, media access control) address and target MAC (Media Access Control) address, therefore, CB equipment can according to the source MAC of the flow of forwarding
Location and target MAC (Media Access Control) address carry out port set traffic statistics.
Correspondingly, in embodiments of the present invention, for any ether network packet of CB device forwards, CB equipment can basis
The source MAC and target MAC (Media Access Control) address of the ether network packet, statistics (source MAC, target MAC (Media Access Control) address) this two tuple
Flow counts, and accumulates it corresponding (source port, destination interface) two tuples according to the MAC address learning situation of port
On.
As an example it is assumed that MAC Address 1 and MAC Address 2 are arrived in study on port 1, learn on port 2 to 3 He of MAC Address
MAC Address 4, then (MAC Address 1, MAC Address 3) (i.e. source MAC is MAC Address 1, and target MAC (Media Access Control) address is MAC Address 3
Flow, similarly hereinafter), (MAC Address 1, MAC Address 4), (MAC Address 2, MAC Address 3) and (MAC Address 2, MAC Address 4) this four
The flow of a two tuple will be added to (port 1, port 2) (i.e. source port be port 1, destination interface be port 2) this two
In tuple.
Step 102, when determining PE equipment up going port flow congestions, according to flow from big to small suitable of target port group
Sequence passes sequentially through the source port transmitted traffic control message that each target port group includes, to notify corresponding data-source device
Transmission rate is reduced, until the PE equipment up going ports flow congestion releases.
In the embodiment of the present invention, when PE equipment up going port flow congestions, no longer merely dropped by CB equipment cascadings mouth
The mode of speed is alleviated, but is alleviated by way of the flow transmission rate for reducing specific data source device.
Correspondingly, in embodiments of the present invention, when CB equipment determines PE equipment up going port flow congestions, CB equipment can be with
According to the flow sequence from big to small of target port group, the source port transmitted traffic that each target port group includes is passed sequentially through
Control message, corresponding data-source device to be notified to reduce flow transmission rate, until PE equipment up going ports flow congestion releases;
Wherein, the destination interface that target port group includes belongs to the ports-Extending equipment.
In the present invention in one embodiment, the sequence of the above-mentioned flow according to target port group from big to small, successively
The source port transmitted traffic control message included by each target port group, can include:
It is minimum by carrying out flow reduction of speed number of processes, and the source port that the target port group of maximum flow includes is sent
Flow control messages, corresponding data-source device to be notified to reduce flow transmission rate;
Judge whether the ports-Extending equipment up going port flow congestion releases after the first preset time;
If not releasing, continue through that carry out flow reduction of speed number of processes minimum, and in the target port group of maximum flow
Including source port transmitted traffic control message, corresponding data-source device to be notified to reduce flow transmission rate, until PE is set
Standby up going port flow congestion releases.
In this embodiment, when CB equipment determines PE equipment up going port flow congestions, CB equipment can be according to being counted
Port set flow, the source port transmitted traffic control message that the target port group of maximum flow includes is first passed through, with logical
Know that corresponding data-source device reduces flow transmission rate.
It, can (can be in preset time after the target port group of CB device for flow amount maximum carries out flow reduction of speed processing
Set according to actual scene, such as 1 minute) after check whether PE equipment up going port flow congestions release, if releasing, terminate current
Flow.
If CB equipment determines PE, equipment up going port flow congestion does not release, and CB equipment can be according to the port set counted
Flow, then the source port transmitted traffic control message included by the big target port group of flow time, to notify corresponding number
Flow transmission rate is reduced according to source device, and so on, until PE equipment up going ports flow congestion releases.
In this embodiment, if each target port group has carried out the processing of flow reduction of speed, but PE equipment up going port flows are gathered around
Plug does not release yet, then CB equipment can repeat to carry out flow reduction of speed processing to each target port group in the manner described above, until PE
Equipment up going port flow congestion releases.
It should be noted that in embodiments of the present invention, the corresponding reduction of speed number of processes of target port group is led to CB equipment
The number positive correlation of source port transmitted traffic control message that the target port group includes is crossed, for example, CB equipment often passes through mesh
The source port that mark port set includes sends a flow control messages, can handle the corresponding reduction of speed of the target port group secondary
Number plus 1.Wherein, the initial value of the corresponding reduction of speed number of processes of each target port group can be 0, and PE equipment up going port each time
During flow congestion, the corresponding reduction of speed number of processes of each target port group can be counted again, and when congestion releases, then remove institute
The corresponding reduction of speed number of processes of each target port group of statistics.
It optionally, in embodiments of the present invention, can when data-source device receives the flow control messages of CB equipment transmission
To carry out reduction of speed processing according to the flow reduction of speed ratio of acquiescence, for example, data-source device receives the transmission of CB equipment for the first time
During flow control messages, half transmission rate can be reduced, i.e., carries out flow transmission according to the 50% of initial transmission rate;Data
When source device receives the flow control messages of CB transmissions for the second time, half transmission rate can be reduced again, i.e., according to just originating
The 25% of transmission rate carries out flow transmission.
Alternatively, can carry flow reduction of speed ratio in the flow control messages that CB equipment is sent, data-source device receives
During the flow control messages, reduction of speed processing can be carried out according to the flow reduction of speed ratio carried in flow control messages.Wherein, CB
The flow reduction of speed ratio carried in the flow control messages that equipment is sent by different port can be identical, can not also be identical;
The flow reduction of speed ratio carried in the flow control messages that CB equipment is repeatedly sent by same port can be identical, can not also
It is identical.
In the present invention in one embodiment, the flow of target port group is that the target port included belongs to up going port
The PE equipment of flow congestion, and the sum of identical flow of port set of source port.
As an example it is assumed that when PE equipment up going port flow congestions, the port set flow of CB device statistics includes (port
1, port 3) flow be Q1, the flow of (port 1, port 4) is Q2, and the flow of (port 2, port 3) is Q3, (port 2, end
The flow of mouth 4) is Q4, and port 3 and port 4 belong to the PE equipment, then the flow of target port group is respectively that port 1 is corresponding
The flow (i.e. the sum of (port 1, port 3) and the flow of (port 1, port 4), i.e. Q1+Q2) of target port group and port 2 correspond to
Target port group flow (i.e. the sum of flow of (port 2, port 3) and (port 2, port 4), i.e. Q3+Q4), if Q1+Q2
> Q3+Q4, then CB equipment can first pass through 1 transmitted traffic control message of port, to notify port 1 corresponding data-source device drop
Low discharge transmission rate, and after the first preset time, judge whether the PE equipment up going port flow congestions release;If it does not solve
It removes, then again by 2 transmitted traffic control message of port, 1 corresponding data-source device of port to be notified to reduce flow transmission rate.
It should be noted that in embodiments of the present invention, each port set that can also be directly counted according to CB equipment
The port set that flow belongs to target port the PE equipment of up going port flow blocking is ranked up that (i.e. each target port group is
Including a port group), and according to the flow sequence from big to small of port set, pass sequentially through the source that each port set includes
Mouth transmitted traffic control message, until the up going port congestion of PE equipment releases;Wherein, CB equipment according to each port set flow from
Small sequence is arrived greatly, during the source port transmitted traffic control message included by each port set, if there are multiple port sets
Source port is identical (destination interface is different), then in an ergodic process, the source port that multiple port set includes only needs to carry out
Flow reduction of speed processing.
Alternatively, destination interface can also be belonged to the PE equipment of up going port flow congestion, and the end that destination interface is identical
The sum of flow of mouthful group is determined as the flow of target port group, and according to the flow sequence from big to small of each target port group,
The source port transmitted traffic control message that each target port group includes is passed sequentially through, until the up going port congestion solution of PE equipment
It removes;Wherein, if there are identical source ports, in an ergodic process, multiple target port in multiple target port groups
Flow reduction of speed processing of progress is only needed in group there are the identical source port.
As it can be seen that in method flow shown in Fig. 1, when PE equipment up going port flow congestions, by controlling data-source device
Flow transmission rate is reduced, reduces the network resources waste between data-source device and CB equipment;In addition, carrying out at reduction of speed
Reason according to the data-source device that the port set flow selection counted needs reduction of speed to handle, has refined the grain of flow reduction of speed processing
Degree.
Further, in embodiments of the present invention, it is contemplated that flow congestion is not the normality in network, therefore, when logical
After crossing reduction of speed processing releasing PE equipment up going port flow congestions, it can attempt to restore transmission rate after a certain time.
Correspondingly, CB equipment carried out in the way of described in above-described embodiment reduction of speed processing release PE up going port flows gather around
It, can be after the second preset time (being set according to actual scene, such as 5 minutes, 10 minutes etc.), to carrying out reduction of speed after plug
The port set of processing carries out transmission rate recovery processing.
In this embodiment, it is contemplated that CB equipment to port set carry out reduction of speed processing when be according to port flow from big to small
Sequence carry out, therefore, rate recovery is carried out to the flows of PE equipment up going ports to the port set for first carrying out reduction of speed processing
It is big to influence influence of the port set progress rate recovery of progress reduction of speed processing after comparing to the flow of PE equipment up going ports, and works as
When again leading to PE equipment up going port flow congestions due to rate recovery, need to re-start reduction of speed processing.
Correspondingly, restore in order to avoid flow reduction of speed and transmission rate is repeated, it is in one embodiment, above-mentioned right
The target port group for carrying out reduction of speed processing carries out transmission rate recovery processing, can include:
Reduction of speed processing is carried out from rear to first sequence according to target port group, every third preset time to corresponding target
The source port transmission rate that port set includes restores notification message, to notify corresponding data-source device restores flow to send speed
Rate, until each target port group for carrying out reduction of speed processing completes transmission rate recovery or, PE equipment up going port flow again
Congestion;
When PE equipment up going port flow congestions again, wrapped in the target port group by finally carrying out transmission rate recovery
The source port transmitted traffic control message included, corresponding data-source device to be notified to reduce transmission rate.
In this embodiment, when needing to carry out transmission rate recovery, CB equipment can first pass through last progress reduction of speed
The source port transmission rate that the target port group of processing includes restores notification message, corresponding data-source device to be notified to restore
Flow transmission rate, and check PE equipment up going ports after third preset time (being set according to actual scene, such as 1 minute)
Whether again flow congestion.
If the non-flow congestion of PE equipment up going ports, CB equipment can pass through the secondary rear target port for carrying out reduction of speed processing again
The source port transmission rate that group includes restores notification message, corresponding data-source device to be notified to restore flow transmission rate,
And PE equipment up going port whether again flow congestion is checked after third preset time, and so on, carried out reduction of speed until each
The target port group of processing completes transmission rate recovery or, PE equipment up going port flow congestion again.
In this embodiment, when PE equipment up going port flow congestions again, CB equipment can be by finally being sent out
The source port transmitted traffic notification message that the target port group that transmission rate restores includes, corresponding data-source device to be notified to drop
Low transmission rate.
As it can be seen that in embodiments of the present invention, handled by above-mentioned flow reduction of speed and transmission rate recovery, it can be in PE equipment
In the case that flow congestion does not occur for up going port, ensure the transmission rate of total optimization.
In order to which those skilled in the art is made to more fully understand technical solution provided in an embodiment of the present invention, with reference to specific
Application scenarios illustrate technical solution provided in an embodiment of the present invention.
Embodiment one,
Fig. 2 is referred to, is a kind of configuration diagram of concrete application scene provided in an embodiment of the present invention, as shown in Fig. 2,
In the application scenarios, CB equipment 210 is connect by cascade port 211 with the up going port 221 of PE equipment 220, and CB equipment 210 passes through
Port 212 is connect with server 230 and 240, and is passed through port 213 and connect with server 250, and PE equipment 220 passes through port 222
It is connect with user terminal 260, and passes through port 223 and connect with user terminal 270;Wherein, 230~server of server 250
MAC Address is respectively 0-0-1~0-0-3, and the MAC Address of 260~user terminal of user terminal 270 is respectively 0-0-4~0-0-
5。
In this embodiment it is assumed that the flow that CB equipment 210 forwards is sent to the user terminal 260 including server 230
Message (source MAC 0-0-1, target MAC (Media Access Control) address 0-0-4), server 240 are sent to the user terminal 260 message (source
MAC Address is 0-0-2, target MAC (Media Access Control) address 0-0-4) and server 250 be sent to the user terminal 270 message (source MAC
Address is 0-0-3, target MAC (Media Access Control) address 0-0-5), and (source MAC, target MAC (Media Access Control) address) two tuples of CB device statistics
Flow includes:The flow of (0-0-1,0-0-4) is Q11, and the flow of (0-0-2,0-0-4) is Q12, the stream of (0-0-3,0-0-5)
It measures as Q13, then the flow of port set (212,222) is Q11+Q12;The flow of port set (213,223) is Q13, it is assumed that Q11+
Q12 > Q13.
When 220 up going port of PE equipment (port 221) flow congestion, CB equipment 210 can first pass through port 212 and send stream
Measure control message, when server 230 and server 240 receive the flow control messages, reduce half transmission rate, i.e., according to
The 50% of initial transmission rate carries out flow transmission (similarly hereinafter).
After 1 minute, whether still CB equipment 210 can check 220 up going port of PE equipment flow congestion again, if so,
CB equipment 210 when server 250 receives the flow control messages, can be reduced by 213 transmitted traffic control message of port
Half transmission rate;After 1 minute, whether still CB equipment 210 can check 220 up going port of PE equipment flow congestion again, and
When 220 up going port still flow congestion of PE equipment, again by 212 transmitted traffic control message of port, 230 kimonos of server
When business device 240 receives the flow control messages again, then half transmission rate is reduced, i.e., according to the 25% of initial transmission rate
Flow transmission is carried out, and so on, until 220 up going port flow congestion of PE equipment releases.
When 220 up going port flow congestion of PE equipment releases, CB equipment 210 can be sent by port 213 after 5 minutes
Rate recovery notification message when server 250 receives the rate recovery notification message, can restore flow transmission rate.1 point
Zhong Hou, CB equipment 210 can check 220 up going port of PE equipment whether flow congestion, if it is not, then CB equipment 210 can pass through end
Mouthful 212 transmission rates restore notification message, can be with when server 230 and server 240 receive the rate recovery notification message
Restore flow transmission rate.After 1 minute, CB equipment 210 can check 220 up going port of PE equipment whether flow congestion, if it is not, then
Terminate current process.
Wherein, if CB equipment 210 by 212 transmission rate of port restore notification message after, 220 up going port of PE equipment is again
Flow congestion, then CB equipment 210 can be again by 212 transmitted traffic of port control information, to notify server 230 and service
Device 240 reduces flow transmission rate.
Embodiment two,
Fig. 3 is referred to, is a kind of configuration diagram of concrete application scene provided in an embodiment of the present invention, as shown in figure 3,
In the application scenarios, CB equipment 310 is connect by cascade port 311 with the up going port 321 of PE equipment 320, and CB equipment 310 is distinguished
It is connect by 312~port of port 313 with 330~server of server 340, PE equipment 320 passes through 322~port of port respectively
325 connect with 350~user terminal of user terminal 380;Wherein, the MAC Address of 330~server of server 340 is respectively 0-
0-1~0-0-2, the MAC Address of 350~user terminal of user terminal 380 is respectively 0-0-3~0-0-6.
In this embodiment it is assumed that the flow that CB equipment 310 forwards is sent to the user terminal 350 including server 330
Message (source MAC 0-0-1, target MAC (Media Access Control) address 0-0-3), server 330 are sent to the user terminal 360 message (source
MAC Address is 0-0-1, target MAC (Media Access Control) address 0-0-4), server 340 be sent to the user terminal 370 message (source MAC
For 0-0-2, target MAC (Media Access Control) address 0-0-5) and server 340 be sent to the user terminal 380 message (source MAC 0-
0-2, target MAC (Media Access Control) address 0-0-6), and the flow packet of (source MAC, target MAC (Media Access Control) address) two tuples of CB device statistics
It includes:The flow of (0-0-1,0-0-3) is Q21, and the flow of (0-0-1,0-0-4) is Q22, and the flow of (0-0-2,0-0-5) is
Q23, the flow of (0-0-2,0-0-6) is Q24, then the flow of port set (312,322) is Q21;The stream of port set (312,323)
It measures as Q22;The flow of port set (313,324) is Q23;The flow of port set (313,325) is Q24, and target port group 1 (is wrapped
Include port set (312,322) and port set (312,323)) flow for Q21+Q22, target port group 2 is (including port set
(313,324) and port set (313,325)) flow be Q23+Q24;Assuming that Q21+Q22 < Q23.
When 320 up going port of PE equipment (port 321) flow congestion, CB equipment 310 can be first passed through in target port group 2
Including source port (i.e. port 313) transmitted traffic control message, the flow reduction of speed ratio carried in the flow control messages is
40% (similarly hereinafter);When server 340 receives the flow control messages, 40% transmission rate is reduced, i.e., is sent according to initial
The 60% of rate carries out flow transmission (similarly hereinafter).
After 2 minutes, whether still CB equipment 310 can check 320 up going port of PE equipment flow congestion again, if so,
CB equipment 310 when server 330 receives the flow control messages, can be reduced by 312 transmitted traffic control message of port
40% transmission rate;After 2 minutes, whether still CB equipment 310 can check 320 up going port of PE equipment flow congestion again, and
When 320 up going port still flow congestion of PE equipment, again by 313 transmitted traffic control message of port, server 340 is again
When receiving the flow control messages, then 40% transmission rate is reduced, i.e., carry out flow hair according to the 36% of initial transmission rate
It send, and so on, until 320 up going port flow congestion of PE equipment releases.
When 320 up going port flow congestion of PE equipment releases, CB equipment 310 can be sent by port 312 after 10 minutes
Rate recovery notification message when server 330 receives the rate recovery notification message, can restore flow transmission rate.2 points
Zhong Hou, CB equipment 310 can check 320 up going port of PE equipment whether flow congestion, if it is not, then CB equipment 310 can pass through end
313 transmission rates of mouth restore notification message, when server 340 receives the rate recovery notification message, can restore flow hair
Transmission rate.After 1 minute, CB equipment 310 can check 320 up going port of PE equipment whether flow congestion, if it is not, then terminating currently to flow
Journey.
Wherein, if CB equipment 310 by 313 transmission rate of port restore notification message after, 320 up going port of PE equipment is again
Flow congestion, then CB equipment 310 can be again by 313 transmitted traffic of port control information, server 340 to be notified to reduce stream
Measure transmission rate.
By above description as can be seen that in technical solution provided in an embodiment of the present invention, pass through the stream according to forwarding
The source MAC and target MAC (Media Access Control) address of amount carry out port set traffic statistics, when determining ports-Extending equipment up going port flow congestion
When, according to the flow sequence from big to small of target port group, pass sequentially through the source port that each target port group includes and send
Flow control messages, corresponding data-source device to be notified to reduce flow transmission rate, until ports-Extending equipment up going port stream
It measures congestion to release, reduces the network resources waste between data-source device and CB equipment, refined the grain of flow reduction of speed processing
Degree.
Fig. 4 is referred to, is a kind of structure diagram of volume control device provided in an embodiment of the present invention, wherein, the dress
The CB equipment that can be applied in above method embodiment is put, as shown in figure 4, the volume control device can include:
Traffic statistics unit 410, for the source MAC address of the flow according to forwarding and purpose MAC
Location carries out port set traffic statistics;Wherein, port set includes source port and destination interface, and source port is the source that flow is arrived in study
The port of MAC Address, destination interface are the port for the target MAC (Media Access Control) address that flow is arrived in study;
Transmitting element 420, for when determining ports-Extending equipment up going port flow congestion, according to the stream of target port group
The sequence of amount from big to small, passes sequentially through the source port transmitted traffic control message that each target port group includes, with notice pair
The data-source device answered reduces flow transmission rate, until ports-Extending equipment up going port flow congestion releases;Wherein, destination end
The destination interface that mouth group includes belongs to ports-Extending equipment.
In an alternative embodiment, transmitting element 420, specifically for passing through, to carry out flow reduction of speed number of processes minimum, and flows
The source port transmitted traffic control message that the maximum target port group of amount includes, corresponding data-source device to be notified to reduce stream
Measure transmission rate;
Correspondingly, please also refer to 5, the structural representation for another volume control device provided in an embodiment of the present invention
Figure, as shown in figure 5, on the basis of volume control device shown in Fig. 4, volume control device shown in fig. 5 further includes:
Judging unit 430, for judging whether solve in the first preset time rear port expansion equipment up going port flow congestion
It removes;
Transmitting element 420 if being additionally operable to not release, continues through minimum, and the flow that carries out flow reduction of speed number of processes
The source port transmitted traffic control message that maximum target port group includes, corresponding data-source device to be notified to reduce flow
Transmission rate, until ports-Extending equipment up going port flow congestion releases.
In an alternative embodiment, transmitting element 420 are additionally operable to after the second preset time, are carried out according to target port group
Reduction of speed processing sends speed every third preset time from rear to first sequence to the source port that corresponding target port group includes
Rate restores notification message, corresponding data-source device to be notified to restore flow transmission rate, until each carried out what reduction of speed was handled
Target source port completes transmission rate recovery or, ports-Extending equipment up going port flow congestion again;When ports-Extending equipment
Up going port again flow congestion when, the source port included by the target port group for finally carrying out transmission rate recovery sends stream
Control message is measured, corresponding data-source device to be notified to reduce transmission rate.
In an alternative embodiment, the flow of target port group is that the destination interface included belongs to ports-Extending equipment, and
The sum of identical flow of port set of source port.
In an alternative embodiment, flow reduction of speed ratio is carried in flow control messages.
The function of each unit and the realization process of effect specifically refer to and step are corresponded in the above method in above device
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related part is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein illustrating as separating component
Unit may or may not be physically separate, the component shown as unit may or may not be
Physical unit, you can be located at a place or can also be distributed in multiple network element.It can be according to the actual needs
Some or all of module therein is selected to realize the purpose of the present invention program.Those of ordinary skill in the art are not paying wound
In the case that the property made is worked, you can to understand and implement.
As seen from the above-described embodiment, port set is carried out by the source MAC and target MAC (Media Access Control) address of the flow according to forwarding
Traffic statistics, when determining ports-Extending equipment up going port flow congestion, according to flow from big to small suitable of target port group
Sequence passes sequentially through the source port transmitted traffic control message that each target port group includes, to notify corresponding data-source device
Flow transmission rate is reduced, until ports-Extending equipment up going port flow congestion releases, reduces data-source device and CB equipment
Between network resources waste, refined flow reduction of speed processing granularity.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein
Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or
Person's adaptive change follows the general principle of the present invention and including undocumented common knowledge in the art of the invention
Or conventional techniques.Description and embodiments are considered only as illustratively, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is only limited by appended claim.
Claims (10)
1. a kind of flow control methods, which is characterized in that applied to control bridge device, this method includes:
Port set traffic statistics are carried out according to the source MAC address and target MAC (Media Access Control) address of the flow of forwarding;Its
In, the port set includes source port and destination interface, and source port is to learn to the port of the source MAC of flow, destination
Port of the mouth for the target MAC (Media Access Control) address of study to flow;
When determining ports-Extending equipment up going port flow congestion, according to the flow sequence from big to small of target port group, according to
The secondary source port transmitted traffic control message included by each target port group, corresponding data-source device to be notified to reduce stream
Transmission rate is measured, until the ports-Extending equipment up going port flow congestion releases;Wherein, the purpose that target port group includes
Port belongs to the ports-Extending equipment.
2. according to the method described in claim 1, it is characterized in that, the flow according to target source port is from mostly small suitable
Sequence passes sequentially through each target source port transmitted traffic control message, including:
It is minimum by carrying out flow reduction of speed number of processes, and the source port transmitted traffic that the target port group of maximum flow includes
Control message, corresponding data-source device to be notified to reduce flow transmission rate;
Judge whether the ports-Extending equipment up going port flow congestion releases after the first preset time;
If not releasing, continue through and carry out that flow reduction of speed number of processes is minimum, and the target port group of maximum flow includes
Source port transmitted traffic control message, corresponding data-source device to be notified to reduce flow transmission rate, until the port
Expansion equipment up going port flow congestion releases.
3. according to the method described in claim 1, it is characterized in that, the ports-Extending equipment up going port flow congestion releases it
Afterwards, the method further includes:
After the second preset time, reduction of speed processing is carried out from rear to first sequence according to target port group, when third is preset
Between the source port transmission rate that includes to corresponding target port group restore notification message, to notify corresponding data-source device
Restore flow transmission rate, until each target source port for carrying out reduction of speed processing completes transmission rate recovery or, the end
Mouthful expansion equipment up going port flow congestion again;
When the ports-Extending equipment up going port flow congestion again, by the target port for finally carrying out transmission rate recovery
The source port transmitted traffic control message that group includes, corresponding data-source device to be notified to reduce transmission rate.
4. according to claim 1-3 any one of them methods, which is characterized in that the flow of target port group is the purpose included
Port belongs to the ports-Extending equipment, and the sum of identical flow of port set of source port.
5. according to claim 1-3 any one of them methods, which is characterized in that carry flow in the flow control messages
Reduction of speed ratio.
6. a kind of volume control device, which is characterized in that applied to control bridge device, which includes:
Traffic statistics unit is held for the source MAC address and target MAC (Media Access Control) address of the flow according to forwarding
Mouth group traffic statistics;Wherein, the port set includes source port and destination interface, and source port is to learn with arriving the source MAC of flow
The port of location, destination interface are the port for the target MAC (Media Access Control) address that flow is arrived in study;
Transmitting element, for when determining ports-Extending equipment up going port flow congestion, according to the flow of target port group from big
To small sequence, the source port transmitted traffic control message that each target port group includes is passed sequentially through, to notify corresponding number
Flow transmission rate is reduced according to source device, until the ports-Extending equipment up going port flow congestion releases;Wherein, target port
The destination interface that group includes belongs to the ports-Extending equipment.
7. device according to claim 6, which is characterized in that
The transmitting element carries out that flow reduction of speed number of processes is minimum, and the target port group of maximum flow specifically for passing through
The source port transmitted traffic control message included, corresponding data-source device to be notified to reduce flow transmission rate;
Described device further includes:
Judging unit, for judging whether the ports-Extending equipment up going port flow congestion releases after the first preset time;
The transmitting element if being additionally operable to not release, continues through minimum, and the maximum flow that carries out flow reduction of speed number of processes
The source port transmitted traffic control message that includes of target port group, to notify corresponding data-source device reduces flow to send
Rate, until the ports-Extending equipment up going port flow congestion releases.
8. device according to claim 6, which is characterized in that
The transmitting element is additionally operable to after the second preset time, and reduction of speed processing is carried out from rear to first according to target port group
Sequentially, restore notification message to the source port transmission rate that corresponding target port group includes every third preset time, with
Corresponding data-source device is notified to restore flow transmission rate, until each target source port for carrying out reduction of speed processing is completed to send out
Transmission rate restores or, ports-Extending equipment up going port flow congestion again;When the ports-Extending equipment up going port again
During flow congestion, the source port transmitted traffic control included by the target port group for finally carrying out transmission rate recovery disappears
Breath, corresponding data-source device to be notified to reduce transmission rate.
9. according to claim 6-8 any one of them devices, which is characterized in that the flow of target port group is the purpose included
Port belongs to the ports-Extending equipment, and the sum of identical flow of port set of source port.
10. according to claim 6-8 any one of them devices, which is characterized in that carry stream in the flow control messages
Measure reduction of speed ratio.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810266657.0A CN108199975B (en) | 2018-03-28 | 2018-03-28 | Flow control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810266657.0A CN108199975B (en) | 2018-03-28 | 2018-03-28 | Flow control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108199975A true CN108199975A (en) | 2018-06-22 |
CN108199975B CN108199975B (en) | 2022-03-25 |
Family
ID=62596312
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810266657.0A Active CN108199975B (en) | 2018-03-28 | 2018-03-28 | Flow control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108199975B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114189476A (en) * | 2021-01-26 | 2022-03-15 | 长威信息科技发展股份有限公司 | Multi-interface shunting calling method and terminal |
WO2023226532A1 (en) * | 2022-05-24 | 2023-11-30 | 华为技术有限公司 | Congestion control method, and node and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102594676A (en) * | 2012-02-13 | 2012-07-18 | 福建星网锐捷网络有限公司 | Bridge port expansion network and congestion control method thereof, port expander (PE) and control bridge |
CN104869078A (en) * | 2014-02-24 | 2015-08-26 | 美国博通公司 | End to end flow control |
US20150350049A1 (en) * | 2014-05-27 | 2015-12-03 | Huawei Technologies Co., Ltd. | Method and device for generating cnm |
CN105471742A (en) * | 2014-06-20 | 2016-04-06 | 杭州华三通信技术有限公司 | Message processing method and message processing equipment |
CN106330742A (en) * | 2015-06-23 | 2017-01-11 | 华为技术有限公司 | Flow control method and network controller |
-
2018
- 2018-03-28 CN CN201810266657.0A patent/CN108199975B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102594676A (en) * | 2012-02-13 | 2012-07-18 | 福建星网锐捷网络有限公司 | Bridge port expansion network and congestion control method thereof, port expander (PE) and control bridge |
CN104869078A (en) * | 2014-02-24 | 2015-08-26 | 美国博通公司 | End to end flow control |
US20150350049A1 (en) * | 2014-05-27 | 2015-12-03 | Huawei Technologies Co., Ltd. | Method and device for generating cnm |
CN105471742A (en) * | 2014-06-20 | 2016-04-06 | 杭州华三通信技术有限公司 | Message processing method and message processing equipment |
CN106330742A (en) * | 2015-06-23 | 2017-01-11 | 华为技术有限公司 | Flow control method and network controller |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114189476A (en) * | 2021-01-26 | 2022-03-15 | 长威信息科技发展股份有限公司 | Multi-interface shunting calling method and terminal |
CN114189476B (en) * | 2021-01-26 | 2023-12-08 | 长威信息科技发展股份有限公司 | Multi-element interface shunting calling method and terminal |
WO2023226532A1 (en) * | 2022-05-24 | 2023-11-30 | 华为技术有限公司 | Congestion control method, and node and system |
Also Published As
Publication number | Publication date |
---|---|
CN108199975B (en) | 2022-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9961003B2 (en) | Method and apparatus for providing congestion management for a wireless communication network | |
US10554570B2 (en) | Method and device for implementing QoS in OpenFlow network | |
WO2019033857A1 (en) | Packet control method and network device | |
CN107342906B (en) | Elephant flow detection method, equipment and system | |
CN108833293B (en) | Data center congestion control method and device based on Software Defined Network (SDN) | |
JP5372615B2 (en) | Packet transfer system, network management device, and edge node | |
CN103999414B (en) | A kind of method and apparatus of attribution for the congestion contribution of the shared resource of relative users register | |
CN105391567A (en) | Traffic management implementation method and device, and network equipment | |
WO2017035717A1 (en) | Distributed denial of service attack detection method and associated device | |
CN110225474A (en) | A kind of data volume report method under multi-connection | |
CN106330742A (en) | Flow control method and network controller | |
JP2006506845A (en) | How to select a logical link for a packet in a router | |
WO2020244422A1 (en) | Queue congestion control method, apparatus, device and storage medium | |
WO2021244247A1 (en) | Data message forwarding method, network node, system, and storage medium | |
CN102984035A (en) | Loopback test method and system of packet loss probability of network data | |
US20170033978A1 (en) | Method and device for processing communication path | |
CN108199975A (en) | A kind of flow control methods and device | |
WO2016062067A1 (en) | User message forwarding control method and processing node | |
CN103096386B (en) | Data business flow control method based on signaling analyzing | |
RU2580395C2 (en) | System and method for realizing end-to-end hierarchical quality of service | |
CN106464670A (en) | Network entity and service policy management method | |
CN110838986B (en) | Method, equipment and system for balancing LACP load | |
Buzhin et al. | Evaluation of Telecommunication Equipment Delays in Software-Defined Networks | |
CN107404454A (en) | Speech quality method of adjustment and device | |
CN102480471A (en) | Method for realizing QoS (quality of service) processing in monitoring RRPP (rapid ring protection protocol) ring and network node |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230626 Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd. Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466 Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd. |