CN103763204A - Flow control method and device - Google Patents

Flow control method and device Download PDF

Info

Publication number
CN103763204A
CN103763204A CN201310752411.1A CN201310752411A CN103763204A CN 103763204 A CN103763204 A CN 103763204A CN 201310752411 A CN201310752411 A CN 201310752411A CN 103763204 A CN103763204 A CN 103763204A
Authority
CN
China
Prior art keywords
pressure
flow control
processing unit
message
network processing
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
Application number
CN201310752411.1A
Other languages
Chinese (zh)
Other versions
CN103763204B (en
Inventor
杨升
史永杰
冯颖劼
苏永中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310752411.1A priority Critical patent/CN103763204B/en
Publication of CN103763204A publication Critical patent/CN103763204A/en
Application granted granted Critical
Publication of CN103763204B publication Critical patent/CN103763204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a flow control method and device. The flow control method is applied to a flow control module relevant to a network processing unit and comprises steps of acquiring first flow control time in a first channelizing flow control message sent by an opposite terminal network device connected with the network processing unit; responding to the first flow control time to generate a first back pressure instruction carrying the first flow control time to indicate internal channel back pressure; sending the first back pressure instruction to control the network processing unit to stop sending the message to a first virtual channel, namely controlling the first virtual channel to stop sending the message. Therefore, when back pressure happens to a certain virtual channel, flow control can be performed on the virtual channel where back pressure occurs, and measurement and control (MAC) ports of the network processing unit can work under a channelizing work mode. Flow in the virtual channel can be further controlled when messages are collected and distributed to a plurality of MAC ports working under different modes at the port side of the network processing unit.

Description

A kind of flow control methods and device
Technical field
The present invention relates to network processing unit technical field, particularly a kind of flow control methods and device.
Background technology
Be accompanied by the continuous progress of integrated circuit technology, in the face of the swift and violent internet traffic increasing, large flow, large bandwidth becomes network processing unit, as NP(Network Processor, network processing unit) development trend, the thing followed is each MAC(Medium Access Control of supervising the network processor how simultaneously, medium access control) Flow Control and the back-pressure of port.
Wherein Flow Control and back-pressure are for controlling the flow of transmission channel and equipment, Flow Control is mainly used in the flow of the transmission channel between the network equipment and network processing unit to control, when the data-handling capacity of the network equipment is subject in limited time, send Flow Control message to network processing unit, informing network processor no longer sends message to transmission channel.Back-pressure is that the data between network processing unit internal module are controlled, when the data-handling capacity of inner certain logic module of network processing unit is subject in limited time, send back-pressure indication notice and no longer to this logic module, send message, the network equipment can be this retransmission unit of router.
A MAC port in network processing unit can connect a network equipment as router at present, now this MAC port of network processing unit is operated under unchannelized mode of operation, if now the MAC port of network processing unit is in Flow Control state, MAC port no longer transceiving data of whole bandwidth used.
Along with the development of network processing unit, the integrated multiple MAC port of meeting in a network processing unit, the bandwidth of some MAC port may be shared by many tunnels simultaneously, every tunnel connects a network equipment, the bandwidth of this MAC port by the shared mode of operation of multiple equipment be channelizing mode of operation.But the MAC port of the network processing unit using at present is not supported channelizing mode of operation substantially, thereby cannot control the flow in wall scroll tunnel.
In a word, need at present the urgent technical problem solving of those skilled in the art to be exactly: how in the port side of network processing unit, multiple MAC port that are operated in different mode to be carried out to message when converging and distributing, Flow Control between back-pressure and distinct device between control module, to guarantee that network processing unit makes full use of bandwidth.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of flow control methods and device, in order to multiple MAC port that are operated in different mode are carried out controlling when message converges and distributes the flow in tunnel in the port side of network processing unit.Technical scheme is as follows:
First aspect, the embodiment of the present invention provides a kind of flow control methods, is applied in the Flow Control module associated with network processing unit, and described flow control methods comprises:
Obtain the first-class control time in the first passage Flow Control message that the opposite end network equipment that is connected with described network processing unit sends, wherein said first passage Flow Control message is used to indicate the inner passage anti-pressure time of described Flow Control module communication, and the first tunnel in the corresponding described network processing unit in described inner passage, the medium access control port that described the first tunnel is described network processing unit obtains after dividing;
The response first-class control time, generation carries the first back-pressure of described first-class control time and indicates inner passage back-pressure;
Sending described the first back-pressure indicates to control described network processing unit and stops sending message to described the first tunnel.
In the first possibility implementation of first aspect, described method also comprises:
Obtain the second back-pressure and indicate the second tunnel back-pressure, the medium access control port that described the second tunnel is described network processing unit obtains after dividing;
Respond described the second back-pressure indication, through passage, mapping obtains indicating the 3rd back-pressure indication of the first inner passage back-pressure, and wherein described first inner passage of back-pressure and described second tunnel of back-pressure are corresponding;
Send described the 3rd back-pressure and indicate to forbid that described the first inner passage to back-pressure sends message.
In conjunction with the first possibility implementation of first aspect, in the second possibility implementation of first aspect, described method also comprises:
Respond the first unchannelized Flow Control message, generate the 4th back-pressure indication of indication inner passage back-pressure;
Send described the 4th back-pressure and indicate to control described network processing unit and stop sending message, wherein the first unchannelized Flow Control message is used to indicate and forbids that network processing unit sends message.
In the third possibility implementation of first aspect, described method also comprises:
Respond the 5th back-pressure and indicate the second inner passage scheduling outgoing message of forbidding back-pressure.
In conjunction with the third possibility implementation of first aspect, in the 4th kind of possibility implementation of first aspect, the medium access control port working of described network processing unit is under channelizing mode of operation, and described method also comprises:
Receive the 6th back-pressure and indicate the 3rd inner passage back-pressure;
Described the 6th back-pressure indication is mapped as to the 7th back-pressure indication of indication the 3rd tunnel back-pressure, wherein described the 3rd tunnel of back-pressure is corresponding with described the 3rd inner passage, and the medium access control port that described the 3rd tunnel is described network processing unit obtains after dividing;
According to described the 7th back-pressure indication, set for the second Flow Control time, and indication generation second channel Flow Control message forbids that the described opposite end network equipment continues to send message to described the 3rd tunnel of back-pressure within described the second Flow Control time.
In the third possibility implementation or the 4th kind of possibility implementation in conjunction with first aspect, in the 5th kind of possibility implementation of first aspect, the medium access control port working of described network processing unit is under unchannelized mode of operation, described method also comprises: receive the 6th back-pressure and indicate the 3rd inner passage back-pressure, and the 8th back-pressure that described the 6th back-pressure indication is mapped as to indication medium access control port backpressure is indicated, with indication, generate the second unchannelized Flow Control message and forbid that the described opposite end network equipment continues to send message to the medium access control port of back-pressure.
Second aspect, the embodiment of the present invention also provides a kind of volume control device, is applied in the Flow Control module associated with network processing unit, and described volume control device comprises:
The first acquiring unit, be used for obtaining the first-class control time of the first passage Flow Control message of the opposite end network equipment transmission being connected with described network processing unit, wherein said first passage Flow Control message is used to indicate the inner passage anti-pressure time of described Flow Control module communication, and the first tunnel in the corresponding described network processing unit in described inner passage, the medium access control port that described the first tunnel is described network processing unit obtains after dividing;
The first response unit, for responding the first-class control time, generation carries the first back-pressure of described first-class control time and indicates inner passage back-pressure;
Transmitting element, indicates to control described network processing unit and stops sending message to described the first tunnel for sending described the first back-pressure.
In the first possibility implementation of second aspect, described device also comprises:
Second acquisition unit, indicates the second tunnel back-pressure for obtaining the second back-pressure, and the medium access control port that described the second tunnel is described network processing unit obtains after dividing;
The second response unit, for responding described the second back-pressure indication, through passage, mapping obtains indicating the 3rd back-pressure indication of the first inner passage back-pressure, and wherein described first inner passage of back-pressure and described second tunnel of back-pressure are corresponding;
Described transmitting element, also indicates to forbid that for sending described the 3rd back-pressure described the first inner passage to back-pressure sends message.
In conjunction with the first possibility implementation of second aspect, in the second possibility implementation of second aspect, described device also comprises:
The 3rd response unit, for responding the first unchannelized Flow Control message, generates the 4th back-pressure indication of indication inner passage back-pressure;
Described transmitting element, is further used for sending described the 4th back-pressure and indicates to control described network processing unit and stop sending message, and wherein the first unchannelized Flow Control message is used to indicate and forbids that network processing unit sends message.
In the third possibility implementation of second aspect, described device also comprises:
The 4th response unit, indicates for responding the 5th back-pressure the second inner passage scheduling outgoing message of forbidding back-pressure.
In conjunction with the third possibility implementation of second aspect, in the 4th kind of possibility implementation of second aspect, the medium access control port working of described network processing unit is under channelizing mode of operation, and described device also comprises:
Receiving element, indicates the 3rd inner passage back-pressure for receiving the 6th back-pressure;
Map unit, for described the 6th back-pressure indication being mapped as to the 7th back-pressure indication of indication the 3rd tunnel back-pressure, wherein described the 3rd tunnel of back-pressure is corresponding with described the 3rd inner passage, and the medium access control port that described the 3rd tunnel is described network processing unit obtains after dividing;
Set of time unit, be used for setting for the second Flow Control time according to described the 7th back-pressure indication, and indication generation second channel Flow Control message forbids that the described opposite end network equipment continues to send message to described the 3rd tunnel of back-pressure within described the second Flow Control time.
In the third possibility implementation or the 4th kind of possibility implementation in conjunction with second aspect, in the 5th kind of possibility implementation of second aspect, the medium access control port working of described network processing unit is under unchannelized mode of operation, described device also comprises: processing unit, be used for receiving the 6th back-pressure and indicate the 3rd inner passage back-pressure, and the 8th back-pressure that described the 6th back-pressure indication is mapped as to indication medium access control port backpressure is indicated, with indication, generate the second unchannelized Flow Control message and forbid that the described opposite end network equipment continues to send message to the medium access control port of back-pressure.
Compared with prior art, the present invention includes following advantage:
The flow control methods that the embodiment of the present invention provides can respond the first-class control time in first passage Flow Control message, and generation carries the first back-pressure of described first-class control time and indicates inner passage back-pressure; And send described the first back-pressure and indicate to control described network processing unit and stop sending message to described the first tunnel, control the first tunnel and stop sending message, thereby when certain tunnel back-pressure, can directly to the tunnel of back-pressure, carry out flow control, the MAC port of network processing unit can be operated under channelizing mode of operation.When further network processing unit stops sending message to certain tunnel in channelizing mode of operation, still can send message to the normal tunnel of other flows, avoid a tunnel Traffic Anomaly to cause the situation that whole bandwidth cannot be used to occur, improve bandwidth availability ratio, thereby realize in the port side of network processing unit, multiple MAC port that are operated in different mode are carried out controlling when message converges and distributes the flow in tunnel.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow control methods that Fig. 1 provides for the embodiment of the present invention based on system framework;
A kind of flow chart of the flow control methods that Fig. 2 provides for the embodiment of the present invention;
The another kind of flow chart of the flow control methods that Fig. 3 provides for the embodiment of the present invention;
Schematic diagram is moved towards in the transmission of the flow control methods that Fig. 4 provides for the embodiment of the present invention in system shown in Figure 1 framework;
Fig. 5 is that in system shown in Figure 1 framework, each installs the course of work schematic diagram in up direction process;
Fig. 6 is that in system shown in Figure 1 framework, each installs the course of work schematic diagram in down direction process;
Another flow chart of a kind of flow control methods that Fig. 7 provides for the embodiment of the present invention;
Another flow chart of a kind of flow control methods that Fig. 8 provides for the embodiment of the present invention;
Another flow chart of a kind of flow control methods that Fig. 9 provides for the embodiment of the present invention;
A kind of structural representation of a kind of volume control device that Figure 10 provides for the embodiment of the present invention;
The another kind of structural representation of a kind of volume control device that Figure 11 provides for the embodiment of the present invention;
Another structural representation of a kind of volume control device that Figure 12 provides for the embodiment of the present invention.
Embodiment
Because the network processing unit majority that different vendor produces is not supported channelizing mode of operation, and heterogeneous networks processor internal structure difference, heterogeneous networks processor is transformed and made it support channelizing mode of operation can improve transformation complexity and cost, therefore the flow control methods that the embodiment of the present invention provides is applied to the Flow Control module of a network processing unit association, this Flow Control module can be used as one independently module be connected with network processing unit, make heterogeneous networks processor under the effect of Flow Control module controls, to support channelizing mode of operation, certainly it also can be integrated in network processing unit.
In embodiments of the present invention, Flow Control module is when the message of the multiple network chips to network processing unit converges and distributes, can carry out flow control to the tunnel in network processing unit, thereby indirectly make coupled network processing unit support channelizing mode of operation, can carry out flow control to every tunnel.Wherein network processing unit is supported channelizing mode of operation and is operated in the MAC port that channelizing mode of operation refers to network processing unit to be operated in channelizing mode of operation, and network processing unit is operated in the MAC port that unchannelized mode of operation refers to network processing unit and is operated in unchannelized mode of operation.
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 clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, its show flow control methods that the embodiment of the present invention provides based on but a kind of application scenarios of being not limited to, wherein 1 is network processing unit, 2 is the network equipment, 3 is the first shared buffer memory, and 4 is receiving chip, and 5 is the second shared buffer memory, 6 for sending chip, and 7 is that Flow Control module, 8 is back-pressure administration module.Wherein the network equipment is by the opposite end network equipment of network processing unit and Flow Control module communication.
For those skilled in the art understand the flow control methods that the embodiment of the present invention provides better, first simply introduce the course of work between modules in this scene.The network equipment 2 is communicated by letter with network processing unit 1 by a tunnel, and the message that the network equipment 2 sends is stored in the first shared buffer memory 3 by network processing unit 1, by the first shared buffer memory 3, is sent to receiving chip 4.Send chip 6 for sending message to the second shared buffer memory 5, then be sent in tunnel by the second shared buffer memory 5 and network processing unit 1, to be received by the network equipment 2.When needs carry out flow control, first information be sent to Flow Control module 7, then feed back to back-pressure administration module 8 by Flow Control module 7, by back-pressure administration module 8, controlled receiving chip 4 and sent chip 6.
Based on application scenarios shown in Fig. 1, a kind of flow control methods that the embodiment of the present invention provides can be consulted flow chart shown in Fig. 2, set forth how to control and send chip and tunnel is carried out to flow control make network processing unit support channelizing mode of operation to realize, can comprise the following steps:
Step 201: the network equipment judges whether the quantities of messages of storage exceedes the first predetermined threshold value, if so, generates first passage Flow Control message.
Wherein the first predetermined threshold value is relevant to the capacity of the memory in the network equipment, can be using the heap(ed) capacity of memory as the first predetermined threshold value, but memory is also stored other data when actual storage data, therefore the first predetermined threshold value is generally less than the heap(ed) capacity of memory, the concrete value of the first predetermined threshold value can arrange according to different application scene, and this embodiment of the present invention is not limited.
First passage Flow Control message be used to indicate the quantities of messages of storing on the network equipment reach storage reach the standard grade, now need notice send chip stop sending message.
Step 202: the network equipment sends first passage Flow Control message to network processing unit by tunnel.This first passage Flow Control message is used to indicate tunnel back-pressure state, determines the tunnel in back-pressure state.
Step 203: network processing unit forwards first passage Flow Control message to the first shared buffer memory.
Network processing unit is receiving after message, first message is identified to determine whether into channelizing Flow Control message, if it is in forwarding channel Flow Control message to the first shared buffer memory.A kind of form of first passage Flow Control message can be as shown in table 1:
Table 1 channelizing Flow Control message format
DA SA Chan?Tag VLAN?Tag T/L Payload FCS
Wherein Chan Tag is channelizing sign, to represent that this message is as channelizing Flow Control message;
DA:Destination Address, destination address;
SA:Source Address, source address;
ChanTag:Channel Tag, channelizing indicates territory;
T/L:type/length, type/length;
Payload: message content;
FCS:frame check sequence, frame check sequence.
It should be noted is that: because the bandwidth of the MAC port of network processing unit is divided into many tunnels, so network processing unit may once transmit in multiple channelizing Flow Control message to the first shared buffer memory.Accordingly, the first shared buffer memory also needs to comprise that multiple the first queues store respectively the message that every tunnel sends, and each the first queue receives message by an inner passage, the corresponding MAC port in this inner passage and a tunnel.Therefore first need to carry out to send again in message to the first shared buffer memory after passage mapping.
Passage mapping can be completed by the standalone module being arranged between network processing unit and the first shared buffer memory, the internal structure of network processing unit is changed avoiding, its concrete mapping process can complete by channel map, channel map as shown in table 2, it shows the relation between inner passage, MAC port and tunnel.
Table 2 channel map
vld port channel
? 9 0
? 9 1
? 9 2
Wherein, vld is inner passage, and port is MAC port numbering, and channel is tunnel numbering.Capable corresponding i the inner passage of i of channel map, each inner passage is corresponding MAC port numbering and tunnel numbering in channel map.When receiving after message, first check MAC port information and the tunnel information of in message, carrying, then according to channel map, mate.When at x, capable the match is successful will be mapped to x inner passage.Carrying out after passage mapping, first passage Flow Control message is converted to indication inner passage back-pressure state, to indicate the inner passage in back-pressure state.
Step 204: the first shared buffer memory is extracted the first-class control time and is sent in Flow Control module from first passage Flow Control message.This first-class control time is used to indicate transmission chip and within this time period, stops sending message.And the first-class control time can be set and be added in first passage Flow Control message by the network equipment, for the inner passage anti-pressure time of Flow Control module communication, send chip and stop sending the time of message.
Step 205: Flow Control module is carried on the first-class control time in the first back-pressure indication and sends to back-pressure administration module.Concrete, Flow Control module, to the timing of first-class control time, continues to send the first back-pressure and indicates to back-pressure administration module in first-class control Time Validity limit.
Here should be noted that a bit: the first shared buffer memory in Fig. 1, receiving chip, the second shared buffer memory, send chip, Flow Control module and back-pressure administration module and can be included in network processing unit, therefore these several parts can adopt the mode of back-pressure indication to carry out internal control.Certainly these several parts also can be used as standalone module, adopt the mode of back-pressure indication to control between module.And first network equipment and network processing unit are to communicate in network, therefore need to adopt the mode of message to control.
Step 206: the control of back-pressure administration module sent chip and stop sending message within the first-class control time.
Send chip and stop sending after message, do not receive new message in the second shared buffer memory and network processing unit, therefore network processing unit also stops sending in message to the first tunnel, realizes the flow control to the first tunnel.That is to say that network processing unit can carry out flow control to single tunnel, make the MAC port of network processing unit can support channelizing mode of operation, and when the MAC port of network processing unit stops sending message to certain tunnel in channelizing mode of operation, still can send message to the normal tunnel of other flows, avoid a tunnel Traffic Anomaly to cause the situation that whole bandwidth cannot be used to occur, improve bandwidth availability ratio, thereby realize in the port side of network processing unit multiple MAC port that are operated in different mode are carried out controlling when message converges and distributes the flow in tunnel.
Further, network processing unit is due to self processing speed and send the reasons such as message mode and may cause self tunnel back-pressure, make the quantities of messages of certain the second queue stores in the second shared buffer memory exceed the second configuration waterline, need further to forbid sending chip and send message to the second shared buffer memory, and after the quantities of messages of the second queue stores in the second shared buffer memory is lower than the second configuration waterline, indication sends chip and continues to send message to the second shared buffer memory, and detailed process refers to shown in Fig. 2.
Step 207: when the quantities of messages of the second queue stores in the second shared buffer memory exceedes the second configuration waterline, the second shared buffer memory sends the second back-pressure and indicates to Flow Control module with indication tunnel back-pressure state.Wherein the second shared buffer memory also comprises multiple the second queues, and the corresponding inner passage of each the second queue, to receive the message that is sent to its corresponding tunnel.
Accordingly, the second configuration waterline is the maximum storage capacity of each the second queue, and its concrete value can arrange according to different application scene, and this embodiment of the present invention is not limited.
Step 208: Flow Control module is through passage mapping, MAC port and tunnel are converted to inner passage, obtain the 3rd back-pressure corresponding to inner passage and indicate inner passage back-pressure, and be sent to back-pressure administration module, to forbid that sending chip continues to send message to the second shared buffer memory.Now the second shared buffer memory continues to extract message from exceed the second queue of the second configuration waterline and is sent in network processing unit, so that the quantities of messages of storing in the second queue is lower than the second configuration waterline.
Step 209: when the quantities of messages of storing in the second queue is during lower than the second configuration waterline, the second shared buffer memory sends to be removed back-pressure and indicate to Flow Control module.
Step 210: Flow Control module forwards is removed back-pressure and indicated to back-pressure administration module with indication transmission chip continuation transmission message to the second shared buffer memory.
Certainly, the MAC port of network processing unit can also be operated in and under unchannelized mode of operation, receive the first unchannelized Flow Control message and forbid that with indication network processing unit sends message, and directly it sends to Flow Control module, Flow Control module is receiving after the first unchannelized Flow Control message, generate the 4th back-pressure indication, send to back-pressure administration module to stop sending message to control transmission chip the 4th back-pressure indication, when transmission chip stops sending message, the second shared buffer memory and network processing unit also no longer send message.The MAC port of corresponding network processing unit is operated in unchannelized mode of operation lower time, and Flow Control module still can adopt step 207 to the mode of step 210 to send chip according to the quantities of messages control of the second queue stores in the second shared buffer memory.
Application technique scheme, the MAC port of network processing unit can be operated under channelizing mode of operation and unchannelized mode of operation under, and in can be to network processing unit under each mode of operation, the flow of MAC port be controlled.
Refer to Fig. 3, the flow control methods in application scenarios shown in Fig. 1 when it shows network equipment transmission message, can comprise the following steps:
Step 301: receiving chip is indicated because the reasons such as processing speed send the 5th back-pressure, to indicate the inner passage of back-pressure to stop sending message to receiving chip.
Step 302: back-pressure administration module receives the 5th back-pressure indication, and sends to Flow Control module.
Step 303: Flow Control module sends to the first shared buffer memory by the 5th back-pressure indication.
Step 304: the first shared buffer memory is indicated according to the 5th back-pressure, determines the first queue corresponding to inner passage that produces back-pressure, forbids that this first queue scheduling outgoing message is to corresponding inner passage.
Wherein first team is listed in scheduling and can adopts TDM(Time-Division Multiplexing, time division multiplexing during outgoing message) mode dispatches output.
Because the first queue of the first shared buffer memory no longer sends message to inner passage, and network processing unit still continues to send message in the first shared buffer memory, so the message in the first shared buffer memory increases gradually, causing the quantities of messages of the first queue stores to exceed the first configuration waterline is maximum storage, now needs to send Flow Control message to network processing unit and stops sending message with indication network equipment.
The MAC port that detailed process is divided into network processing unit is operated in unchannelized mode of operation and network processing unit sends message to the first shared buffer memory by tunnel.Following step 305 to step 308 is introduced network processing unit and is sent message to the first shared buffer memory by tunnel, how according to the memory space of the first shared buffer memory, to carry out flow control, the MAC port of a step 309 and step 310 elaboration network processing unit is operated under unchannelized mode of operation, how according to the memory space of the first shared buffer memory, to carry out flow control.
Step 305: when the quantities of messages of the first queue stores in the first shared buffer memory exceedes the first configuration waterline, the first shared buffer memory sends the 6th back-pressure to Flow Control module and indicates inner passage back-pressure state, determine the inner passage in back-pressure state, now the network equipment need to stop sending message.
Step 306: Flow Control module set for the second Flow Control time, and penetrate and obtain the 7th back-pressure that MAC port is corresponding and indicate tunnel back-pressure state through passage reflection.Wherein passage reflects that penetrating is that inner passage is mapped as to MAC port and tunnel, and detailed process is contrary with passage mapping, and the embodiment of the present invention is no longer set forth.
Step 307: Flow Control module, within the second Flow Control time, is controlled the self-contained unit or the second shared buffer memory generation second channel Flow Control message that are connected with the second shared buffer memory, and wherein second channel Flow Control message comprised for the second Flow Control time.
Step 308: network processing unit sends second channel Flow Control message to corresponding tunnel.The network equipment being connected by this tunnel receives, and forbids that this network equipment sends message.
Step 309: when the quantities of messages of the first queue stores in the first shared buffer memory exceedes the first configuration waterline, the first shared buffer memory sends the 6th back-pressure to Flow Control module and indicates inner passage back-pressure.The 8th back-pressure indication that obtains indicating MAC port back-pressure is penetrated in the 6th back-pressure indication by the passage reflection of Flow Control module.
Step 310: Flow Control module indication network processor sends the second unchannelized Flow Control message to the network equipment, stops sending message with indication network equipment.
From flow chart shown in above-mentioned Fig. 2 and Fig. 3, can draw the transmission trend between each device in system shown in Figure 1 framework, to set forth, how to carry out flow control, specifically refer to shown in Fig. 4, wherein:
T1---network processing unit sends first passage Flow Control message to the first shared buffer memory;
The MAC port of t2---network processing unit is operated under unchannelized mode of operation, and network processing unit sends the first unchannelized Flow Control message to Flow Control module;
The first-class control time in first passage Flow Control message is identified and parsed to t3---the first shared buffer memory, and the first-class control time is sent to Flow Control module;
T4---the quantities of messages of storing in the second queue in the second shared buffer memory exceedes the second configuration waterline, and the quantities of messages sending to network processing unit exceedes the second configuration waterline, to Flow Control module, sends the second back-pressure indication;
T5---Flow Control module will be through t2, t3, after the Flow Control back-pressure information that this three approach of t4 receives is processed, sends back-pressure indication to back-pressure administration module, as t3 approach receives the first-class control time, t5 approach will carry the first back-pressure indication of first-class control time; T2 approach receives the first unchannelized Flow Control message, and t5 approach sends the 4th back-pressure indication; T4 approach receives the second back-pressure indication, and t5 approach sends the second back-pressure indication.Back-pressure administration module is receiving after each back-pressure indication, controls transmission chip and stops sending message;
R1---receiving chip, because the reasons such as processing speed send the 5th back-pressure indication to Flow Control module, requires the inner passage of back-pressure no longer to receiving chip scheduling outgoing message;
The 5th back-pressure indication that r2---Flow Control module is sent into r1 passes through the first shared buffer memory;
R3---in the first shared buffer memory, the quantities of messages of the first queue buffer memory exceedes the first configuration waterline, to Flow Control module, sends the 6th back-pressure indication;
The 6th back-pressure indication that r4---Flow Control module parses r3 sends into, determines that the MAC port of network processing unit is operated under unchannelized mode of operation, sends the second unchannelized Flow Control message to network processing unit;
The 6th back-pressure indication that r5---Flow Control module parses r3 sends into, determines that the MAC port of network processing unit is operated under channelizing mode of operation, sets for the second Flow Control time and sends Flow Control and indicate the second shared buffer memory sendaisle Flow Control message;
R6---after a complete message of the second shared buffer memory scheduling output, if be checked through Flow Control module, require sendaisle Flow Control message, the second Flow Control time was packaged in second channel Flow Control message and sends to network processing unit.
Further, based on Fig. 2 to Fig. 4, can draw when up direction (receiving chip reception message) and down direction (send chip and send message), the course of work of each device shown in Fig. 1, specific as follows:
In up direction process, the course of work of each device as shown in Figure 5, wherein network processing unit converges the message receiving, a standalone module between network processing unit and the first shared buffer memory completes outside MAC port and tunnel is mapped as behind inner passage, network processing unit is dispatched out after a message, first carry out channelizing Flow Control packet check to determine that whether message is as channelizing Flow Control message, if, the first shared buffer memory is receiving after first passage Flow Control message, and the extraction first-class control time sends to Flow Control module.If not, the first shared buffer memory manages message according to inner passage, is about to message and is mapped in each inner passage, and the message that belongs to inner passage A deposits in the first queue A of the first shared buffer memory.
The first shared buffer memory receives the back-pressure indication sending through Flow Control module, forbids the inner passage scheduling outgoing message of back-pressure state, but not a kind of dispatching algorithm scheduling output is selected by the first shared buffer memory in the inner passage of back-pressure state.And the inner passage of back-pressure state can further cause the quantities of messages of first queue stores corresponding with it to increase sharply, until exceed the first configuration waterline for its configuration, form inner passage back-pressure.
Further, from the course of work schematic diagram shown in Fig. 5, can find out, the message that multiple MAC port send is dispatched output successively by network processing unit, the principle that can adopt first in first out when scheduling output therefore can realize the message of multiple network chips being converged and distributed by multiple MAC port in up direction process.
In down direction process, the course of work of each device as shown in Figure 6, the second shared buffer memory is as a storing and forwarding device, according to MAC port, message is managed, can generate back-pressure according to the second configuration waterline of self and indicate to show current tunnel back-pressure, indication sends chip and stops sending message.Further the second shared buffer memory sends after a message to MAC port, whether inquire about this MAC port has channelizing Flow Control message to send in i.e. the first shared buffer memory the quantities of messages of the first queue stores whether to exceed the first configuration waterline and stop sending message with indication network equipment, if had, the second contribution buffer memory stops scheduling output, sends second channel Flow Control message to network processing unit.
Because the second shared buffer memory is exported to each network processing unit by message, therefore it manages according to MAC port, such as there are 128 tunnels network processing unit inside, the corresponding inner passage of each tunnel, network processing unit has 24 MAC port, now the second shared buffer memory manages according to 24 queues, and the first shared buffer memory manages according to 128 queues.
From the course of work schematic diagram shown in Fig. 6, can find out, the message that is sent to the network equipment by multiple MAC port also can be dispatched output successively by network processing unit, the principle that also can adopt first in first out when scheduling output therefore also can realize the message of multiple network chips being converged and distributed by multiple MAC port in down direction process.
With respect to Flow Control module, in up direction process, the Flow Control of Flow Control module comprises: first, the first-class control time is carried out to timing, when the first-class control time is not yet due, tunnel back-pressure remains valid, and sends chip and continues to stop sending message, and wherein the first-class control time not yet duely refers to that the first-class control time is not decreased to 0 from maximum; The second, the MAC port that receives network processing unit is operated in the first unchannelized Flow Control message sending under unchannelized mode of operation to obtain the Flow Control state of MAC port; The 3rd, the back-pressure that receives the second shared buffer memory transmission indicates to obtain tunnel back-pressure state, and Flow Control module is mapped to all tunnels of this MAC port by these tunnel back-pressures, then is mapped as inner passage, obtains inner passage back-pressure state.
In down direction process, the course of work of Flow Control module comprises: receive the 6th back-pressure indication that is used to indicate inner passage back-pressure that the first shared buffer memory sends.If this MAC port of network processing unit is operated under unchannelized mode of operation, the 8th back-pressure indication that Flow Control module is converted to sign MAC port back-pressure by the 6th back-pressure indication directly sends the second unchannelized Flow Control message to network processing unit, otherwise Flow Control module is converted to the 6th back-pressure indication the 7th back-pressure indication of sign tunnel back-pressure, set for the second Flow Control time, in this second Flow Control time internal trigger, insert the passage between second channel Flow Control message to the second shared buffer memory and network processing unit.
It should be noted that: the inspection that is whether channelizing Flow Control message to message can be completed by an independent network equipment with this function, also can be integrated in network processing unit.Accordingly, the insertion of second channel Flow Control message also can be completed by an independent network equipment with this function.Each function that the embodiment of the present invention relates to can be completed by an independent equipment, penetrates, dispatching message etc. as passage mapping and passage reflect, in the embodiment of the present invention, according to function, does not introduce one by one each equipment.
To be introduced with an object lesson below, suppose the maximum 240G of support of certain network processing unit flow, comprise 2 CGE(10Gigabit Ethernet, 10 Gigabit Ethernet) port, 24 XGE(100Gigabit Ethernet, 100 Gigabit Ethernet) port, 24 GE(Gigabit Ethernet, Gigabit Ethernet) port.This network processing unit has 24 SERDES(Serializer(serializers)/Deserializer(deserializer)) port, CGE0 is used SERDES0~SERDES9, CGE1 is used SERDES12~SERDES21, XGEi is used SERDESi(0<=i<24), GEi is used SERDESi(0<=i<24), a SERDES cannot be operated under two kinds of patterns simultaneously, while working such as CGE1, XGE12~XGE21 and GE12~GE23 cannot be used; Require XGE to support maximum 16 tunnels, GE and CGE do not support channelizing.Network processing unit comprises 128 tunnels.
The first shared buffer memory is carried out storage administration according to 128 inner passages to message, it can be according to certain dispatching algorithm by the dispatching message output in the first queue of non-back-pressure state, it also configures 128 first configuration waterlines simultaneously, and each the first corresponding inner passage of configuration waterline, the memory space using when each inner passage message when the quantities of messages of the first queue stores reaches this first configuration waterline, sends back-pressure to Flow Control module and indicates this inner passage back-pressure.Flow Control module receives after these back-pressure indications, first can reflect the back-pressure state of penetrating to correspond to each MAC port, if this MAC port is not operated in channelizing mode of operation, Flow Control module directly sends second unchannelized Flow Control message to this MAC port makes it send the second unchannelized Flow Control message, otherwise the second Flow Control time of setting is opened Flow Control counting one time, within the second Flow Control time, requiring down direction insertion second channel Flow Control message to be sent to MAC port is in network processing unit.
The second shared buffer memory manages according to 24 queues, use the multiplexing same queue of MAC port of identical SERDES, when wherein CGE0 and CGE1 are used respectively queue 0 and 12, the second shared buffer memory outgoing message, adopt TDM scheduling message to continue to flow to guarantee the message on the MAC port of network processing unit.During TDM scheduling, often take turns to a MAC port, if a upper message of this MAC port is sent, check whether the state that Flow Control module is sent into will insert second channel Flow Control message, if so, insert second channel Flow Control message and send to MAC port.If tunnel back-pressure, the message of corresponding the second queue output that can not be scheduled in the second shared buffer memory, the back-pressure that reaches the second configuration waterline transmission indication tunnel back-pressure state when the second queue buffer memory is indicated to Flow Control module, and Flow Control module obtains inner passage back-pressure state and sends to back-pressure administration module to stop sending message to control transmission chip after reflection is penetrated.
The technique scheme of setting forth from the embodiment of the present invention, can show that the embodiment of the present invention is applied to the flow control methods of Flow Control module, its flow chart is consulted shown in Fig. 7, can comprise the following steps:
Step 701: obtain the first-class control time in the first passage Flow Control message that the opposite end network equipment that is connected with network processing unit sends, wherein said first passage Flow Control message is used to indicate the inner passage anti-pressure time of Flow Control module communication, and the first tunnel in the corresponding described network processing unit in described inner passage, the MAC port that described the first tunnel is described network processing unit obtains after dividing.
Step 702: the response first-class control time, generation carries the first back-pressure of described first-class control time and indicates inner passage back-pressure;
Step 703: send described the first back-pressure and indicate to control described network processing unit and stop sending message to described the first tunnel, control the first tunnel and stop sending message, thereby when certain tunnel back-pressure, can directly to the tunnel of back-pressure, carry out flow control, the MAC port of network processing unit can be operated under channelizing mode of operation.
The MAC port of network processing unit is operated in when stopping to certain tunnel transmission message in channelizing mode of operation, still can send message to the normal tunnel of other flows, avoid a tunnel Traffic Anomaly to cause the situation that whole bandwidth cannot be used to occur, improve bandwidth availability ratio, thereby realize in the port side of network processing unit, multiple MAC port that are operated in different mode are carried out controlling when message converges and distributes the flow in tunnel.
Further, on the basis of flow control methods shown in Fig. 7, network processing unit is due to self processing speed and send the reasons such as message mode and may cause self tunnel back-pressure, in tunnel back-pressure, can cause coupled retransmission unit, as back-pressure appears in above-mentioned the second shared buffer memory, now need the transmitting apparatus of controlling to described retransmission unit transmission message to stop sending message.Idiographic flow can be consulted shown in Fig. 8, on the basis of flow chart shown in Fig. 7, can also comprise:
Step 704: obtain the second back-pressure and indicate the second tunnel back-pressure, the MAC port that described the second tunnel is described network processing unit obtains after dividing.
Step 705: respond described the second back-pressure indication, mapping obtains indicating the 3rd back-pressure indication of the first inner passage back-pressure through passage, and wherein described first inner passage of back-pressure and described second tunnel of back-pressure are corresponding.
Step 706: send described the 3rd back-pressure and indicate to forbid that described the first inner passage to back-pressure sends message.
Certainly the MAC port that the flow control methods that is applied to Flow Control module can also be controlled network processing unit is operated in the flow under unchannelized mode of operation, can be specifically: response the first unchannelized Flow Control message, generate the 4th back-pressure indication of indication inner passage back-pressure, send described the 4th back-pressure and indicate to control network processing unit and stop sending message, wherein the first unchannelized Flow Control message is used to indicate and forbids that network processing unit sends message.Under unchannelized mode of operation, Flow Control module still can adopt above-mentioned steps 704 to the flow of the inner passage of step 706 to back-pressure to control.
Refer to Fig. 9, how the flow control methods that it shows the embodiment of the present invention provides controls the flow control of down direction, can comprise the following steps:
Step 901: response the 5th back-pressure is indicated the second inner passage scheduling outgoing message of forbidding back-pressure.This step can realize the back-pressure control to the second inner passage, thereby further controls the message being sent in receiving chip.
Step 902: receive the 6th back-pressure and indicate the 3rd inner passage back-pressure.
Step 903: described the 6th back-pressure indication is mapped as to the 7th back-pressure indication of indication the 3rd tunnel back-pressure, wherein described the 3rd tunnel of back-pressure is corresponding with described the 3rd inner passage, and the MAC port that described the 3rd tunnel is described network processing unit obtains after dividing.
Step 904: set for the second Flow Control time according to described the 7th back-pressure indication, and indication generation second channel Flow Control message forbids that the opposite end network equipment continues to send message to described the 3rd tunnel of back-pressure within described the second Flow Control time.
The MAC port that above-mentioned steps 902 to step 904 is set forth network processing unit is operated in the flow control of down direction under channelizing mode of operation, the MAC port of introducing network processing unit is operated in to the flow control of down direction under unchannelized mode of operation below.
Step 905: described the 6th back-pressure indication is mapped as to the 8th back-pressure indication of indication MAC port back-pressure, to indicate generation the second unchannelized Flow Control message to forbid that the opposite end network equipment continues to send message to the MAC port of back-pressure.
Embodiment is corresponding with said method, the embodiment of the present invention also provides a kind of volume control device 10 being applied in the Flow Control module associated with network processing unit, its structural representation refers to shown in Figure 10, can comprise: the first acquiring unit 11, the first response unit 12 and transmitting element 13.Wherein,
The first acquiring unit 11, be used for obtaining the first-class control time of the first passage Flow Control message of the opposite end network equipment transmission being connected with network processing unit, wherein first passage Flow Control message is used to indicate the inner passage anti-pressure time of Flow Control module communication, and the first tunnel in the map network processor of inner passage, the MAC port that the first tunnel is network processing unit obtains after dividing.The opposite end network equipment is by the network equipment of network processing unit and Flow Control module communication.
When the quantities of messages of storing in the network equipment exceedes the first predetermined threshold value, generate first passage Flow Control message, the first predetermined threshold value is relevant to the capacity of the memory in the network equipment, can be using the heap(ed) capacity of memory as the first predetermined threshold value, but memory is also stored other data when actual storage data, therefore the first predetermined threshold value is generally less than the heap(ed) capacity of memory, the concrete value of the first predetermined threshold value can arrange according to different application scene, and this embodiment of the present invention is not limited.
The first response unit 12, for responding the first-class control time, generation carries the first back-pressure of first-class control time and indicates inner passage back-pressure.The first-class control time can be set and be added in first passage Flow Control message by the network equipment, for the inner passage anti-pressure time of Flow Control module communication, stops sending the time of message to the network equipment.
Transmitting element 13, indicates to control network processing unit and stops sending message to the first tunnel for sending the first back-pressure.
Network processing unit also stops sending in message to the first tunnel, and the flow in the first tunnel reduces gradually, realizes the flow control to the first tunnel.That is to say that network processing unit can carry out flow control to single tunnel, make network processing unit can support channelizing mode of operation, and when stopping sending message to certain tunnel in channelizing mode of operation, still can send message to the normal tunnel of other flows, avoid a tunnel Traffic Anomaly to cause the situation that whole bandwidth cannot be used to occur, improve bandwidth availability ratio.
Refer to Figure 11, it is on Figure 10 basis, show the another kind of structural representation of a kind of volume control device 10 that the embodiment of the present invention provides, it can also be realized when network processing unit is due to self processing speed with send the reasons such as message mode and may cause self tunnel back-pressure, how further tunnel to be carried out to flow control.Wherein,
Second acquisition unit 14, indicates the second tunnel back-pressure for obtaining the second back-pressure, and the MAC port that the second tunnel is network processing unit obtains after dividing.
The second response unit 15, for responding the second back-pressure indication, through passage, mapping obtains indicating the 3rd back-pressure indication of the first inner passage back-pressure, and wherein the first inner passage of back-pressure and the second tunnel of back-pressure are corresponding.
Transmitting element 13, also indicates to forbid that for sending the 3rd back-pressure the first inner passage to back-pressure sends message.
It should be noted that: in embodiments of the present invention, in volume control device 10 shown in Figure 10, the first acquiring unit 11, the first response unit 12 and transmitting element 13 are a kind of feasible configurations of tunnel being carried out to flow control, in volume control device 10 shown in Figure 11, second acquisition unit 14, the second response unit 15 and transmitting element 13 are the another kind of feasible configurations of tunnel being carried out to flow control, when adopting structure shown in Fig. 7, can cause the second tunnel back-pressure to trigger second acquisition unit 14.
On volume control device 10 bases shown in above-mentioned Figure 10 and Figure 11, the MAC port that the volume control device 10 that the embodiment of the present invention provides can also further be controlled network processing unit is operated in the flow under non-passage mode of operation, detailed process is the 3rd response unit in volume control device, respond the first unchannelized Flow Control message, generate the 4th back-pressure indication of indication inner passage back-pressure, trigger described transmitting element 13, further transmission the 4th back-pressure is indicated to control network processing unit and is stopped sending message, wherein the first unchannelized Flow Control message is used to indicate and forbids that network processing unit sends message.
Further the message of MAC port each MAC port under channelizing mode of operation and unchannelized mode of operation of network processing unit is controlled, and the message of network processing unit in can multiple MAC port converges and distribute.
In addition, on the basis of volume control device 10 shown in Figure 10, the volume control device 10 that the embodiment of the present invention provides can also comprise: the 4th response unit 16, receiving element 17, map unit 18, set of time unit 19 and processing unit 20, as shown in figure 12.Wherein,
The 4th response unit 16, indicates for responding the 5th back-pressure the second inner passage scheduling outgoing message of forbidding back-pressure.This unit can be controlled the back-pressure of the second inner passage, thereby further controls the message being sent in receiving chip.
Receiving element 17, indicates the 3rd inner passage back-pressure for receiving the 6th back-pressure.
Map unit 18, for the 6th back-pressure indication being mapped as to the 7th back-pressure indication of indication the 3rd tunnel back-pressure, wherein the 3rd tunnel of back-pressure is corresponding with the 3rd inner passage, and the MAC port that the 3rd tunnel is network processing unit obtains after dividing.
Set of time unit 19, for setting for the second Flow Control time according to the 7th back-pressure indication, and indication generation second channel Flow Control message forbids that the opposite end network equipment continues to send message to the 3rd tunnel of back-pressure within the second Flow Control time, thereby realize the flow control of the 3rd tunnel to back-pressure, the MAC port of network processing unit can be operated under channelizing mode of operation.
Processing unit 20 is operated in the flow control under non-passage mode of operation for controlling the MAC port of network processing unit, it can receive the 6th back-pressure and indicate the 3rd inner passage back-pressure, and the 6th back-pressure indication is mapped as to the 8th back-pressure indication of indicating MAC port back-pressure, to indicate generation the second unchannelized Flow Control message to forbid that the opposite end network equipment continues to send message to the medium access control port of back-pressure.
Here should be noted that a bit: the unit that above-mentioned Figure 12 increases can the object based on reaching independently be arranged in volume control device 10, and this embodiment of the present invention is set forth no longer one by one.
In addition the embodiment of the present invention also provides a kind of Flow Control module, comprise first network interface, memory, processor and second network interface, wherein first network interface, for receiving the first passage Flow Control message of the network equipment transmission being connected with network processing unit, first passage Flow Control message is used to indicate the inner passage anti-pressure time of Flow Control module communication, and the first tunnel in the map network processor of inner passage, the medium access control port that the first tunnel is network processing unit obtains after dividing.
Memory is used for storing first passage Flow Control message.
Processor is for the first-class control time from first passage Flow Control message, and the flip-flop storage storage first-class control time.Further processor is also for responding the first-class control time, and generation carries the first back-pressure of first-class control time and indicates inner passage back-pressure to trigger second network interface.The first-class control time can be set and be added in first passage Flow Control message by the network equipment, for the inner passage anti-pressure time of Flow Control module communication, stops sending the time of message to the network equipment.
Second network interface is used for sending the first back-pressure and indicates to control network processing unit and stop sending message to the first tunnel.
It should be noted that, each embodiment in this specification all adopts the mode of going forward one by one to describe, and each embodiment stresses is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises key element and also have other identical element.
While for convenience of description, describing above device, with function, being divided into various unit describes respectively.Certainly, when enforcement is of the present invention, the function of each unit can be realized in same or multiple software and/or hardware.
Above a kind of flow control methods provided by the present invention and device are described in detail, applied specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, to sum up, this description should not be construed as limitation of the present invention meanwhile.

Claims (12)

1. a flow control methods, is characterized in that, is applied in the Flow Control module associated with network processing unit, and described flow control methods comprises:
Obtain the first-class control time in the first passage Flow Control message that the opposite end network equipment that is connected with described network processing unit sends, wherein said first passage Flow Control message is used to indicate the inner passage anti-pressure time of described Flow Control module communication, and the first tunnel in the corresponding described network processing unit in described inner passage, the medium access control port that described the first tunnel is described network processing unit obtains after dividing;
The response first-class control time, generation carries the first back-pressure of described first-class control time and indicates inner passage back-pressure;
Sending described the first back-pressure indicates to control described network processing unit and stops sending message to described the first tunnel.
2. method according to claim 1, is characterized in that, described method also comprises:
Obtain the second back-pressure and indicate the second tunnel back-pressure, the medium access control port that described the second tunnel is described network processing unit obtains after dividing;
Respond described the second back-pressure indication, through passage, mapping obtains indicating the 3rd back-pressure indication of the first inner passage back-pressure, and wherein described first inner passage of back-pressure and described second tunnel of back-pressure are corresponding;
Send described the 3rd back-pressure and indicate to forbid that described the first inner passage to back-pressure sends message.
3. method according to claim 1 and 2, is characterized in that, described method also comprises:
Respond the first unchannelized Flow Control message, generate the 4th back-pressure indication of indication inner passage back-pressure;
Send described the 4th back-pressure and indicate to control described network processing unit and stop sending message, wherein the first unchannelized Flow Control message is used to indicate and forbids that network processing unit sends message.
4. method according to claim 1, is characterized in that, described method also comprises:
Respond the 5th back-pressure and indicate the second inner passage scheduling outgoing message of forbidding back-pressure.
5. method according to claim 4, is characterized in that, the medium access control port working of described network processing unit is under channelizing mode of operation, and described method also comprises:
Receive the 6th back-pressure and indicate the 3rd inner passage back-pressure;
Described the 6th back-pressure indication is mapped as to the 7th back-pressure indication of indication the 3rd tunnel back-pressure, wherein described the 3rd tunnel of back-pressure is corresponding with described the 3rd inner passage, and the medium access control port that described the 3rd tunnel is described network processing unit obtains after dividing;
According to described the 7th back-pressure indication, set for the second Flow Control time, and indication generation second channel Flow Control message forbids that the described opposite end network equipment continues to send message to described the 3rd tunnel of back-pressure within described the second Flow Control time.
6. according to the method described in claim 4 or 5, it is characterized in that, the medium access control port working of described network processing unit is under unchannelized mode of operation, described method also comprises: receive the 6th back-pressure and indicate the 3rd inner passage back-pressure, and described the 6th back-pressure indication is mapped as to the 8th back-pressure indication of indicating medium access control port backpressure, to indicate generation the second unchannelized Flow Control message to forbid that the described opposite end network equipment continues to send message to the medium access control port of back-pressure.
7. a volume control device, is characterized in that, is applied in the Flow Control module associated with network processing unit, and described volume control device comprises:
The first acquiring unit, be used for obtaining the first-class control time of the first passage Flow Control message of the opposite end network equipment transmission being connected with described network processing unit, wherein said first passage Flow Control message is used to indicate the inner passage anti-pressure time of described Flow Control module communication, and the first tunnel in the corresponding described network processing unit in described inner passage, the medium access control port that described the first tunnel is described network processing unit obtains after dividing;
The first response unit, for responding the first-class control time, generation carries the first back-pressure of described first-class control time and indicates inner passage back-pressure;
Transmitting element, indicates to control described network processing unit and stops sending message to described the first tunnel for sending described the first back-pressure.
8. device according to claim 7, is characterized in that, described device also comprises:
Second acquisition unit, indicates the second tunnel back-pressure for obtaining the second back-pressure, and the medium access control port that described the second tunnel is described network processing unit obtains after dividing;
The second response unit, for responding described the second back-pressure indication, through passage, mapping obtains indicating the 3rd back-pressure indication of the first inner passage back-pressure, and wherein described first inner passage of back-pressure and described second tunnel of back-pressure are corresponding;
Described transmitting element, also indicates to forbid that for sending described the 3rd back-pressure described the first inner passage to back-pressure sends message.
9. according to the device described in claim 7 or 8, it is characterized in that, described device also comprises:
The 3rd response unit, for responding the first unchannelized Flow Control message, generates the 4th back-pressure indication of indication inner passage back-pressure;
Described transmitting element, is further used for sending described the 4th back-pressure and indicates to control described network processing unit and stop sending message, and wherein the first unchannelized Flow Control message is used to indicate and forbids that network processing unit sends message.
10. device according to claim 7, is characterized in that, described device also comprises:
The 4th response unit, indicates for responding the 5th back-pressure the second inner passage scheduling outgoing message of forbidding back-pressure.
11. devices according to claim 10, is characterized in that, the medium access control port working of described network processing unit is under channelizing mode of operation, and described device also comprises:
Receiving element, indicates the 3rd inner passage back-pressure for receiving the 6th back-pressure;
Map unit, for described the 6th back-pressure indication being mapped as to the 7th back-pressure indication of indication the 3rd tunnel back-pressure, wherein described the 3rd tunnel of back-pressure is corresponding with described the 3rd inner passage, and the medium access control port that described the 3rd tunnel is described network processing unit obtains after dividing;
Set of time unit, be used for setting for the second Flow Control time according to described the 7th back-pressure indication, and indication generation second channel Flow Control message forbids that the described opposite end network equipment continues to send message to described the 3rd tunnel of back-pressure within described the second Flow Control time.
12. according to the device described in claim 10 or 11, it is characterized in that, the medium access control port working of described network processing unit is under unchannelized mode of operation, described device also comprises: processing unit, be used for receiving the 6th back-pressure and indicate the 3rd inner passage back-pressure, and described the 6th back-pressure indication is mapped as to the 8th back-pressure indication of indicating medium access control port backpressure, to indicate generation the second unchannelized Flow Control message to forbid that the described opposite end network equipment continues to send message to the medium access control port of back-pressure.
CN201310752411.1A 2013-12-31 2013-12-31 A kind of flow control methods and device Active CN103763204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310752411.1A CN103763204B (en) 2013-12-31 2013-12-31 A kind of flow control methods and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310752411.1A CN103763204B (en) 2013-12-31 2013-12-31 A kind of flow control methods and device

Publications (2)

Publication Number Publication Date
CN103763204A true CN103763204A (en) 2014-04-30
CN103763204B CN103763204B (en) 2017-03-08

Family

ID=50530366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310752411.1A Active CN103763204B (en) 2013-12-31 2013-12-31 A kind of flow control methods and device

Country Status (1)

Country Link
CN (1) CN103763204B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791140A (en) * 2014-12-19 2016-07-20 中兴通讯股份有限公司 Message sending processing method and apparatus and network equipment
WO2016202092A1 (en) * 2015-06-19 2016-12-22 中兴通讯股份有限公司 Transmission method and apparatus based on traffic control and back pressure on multilayer queue
CN112640366A (en) * 2018-09-03 2021-04-09 株式会社自动网络技术研究所 Relay device, relay method, and computer program
CN113709056A (en) * 2021-08-26 2021-11-26 无锡沐创集成电路设计有限公司 Memory flow control method and device, storage medium and electronic equipment
CN115168081A (en) * 2022-09-08 2022-10-11 井芯微电子技术(天津)有限公司 Conversion circuit and message conversion method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1499793A (en) * 2002-11-08 2004-05-26 ��Ϊ�������޹�˾ Method for controlling flux in channel mapped by virtual container in metropolitan area transmission equipment
CN1501639A (en) * 2002-11-19 2004-06-02 ��Ϊ�������޹�˾ Traffic control method for MAN transmission apparatus
US20060007856A1 (en) * 2004-06-07 2006-01-12 Nokia Corporation Backpressure method on multiplexed links
CN1937586A (en) * 2006-09-21 2007-03-28 华为技术有限公司 Device and method for realizing fluid control information transfer
CN101026558A (en) * 2007-01-18 2007-08-29 华为技术有限公司 Method and device for realizing mass port backpressure
CN101854402A (en) * 2010-05-31 2010-10-06 中兴通讯股份有限公司 Interface conversion device and stream control implementing method
CN102739510A (en) * 2011-04-15 2012-10-17 中兴通讯股份有限公司 Method and device for flow control

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1499793A (en) * 2002-11-08 2004-05-26 ��Ϊ�������޹�˾ Method for controlling flux in channel mapped by virtual container in metropolitan area transmission equipment
CN1501639A (en) * 2002-11-19 2004-06-02 ��Ϊ�������޹�˾ Traffic control method for MAN transmission apparatus
US20060007856A1 (en) * 2004-06-07 2006-01-12 Nokia Corporation Backpressure method on multiplexed links
CN1937586A (en) * 2006-09-21 2007-03-28 华为技术有限公司 Device and method for realizing fluid control information transfer
CN101026558A (en) * 2007-01-18 2007-08-29 华为技术有限公司 Method and device for realizing mass port backpressure
CN101854402A (en) * 2010-05-31 2010-10-06 中兴通讯股份有限公司 Interface conversion device and stream control implementing method
CN102739510A (en) * 2011-04-15 2012-10-17 中兴通讯股份有限公司 Method and device for flow control

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791140A (en) * 2014-12-19 2016-07-20 中兴通讯股份有限公司 Message sending processing method and apparatus and network equipment
WO2016202092A1 (en) * 2015-06-19 2016-12-22 中兴通讯股份有限公司 Transmission method and apparatus based on traffic control and back pressure on multilayer queue
CN106330758A (en) * 2015-06-19 2017-01-11 中兴通讯股份有限公司 Transfer method and device based on multilayer queue fluid control back pressure
CN112640366A (en) * 2018-09-03 2021-04-09 株式会社自动网络技术研究所 Relay device, relay method, and computer program
US11343347B2 (en) 2018-09-03 2022-05-24 Autonetworks Technologies, Ltd. Relay device, relay method, and computer program
CN113709056A (en) * 2021-08-26 2021-11-26 无锡沐创集成电路设计有限公司 Memory flow control method and device, storage medium and electronic equipment
CN115168081A (en) * 2022-09-08 2022-10-11 井芯微电子技术(天津)有限公司 Conversion circuit and message conversion method
CN115168081B (en) * 2022-09-08 2022-11-15 井芯微电子技术(天津)有限公司 Conversion circuit and message conversion method

Also Published As

Publication number Publication date
CN103763204B (en) 2017-03-08

Similar Documents

Publication Publication Date Title
CN106850465B (en) A kind of Flex E method for interchanging data and switching equipment
CN106664261B (en) A kind of methods, devices and systems configuring flow entry
CN103401773B (en) Method and network equipment realizing interboard communication
CN103763204A (en) Flow control method and device
WO2016107122A1 (en) Method and device for converting between rapidio packet and ethernet packet
CN101072158A (en) Method for releasing and processing virtual circuit information and supplier edge device
CN104813600B (en) Sending method, method of reseptance, device and the communication equipment of signal
US10225196B2 (en) Apparatus, system and method for controlling packet data flow
CN106998347A (en) The apparatus and method of server virtualization network share
CN103490961A (en) Network equipment
CN113287329B (en) Data transmission method and device
CN107332794B (en) Dynamic time slot locking method for time-triggered communication
CN102957626A (en) Message forwarding method and device
CN103312614B (en) A kind of multicast message processing method, line card and communication equipment
CN105306276A (en) Software defined network based OAM protocol encapsulation method and system, and Ethernet passive optical network (EPON) access network
CN108614792B (en) 1394 transaction layer data packet storage management method and circuit
CN104699649A (en) Multi-branch serial bus interface and data exchange method
CN105376118B (en) A kind of test method of AFDX interchangers sending performance
CN111193650B (en) Node receiving and dispatching control device based on SAE AS5643 standard
CN101192911B (en) A data transmission method and system under time division multiplexing
CN102546112A (en) Data packaging method and device
CN105323160B (en) Message receiving and sending method and device, channel unit and communication equipment
CN205265697U (en) Grouping optical transmission terminal chip based on tag switching
US10298725B2 (en) Synchronous digital signal encapsulation
US9661110B2 (en) System and method for enabling channel access enhancements in existing communication networks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant