CN106330742A - Flow control method and network controller - Google Patents
Flow control method and network controller Download PDFInfo
- Publication number
- CN106330742A CN106330742A CN201510350244.7A CN201510350244A CN106330742A CN 106330742 A CN106330742 A CN 106330742A CN 201510350244 A CN201510350244 A CN 201510350244A CN 106330742 A CN106330742 A CN 106330742A
- Authority
- CN
- China
- Prior art keywords
- control
- flow
- terminal
- switch
- priority
- 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
Abstract
The embodiment of the invention discloses a flow control method. The flow control method comprises the following steps: detecting flow control types supported by terminals, wherein the flow control types comprise flow control based on pause, flow control based on priority and flow control based on a quantitative congestion notification protocol; if a switch detects network congestion of an outlet end or an inlet end, receiving a first flow control frame reported by the switch; determining the flow control type supported by the terminal corresponding to the outlet end or the inlet end according to information carried in a data packet in the first flow control frame; and generating a corresponding type of second flow control frame according to the flow control type of the terminal, and forwarding the second flow control frame to the terminal through the switch. The embodiment of the invention further discloses a network controller. By adoption of the flow control method and the network controller disclosed by the invention, the problem of sharp drop of network throughput during network congestion can be solved.
Description
Technical field
The present invention relates to communication technical field, particularly relate to method and the network controller of a kind of flow-control.
Background technology
There is the traffic model of " many-one " in current enterprise's application, one of its effect is to increase
Macroreticular tells the amount of gulping down.But being as increasing of server, multiple servers may transmit data to identical simultaneously
Recipient.In the face of the impact of burst flow, network can occur to block and cause Network Packet Loss and re-transmission.Lead
The handling capacity causing network is greatly reduced on the contrary.Such as, terminal needs the data of request to be distributed in multiple server
On, therefore terminal needs to obtain different data blocks successively from different servers.When terminal is from No. 1 service
When 1 number block asked by device, make 1 number block packet loss owing to choke point occurs congested, at this moment, terminal
Request 1 number block can be retransmitted after time-out waiting, during waiting and retransmitting, other servers with
The link of terminal will be in idle condition and wait that 1 number block has retransmitted.When waiting this section retransmitted
In between, the utilization rate of link is well below the bandwidth of link itself, under making the handling capacity of network acutely simultaneously
Fall, generally reduces an order of magnitude, i.e. exceedes some when transmission side's interstitial content, network congestion occurs
Time, the handling capacity of recipient will drastically decline.
Summary of the invention
The embodiment of the present invention provides method and the network controller of a kind of flow-control, during to solve network congestion,
Network gulps down the problem that tolerance drastically declines.
First aspect present invention provides a kind of method of flow-control, including:
Detecting the flow-control type that each terminal is supported, described flow-control type includes based on the stream suspended
Amount control, flow-control based on priority and flow-control based on quantization congestion notification agreement;
If switch detects out port or inbound port generation network congestion, then desampler report first
Flow control frames;
The information carried according to packet in described first-class control frame determine with described go out port or inbound port corresponding
The flow-control type supported of terminal;
Flow-control type according to described terminal is generated the second flow control frames of corresponding types and is turned by switch
Send to described terminal.
In conjunction with the implementation of first aspect, in the first possible implementation of first aspect, described inspection
Survey the flow-control type that each terminal is supported, including:
The packet of the terminal that desampler reports, resolves the packet header of packet;
If comprising CN-TAG field in described packet header, the most described terminal support is based on quantifying congestion notification agreement
Flow-control;
If described packet header comprises VLAN field, then generate the second control of flow-control based on priority
Frame is also sent to described terminal by switch, retransmit arp request bag give described terminal, if
Not receiving address resolution protocol response bag in the first Preset Time, the most described terminal support is based on priority
Flow-control;
If described packet header does not comprise VLAN field, then send second control based on the flow-control suspended
Frame to switch so that described in go out port and inbound port and suspend and send data, retransmit arp request
Bag is to described terminal, if not receiving address resolution protocol response bag, the most described terminal in the second Preset Time
Support based on the flow-control suspended.
In conjunction with first aspect or the first possible implementation of first aspect, can at first aspect the second
In the implementation of energy, when the flow-control type that each terminal of described detection is supported, also include:
The packet of each terminal reported according to switch obtains the positional information of each terminal, wherein, institute
State positional information and include the edge switch identification letter of the media access control address of terminal, terminal respective links
Breath and switch ports themselves information;
The flow-control type supported according to each terminal and the positional information of each terminal, generate stream control table
And preserve.
In conjunction with first aspect or first aspect the first to the arbitrary possible implementation of the second, first
In the third possible implementation of aspect, if described first-class control frame is based on quantifying congestion notification agreement
The flow control frames of flow-control, the most described information carried according to packet in described first-class control frame determines and institute
State out port or flow-control type that terminal corresponding to inbound port is supported, including:
Resolve the source media access control address in described packet, by described source media access control address with
Information in described stream control table is mated, determine with described go out port or terminal corresponding to inbound port supported
Flow-control type;
If the flow control frames that described first-class control frame is flow-control based on priority, and connect in Preset Time
When receiving the first-class control frame that at least two switch adjacent in data link reports, just carry out flow-control.
In conjunction with first aspect or first aspect the first to the third arbitrary possible implementation, first
In the 4th kind of possible implementation of aspect, when sending flow control based on priority by switch to terminal
System or based on when quantifying second flow control frames of flow-control of congestion notification agreement, select stream that priority is low or
The tunnel that priority is low carries out flow-control.
Second aspect present invention provides a kind of network controller, including:
Detector unit, for detecting the flow-control type that each terminal is supported, described flow-control type bag
Include based on the flow-control suspended, flow-control based on priority and stream based on quantization congestion notification agreement
Amount controls;
Receiving unit, if port or inbound port generation network congestion being detected out for switch, then receiving friendship
Change planes the first-class control frame reported;
Determining unit, the information for carrying according to packet in described first-class control frame determines to go out to hold with described
Mouthful or the flow-control type supported of terminal corresponding to inbound port;
Signal generating unit, generates the second flow control frames of corresponding types for the flow-control type according to described terminal
And it is forwarded to described terminal by switch.
In conjunction with the implementation of second aspect, in the first possible implementation of second aspect, described inspection
Survey unit specifically for:
The packet of the terminal that desampler reports, resolves the packet header of packet;
If comprising CN-TAG field in described packet header, the most described terminal support is based on quantifying congestion notification agreement
Flow-control;
If described packet header comprises VLAN field, then generate the second control of flow-control based on priority
Frame is also sent to described terminal by switch, retransmit arp request bag give described terminal, if
Not receiving address resolution protocol response bag in the first Preset Time, the most described terminal support is based on priority
Flow-control;
If described packet header does not comprise VLAN field, then send second control based on the flow-control suspended
Frame to switch so that described in go out port and inbound port and suspend and send data, retransmit arp request
Bag is to described terminal, if not receiving address resolution protocol response bag, the most described terminal in the second Preset Time
Support based on the flow-control suspended.
In conjunction with second aspect or the first possible implementation of second aspect, can at second aspect the second
In the implementation of energy, also include:
Acquiring unit, the packet of each terminal for reporting according to switch obtains the position of each terminal
Information, wherein, described positional information includes the media access control address of terminal, the limit of terminal respective links
Edge switch identification information and switch ports themselves information;
Storage unit, for the position of the flow-control type supported according to each terminal and each terminal letter
Breath, generates stream control table and preserves.
In conjunction with second aspect or second aspect the first to the arbitrary possible implementation of the second, second
In the third possible implementation of aspect, if described first-class control frame is based on quantifying congestion notification agreement
The flow control frames of flow-control, the most described determine unit specifically for:
Resolve the source media access control address in described packet, by described source media access control address with
Information in described stream control table is mated, determine with described go out port or terminal corresponding to inbound port supported
Flow-control type;
If the flow control frames that described first-class control frame is flow-control based on priority, and institute in Preset Time
State reception unit when receiving the first-class control frame that at least two switch adjacent in data link reports, institute
State network controller and just carry out flow-control.
In conjunction with second aspect or second aspect the first to the third arbitrary possible implementation, second
In the 4th kind of possible implementation of aspect, when described signal generating unit is sent based on excellent to terminal by switch
When the flow-control of first level or the second flow control frames based on the flow-control quantifying congestion notification agreement, select excellent
Stream that first level is low or the low tunnel of priority carry out flow-control.
Implement the embodiment of the present invention, have the advantages that
By detection terminal support flow-control type, and set switch detect simultaneously port and enter end
The network congestion of mouth, when there is network congestion, the first-class control frame that desampler reports, determine
There is the flow-control type that the terminal of network congestion is supported, thus send most suitable second for this terminal
Flow control frames is so that terminal reduces packet sending speed or stopping is given out a contract for a project, in the network environment being used in mixed way fluidics,
Simply, network congestion problem is solved efficiently;And switch inbound port and go out port traffic control technology can be with
Time work, threshold value arrange can be independent of each other.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, institute in embodiment being described below
The accompanying drawing used is needed to be briefly described, it should be apparent that, the accompanying drawing in describing below is only the present invention
Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work,
Other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the first embodiment of the method that inventive flow controls;
Fig. 2 is the schematic flow sheet of the second embodiment of the method that inventive flow controls;
Fig. 3 is the schematic flow sheet of the 3rd embodiment of the method that inventive flow controls;
Fig. 4 is the composition schematic diagram of the first embodiment of inventive network controller;
Fig. 5 is the composition schematic diagram of the second embodiment of inventive network controller;
Fig. 6 is the composition schematic diagram of the 3rd embodiment of inventive network controller.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
Chu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather than
Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation
The every other embodiment obtained under property work premise, broadly falls into the scope of protection of the invention.
Refer to Fig. 1, for the schematic flow sheet of first embodiment of the method that inventive flow controls, in this reality
Executing in example, described method includes:
S101, detects the flow-control type that each terminal is supported.
Described flow-control type includes based on flow-control, flow-control based on priority and the base suspended
In the flow-control quantifying congestion notification agreement.
Wherein, based on the flow-control i.e. PAUSE technology suspended, fixed in IEEE 802.3x standard document
Justice, is the flow control method of FDX Ethernet data link layer.When client terminal is after server sends request,
When its own system or network produce congested, it can send flow control frames based on the flow-control suspended to server
I.e. PAUSE frame, to delay server to transmit to the data of client terminal.
Flow-control based on priority (Priority-based Flow Control is called for short PFC),
Defined in IEEE802.1Qbb standard document, it is that the mechanism of the time-out to conventional flow control (PAUSE technology) is a kind of
Strengthen.Compared with traditional flow-control mechanism, when occurring congested, conventional flow control can stop the institute on a link
There is a flow, and PFC allows to create 8 tunnels on an ethernet link, and be every and virtual lead to
An IEEE802.1P priority level is specified in road, it is allowed to individually suspends and restarts the most any one tunnel,
Allow the flow of other tunnel without interrupting passing through simultaneously.This method enables the network to as single virtual chain
Road creates the service without packet loss classification so that it is can coexist with other discharge pattern on same interface.
Based on quantifying congestion notification agreement (Quantized Congestion Notification is called for short QCN)
Flow-control be Congestion Managment defined in IEEE802.1Qau standard.Relative to other congestion managements
Technology, QCN have employed the mechanism of congestion notification the most backward, at core network device based on going out port team
Row arrange congestion detection point, detect that congestion notification message CNM comprising Congestion Level SPCC is then set up in congested generation,
And send to causing congested source terminal, make it reduce the data transfer rate of respective streams according to CNM instruction.
The purpose of PFC is to realize the Lossless transport of " zero packet loss ".Its advantage is based on full duplex, and reaction is fast,
Can rapid recovery congested, for process network traffics surge be good selection.But PFC solves the most at all
Certainly problem, also results in congested diffusion.PFC is relatively suitable for small-scale network environment.
QCN is mainly the support to this agreement by bridging device and terminal unit, it is achieved backward congestion accurate
Control.The use of this agreement can fundamentally solve the congestion problems of network, finds and causes congested source to be saved
Point, and notify that it reduces speed;Shortcoming is because CNM message often wants across a network multinode to transmit, and reaction is relatively
Slowly, generally requiring a period of time after congested generation could produce remarkable result.Being used in combination of QCN with PFC is
One good solution, on the one hand PFC can rapid recovery network congestion problem, on the other hand, QCN
Solution congestion problems that can be basic.QCN can regard the supplementary solution of PFC as.
When the network interface card of terminal and server supports one or more flow-control types, just can be used this
Method described in bright embodiment carries out flow-control, and it the most just needs detection each terminal of understanding to be supported
Flow-control type.
S102, if switch detects out port or inbound port generation network congestion, then desampler reports
First-class control frame.
In a network, can comprise one or more switch, multiple switches can network consisting topological structure.
When the link of the reception data of terminal sends congested, it is in the switch on this link and just can detect it and go out
The network transmission situation of port and inbound port.When switch detects that port (enter or go out) will block
Time, report first-class control frame to network controller, wherein comprise packet.
Specifically, need to detect the network condition of port and inbound port due to switch simultaneously, it is therefore desirable to
Open switch and go out the QCN function of port, and configuration goes out port queue cache threshold accordingly.
And the PFC function of unlatching switch inbound port, and configure based on priority query's caching accordingly
Threshold value.
So, when going out port and triggering QCN stream control, switch reports first-class control frame i.e. to network controller
CNM frame and packet.
When inbound port triggers PFC stream control, switch first upstream exchanges, and the most upwards a node device sends
PFC flow control frames makes it suspend data transmission based on pre-set priority queue, reports PFC to network controller simultaneously
Flow control frames and packet.
And after edge switch receives the issuing message that network controller sends, send second directly to terminal
Flow control frames carries out flow-control with notice terminal according to the second flow control frames.
S103, the information carried according to packet in described first-class control frame determine with described go out port or enter end
The flow-control type that the terminal that mouth is corresponding is supported.
Alternatively, the information that in described first-class control frame, packet carries can be the identification information such as matchmaker of terminal
Body accesses and controls (Media Access Control is called for short MAC) the address i.e. physical address of terminal.Due to
The flow-control Control Cooling that each terminal is supported is had learned that, therefore according to packet in step S101
In information just can know and send the terminal of packet and then know the flow-control type that this terminal is supported.
S104, generates the second flow control frames of corresponding types and by handing over according to the flow-control type of described terminal
Change planes and be forwarded to described terminal.
After network controller finds terminal according to the information in packet, the flow-control supported further according to it
Type sends corresponding second flow control frames, thus quickly, accurately controls certain stream or certain terminal reduces and gives out a contract for a project
Speed or stopping are given out a contract for a project.Solve packet loss problem that is congested under large-scale network environment and that cause efficiently.
Such as, terminal support PFC flow-control mechanism, network controller will PFC flow control frames, terminal support
PAUSE flow-control mechanism, network controller will PAUSE flow control frames, terminal support QCN flow-control mechanism,
Network controller will be special for QCN CNM flow control frames.
Therefore, the flow-control type supported by detection terminal, and set switch and detect simultaneously
Port and the network congestion of inbound port, when there is network congestion, it is first-class that desampler reports
Control frame, determines the flow-control type occurring the terminal of network congestion to be supported, thus sends for this terminal
Suitable second flow control frames, so that terminal reduces packet sending speed or stopping is given out a contract for a project, is being used in mixed way fluidics
In network environment, solve network congestion problem simply, efficiently;And switch inbound port and go out port flow
Control technology can work simultaneously, and threshold value arranges and can be independent of each other.
Refer to Fig. 2, for the schematic flow sheet of the second embodiment of the method that inventive flow controls.In this reality
Executing in example, described method includes:
S201, the packet of the terminal that desampler reports, the packet header of packet is resolved.
S202, if comprising CN-TAG field in described packet header, the most described terminal support is congested logical based on quantifying
Know the flow-control of agreement.
Wherein, CN-TAG field is QCN special code.When being found to have CN-TAG field, illustrate to send out
End of making arrangements for his funeral supports QCN stream control;When without CN-TAG field, continue detection.
S203, if comprising VLAN field in described packet header, then generates the of flow-control based on priority
Two flow control frames are also sent to described terminal by switch, retransmit arp request bag to described end
End, if not receiving address resolution protocol response bag in the first Preset Time, the most described terminal support is based on excellent
The flow-control of first level.
Specifically, when finding VLAN field, extract VLAN-ID and PCP field (corresponding priority
Tunnel), wherein, the first Preset Time is a PFC stream control time out.
S204, if not comprising VLAN field in described packet header, then sends based on the flow-control suspended the
Two flow control frames to switch so that described in go out port and inbound port and suspend and send data, retransmit address resolution association
View request bag is to described terminal, if not receiving address resolution protocol response bag, then institute in the second Preset Time
State terminal support based on the flow-control suspended.
Wherein, the first Preset Time is a PAUSE stream control time out.
Specifically, address resolution protocol (Address Resolution Protocol, the letter that network controller sends
Claim ARP) request bag part field, as following table arrange:
Dst MAC | Src MAC | Sender IP | Target IP |
ff:ff:ff:ff:ff:ff | Controller MAC | 0.0.0.0 | Host IP |
Dst MAC arranges and helps F.
Target IP is the IP address of detected terminal.
Src MAC is the MAC Address of network controller.
S205, if switch detects out port or inbound port generation network congestion, then desampler reports
First-class control frame.
S206, the information carried according to packet in described first-class control frame determine with described go out port or enter end
The flow-control type that the terminal that mouth is corresponding is supported.
S207, generates the second flow control frames of corresponding types and by handing over according to the flow-control type of described terminal
Change planes and be forwarded to described terminal.
In the present embodiment, the flow-control class of each terminal support is detected by resolving the packet header of packet
Type, simple and convenient, testing result is accurate.
Refer to Fig. 3, for the schematic flow sheet of the 3rd embodiment of the method that inventive flow controls, in this reality
Executing in example, described method includes:
S301, the packet of the terminal that desampler reports, the packet header of packet is resolved.
S302, if comprising CN-TAG field in described packet header, the most described terminal support is congested logical based on quantifying
Know the flow-control of agreement.
S303, if comprising VLAN field in described packet header, then generates the of flow-control based on priority
Two flow control frames are also sent to described terminal by switch, retransmit arp request bag to described end
End, if not receiving address resolution protocol response bag in the first Preset Time, the most described terminal support is based on excellent
The flow-control of first level.
S304, if not comprising VLAN field in described packet header, then sends based on the flow-control suspended the
Two flow control frames to switch so that described in go out port and inbound port and suspend and send data, retransmit address resolution association
View request bag is to described terminal, if not receiving address resolution protocol response bag, then institute in the second Preset Time
State terminal support based on the flow-control suspended.
S305, the packet of each terminal reported according to switch obtains the positional information of each terminal.
Wherein, described positional information includes the media access control address of terminal, the edge of terminal respective links
Switch identification information and switch ports themselves information.
It should be noted that this step can be carried out with step S301 simultaneously, it is also possible to the most successively carry out,
The embodiment of the present invention is not limited in any way.
S306, the flow-control type supported according to each terminal and the positional information of each terminal, generate
Stream control table also preserves.
The composition of stream control table can refer to following table:
S307, if switch detects out port or inbound port generation network congestion, then desampler reports
First-class control frame.
S308, if described first-class control frame is flow control frames based on the flow-control quantifying congestion notification agreement,
Then resolve the source media access control address in described packet, by described source media access control address and institute
The information stated in stream control table is mated, determine with described go out port or terminal corresponding to inbound port supported
Flow-control type, and send the second flow control frames of correspondence.
If the flow control frames that S309 described first-class control frame is flow-control based on priority, and when default
In when receiving the first-class control frame that at least two switch adjacent in data link reports, just flow
Amount controls.
Flow-control herein specifically can include that terminal supports determination and second flow control frames of flow-control type
Generation and transmission.
In this way it can be ensured that in the case of solving network short-term surge, regulate giving out a contract for a project of terminal the most easily
Speed.Improve the utilization rate of bandwidth to greatest extent.
And when sending flow-control based on priority or based on quantifying congestion notification association by switch to terminal
During second flow control frames of flow-control of view, stream that priority is low or the low tunnel of priority is selected to carry out
Flow-control.Such that it is able to effectively ensure high priority flows or the service quality of high-priority channel packet.
Refer to Fig. 4, for the composition schematic diagram of the first embodiment of inventive network controller, at the present embodiment
In, described network controller includes:
Detector unit 100, for detecting the flow-control type that each terminal is supported, described flow-control type
Including based on the flow-control suspended, flow-control of based on priority and based on quantifying congestion notification agreement
Flow-control;
Receiving unit 200, if port or inbound port generation network congestion being detected out for switch, then receiving
The first-class control frame that switch reports;
Determine unit 300, the information for carrying according to packet in described first-class control frame determine with described go out
The flow-control type that port or terminal corresponding to inbound port are supported;
Signal generating unit 400, generates the second control of corresponding types for the flow-control type according to described terminal
Frame is also forwarded to described terminal by switch.
Alternatively, described detector unit 100 specifically for:
The packet of the terminal that desampler reports, resolves the packet header of packet;
If comprising CN-TAG field in described packet header, the most described terminal support is based on quantifying congestion notification agreement
Flow-control;
If described packet header comprises VLAN field, then generate the second control of flow-control based on priority
Frame is also sent to described terminal by switch, retransmit arp request bag give described terminal, if
Not receiving address resolution protocol response bag in the first Preset Time, the most described terminal support is based on priority
Flow-control;
If described packet header does not comprise VLAN field, then send second control based on the flow-control suspended
Frame to switch so that described in go out port and inbound port and suspend and send data, retransmit arp request
Bag is to described terminal, if not receiving address resolution protocol response bag, the most described terminal in the second Preset Time
Support based on the flow-control suspended.
Refer to Fig. 5, for the composition schematic diagram of the second embodiment of inventive network controller, at the present embodiment
In, described network controller includes:
Detector unit 100, for detecting the flow-control type that each terminal is supported, described flow-control type
Including based on the flow-control suspended, flow-control of based on priority and based on quantifying congestion notification agreement
Flow-control;
Receiving unit 200, if port or inbound port generation network congestion being detected out for switch, then receiving
The first-class control frame that switch reports;
Determine unit 300, the information for carrying according to packet in described first-class control frame determine with described go out
The flow-control type that port or terminal corresponding to inbound port are supported;
Signal generating unit 400, generates the second control of corresponding types for the flow-control type according to described terminal
Frame is also forwarded to described terminal by switch.
And, acquiring unit 500, the packet of each terminal for reporting according to switch obtains each eventually
The positional information of end, wherein, described positional information includes that the media access control address of terminal, terminal are corresponding
The edge switch identification information of link and switch ports themselves information;
Storage unit 600, for the flow-control type supported according to each terminal and the position of each terminal
Information, generates stream control table and preserves.
Alternatively, described detector unit 100 specifically for:
The packet of the terminal that desampler reports, resolves the packet header of packet;
If comprising CN-TAG field in described packet header, the most described terminal support is based on quantifying congestion notification agreement
Flow-control;
If described packet header comprises VLAN field, then generate the second control of flow-control based on priority
Frame is also sent to described terminal by switch, retransmit arp request bag give described terminal, if
Not receiving address resolution protocol response bag in the first Preset Time, the most described terminal support is based on priority
Flow-control;
If described packet header does not comprise VLAN field, then send second control based on the flow-control suspended
Frame to switch so that described in go out port and inbound port and suspend and send data, retransmit arp request
Bag is to described terminal, if not receiving address resolution protocol response bag, the most described terminal in the second Preset Time
Support based on the flow-control suspended.
If described first-class control frame is flow control frames based on the flow-control quantifying congestion notification agreement, then described
Determine unit 300 specifically for:
Resolve the source media access control address in described packet, by described source media access control address with
Information in described stream control table is mated, determine with described go out port or terminal corresponding to inbound port supported
Flow-control type;
If the flow control frames that described first-class control frame is flow-control based on priority, and institute in Preset Time
State reception unit 200 when receiving the first-class control frame that at least two switch adjacent in data link reports,
Described network controller just carries out flow-control.
Alternatively, flow control of based on priority is sent by switch to terminal when described signal generating unit 400
System or based on when quantifying second flow control frames of flow-control of congestion notification agreement, select stream that priority is low or
The tunnel that priority is low carries out flow-control.
It should be noted that above detector unit 100, receive unit 200, determine unit 300, generate single
Unit 400, acquiring unit 500 and storage unit 600 can be individually present, it is also possible to integrally disposed, and with
Detector unit 100 in upper network controller embodiments, receive unit 200, determine unit 300, signal generating unit
400, acquiring unit 500 or storage unit 600 can be in the form of hardware independent of the process of network controller
Device is separately provided, and the form that arranges can be with the form being microprocessor;Net can also be embedded in the form of hardware
In the processor of network controller, it is also possible to be stored in a software form in the memorizer of network controller, in order to
Processor in network controller call execution above detector unit 100, receive unit 200, determine unit 300,
Signal generating unit 400 acquiring unit 500 or the operation of storage unit 600 correspondence.
Such as, in second embodiment (embodiment shown in Fig. 5) of inventive network controller, detection
Unit 100 can be the processor of network controller, and determines unit 300, signal generating unit 400 acquiring unit
500 or the function of storage unit 600 can be embedded in this processor, it is also possible to individually set independent of processor
Put, it is also possible to be stored in the form of software in memorizer, processor call and realize its function.Certainly,
Receive unit 200 and can be integral to the processor setting, it is also possible to be independently arranged, or be also used as network
The interface circuit of controller, is independently arranged or integrally disposed.The embodiment of the present invention does not do any restriction.Above
Processor can be CPU (CPU), microprocessor, single-chip microcomputer etc..
Refer to Fig. 6, for the composition schematic diagram of the 3rd embodiment of inventive network controller, at the present embodiment
In, described network controller includes:
Input equipment 10, output device 20, memorizer 30 and processor 40.Wherein, described memorizer 30
For storing batch processing code, described processor 40 is for calling the program of storage in described memorizer 30
Code, any operation in the method first that execution inventive flow controls to the 3rd embodiment.
It should be noted that each embodiment in this specification all uses the mode gone forward one by one to describe, Mei Geshi
Execute that example stresses is all the difference with other embodiments, identical similar portion between each embodiment
Divide and see mutually.For device embodiment, due to itself and embodiment of the method basic simlarity, so
Describe is fairly simple, and relevant part sees the part of embodiment of the method and illustrates.
By the description of above-described embodiment, the invention have the advantages that
By detection terminal support flow-control type, and set switch detect simultaneously port and enter end
The network congestion of mouth, when there is network congestion, the first-class control frame that desampler reports, determine
There is the flow-control type that the terminal of network congestion is supported, thus send most suitable second for this terminal
Flow control frames is so that terminal reduces packet sending speed or stopping is given out a contract for a project, in the network environment being used in mixed way fluidics,
Simply, network congestion problem is solved efficiently;And switch inbound port and go out port traffic control technology can be with
Time work, threshold value arrange can be independent of each other.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method,
Can be by computer program and complete to instruct relevant hardware, described program can be stored in a calculating
In machine read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.
Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory,
Or random store-memory body (Random Access Memory, RAM) etc. ROM).
Above disclosed be only present pre-ferred embodiments, certainly can not with this limit the present invention it
Interest field, the equivalent variations therefore made according to the claims in the present invention, still belong to the scope that the present invention is contained.
Claims (10)
1. the method for a flow-control, it is characterised in that including:
Detecting the flow-control type that each terminal is supported, described flow-control type includes based on the stream suspended
Amount control, flow-control based on priority and flow-control based on quantization congestion notification agreement;
If switch detects out port or inbound port generation network congestion, then desampler report first
Flow control frames;
The information carried according to packet in described first-class control frame determine with described go out port or inbound port corresponding
The flow-control type supported of terminal;
Flow-control type according to described terminal is generated the second flow control frames of corresponding types and is turned by switch
Send to described terminal.
2. the method for claim 1, it is characterised in that the flow that each terminal of described detection is supported
Control Cooling, including:
The packet of the terminal that desampler reports, resolves the packet header of packet;
If comprising CN-TAG field in described packet header, the most described terminal support is based on quantifying congestion notification agreement
Flow-control;
If described packet header comprises VLAN field, then generate the second control of flow-control based on priority
Frame is also sent to described terminal by switch, retransmit arp request bag give described terminal, if
Not receiving address resolution protocol response bag in the first Preset Time, the most described terminal support is based on priority
Flow-control;
If described packet header does not comprise VLAN field, then send second control based on the flow-control suspended
Frame to switch so that described in go out port and inbound port and suspend and send data, retransmit arp request
Bag is to described terminal, if not receiving address resolution protocol response bag, the most described terminal in the second Preset Time
Support based on the flow-control suspended.
3. method as claimed in claim 2, it is characterised in that at the stream that each terminal of described detection is supported
During amount Control Cooling, also include:
The packet of each terminal reported according to switch obtains the positional information of each terminal, wherein, institute
State positional information and include the edge switch identification letter of the media access control address of terminal, terminal respective links
Breath and switch ports themselves information;
The flow-control type supported according to each terminal and the positional information of each terminal, generate stream control table
And preserve.
4. method as claimed in claim 3, it is characterised in that
If described first-class control frame is flow control frames based on the flow-control quantifying congestion notification agreement, then described
The information carried according to packet in described first-class control frame determine with described go out port or end corresponding to inbound port
The flow-control type that end is supported, including:
Resolve the source media access control address in described packet, by described source media access control address with
Information in described stream control table is mated, determine with described go out port or terminal corresponding to inbound port supported
Flow-control type;
If the flow control frames that described first-class control frame is flow-control based on priority, and connect in Preset Time
When receiving the first-class control frame that at least two switch adjacent in data link reports, just carry out flow-control.
5. the method as described in any one of claim 1-4, it is characterised in that when by switch to terminal
Send flow-control based on priority or the second flow control frames based on the flow-control quantifying congestion notification agreement
Time, select the low stream of priority or the low tunnel of priority to carry out flow-control.
6. a network controller, it is characterised in that including:
Detector unit, for detecting the flow-control type that each terminal is supported, described flow-control type bag
Include based on the flow-control suspended, flow-control based on priority and stream based on quantization congestion notification agreement
Amount controls;
Receiving unit, if port or inbound port generation network congestion being detected out for switch, then receiving friendship
Change planes the first-class control frame reported;
Determining unit, the information for carrying according to packet in described first-class control frame determines to go out to hold with described
Mouthful or the flow-control type supported of terminal corresponding to inbound port;
Signal generating unit, generates the second flow control frames of corresponding types for the flow-control type according to described terminal
And it is forwarded to described terminal by switch.
7. network controller as claimed in claim 6, it is characterised in that described detector unit specifically for:
The packet of the terminal that desampler reports, resolves the packet header of packet;
If comprising CN-TAG field in described packet header, the most described terminal support is based on quantifying congestion notification agreement
Flow-control;
If described packet header comprises VLAN field, then generate the second control of flow-control based on priority
Frame is also sent to described terminal by switch, retransmit arp request bag give described terminal, if
Not receiving address resolution protocol response bag in the first Preset Time, the most described terminal support is based on priority
Flow-control;
If described packet header does not comprise VLAN field, then send second control based on the flow-control suspended
Frame to switch so that described in go out port and inbound port and suspend and send data, retransmit arp request
Bag is to described terminal, if not receiving address resolution protocol response bag, the most described terminal in the second Preset Time
Support based on the flow-control suspended.
8. network controller as claimed in claim 7, it is characterised in that also include:
Acquiring unit, the packet of each terminal for reporting according to switch obtains the position of each terminal
Information, wherein, described positional information includes the media access control address of terminal, the limit of terminal respective links
Edge switch identification information and switch ports themselves information;
Storage unit, for the position of the flow-control type supported according to each terminal and each terminal letter
Breath, generates stream control table and preserves.
9. network controller as claimed in claim 8, it is characterised in that
If described first-class control frame is flow control frames based on the flow-control quantifying congestion notification agreement, then described
Determine unit specifically for:
Resolve the source media access control address in described packet, by described source media access control address with
Information in described stream control table is mated, determine with described go out port or terminal corresponding to inbound port supported
Flow-control type;
If the flow control frames that described first-class control frame is flow-control based on priority, and institute in Preset Time
State reception unit when receiving the first-class control frame that at least two switch adjacent in data link reports, institute
State network controller and just carry out flow-control.
10. the network controller as described in any one of claim 6-9, it is characterised in that generate list when described
Unit sends flow-control based on priority or based on the stream quantifying congestion notification agreement by switch to terminal
During the second flow control frames that amount controls, the low stream of priority or the low tunnel of priority is selected to carry out flow control
System.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510350244.7A CN106330742B (en) | 2015-06-23 | 2015-06-23 | Flow control method and network controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510350244.7A CN106330742B (en) | 2015-06-23 | 2015-06-23 | Flow control method and network controller |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106330742A true CN106330742A (en) | 2017-01-11 |
CN106330742B CN106330742B (en) | 2019-12-06 |
Family
ID=57728244
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510350244.7A Active CN106330742B (en) | 2015-06-23 | 2015-06-23 | Flow control method and network controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106330742B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107948103A (en) * | 2017-11-29 | 2018-04-20 | 南京大学 | A kind of interchanger PFC control methods and control system based on prediction |
CN108199975A (en) * | 2018-03-28 | 2018-06-22 | 新华三技术有限公司 | A kind of flow control methods and device |
CN109981471A (en) * | 2017-12-27 | 2019-07-05 | 华为技术有限公司 | A kind of method, apparatus and system for alleviating congestion |
CN111835652A (en) * | 2019-04-17 | 2020-10-27 | 华为技术有限公司 | Method and device for setting virtual channel of data stream |
CN112039798A (en) * | 2020-08-24 | 2020-12-04 | 苏州盛科科技有限公司 | Auto-negotiation method and device based on priority flow control |
WO2021244240A1 (en) * | 2020-05-30 | 2021-12-09 | 华为技术有限公司 | Network congestion control method and apparatus, device, system, and storage medium |
CN114866321A (en) * | 2022-05-06 | 2022-08-05 | 苏州盛科通信股份有限公司 | Chip mac layer checking system and method |
TWI792981B (en) * | 2022-04-15 | 2023-02-11 | 國立陽明交通大學 | Flow control method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102025617A (en) * | 2010-11-26 | 2011-04-20 | 中兴通讯股份有限公司 | Method and device for controlling congestion of Ethernet |
CN102244604A (en) * | 2010-05-11 | 2011-11-16 | 华为终端有限公司 | Quality of service control method for home gateway, home gateway and system |
CN102255790A (en) * | 2010-05-18 | 2011-11-23 | 中兴通讯股份有限公司 | Method and system for informing congestion control information |
CN103416031A (en) * | 2012-09-25 | 2013-11-27 | 华为技术有限公司 | Flow control method, apparatus and network |
US20150019752A1 (en) * | 2013-03-15 | 2015-01-15 | International Business Machines Corporation | Adaptive setting of the quantized congestion notification equilibrium setpoint in converged enhanced eithernet networks |
-
2015
- 2015-06-23 CN CN201510350244.7A patent/CN106330742B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102244604A (en) * | 2010-05-11 | 2011-11-16 | 华为终端有限公司 | Quality of service control method for home gateway, home gateway and system |
CN102255790A (en) * | 2010-05-18 | 2011-11-23 | 中兴通讯股份有限公司 | Method and system for informing congestion control information |
CN102025617A (en) * | 2010-11-26 | 2011-04-20 | 中兴通讯股份有限公司 | Method and device for controlling congestion of Ethernet |
CN103416031A (en) * | 2012-09-25 | 2013-11-27 | 华为技术有限公司 | Flow control method, apparatus and network |
US20150019752A1 (en) * | 2013-03-15 | 2015-01-15 | International Business Machines Corporation | Adaptive setting of the quantized congestion notification equilibrium setpoint in converged enhanced eithernet networks |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107948103B (en) * | 2017-11-29 | 2020-06-30 | 南京大学 | Switch PFC control method and control system based on prediction |
CN107948103A (en) * | 2017-11-29 | 2018-04-20 | 南京大学 | A kind of interchanger PFC control methods and control system based on prediction |
CN109981471A (en) * | 2017-12-27 | 2019-07-05 | 华为技术有限公司 | A kind of method, apparatus and system for alleviating congestion |
CN108199975B (en) * | 2018-03-28 | 2022-03-25 | 新华三技术有限公司 | Flow control method and device |
CN108199975A (en) * | 2018-03-28 | 2018-06-22 | 新华三技术有限公司 | A kind of flow control methods and device |
CN111835652A (en) * | 2019-04-17 | 2020-10-27 | 华为技术有限公司 | Method and device for setting virtual channel of data stream |
CN111835652B (en) * | 2019-04-17 | 2024-04-16 | 华为技术有限公司 | Method and device for setting virtual channel of data stream |
WO2021244240A1 (en) * | 2020-05-30 | 2021-12-09 | 华为技术有限公司 | Network congestion control method and apparatus, device, system, and storage medium |
CN112039798B (en) * | 2020-08-24 | 2022-03-29 | 苏州盛科科技有限公司 | Auto-negotiation method and device based on priority flow control |
CN112039798A (en) * | 2020-08-24 | 2020-12-04 | 苏州盛科科技有限公司 | Auto-negotiation method and device based on priority flow control |
TWI792981B (en) * | 2022-04-15 | 2023-02-11 | 國立陽明交通大學 | Flow control method |
CN114866321A (en) * | 2022-05-06 | 2022-08-05 | 苏州盛科通信股份有限公司 | Chip mac layer checking system and method |
CN114866321B (en) * | 2022-05-06 | 2024-03-29 | 苏州盛科通信股份有限公司 | Chip mac layer verification system and method |
Also Published As
Publication number | Publication date |
---|---|
CN106330742B (en) | 2019-12-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106330742A (en) | Flow control method and network controller | |
CN109412964B (en) | Message control method and network device | |
EP3278514B1 (en) | Data transmission | |
CN104022953B (en) | Message forwarding method and device based on open flows Openflow | |
CN104025525B (en) | For sending the method and apparatus and exchange apparatus of packet | |
US11949576B2 (en) | Technologies for out-of-order network packet management and selective data flow splitting | |
US20140140348A1 (en) | Multi-hop error recovery | |
JP5601029B2 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM | |
CN111682952A (en) | On-demand probing for quality of experience metrics | |
US9544238B2 (en) | Reducing network congestion by preferentially dropping packets sent by high bandwidth sources | |
US9602393B2 (en) | Unregistered multicast packet forwarding to multicast router ports | |
US9225483B2 (en) | Virtual data center bridging exchange (vDCBX) protocol | |
US9571410B2 (en) | Credit-based link level flow control and credit exchange using DCBX | |
CN107547430A (en) | A kind of file transmitting method and device | |
JP2005295457A (en) | P2p traffic dealing router and p2p traffic information sharing system using same | |
CN114866477A (en) | Method, system and equipment for testing congestion control mechanism of network equipment | |
WO2022028342A1 (en) | Method for processing congestion flow and device | |
JP5582321B2 (en) | Method and system for facilitating one-to-many data transmission to multiple computing devices | |
US20160142307A1 (en) | Reducing short-packet overhead in computer clusters | |
TWI412249B (en) | System and method of regulating a packet rate to optimize traffic in a network | |
JP2014022761A (en) | Network system, information relay device, and packet distribution method | |
CN108322402B (en) | Message processing method, device and system | |
EP3382984A1 (en) | Techniques for network multicasting with buffering | |
CN108199975A (en) | A kind of flow control methods and device | |
US9166815B2 (en) | Communication apparatus and communication controlling method in ring network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20211227 Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province Patentee after: Super fusion Digital Technology Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |