CN104601490B - The flow control method and flow control apparatus and the network equipment of the network equipment - Google Patents

The flow control method and flow control apparatus and the network equipment of the network equipment Download PDF

Info

Publication number
CN104601490B
CN104601490B CN201510083894.XA CN201510083894A CN104601490B CN 104601490 B CN104601490 B CN 104601490B CN 201510083894 A CN201510083894 A CN 201510083894A CN 104601490 B CN104601490 B CN 104601490B
Authority
CN
China
Prior art keywords
flow control
data packet
message
sent
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510083894.XA
Other languages
Chinese (zh)
Other versions
CN104601490A (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201510083894.XA priority Critical patent/CN104601490B/en
Publication of CN104601490A publication Critical patent/CN104601490A/en
Application granted granted Critical
Publication of CN104601490B publication Critical patent/CN104601490B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of flow control methods of network equipment and device and the network equipment.Based on the present invention, the logic device of interface board can report the Information encapsulation that is sent completely of the data Ethernet message on outgoing direction in flow control atomic data packet, flow control atomic data packet can be by managing Bus repeater to the logic device of mainboard, the logic device of mainboard described is sent completely information by that can be obtained to the parsing of flow control atomic data packet, and the memory for being encapsulated in write-in mainboard in flow control message is read immediately for the CPU of mainboard, the CPU of mainboard is set to perceive whether the data Ethernet message on outgoing direction occurs congestion in time, to be conducive to accurately realize the QOS on network equipment outgoing direction.Moreover, the present invention can either avoid completing information report the transmission for influencing data Ethernet message, and can realize the loose couplings that sends and receives of the CPU to data Ethernet message.

Description

The flow control method and flow control apparatus and the network equipment of the network equipment
Technical field
The present invention relates to network technology, more particularly to the flow control method of the network equipment, the flow control apparatus of the network equipment and The network equipment.
Background technology
Ether bus architecture may be used in the network equipment, also, in ether bus architecture, the CPU of mainboard and mainboard Ether between the ether exchange chip and the logic device of interface board of ether data channel, mainboard between ether exchange chip Interface data channel between the interface chip of the logic device and interface board of data channel and interface board may existence Manage the mutually unmatched situation of bandwidth.
Therefore, the network equipment is easy that the congestion of data message occurs on outgoing direction.If the CPU of mainboard can not be perceived in time The releasing of aforementioned congestion and aforementioned congestion is then difficult to accurately realize QOS (the Quality of on network equipment outgoing direction Service, service quality).
Invention content
In view of this, the embodiment provides a kind of flow control method of the network equipment, a kind of streams of the network equipment Control device and the network equipment.
In one embodiment, a kind of flow control method of the network equipment is applied to the logic device of the interface board of the network equipment In, also, the flow control method includes:
According to the data Ethernet message being sent in buffer queue is sent, construction includes the flow control atom for being sent completely information Data packet;
The flow control atomic data packet is transmitted in management trunk priority in other atomic data packets.
Optionally, the flow control method further fills the interface board of the interface board in the flow control atomic data packet Mark and the corresponding logical channel identifier of data Ethernet message that transmission is completed on the outgoing direction.
In another embodiment, a kind of flow control method of the network equipment is applied to the logic device of the mainboard of the network equipment In, also, the flow control method includes:
Atomic data packet is received by managing bus;
Identify the type of the atomic data packet received;
If identifying, the atomic data packet received is flow control atomic data packet, is solved from the flow control atomic data packet Analysis obtains being sent completely information;
Construction includes the flow control message for being sent completely information;
The flow control message is written to the memory of the CPU of mainboard and the CPU is notified to be read from the memory.
Optionally, the flow control message is written to the memory in a manner of DMA in the flow control method.
Optionally, the flow control method notifies the CPU in a manner of interrupting.
Optionally, the flow control method according further in the flow control atomic data packet interface panel sign and logic it is logical Road identifies, and be sent completely in queue corresponding into the memory is written in the flow control message.
In one embodiment, a kind of flow control apparatus of the network equipment is applied to the logic device of the interface board of the network equipment In, also, the flow control apparatus includes:
Data packet constructing module, according to the data Ethernet message being sent in buffer queue is sent, construction includes to have sent At the flow control atomic data packet of information;
Module is sent in data packet, and the flow control atomic data packet is passed in management trunk priority in other atomic data packets It is defeated.
Optionally, the data packet constructing module further fills the interface board in the flow control atomic data packet Interface panel sign and the corresponding logical channel identifier of data Ethernet message that transmission is completed on the outgoing direction.
In another embodiment, a kind of flow control apparatus of the network equipment is applied to the logic device of the mainboard of the network equipment In, also, the flow control apparatus includes:
Packet-receiving module receives atomic data packet by managing bus;
Packet classification module identifies the type of the atomic data packet received;
Resolve packet module, if identifying, the atomic data packet received is flow control atomic data packet, from the stream Parsing obtains being sent completely information in control atomic data packet;
Message constructing module, construction include the flow control message for being sent completely information;
The flow control message is written the memory of the CPU of mainboard and notifies the CPU from described interior by information reporting module Deposit reading.
Optionally, the flow control message is written to the memory in a manner of DMA in the information reporting module.
Optionally, the information reporting module notifies the CPU in a manner of interrupting.
Optionally, the information reporting module according further in the flow control atomic data packet interface panel sign and patrol Gap marker is collected, be sent completely in queue corresponding into the memory is written into the flow control message.
In one embodiment, a kind of network equipment, including interface board and mainboard, the interface board are filled with the first logic It sets, the mainboard has CPU, memory, ether exchange chip and the second logic device;
First logic device is connected with second logic device by managing bus;
First logic device includes to have sent according to the data Ethernet message being sent in buffer queue, construction is sent At the flow control atomic data packet of information, and, by the flow control atomic data packet in the management trunk priority in other atoms Data packet is transmitted;
Second logic device is by managing bus reception atomic data packet and identifying the atomic data packet received Type, if identifying, the atomic data packet received is flow control atomic data packet, is parsed from the flow control atomic data packet It obtains being sent completely information, and, construction is written the memory comprising the flow control message for being sent completely information and notifies institute CPU is stated to read from the memory;
Data Ethernet message on outgoing direction is sent by the CPU when the state for sending buffer queue is non-full The ether data channel;When the state for sending buffer queue is full, the data Ethernet message on outgoing direction is sent into It is cached in QOS queues, until the state for sending buffer queue becomes non-full;Reading is being received from second logic device When taking the notice of memory, flow control message is read from the memory;And according on outgoing direction to be sent into ether data channel Data Ethernet message statistics and in the flow control message be sent completely described in maintenance of information send buffer queue shape State.
Optionally, first logic device further fills connecing for the interface board in the flow control atomic data packet Oralia identifies and is completed on the outgoing direction the corresponding logical channel identifier of data Ethernet message sent;Described second Logic device disappears the flow control according further to interface panel sign and logical channel identifier in the flow control atomic data packet Breath write-in is sent completely to corresponding in the memory in queue;And the flow control method is according to from the hair in the memory The flow control message for completing to be read in queue is sent, safeguards the corresponding state for sending buffer queue.
Optionally, the flow control message is written to the memory in a manner of DMA in second logic device.
Optionally, second logic device notifies the CPU in a manner of interrupting.
It can be seen that the data Ethernet message on outgoing direction can be sent completely information envelope by the logic device of interface board Reported in flow control atomic data packet, flow control atomic data packet can by manage Bus repeater to mainboard logic device, The logic device of mainboard to the parsing of flow control atomic data packet by that can obtain described being sent completely information and being encapsulated in stream The memory of write-in mainboard is read immediately for the CPU of mainboard in control message, and the CPU of mainboard is enable to perceive the number on outgoing direction in time Whether congestion occurs according to Ethernet message, to be conducive to accurately realize the QOS on network equipment outgoing direction.Moreover, being sent completely Reporting for information is not take up ether data channel, to avoid the transmission of data Ethernet message is influenced;CPU is to outgoing direction data ether The processing for being sent completely information of message is mutual indepedent with the processing of the data Ethernet message to entering direction, to realize CPU logarithms According to the loose coupling of Ethernet message sent and received.
Description of the drawings
Fig. 1 is the example arrangement schematic diagram of the network equipment in one embodiment;
Fig. 2 is the schematic diagram of the first logic device shown in Fig. 1;
Fig. 3 is the schematic diagram of the valid data section of Fig. 1 and flow control atomic data packet shown in Figure 2;
Fig. 4 is the schematic diagram of the second logic device shown in Fig. 1;
Fig. 5 is the schematic diagram of flow control message shown in Fig. 1;
Fig. 6 is the schematic diagram of the location mode of flow control message in memory shown in Fig. 1;
Fig. 7 is the schematic diagram of CPU shown in Fig. 1;
Fig. 8 is the flow diagram of the flow control method of the network equipment in one embodiment;
Fig. 9 is the flow diagram of the flow control method of the network equipment in another embodiment;
Figure 10 is the flow diagram of the flow control method of the network equipment in another embodiment;
Figure 11 is the structural schematic diagram of the flow control apparatus of the network equipment in one embodiment;
Figure 12 is the structural schematic diagram of the flow control apparatus of the network equipment in another embodiment;
Figure 13 is the structural schematic diagram of the flow control apparatus of the network equipment in another embodiment;
Figure 14 is a kind of schematic diagram of realization method of flow control apparatus as shown in figure 13.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention more comprehensible, develop simultaneously embodiment referring to the drawings, right The present invention is further described.
Fig. 1 is referred to, in one embodiment, ether bus architecture may be used in the network equipment 100, and includes interface board 11 and mainboard 12.Interface board 11 have interface chip 111 and the first logic device 112, also, mainboard 12 have CPU 121, with Too exchange chip 122, memory 123 and the second logic device 124.
Interface chip 111 can be that the network equipment 100 provides external interface, and handles the report received and dispatched by external interface Text.For example, the external interface that interface chip 111 provides can connect (Wide Area Network, wide area network), correspondingly, connect The external interface that mouth chip 111 provides is properly termed as wan interface.Wherein, wan interface described here can be ADSL (Asymmetric Digital Subscriber Line, Asymmetrical Digital Subscriber Line) interface and bus, using TDM The E1/T1 Interface and bus of (Time Division Multiplexing, time division multiplexing) technology, Consle (serial ports) interfaces and Bus or POS (Packet over SONET/SDH, SONET/SDH carryings packet) interface.In addition, interface chip 111 also passes through Interface bus 131 connects the first logic device 112.
Ether exchange chip 122 is connected with the first logic device 112 and CPU 121 by ether bus 132 and 133 respectively It connects.
Memory 123 connects CPU 121 by rambus 141.
Second logic device 124 is for example, by PCI-E (Peripheral Component Interconnect- Express, expanding peripherals component connection standard) the I/O buses 142 such as bus connect CPU 121.Correspondingly, CPU 121 may have access to Memory 123, also, the second logic device 124 can by CPU 121 with DMA (Direct Memory Access, directly in Deposit access) mode accesses memory 123.Wherein, dma mode described here refers to:Connection rambus is carried in CPU 121 141 and corresponding memory 123 Memory Controller Hub, also carry connection PCI-E buses 142 and corresponding second in CPU 121 and patrol The PCI-E controllers for collecting device 124, when the second logic device 124 accesses memory 123 with dma mode, in CPU 121 Visit order can be passed to Memory Controller Hub, to realize the direct access to memory 123 by PCI-E controllers.
Also, the second logic device 124 is also connect by managing bus 130 with the first logic device 112.Correspondingly, Two logic devices 124 and the first logic device 112 can be by managing the transmission of bus 130 control message or management query message Etc. the message for being related to routinely practical administration of the mainboard 12 to interface board 11.It can be LVDS (Low to manage bus 130 Voltage Differential Signaling, Low Voltage Differential Signal) bus or other can transmit mainboard 12 to interface board 11 Routinely practical administration message bus.
On the outgoing direction of the network equipment 100, the data Ethernet message that is sent out from CPU 121 by ether bus 133, with Too exchange chip 122 and ether bus 132 are transmitted to the first logic device 112.
In entering on direction for the network equipment 100, the data Ethernet message that the first logic device 112 is sent out passes through ether bus 132, ether exchange chip 122 and ether bus 133 are transmitted to CPU 121.
That is, the ether bus 132 and 133 between ether exchange chip 122 and the first logic device 112 and CPU 121 is led The transmission of data Ethernet message is undertaken, therefore, ether bus 132 and 133 can be considered as ether data channel, also, can To think, the ether data channel by way of ether exchange chip 122 is formed between the first logic device 112 and CPU 121.Separately Outside, ether data channel can be multiplexed with polylith interface board, also, interface board can logically create a plurality of logical channel, that is, The a plurality of logical channel multiplexing that ether data channel can be marked off in logic.
It refers to Fig. 1 and in combination with Fig. 2, the transmission buffer queue having on outgoing direction is safeguarded in the first logic device 112 21 and enter order caching queue 22 on direction.
On outgoing direction, the data Ethernet message 40 from CPU 121, which is buffered in, to be sent in buffer queue 21, also, is sent out After sending the data Ethernet message 40 in buffer queue 21 to be converted into external interface message 40 ', by interface bus 131 to interface Chip 111 is sent out;
On entering direction, the external interface message 40 ' from interface chip 111 is converted into data Ethernet message 40, simultaneously Be buffered in order caching queue 22, the data Ethernet message 40 in order caching queue 22 be admitted to ether data channel (that is, Ether bus 132).
In addition, when interface board 11 is there are when a plurality of logical channel, each logical channel corresponds to one and sends caching team respectively Row 21 and an order caching queue 22.
In order to enable whether transmissions of the perception data Ethernet message 40 on outgoing direction in time of CPU 121 occurs congestion, First logic device 112 can also be according to the data Ethernet message 40 being sent in buffer queue 21 be sent, and construction includes transmission Complete the flow control message of information.
The form that the flow control message and control message above-mentioned, management query message etc. are used uniformly atomic data packet exists Bus transfer is managed, also, for a flow control message, can only be encapsulated as the atomic data packet of 8 bytes, without It to be encapsulated as multiple atomic data packets as other messages such as control message, management query message.Accordingly, it is believed that First logic device 112 can also be according to the data Ethernet message being sent in buffer queue 21 be sent, and construction includes to have sent At the flow control atomic data packet 31 of information.
Fig. 3 is referred to, the flow control atomic data packet 31 that formed 8 byte is encapsulated by a flow control message may include Lead code 311, type of message and serial number 312, valid data load 313, load verification 314, cut-off mark 315.Wherein, effectively The following effective information of flow control message is carried in data load 314:
Interface panel sign 31a, mark construct the interface board 11 of the flow control atomic data packet 31;
Logical channel identifier 31b identifies the corresponding logic of information that is sent completely for including in the flow control message of encapsulation and leads to Road;
It is sent completely information 30, indicates the transmission situation of ether data message of the counterlogic channel on outgoing direction, For example, completing the number of the ether data message sent after upper flow control atomic data packet 31;
And reserved field 31c, it can be used for the extension to the flow control message of encapsulation.
The flow control atomic data packet 31 that first logic device 112 constructs can be prior to being inquired by control message, management The messages such as message encapsulate other to be formed atomic data packet and are transmitted in management bus 130.Even if controlling message, management query message Equal messages encapsulate the atomic data packet to be formed possibly more than one, and flow control atomic data packet 31 can also interrupt the same message Continuous multiple atomic data packets and preferentially transmitted in management bus 130.
That is, management bus 130 not only undertakes the message transmissions for being related to routinely practical administration of the mainboard 12 to interface board 11, Moreover, it is also possible to further undertake the transmission of flow control atomic data packet 31, therefore, it is logical that management bus 130 can be considered as management Road and flow control channel.Also, the flow control atomic data packet 31 of the arbitrary logical channel of corresponding arbitrary interface board can pass through stream Channel transfer is controlled, therefore, flow control channel can also be answered by polylith interface board and a plurality of logical channel marked off in logic With.
Fig. 4 is referred to, after the second logic device 124 receives atomic data packet by managing bus 130, it is first right to need The atomic data packet classification received, for example, can be according to the type of message in atomic data packet and point described in serial number execution Class.
If the atomic data packet received belongs to control message or management query message etc. and is related to mainboard 12 to interface board 11 Routinely practical administration message atomic data packet 35, then the second logic device 124 can execute corresponding control operation Or it manages inquiry operation and continues through management bus 130 and interacted with the first logic device 112.
If the atomic data packet received is flow control atomic data packet 31, the second logic device 124 can be from flow control original Parsing is obtained being sent completely information 30 and be constructed comprising the flow control message 32 for being sent completely information 30 in subdata packet 31.Also, Flow control message 32 can be written (dma mode may be used) memory 123 and notified (in may be used by the second logic device 124 Disconnected mode) CPU 121 reads from memory 123.
Fig. 5 is referred to, above-mentioned flow control message 32 can be I/O bus messages and include:
It is sent completely information 30;
Flow control significance bit 32a can be set to by the second logic device 124 effectively, to indicate that the flow control message 32 is current It is not yet read by CPU 121, and is set in vain by CPU 121 after flow control message 32 is read by CPU 121;
Reserved field 32b can be used for the extension to flow control message 32.
It refers to Fig. 1 and combines Fig. 6, can be arranged in memory 123 and be sent completely queue, the second logic device 124 can be with By the write-in of flow control message 32 to being sent completely in queue.Also, when there are polylith interface board and a plurality of logical channel, every piece connects Each logical channel of oralia corresponds to one respectively in memory 123 and is sent completely queue, and the second logic device 124 can foundation The interface panel sign and logical channel identifier parsed from flow control atomic data packet 31, identifies that flow control message 32 is corresponding and connects Oralia and logical channel, and being sent completely to the identity logic channel of corresponding same-interface plate is written into flow control message 32 In queue.For example, for the logical channel j (i be positive integer with j) of interface board i, the second logic device 124 can be from transmission The first address QueHeadAddress_i_j for completing queue starts to be sequentially written in the 1~M of flow control message in counterlogic channel (M is Positive integer).
CPU 121 can obtain flow control message 32 by reading memory 123.For example, selecting monokaryon CPU for CPU 121 The case where, interrupt mode notice CPU 121 may be used in the second logic device 124, and correspondingly, CPU 121 is to respond interruption Mode reads flow control message 32 from memory 123.For another example the case where selecting multi-core CPU for CPU 121, the second logic device 124 can not be and must notify CPU 121, but be read from memory 123 in a manner of poll by a specified core in CPU 121 Take flow control message 32.
Also, CPU 121 can be sent completely information Perception data Ethernet message in the side of going out according in flow control message 32 Whether upward transmission occurs congestion.In turn, in conjunction with flow control message 32 and its to be sent on outgoing direction ether data channel (that is, Ether bus 133) data Ethernet message statistics, CPU 121 can be with summary responses data Ethernet message on outgoing direction Congestion and congestion release.
It refers to Fig. 1 and combines Fig. 7, CPU 121 has network message protocol layer 401, driving layer 402 and is located at net QOS queues 403 between network message protocol layer 401 and driving layer 402.
Network message protocol layer 401 is responsible for processing data Ethernet message 40, and can perception data Ethernet message in the side of going out Whether upward transmission occurs congestion.
Layer 402 is driven to be responsible for executing biography of the data Ethernet message 40 by ether data channel on entering direction and outgoing direction It is defeated, access memory 123 in flow control message 32, safeguard on outgoing direction be sent into ether data channel (that is, ether bus 133) number According in the transmission statistical result and maintenance interface plate 11 of Ethernet message 40 transmission buffer queue 21 quene state 42 and on Offer network message protocol layer 401.Also, when there are polylith interface board and a plurality of logical channel, driving layer 402 can foundation The corresponding flow control message 32 read in queue that is sent completely safeguards the corresponding queue for sending buffer queue 21 from memory 123 State 42.
For outgoing direction, after data Ethernet message 40 is sent into ether data channel (that is, ether bus 133), driving The transmission statistical result of the data Ethernet message 40 of ether data channel (that is, ether bus 133) is sent on 402 pairs of outgoing direction of layer Add up corresponding numerical value.When the numerical value for sending statistical result reaches the caching upper limit for sending buffer queue 21, driving layer 402 will Indicate that the quene state 42 of non-full state is set to full state.
Also, transmission can be completed according to being sent completely represented by information 30 in flow control message 32 in driving layer 402 Data Ethernet message 40 quantity, on outgoing direction be sent into ether data channel data Ethernet message 40 transmission count knot Fruit reduces corresponding numerical value.When sending the numerical value of statistical result less than the caching upper limit for sending buffer queue 21, layer 402 is driven It will indicate that the quene state 42 of full state is set to non-full state.
Correspondingly, if the quene state 42 that driving layer 402 is reported to network message protocol layer 401 is non-full, network report Data Ethernet message 40 on outgoing direction is issued that (the data Ethernet message 40 cached in QOS queues 403 is excellent by literary protocol layer 401 First) to driving layer 402, the data Ethernet message 40 issued is sent into ether data channel (that is, ether bus by driving layer 402 133).If the quene state 42 that driving layer 402 is reported to network message protocol layer 401 is full, network message protocol layer 401 will Data Ethernet message 40 on outgoing direction, which is sent into QOS queues, to be cached, until driving layer 402 is on network message protocol layer 401 The quene state 42 of report becomes non-full.
As above as it can be seen that the first logic device 112 of interface board 11 can be by the transmission of the data Ethernet message on outgoing direction Completion information 30, which is encapsulated in flow control atomic data packet 31, to be reported, which, which can pass through, manages bus 130 It is forwarded to the second logic device 124 of mainboard 12, the second logic device 124 passes through the parsing energy to flow control atomic data packet 31 It accesses and is sent completely information 30 and is encapsulated in CPU 121 of the memory 123 for mainboard 12 that mainboard 12 is written in flow control message 32 Immediately it reads, the CPU 121 of mainboard 12 is enable to perceive whether the data Ethernet message on outgoing direction occurs congestion in time, to Be conducive to accurately realize the QOS on network equipment outgoing direction.
Moreover, being sent completely reporting for information 30 is not take up ether data channel 133, so as to avoid influencing data with The too transmission of message;And CPU 121 is to the processing for being sent completely information 30 of outgoing direction data Ethernet message and to entering direction Data Ethernet message processing it is mutual indepedent, to realize the loose couplings that sends and receives of the CPU 121 to data Ethernet message It closes.
Based on above-mentioned principle, the flow control method and device of the network equipment have been also correspondingly provided in embodiment below, It is described in detail separately below.
Fig. 8 is referred to, in one embodiment, the flow control method of the network equipment can be applied to the interface board of the network equipment Logic device (such as first logic device 112 shown in Fig. 1) in, also, the flow control method may include:
S811, according to the data Ethernet message being sent in buffer queue is sent, construction includes the stream for being sent completely information Control atomic data packet;
S812 transmits the flow control atomic data packet constructed in management trunk priority in other atomic data packets.
Wherein, for forming a plurality of logical channel there are polylith interface board and interface board the case where, above-mentioned S811 is also The interface panel sign of interface board can be further filled in flow control atomic data packet and the number sent is completed on outgoing direction According to the corresponding logical channel identifier of Ethernet message.
Fig. 9 is referred to, in another embodiment, the flow control method of the network equipment can be applied to the mainboard of the network equipment Logic device (such as second logic device 124 shown in Fig. 1) in, also, the flow control method may include:
S821 receives atomic data packet by managing bus;
S822 identifies the type of the atomic data packet received;
S823, if identifying, the atomic data packet received is flow control atomic data packet, from flow control atomic data packet Parsing obtains being sent completely information;
S824, construction are sent completely the flow control message of information comprising this;
The memory of the CPU of mainboard is written in the flow control message constructed by S825.
Wherein, if 822 identify the atomic data packet received message or the atomic data of management query message in order to control Packet then terminates current process, and executes corresponding control operation or management inquiry operation by other flows.Also, it is above-mentioned Flow control message is written to memory in the mode that DMA may be used in S825, and, above-mentioned S825 can also further use interruption Mode notifies CPU to read flow control message from memory.Also, for there are polylith interface boards and interface board to form a plurality of logic The case where channel, above-mentioned S823 can further parsing obtains interface panel sign and logical channel from flow control atomic data packet Mark, correspondingly, the interface panel sign and logical channel identifier that above-mentioned S825 can be obtained according to parsing write flow control message Enter into memory corresponding be sent completely in queue.
Figure 10 is referred to, In yet another embodiment, the flow control method of the network equipment can be applied to the master of the network equipment In the CPU (such as CPU 121 shown in Fig. 1) of plate, also, the flow control method may include:
S830 judges the state of transmission buffer queue safeguarded in the interface board of the network equipment;
Data Ethernet message on outgoing direction is sent into ether by S831 when the state of the transmission buffer queue is non-full Data channel;
Data Ethernet message on outgoing direction is sent into QOS queues by S832 when the state for sending buffer queue is full Caching, until the state of the transmission buffer queue becomes non-full.
S841 reads flow control when receiving the notice for reading memory from the logic device of mainboard from the memory of mainboard Message;
S842, according on outgoing direction to be sent into ether data channel data Ethernet message statistics and read Flow control message in be sent completely maintenance of information send buffer queue state.
Wherein, above-mentioned S841 can by way of poll or response interrupt mode from the memory of mainboard reading flow Control message.Also, the case where for forming a plurality of logical channel there are polylith interface board and interface board, above-mentioned S841 is from right The flow control message read in queue that is sent completely answered can be used for the state that S842 safeguards corresponding transmission buffer queue.
Figure 11 is referred to, corresponding flow control method as shown in Figure 8 accordingly provides a kind of network in one embodiment The flow control apparatus 91 of equipment, the logic device which can be applied to the interface board of the network equipment (such as show in Fig. 1 The first logic device 112 gone out) in, also, the flow control apparatus 91 may include:
Data packet constructing module 911, according to the data Ethernet message being sent in buffer queue is sent, construction includes transmission Complete the flow control atomic data packet of information;
Data packet reporting module 912, by the flow control atomic data packet constructed in management trunk priority in other atomicities It is transmitted according to packet.
Wherein, for forming a plurality of logical channel there are polylith interface board and interface board the case where, above-mentioned data packet Constructing module 911 can also further fill the interface panel sign of interface board and in outgoing direction in flow control atomic data packet The upper corresponding logical channel identifier of data Ethernet message for completing to send.
Figure 12 is referred to, corresponding flow control method as shown in Figure 9 accordingly provides a kind of net in another embodiment The flow control apparatus 92 of network equipment, the logic device which can be applied to the mainboard of the network equipment (such as show in Fig. 1 The second logic device 124 gone out) in, also, the flow control apparatus 92 may include:
Packet-receiving module 921 receives atomic data packet by managing bus;
Packet classification module 922 identifies the type of the atomic data packet received;
Resolve packet module 923, if identifying, the atomic data packet received is flow control atomic data packet, from flow control Parsing obtains being sent completely information in atomic data packet;
Message constructing module 924, construction are sent completely the flow control message of information comprising this;
The memory of the CPU of mainboard is written in the flow control message constructed by information reporting module 925.
Wherein, above-mentioned information reporting module 925 may be used the mode of DMA and flow control message be written to memory, above-mentioned Information reporting module 925 can notify CPU to read flow control message from memory in a manner of further using and interrupt.Also, for The case where forming a plurality of logical channel there are polylith interface board and interface board, above-mentioned resolve packet module 923 can be into One step parses from flow control atomic data packet and obtains interface panel sign and logical channel identifier, correspondingly, above-mentioned information reporting The interface panel sign and logical channel identifier that module 925 can be obtained according to parsing flow control message are written into memory corresponding It is sent completely in queue.
Refer to Figure 13, corresponding flow control method as shown in Figure 10 provides a kind of network and sets In yet another embodiment Standby flow control apparatus 93, the flow control apparatus 93 include:
Drive module 931 is sent, when the state for the transmission buffer queue safeguarded in the interface board of the network equipment is non-full, Data Ethernet message on outgoing direction is sent into ether data channel;
QOS cache modules 932, when the state for sending buffer queue is full, by the data ether report on outgoing direction Text is sent into QOS queues and is cached, until the state for sending buffer queue becomes non-full;
Memory read module 933, when receiving the notice for reading memory from the logic device of mainboard, from the memory Read flow control message;
Queue maintenance module 934, according on outgoing direction to be sent into ether data channel data Ethernet message statistics, And it is sent completely the state that buffer queue is sent described in maintenance of information in the flow control message.
Wherein, above-mentioned memory read module 933 can be by way of poll or mode that response is interrupted is from mainboard Flow control message is read in memory.Also, the case where for forming a plurality of logical channel there are polylith interface board and interface board, on The memory read module 933 stated can be used for queue maintenance module from the corresponding flow control message read in queue that is sent completely 934 safeguard the corresponding state for sending buffer queue.
As a kind of optional scheme, above-mentioned flow control apparatus as shown in fig. 13 that 93 can by way of soft or hard combination come It realizes.Figure 14 is referred to, (can be figure including CPU 931 (can be identical as CPU shown in Fig. 1 121) and memory 932 Memory 123 shown in 1 can also be other memories) hardware structure in, which can be to be stored in memory Computer instruction in 932 can simultaneously be read to complete functions of modules as shown in fig. 13 that by CPU 931.To:
When the state for the transmission buffer queue safeguarded in the interface board of the network equipment is non-full, CPU 931 is by outgoing direction On data Ethernet message be sent into ether data channel;
When the state for sending buffer queue is full, the data Ethernet message on outgoing direction is sent into QOS by CPU 931 It is cached in queue, until the state for sending buffer queue becomes non-full;
When receiving the notice for reading memory from the logic device of mainboard, CPU 931 (such as is shown from memory in Fig. 1 Memory 123) in read flow control message;
And CPU 931 also according on outgoing direction to be sent into ether data channel data Ethernet message statistics, with And it is sent completely the state that buffer queue is sent described in maintenance of information in the flow control message.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention With within principle, any modification, equivalent substitution, improvement and etc. done should be included within the scope of protection of the invention god.

Claims (16)

1. a kind of flow control method of the network equipment, which is characterized in that the flow control method is applied to the interface board of the network equipment In logic device, also, the flow control method includes:
According to the data Ethernet message being sent in buffer queue is sent, construction includes the flow control atomic data for being sent completely information Packet;
By the flow control atomic data packet in management trunk priority in the logic of other mainboards of atomic data packet to the network equipment Device transmit, for mainboard logic device by the way that the parsing of flow control atomic data packet is obtained being sent completely information and is encapsulated in The memory of mainboard is written in flow control message and the CPU of mainboard is notified to be read from memory.
2. flow control method according to claim 1, which is characterized in that the flow control method is further in the flow control atom The interface panel sign of the interface board is filled in data packet and the data ether sent is completed on the outgoing direction of the network equipment The corresponding logical channel identifier of message.
3. a kind of flow control method of the network equipment, which is characterized in that the flow control method is applied to patrolling for the mainboard of the network equipment It collects in device, also, the flow control method includes:
Atomic data packet is received by managing bus;
Identify the type of the atomic data packet received;
If identifying, the atomic data packet received is flow control atomic data packet, is parsed from the flow control atomic data packet To being sent completely information;
Construction includes the flow control message for being sent completely information;
The flow control message is written to the memory of the CPU of mainboard and the CPU is notified to be read from the memory.
4. flow control method according to claim 3, which is characterized in that the flow control method is in a manner of DMA to described interior Deposit the write-in flow control message.
5. flow control method according to claim 3, which is characterized in that the flow control method is notified described in a manner of interrupting CPU。
6. flow control method according to claim 3, which is characterized in that the flow control method is according further to flow control original Corresponding transmission is written into the memory in the flow control message by the interface panel sign in subdata packet and logical channel identifier It completes in queue.
7. a kind of flow control apparatus of the network equipment, which is characterized in that the flow control apparatus is applied to the interface board of the network equipment In logic device, also, the flow control apparatus includes:
Data packet constructing module, according to the data Ethernet message being sent in buffer queue is sent, construction includes to be sent completely letter The flow control atomic data packet of breath;
Module is sent in data packet, and the flow control atomic data packet is set in other atomic data packets to network in management trunk priority The logic device of standby mainboard transmits, for mainboard logic device by obtaining having sent to the parsing of flow control atomic data packet At information and it is encapsulated in the memory of write-in mainboard in flow control message and the CPU of mainboard is notified to be read from memory.
8. flow control apparatus according to claim 7, which is characterized in that the data packet constructing module is further in the stream The interface panel sign of the interface board is filled in control atomic data packet and the number sent is completed on the outgoing direction of the network equipment According to the corresponding logical channel identifier of Ethernet message.
9. a kind of flow control apparatus of the network equipment, which is characterized in that the flow control apparatus is applied to patrolling for the mainboard of the network equipment It collects in device, also, the flow control apparatus includes:
Packet-receiving module receives atomic data packet by managing bus;
Packet classification module identifies the type of the atomic data packet received;
Resolve packet module, if identifying, the atomic data packet received is flow control atomic data packet, from flow control original Parsing obtains being sent completely information in subdata packet;
Message constructing module, construction include the flow control message for being sent completely information;
The flow control message is written the memory of the CPU of mainboard and the CPU is notified to be read from the memory by information reporting module It takes.
10. flow control apparatus according to claim 9, which is characterized in that the information reporting module is in a manner of DMA to institute It states memory and the flow control message is written.
11. flow control apparatus according to claim 9, which is characterized in that the information reporting module is led in a manner of interrupting Know the CPU.
12. flow control apparatus according to claim 9, which is characterized in that the information reporting module is according further to described Interface panel sign in flow control atomic data packet and logical channel identifier the flow control message are written into the memory corresponding Be sent completely in queue.
13. a kind of network equipment, which is characterized in that including interface board and mainboard, the interface board has the first logic device, institute Stating mainboard has CPU, memory, ether exchange chip and the second logic device;
First logic device is connected with second logic device by managing bus;
First logic device includes to be sent completely letter according to the data Ethernet message being sent in buffer queue, construction is sent The flow control atomic data packet of breath, and, by the flow control atomic data packet in the management trunk priority in other atomic datas Packet transmission;
Second logic device receives atomic data packet by managing bus and identifies the class of the atomic data packet received Type, if identifying, the atomic data packet received is flow control atomic data packet, is parsed from the flow control atomic data packet To being sent completely information, and, construction comprising the flow control message for being sent completely information is written the memory and described in notifying CPU is read from the memory;
The CPU is when the state for sending buffer queue is non-full, described in the data Ethernet message feeding on outgoing direction Ether data channel;When the state for sending buffer queue is full, the data Ethernet message on outgoing direction is sent into QOS teams It is cached in row, until the state for sending buffer queue becomes non-full;It is received in reading from second logic device When the notice deposited, flow control message is read from the memory;And according to the number to being sent into ether data channel on outgoing direction The state of buffer queue is sent described in maintenance of information according to being sent completely in the statistics of Ethernet message and the flow control message.
14. the network equipment according to claim 13, which is characterized in that first logic device is further in the stream The interface panel sign of the interface board is filled in control atomic data packet and the data ether sent is completed on the outgoing direction The corresponding logical channel identifier of message;Second logic device is according further to the interface board in the flow control atomic data packet Mark and logical channel identifier, be sent completely in queue corresponding into the memory is written by the flow control message;And institute Flow control method is stated according to the flow control message read in queue from being sent completely in the memory, safeguards the corresponding hair Send the state of buffer queue.
15. the network equipment according to claim 13, which is characterized in that second logic device in a manner of DMA to The flow control message is written in the memory.
16. the network equipment according to claim 13, which is characterized in that second logic device is led in a manner of interrupting Know the CPU.
CN201510083894.XA 2015-02-16 2015-02-16 The flow control method and flow control apparatus and the network equipment of the network equipment Active CN104601490B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510083894.XA CN104601490B (en) 2015-02-16 2015-02-16 The flow control method and flow control apparatus and the network equipment of the network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510083894.XA CN104601490B (en) 2015-02-16 2015-02-16 The flow control method and flow control apparatus and the network equipment of the network equipment

Publications (2)

Publication Number Publication Date
CN104601490A CN104601490A (en) 2015-05-06
CN104601490B true CN104601490B (en) 2018-10-09

Family

ID=53127007

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510083894.XA Active CN104601490B (en) 2015-02-16 2015-02-16 The flow control method and flow control apparatus and the network equipment of the network equipment

Country Status (1)

Country Link
CN (1) CN104601490B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487721B (en) * 2015-08-25 2019-10-08 新华三技术有限公司 The network equipment and for the message forwarding method in the network equipment
US10817528B2 (en) 2015-12-15 2020-10-27 Futurewei Technologies, Inc. System and method for data warehouse engine
CN105893323A (en) * 2016-05-23 2016-08-24 华为技术有限公司 Data reading method and data reading equipment
CN112887059B (en) * 2021-01-26 2023-04-07 芯河半导体科技(无锡)有限公司 Method for expanding MAC frame format in-band transmission flow control data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6167029A (en) * 1998-10-13 2000-12-26 Xaqti Corporation System and method for integrated data flow control
CN1494003A (en) * 2002-10-30 2004-05-05 华为技术有限公司 Device and method for realizing interface conversion
CN101047615A (en) * 2006-05-14 2007-10-03 华为技术有限公司 Control method for Ethernet data flow
CN101119379A (en) * 2007-09-07 2008-02-06 中兴通讯股份有限公司 Method and apparatus for implementing mutual communication of processor and switching chip
CN101188560A (en) * 2007-12-18 2008-05-28 杭州华三通信技术有限公司 Method and device for dynamically detecting forward capability
CN103546386A (en) * 2013-10-24 2014-01-29 迈普通信技术股份有限公司 Method and system for flow control over data message sent by router

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6167029A (en) * 1998-10-13 2000-12-26 Xaqti Corporation System and method for integrated data flow control
CN1494003A (en) * 2002-10-30 2004-05-05 华为技术有限公司 Device and method for realizing interface conversion
CN101047615A (en) * 2006-05-14 2007-10-03 华为技术有限公司 Control method for Ethernet data flow
CN101119379A (en) * 2007-09-07 2008-02-06 中兴通讯股份有限公司 Method and apparatus for implementing mutual communication of processor and switching chip
CN101188560A (en) * 2007-12-18 2008-05-28 杭州华三通信技术有限公司 Method and device for dynamically detecting forward capability
CN103546386A (en) * 2013-10-24 2014-01-29 迈普通信技术股份有限公司 Method and system for flow control over data message sent by router

Also Published As

Publication number Publication date
CN104601490A (en) 2015-05-06

Similar Documents

Publication Publication Date Title
CN105991471B (en) The flow control method and flow control apparatus and the network equipment of the network equipment
KR101502610B1 (en) 50 Gb/s ETHERNET USING SERIALIZER/DESERIALIZER LANES
DE60213616T2 (en) A GENERAL INPUT / OUTPUT ARCHITECTURE, PROTOCOL AND CORRESPONDING METHODS FOR IMPLEMENTING RIVER CONTROL
CN104601490B (en) The flow control method and flow control apparatus and the network equipment of the network equipment
TWI538453B (en) Universal network interface controller
US7296093B1 (en) Network processor interface system
CN106411740B (en) Network port extended method based on ethernet controller
TW318986B (en)
CN101867511B (en) Pause frame sending method, associated equipment and system
WO2016078312A1 (en) Single board testing method and device
CN109408424B (en) PCIe interface-based SpaceFibre bus data acquisition method
CN108183917A (en) DDoS attack cross-layer cooperative detection method based on software defined network
CN104092632B (en) A kind of network equipment
TW200947957A (en) Non-block network system and packet arbitration method thereof
JP5141830B2 (en) Communication device, statistical information collection control device, and statistical information collection control method
CN102571933A (en) Reliable message transmission method
GB2401518A (en) Efficient arbitration using credit based flow control
JP5687959B2 (en) I / O device sharing method and apparatus
CN103995789B (en) A kind of direct memory access realizes system and method
CN104518989B (en) The exchange apparatus of network element for data transmission network
WO2013078873A1 (en) Method and device for identifying response message
US7218638B2 (en) Switch operation scheduling mechanism with concurrent connection and queue scheduling
CN102984082A (en) Network service quality control method and device
CN101242366A (en) A router and management and control method for router
CN108011795B (en) A kind of method and system for realizing more boards and multiple data channel management in communication equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant