CN104601490A - Network device and traffic control method and device thereof - Google Patents

Network device and traffic control method and device thereof Download PDF

Info

Publication number
CN104601490A
CN104601490A CN201510083894.XA CN201510083894A CN104601490A CN 104601490 A CN104601490 A CN 104601490A CN 201510083894 A CN201510083894 A CN 201510083894A CN 104601490 A CN104601490 A CN 104601490A
Authority
CN
China
Prior art keywords
flow control
message
atomic data
data bag
logic device
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
CN201510083894.XA
Other languages
Chinese (zh)
Other versions
CN104601490B (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou 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

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a network device and a traffic control method and device thereof. A logical device of an interface board is capable of packaging transmitting completion information of data Ethernet messages in the outgoing direction into a traffic control atomic data packet for reporting; the traffic control atomic data packet is capable of forwarding the transmitting completion information to a logical device of a main board through a management bus; the logical device of the main board analyzes the traffic control atomic data packet to obtain the transmitting completion information, packaging the transmitting completion information into a traffic control message, writing the transmitting completion information into a memory of the main board for a CPU (central processing unit) of the main board to read; thus, the CPU of the main board is capable of sensing whether or not the data Ethernet messages in the outgoing direction are jammed in time, and outgoing-directional QOS (quality of service) of the network device can be accurately achieved. Meanwhile, transmission of reporting effect data Ethernet messages of the transmitting completion information can be avoided, and loose coupling between transmitting and receiving of the data Ethernet messages is achieved for the CPU.

Description

The flow control method of the network equipment and flow control apparatus and the network equipment
Technical field
The present invention relates to network technology, particularly the flow control method of the network equipment, the flow control apparatus of the network equipment and the network equipment.
Background technology
The network equipment can adopt ether bus architecture, and, in ether bus architecture, may there is the mutual unmatched situation of band width in physical in the interface data passage between the logic device of the ether data channel between the CPU of mainboard and the ether exchange chip of mainboard, ether data channel between the ether exchange chip of mainboard and the logic device of interface board and interface board and the interface chip of interface board.
Therefore, easily there is the congested of data message in the network equipment on outgoing direction.If the CPU of mainboard cannot the aforementioned congested and aforementioned congested releasing of perception in time, be then difficult to the QOS (Quality of Service, service quality) accurately realized on network equipment outgoing direction.
Summary of the invention
In view of this, The embodiment provides a kind of flow control method of the network equipment, a kind of flow control apparatus of the network equipment and the network equipment.
In one embodiment, a kind of flow control method of the network equipment is applied in the logic device of the interface board of the network equipment, and described flow control method comprises:
According to sending the data Ethernet message be sent in buffer queue, structure comprises the Flow Control atomic data bag of the information of being sent completely;
Described Flow Control atomic data is wrapped in management bus and have precedence over the transmission of other atomic data bags.
Alternatively, described flow control method is filled the interface board mark of described interface board further and on described outgoing direction, is completed logical channel identifier corresponding to the data Ethernet message of transmission in described Flow Control atomic data bag.
In another embodiment, a kind of flow control method of the network equipment is applied in the logic device of the mainboard of the network equipment, and described flow control method comprises:
Atomic data bag is received by management bus;
Identify the type of the atomic data bag received;
The atomic data bag received if identify is Flow Control atomic data bag, then resolve from described Flow Control atomic data bag and obtain being sent completely information;
The Flow Control message of information is sent completely described in structure comprises;
Described Flow Control message write the internal memory of the CPU of mainboard and notify that described CPU reads from described internal memory.
Alternatively, described flow control method writes described Flow Control message in the mode of DMA to described internal memory.
Alternatively, described flow control method notifies described CPU in the mode of interrupting.
Alternatively, described Flow Control message according to the interface board mark in described Flow Control atomic data bag and logical channel identifier, is write to corresponding being sent completely in queue in described internal memory by described flow control method further.
In one embodiment, a kind of flow control apparatus of the network equipment is applied in the logic device of the interface board of the network equipment, and described flow control apparatus comprises:
Packet constructing module, according to sending the data Ethernet message be sent in buffer queue, structure comprises the Flow Control atomic data bag of the information of being sent completely;
Packet send module, described Flow Control atomic data is wrapped in management bus and have precedence over the transmission of other atomic data bags.
Alternatively, described packet constructing module is filled the interface board mark of described interface board further and on described outgoing direction, is completed logical channel identifier corresponding to the data Ethernet message of transmission in described Flow Control atomic data bag.
In another embodiment, a kind of flow control apparatus of the network equipment is applied in the logic device of the mainboard of the network equipment, and described flow control apparatus comprises:
Packet-receiving module, receives atomic data bag by management bus;
Packet classification module, identifies the type of the atomic data bag received;
Packet parsing module, the atomic data bag received if identify is Flow Control atomic data bag, then resolve from described Flow Control atomic data bag and obtain being sent completely information;
Message constructing module, is sent completely the Flow Control message of information described in structure comprises;
Information reporting module, writes the internal memory of the CPU of mainboard and notifies that described CPU reads from described internal memory by described Flow Control message.
Alternatively, described information reporting module writes described Flow Control message in the mode of DMA to described internal memory.
Alternatively, described information reporting module notifies described CPU in the mode of interrupting.
Alternatively, described Flow Control message according to the interface board mark in described Flow Control atomic data bag and logical channel identifier, is write to corresponding being sent completely in queue in described internal memory by described information reporting module further.
In one embodiment, a kind of network equipment, comprises interface board and mainboard, and described interface board has the first logic device, and described mainboard has CPU, internal memory, ether exchange chip and the second logic device;
Described first logic device is connected by management bus with described second logic device;
Described first logic device is according to sending the data Ethernet message be sent in buffer queue, and structure comprises the Flow Control atomic data bag of the information of being sent completely, and, described Flow Control atomic data is wrapped in described management bus and have precedence over the transmission of other atomic data bags;
Described second logic device receives atomic data bag by management bus and identifies the type of the atomic data bag received, the atomic data bag received if identify is Flow Control atomic data bag, then resolve from described Flow Control atomic data bag and obtain being sent completely information, and the Flow Control message being sent completely information described in structure comprises writes described internal memory and notifies that described CPU reads from described internal memory;
Data Ethernet message on outgoing direction, when the state of described transmission buffer queue is non-full, is sent into described ether data channel by described CPU; When the state of described transmission buffer queue is full, the data Ethernet message on outgoing direction is sent into buffer memory in QOS queue, until the state of described transmission buffer queue becomes non-full; When receiving the notice reading internal memory from described second logic device, from described internal memory, read Flow Control message; And, be sent completely the state that maintenance of information described in send buffer queue to sending in the statistics of data Ethernet message of ether data channel and described Flow Control message according on outgoing direction.
Alternatively, described first logic device is filled the interface board mark of described interface board further and on described outgoing direction, is completed logical channel identifier corresponding to the data Ethernet message of transmission in described Flow Control atomic data bag; Described Flow Control message, further according to the interface board mark in described Flow Control atomic data bag and logical channel identifier, to write in described internal memory and corresponding is sent completely in queue by described second logic device; And described flow control method, according to the described Flow Control message read in queue from being sent completely described internal memory, safeguards the state of corresponding described transmission buffer queue.
Alternatively, described second logic device writes described Flow Control message in the mode of DMA to described internal memory.
Alternatively, described second logic device notifies described CPU in the mode of interrupting.
As can be seen here, the Information encapsulation that is sent completely of the data Ethernet message on outgoing direction can report by the logic device of interface board in Flow Control atomic data bag, Flow Control atomic data bag can be forwarded to the logic device of mainboard by management bus, the logic device of mainboard is by obtaining the parsing of Flow Control atomic data bag described being sent completely information, and the CPU being encapsulated in the internal memory confession mainboard writing mainboard in Flow Control message reads immediately, the data Ethernet message on the timely perception outgoing direction of the CPU of mainboard is enable whether to occur congested, thus be conducive to accurately realizing the QOS on network equipment outgoing direction.And, be sent completely reporting of information and do not take ether data channel, to avoid the transmission affecting data Ethernet message; CPU to the process of the information that is sent completely of outgoing direction data Ethernet message with separate to the process of the data Ethernet message entering direction, to realize the transmission of CPU to data Ethernet message and the loose coupling of reception.
Accompanying drawing explanation
Fig. 1 is the example arrangement schematic diagram of the network equipment in an 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 the Flow Control atomic data bag shown in Fig. 1 and Fig. 2;
Fig. 4 is the schematic diagram of the second logic device shown in Fig. 1;
Fig. 5 is the schematic diagram of the Flow Control message shown in Fig. 1;
Fig. 6 is the schematic diagram of the location mode of Flow Control message in internal memory shown in Fig. 1;
Fig. 7 is the schematic diagram of the CPU shown in Fig. 1;
Fig. 8 is the schematic flow sheet of the flow control method of the network equipment in an embodiment;
Fig. 9 is the schematic flow sheet of the flow control method of the network equipment in another embodiment;
Figure 10 is the schematic flow sheet of the flow control method of the network equipment in another embodiment;
Figure 11 is the structural representation of the flow control apparatus of the network equipment in an embodiment;
Figure 12 is the structural representation of the flow control apparatus of the network equipment in another embodiment;
Figure 13 is the structural representation of the flow control apparatus of the network equipment in another embodiment;
Figure 14 is the schematic diagram of a kind of implementation of flow control apparatus as shown in figure 13.
Embodiment
For making object of the present invention, technical scheme and advantage clearly understand, to develop simultaneously embodiment referring to accompanying drawing, the present invention is described in more detail.
Refer to Fig. 1, in one embodiment, the network equipment 100 can adopt ether bus architecture, and comprises interface board 11 and mainboard 12.Interface board 11 has interface chip 111 and the first logic device 112, and mainboard 12 has CPU 121, ether exchange chip 122, internal memory 123 and the second logic device 124.
Interface chip 111 can provide external interface for the network equipment 100, and processes the message received and dispatched by external interface.Such as, the external interface that interface chip 111 provides can connect (Wide Area Network, wide area network), and correspondingly, the external interface that interface chip 111 provides can be called wan interface.Wherein, wan interface described here can be ADSL (Asymmetric Digital Subscriber Line, Asymmetrical Digital Subscriber Line) interface and bus, employing TDM (TimeDivision Multiplexing, time division multiplexing) E1/T1 Interface of technology and bus, Consle (serial ports) interface and bus or POS (Packet over SONET/SDH, SONET/SDH carries bag) interface.In addition, interface chip 111 also connects the first logic device 112 by interface bus 131.
Ether exchange chip 122 is connected by ether bus 132 and 133 with the first logic device 112 and CPU 121 respectively.
Internal memory 123 connects CPU 121 by rambus 141.
Second logic device 124 connects CPU 121 by I/O buses 142 such as such as PCI-E (Peripheral Component Interconnect-Express, expanding peripherals component interconnect) buses.Correspondingly, CPU 121 may have access to internal memory 123, and the second logic device 124 can by CPU 121 with DMA (Direct Memory Access, direct memory access) mode access memory 123.Wherein, dma mode described here refers to: carry in CPU 121 and connect rambus 141 and the Memory Controller Hub of corresponding internal memory 123, also carry in CPU 121 and connect PCI-E bus 142 and the PCI-E controller of corresponding second logic device 124, when the second logic device 124 is with dma mode access memory 123, visit order can be passed to Memory Controller Hub, to realize the direct access to internal memory 123 by the PCI-E controller in CPU 121.
Further, the second logic device 124 is also connected with the first logic device 112 by management bus 130.Correspondingly, the second logic device 124 and the first logic device 112 can be transmitted by management bus 130 and control message or managing queries message etc. and relate to the message that mainboard 12 docks the practical administration routinely of oralia 11.Management bus 130 can be LVDS (Low VoltageDifferential Signaling, Low Voltage Differential Signal) bus, or other can transmit the bus that mainboard 12 docks the message of the practical administration routinely of oralia 11.
On the outgoing direction of the network equipment 100, the data Ethernet message sent from CPU 121 transfers to the first logic device 112 by ether bus 133, ether exchange chip 122 and ether bus 132.
Enter on direction at the network equipment 100, the data Ethernet message that the first logic device 112 sends transfers to CPU 121 by ether bus 132, ether exchange chip 122 and ether bus 133.
Namely, ether exchange chip 122 and the ether bus 132 and 133 between the first logic device 112 and CPU 121 mainly bear the transmission of data Ethernet message, therefore, ether bus 132 and 133 can be regarded as ether data channel, and, can think, between the first logic device 112 and CPU 121, be formed with the ether data channel by way of ether exchange chip 122.In addition, ether data channel can polylith interface board multiplexing, and interface board can logically form many logical channels, that is, ether data channel can be multiplexing by many logical channels marked off in logic.
Refer to Fig. 1 and simultaneously safeguard the reception buffer queue 22 having the transmission buffer queue 21 on outgoing direction and enter on direction in composition graphs 2, first logic device 112.
On outgoing direction, the data Ethernet message 40 from CPU 121 is buffered in and sends in buffer queue 21, and, after the data Ethernet message 40 sent in buffer queue 21 is converted into external interface message 40 ', sent to interface chip 111 by interface bus 131;
Entering on direction, external interface message 40 ' from interface chip 111 is converted into data Ethernet message 40 and is buffered in and receives in buffer queue 22, the data Ethernet message 40 received in buffer queue 22 is admitted to ether data channel (that is, ether bus 132).
In addition, when interface board 11 exists many logical channels, each logical channel is a corresponding transmission buffer queue 21 and a reception buffer queue 22 respectively.
Can the transmission of perception data Ethernet message 40 on outgoing direction in time whether occur congested to make CPU 121, first logic device 112 can also according to sending the data Ethernet message 40 be sent in buffer queue 21, and structure comprises the Flow Control message of the information of being sent completely.
The unified form of atomic data bag that adopts such as this Flow Control message and aforesaid control message, managing queries message is transmitted at management bus, and, for a Flow Control message, it only can be encapsulated as the atomic data bag of 8 bytes, and does not need to be encapsulated as multiple atomic data bag as other messages such as control message, managing queries message etc.Therefore, can think, the first logic device 112 can also according to sending the data Ethernet message be sent in buffer queue 21, and structure comprises the Flow Control atomic data bag 31 of the information of being sent completely.
Refer to Fig. 3, the Flow Control atomic data bag 31 being encapsulated 8 bytes formed by a Flow Control message can comprise lead code 311, type of message and sequence number 312, valid data load 313, load verification 314, cut-off mark 315.Wherein, the following effective information of Flow Control message is carried in valid data load 314:
Interface board mark 31a, the interface board 11 of its this Flow Control atomic data bag 31 of mark structure;
Logical channel identifier 31b, the logical channel that the information that is sent completely comprised in the Flow Control message of its mark encapsulation is corresponding;
Be sent completely information 30, it represents the transmission situation of the ether data message of counterlogic passage on outgoing direction, such as, completes the number of the ether data message of transmission after a upper Flow Control atomic data bag 31;
And reserved field 31c, it can be used for the expansion of the Flow Control message to encapsulation.
The Flow Control atomic data bag 31 that first logic device 112 constructs can have precedence over and encapsulate by the control message such as message, managing queries message other atomic datas formed and wrap in management bus 130 and transmit.Even if the atomic data bag controlling the message such as message, managing queries message encapsulation formation may be more than one, Flow Control atomic data bag 31 also can interrupt continuous multiple atomic data bag of same message and preferentially transmit at management bus 130.
That is, management bus 130 is not only born and is related to the message transmissions that mainboard 12 docks the practical administration routinely of oralia 11, and can also bear the transmission of Flow Control atomic data bag 31 further, therefore, management bus 130 can be regarded as management channels and Flow Control passage.Further, the Flow Control atomic data bag 31 of corresponding any logical channel of interface board arbitrarily can pass through Flow Control channel transfer, therefore, Flow Control passage also can by polylith interface board and many logical channels marked off in logic multiplexing.
Refer to Fig. 4, after the second logic device 124 receives atomic data bag by management bus 130, need first to the atomic data bag classification received, such as, the classification described in can performing according to the type of message in atomic data bag and sequence number.
If the atomic data bag received belongs to and controls message or managing queries message etc. and relate to the atomic data bag 35 that mainboard 12 docks the message of the practical administration routinely of oralia 11, then the second logic device 124 can perform corresponding control operation or managing queries operate and continue through management bus 130 and the first logic device 112 mutual.
If the atomic data bag received is Flow Control atomic data bag 31, then the second logic device 124 can be resolved and obtained the information that is sent completely 30 and construct the Flow Control message 32 comprising the information of being sent completely 30 from Flow Control atomic data bag 31.Further, Flow Control message 32 can be write (can adopt dma mode) internal memory 123 and notify that (can adopt interrupt mode) CPU 121 reads from internal memory 123 by the second logic device 124.
Refer to Fig. 5, above-mentioned Flow Control message 32 can be I/O bus message and comprise:
Be sent completely information 30;
Flow Control significance bit 32a, it can be set to effectively by the second logic device 124, not yet read by CPU 121 to represent that this Flow Control message 32 is current, and be set to by CPU 121 after Flow Control message 32 is read by CPU 121 invalid;
Reserved field 32b, it can be used for the expansion to Flow Control message 32.
Refer to Fig. 1 and composition graphs 6, can arrange in internal memory 123 and be sent completely queue 23, second logic device 124 and Flow Control message 32 can be write to and be sent completely in queue 23.And, when there is polylith interface board and many logical channels, each logical channel of every block interface board in internal memory 123 respectively corresponding one be sent completely queue 23, second logic device 124 can according to the interface board mark parsed from Flow Control atomic data bag 31 and logical channel identifier, identify interface board and the logical channel of Flow Control message 32 correspondence, and Flow Control message 32 is write to being sent completely in queue 23 of the identity logic passage of same-interface plate corresponding to it.Such as, for the logical channel j (i and j is positive integer) of interface board i, the second logic device 124 can write the Flow Control message 1 ~ M (M is positive integer) of counterlogic passage successively from the first address QueHeadAddress_i_j being sent completely queue.
CPU 121 can obtain Flow Control message 32 by reading internal memory 123.Such as, CPU 121 is selected to the situation of monokaryon CPU, the second logic device 124 can adopt interrupt mode to notify CPU 121, and correspondingly, CPU 121 reads Flow Control message 32 to respond the mode of interrupting from internal memory 123.Again such as, CPU 121 is selected to the situation of multi-core CPU, the second logic device 124 can not be to notify CPU 121, but specifies core to read Flow Control message 32 in the mode of poll from internal memory 123 by CPU 121.
Further, CPU 121 can according to being sent completely the transmission of information Perception data Ethernet message on outgoing direction and whether occurring congested in Flow Control message 32.And then, in conjunction with Flow Control message 32 with it to the statistics of data Ethernet message outgoing direction being sent into ether data channel (that is, ether bus 133), CPU 121 can the congested and relieve congestion of summary responses data Ethernet message on outgoing direction.
Refer to Fig. 1 and composition graphs 7, CPU 121 has network message protocol layer 401, drives layer 402 and at network message protocol layer 401 and drive QOS queue 403 between layer 402.
Whether network message protocol layer 401 is responsible for deal with data Ethernet message 40, and can the transmission of perception data Ethernet message on outgoing direction occur congested.
Drive layer 402 to be responsible for performing data Ethernet message 40 entering the Flow Control message 32 in the transmission on direction and outgoing direction, access memory 123 by ether data channel, safeguarding the quene state 42 of the transmission buffer queue 21 in the transmission statistics of the data Ethernet message 40 outgoing direction being sent into ether data channel (that is, ether bus 133) and maintenance interface plate 11 and report network message protocol layer 401.Further, when there is polylith interface board and many logical channels, layer 402 is driven can be sent completely according to corresponding from internal memory 123 quene state 42 that the Flow Control message 32 read in queue safeguards corresponding transmission buffer queue 21.
For outgoing direction, when (namely data Ethernet message 40 is sent into ether data channel, ether bus 133) after, drive transmission statistics layer 402 pairs of outgoing direction being sent into the data Ethernet message 40 of ether data channel (that is, ether bus 133) to add up corresponding numerical value.Prescribe a time limit when the numerical value sending statistics arrives on the buffer memory sending buffer queue 21, the quene state 42 of non-full state is set to full state to drive layer 402 to represent.
And, drive layer 402 according to the quantity completing the data Ethernet message 40 of transmission represented by the information that is sent completely 30 in Flow Control message 32, corresponding numerical value can be reduced to the transmission statistics of the data Ethernet message 40 outgoing direction being sent into ether data channel.When the numerical value sending statistics is prescribed a time limit lower than on the buffer memory of transmission buffer queue 21, layer 402 is driven to represent that the quene state 42 of full state is set to non-full state.
Correspondingly, if the quene state 42 driving layer 402 to report to network message protocol layer 401 is non-full, then the data Ethernet message 40 on outgoing direction is issued (in QOS queue 403, the data Ethernet message 40 of buffer memory is preferential) to driving layer 402 by network message protocol layer 401, by driving layer 402, the data Ethernet message 40 issued is sent into ether data channel (that is, ether bus 133).If the quene state 42 driving layer 402 to report to network message protocol layer 401 is full, then the data Ethernet message 40 on outgoing direction is sent into buffer memory in QOS queue by network message protocol layer 401, until the quene state 42 driving layer 402 to report to network message protocol layer 401 becomes non-full.
As above visible, the information that is sent completely 30 of the data Ethernet message on outgoing direction can be encapsulated in Flow Control atomic data bag 31 and report by the first logic device 112 of interface board 11, this Flow Control atomic data bag 31 can be forwarded to the second logic device 124 of mainboard 12 by management bus 130, second logic device 124 is by obtaining the information that is sent completely 30 to the parsing of Flow Control atomic data bag 31, and the CPU 121 being encapsulated in the internal memory 123 confession mainboard 12 writing mainboard 12 in Flow Control message 32 reads immediately, the CPU 121 of mainboard 12 is made the data Ethernet message on the outgoing direction of perception in time whether to occur congested, thus be conducive to accurately realizing the QOS on network equipment outgoing direction.
And, be sent completely reporting of information 30 and do not take ether data channel 133, thus the transmission affecting data Ethernet message can be avoided; And the process of the information that is sent completely 30 of CPU 121 pairs of outgoing direction data Ethernet message with separate to the process of the data Ethernet message entering direction, thus realizes the transmission of CPU 121 pairs of data Ethernet message and the loose coupling of reception.
Based on above-mentioned principle, also accordingly provide flow control method and the device of the network equipment in following embodiment, be described in detail respectively below.
Refer to Fig. 8, in one embodiment, the flow control method of the network equipment can be applied in the logic device of the interface board of the network equipment (the first logic device 112 such as shown in Fig. 1), and this flow control method can comprise:
S811, according to sending the data Ethernet message be sent in buffer queue, structure comprises the Flow Control atomic data bag of the information of being sent completely;
S812, wraps in management bus and has precedence over the transmission of other atomic data bags by the Flow Control atomic data constructed.
Wherein, for the situation that there is polylith interface board and interface board and formed many logical channels, above-mentioned S811 can also fill the interface board mark of interface board further and on outgoing direction, complete logical channel identifier corresponding to the data Ethernet message of transmission in Flow Control atomic data bag.
Refer to Fig. 9, in another embodiment, the flow control method of the network equipment can be applied in the logic device of the mainboard of the network equipment (the second logic device 124 such as shown in Fig. 1), and this flow control method can comprise:
S821, receives atomic data bag by management bus;
S822, identifies the type of the atomic data bag received;
S823, the atomic data bag received if identify is Flow Control atomic data bag, then resolve from Flow Control atomic data bag and obtain being sent completely information;
S824, structure comprises the Flow Control message that this is sent completely information;
S825, writes the internal memory of the CPU of mainboard by the Flow Control message constructed.
Wherein, if 822 identify the atomic data bag that the atomic data bag received is control message or managing queries message, then terminate current process, and by the corresponding control operation of other flow performing or managing queries operation.Further, above-mentioned S825 can adopt the mode of DMA to internal memory write Flow Control message, and above-mentioned S825 can also adopt the mode of interrupting to notify that CPU reads Flow Control message from internal memory further.And, for the situation that there is polylith interface board and interface board and formed many logical channels, above-mentioned S823 can resolve further and obtain interface board mark and logical channel identifier from Flow Control atomic data bag, correspondingly, above-mentioned S825 can identify according to resolving the interface board obtained and Flow Control message is write to corresponding being sent completely in queue in internal memory by logical channel identifier.
Refer to Figure 10, In yet another embodiment, the flow control method of the network equipment can be applied in the CPU of the mainboard of the network equipment (CPU 121 such as shown in Fig. 1), and this flow control method can comprise:
S830, judges the state of the transmission buffer queue safeguarded in the interface board of the network equipment;
S831, when the state of this transmission buffer queue is non-full, sends the data Ethernet message on outgoing direction into ether data channel;
S832, when sending the state of buffer queue for time full, sends into buffer memory in QOS queue, until the state of this transmission buffer queue becomes non-full by the data Ethernet message on outgoing direction.
S841, when receiving the notice reading internal memory from the logic device of mainboard, reads Flow Control message from the internal memory of mainboard;
S842, is sent completely state that maintenance of information send buffer queue to sending in the statistics of data Ethernet message of ether data channel and the Flow Control message that reads according on outgoing direction.
Wherein, the mode that above-mentioned S841 can be interrupted by the mode of poll or response reads Flow Control message from the internal memory of mainboard.Further, for the situation that there is polylith interface board and interface board and formed many logical channels, above-mentioned S841 may be used for from the Flow Control message read queue that is sent completely of correspondence the state that S842 safeguards corresponding transmission buffer queue.
Refer to Figure 11, corresponding flow control method as shown in Figure 8, provide a kind of flow control apparatus 91 of the network equipment in one embodiment accordingly, this flow control apparatus 91 can be applied in the logic device (the first logic device 112 such as shown in Fig. 1) of the interface board of the network equipment, further, this flow control apparatus 91 can comprise:
Packet constructing module 911, according to sending the data Ethernet message be sent in buffer queue, structure comprises the Flow Control atomic data bag of the information of being sent completely;
Packet reporting module 912, wraps in management bus and has precedence over the transmission of other atomic data bags by the Flow Control atomic data constructed.
Wherein, for the situation that there is polylith interface board and interface board and formed many logical channels, above-mentioned packet constructing module 911 can also be filled the interface board mark of interface board further and on outgoing direction, be completed logical channel identifier corresponding to the data Ethernet message of transmission in Flow Control atomic data bag.
Refer to Figure 12, corresponding flow control method as shown in Figure 9, provide a kind of flow control apparatus 92 of the network equipment in another embodiment accordingly, this flow control apparatus 92 can be applied in the logic device (the second logic device 124 such as shown in Fig. 1) of the mainboard of the network equipment, further, this flow control apparatus 92 can comprise:
Packet-receiving module 921, receives atomic data bag by management bus;
Packet classification module 922, identifies the type of the atomic data bag received;
Packet parsing module 923, the atomic data bag received if identify is Flow Control atomic data bag, then resolve from Flow Control atomic data bag and obtain being sent completely information;
Message constructing module 924, structure comprises the Flow Control message that this is sent completely information;
Information reporting module 925, writes the internal memory of the CPU of mainboard by the Flow Control message constructed.
Wherein, above-mentioned information reporting module 925 can adopt the mode of DMA to internal memory write Flow Control message, above-mentioned information reporting module 925 can also adopt the mode of interruption to notify further CPU is from internal memory reading Flow Control message.And, for the situation that there is polylith interface board and interface board and formed many logical channels, above-mentioned packet parsing module 923 can be resolved further and be obtained interface board mark and logical channel identifier from Flow Control atomic data bag, correspondingly, above-mentioned information reporting module 925 can identify according to resolving the interface board obtained and Flow Control message is write to corresponding being sent completely in queue in internal memory by logical channel identifier.
Refer to Figure 13, corresponding flow control method as shown in Figure 10, provide a kind of flow control apparatus 93 of the network equipment In yet another embodiment, this flow control apparatus 93 comprises:
Send driver module 931, when the state of the transmission buffer queue safeguarded in the interface board of the network equipment is non-full, the data Ethernet message on outgoing direction is sent into ether data channel;
QOS cache module 932, when the state of described transmission buffer queue is for time full, sends into buffer memory in QOS queue, until the state of described transmission buffer queue becomes non-full by the data Ethernet message on outgoing direction;
Internal memory read module 933, when receiving the notice reading internal memory from the logic device of mainboard, reads Flow Control message from described internal memory;
Queue maintenance module 934, is sent completely the state that maintenance of information described in send buffer queue to sending in the statistics of data Ethernet message of ether data channel and described Flow Control message according on outgoing direction.
Wherein, the mode that above-mentioned internal memory read module 933 can be interrupted by the mode of poll or response reads Flow Control message from the internal memory of mainboard.And, for the situation that there is polylith interface board and interface board and formed many logical channels, above-mentioned internal memory read module 933 may be used for from the Flow Control message read queue that is sent completely of correspondence the state that queue maintenance module 934 safeguards corresponding transmission buffer queue.
As the optional scheme of one, the mode that above-mentioned flow control apparatus as shown in fig. 13 that 93 can be combined by soft or hard realizes.Refer to Figure 14, in the hardware structure comprising CPU 931 (can be identical with the CPU 121 shown in Fig. 1) and internal memory 932 (can be the internal memory 123 shown in Fig. 1, also can be other internal memories), this flow control apparatus 93 can read functions of modules as shown in fig. 13 that by CPU 931 for the computer instruction that is stored in internal memory 932.Thus:
When the state of the transmission buffer queue safeguarded in the interface board of the network equipment is non-full, the data Ethernet message on outgoing direction is sent into ether data channel by CPU 931;
When the state of described transmission buffer queue is for time full, the data Ethernet message on outgoing direction is sent into buffer memory in QOS queue, until the state of described transmission buffer queue becomes non-full by CPU 931;
When receiving the notice reading internal memory from the logic device of mainboard, CPU 931 reads Flow Control message from internal memory (internal memory 123 such as shown in Fig. 1);
And CPU 931 is also sent completely the state that maintenance of information described in send buffer queue to sending in the statistics of data Ethernet message of ether data channel and described Flow Control message according on outgoing direction.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (16)

1. a flow control method for the network equipment, is characterized in that, described flow control method is applied in the logic device of the interface board of the network equipment, and described flow control method comprises:
According to sending the data Ethernet message be sent in buffer queue, structure comprises the Flow Control atomic data bag of the information of being sent completely;
Described Flow Control atomic data is wrapped in management bus and have precedence over the transmission of other atomic data bags.
2. flow control method according to claim 1, it is characterized in that, described flow control method is filled the interface board mark of described interface board further and on described outgoing direction, is completed logical channel identifier corresponding to the data Ethernet message of transmission in described Flow Control atomic data bag.
3. a flow control method for the network equipment, is characterized in that, described flow control method is applied in the logic device of the mainboard of the network equipment, and described flow control method comprises:
Atomic data bag is received by management bus;
Identify the type of the atomic data bag received;
The atomic data bag received if identify is Flow Control atomic data bag, then resolve from described Flow Control atomic data bag and obtain being sent completely information;
The Flow Control message of information is sent completely described in structure comprises;
Described Flow Control message write the internal memory of the CPU of mainboard and notify that described CPU reads from described internal memory.
4. flow control method according to claim 3, is characterized in that, described flow control method writes described Flow Control message in the mode of DMA to described internal memory.
5. flow control method according to claim 3, is characterized in that, described flow control method notifies described CPU in the mode of interrupting.
6. flow control method according to claim 3, it is characterized in that, described Flow Control message according to the interface board mark in described Flow Control atomic data bag and logical channel identifier, is write to corresponding being sent completely in queue in described internal memory by described flow control method further.
7. a flow control apparatus for the network equipment, is characterized in that, described flow control apparatus is applied in the logic device of the interface board of the network equipment, and described flow control apparatus comprises:
Packet constructing module, according to sending the data Ethernet message be sent in buffer queue, structure comprises the Flow Control atomic data bag of the information of being sent completely;
Packet send module, described Flow Control atomic data is wrapped in management bus and have precedence over the transmission of other atomic data bags.
8. flow control apparatus according to claim 7, it is characterized in that, described packet constructing module is filled the interface board mark of described interface board further and on described outgoing direction, is completed logical channel identifier corresponding to the data Ethernet message of transmission in described Flow Control atomic data bag.
9. a flow control apparatus for the network equipment, is characterized in that, described flow control apparatus is applied in the logic device of the mainboard of the network equipment, and described flow control apparatus comprises:
Packet-receiving module, receives atomic data bag by management bus;
Packet classification module, identifies the type of the atomic data bag received;
Packet parsing module, the atomic data bag received if identify is Flow Control atomic data bag, then resolve from described Flow Control atomic data bag and obtain being sent completely information;
Message constructing module, is sent completely the Flow Control message of information described in structure comprises;
Information reporting module, writes the internal memory of the CPU of mainboard and notifies that described CPU reads from described internal memory by described Flow Control message.
10. flow control apparatus according to claim 9, is characterized in that, described information reporting module writes described Flow Control message in the mode of DMA to described internal memory.
11. flow control apparatus according to claim 9, is characterized in that, described information reporting module notifies described CPU in the mode of interrupting.
12. flow control apparatus according to claim 9, it is characterized in that, described Flow Control message according to the interface board mark in described Flow Control atomic data bag and logical channel identifier, is write to corresponding being sent completely in queue in described internal memory by described information reporting module further.
13. 1 kinds of network equipments, is characterized in that, comprise interface board and mainboard, and described interface board has the first logic device, and described mainboard has CPU, internal memory, ether exchange chip and the second logic device;
Described first logic device is connected by management bus with described second logic device;
Described first logic device is according to sending the data Ethernet message be sent in buffer queue, and structure comprises the Flow Control atomic data bag of the information of being sent completely, and, described Flow Control atomic data is wrapped in described management bus and have precedence over the transmission of other atomic data bags;
Described second logic device receives atomic data bag by management bus and identifies the type of the atomic data bag received, the atomic data bag received if identify is Flow Control atomic data bag, then resolve from described Flow Control atomic data bag and obtain being sent completely information, and the Flow Control message being sent completely information described in structure comprises writes described internal memory and notifies that described CPU reads from described internal memory;
Data Ethernet message on outgoing direction, when the state of described transmission buffer queue is non-full, is sent into described ether data channel by described CPU; When the state of described transmission buffer queue is full, the data Ethernet message on outgoing direction is sent into buffer memory in QOS queue, until the state of described transmission buffer queue becomes non-full; When receiving the notice reading internal memory from described second logic device, from described internal memory, read Flow Control message; And, be sent completely the state that maintenance of information described in send buffer queue to sending in the statistics of data Ethernet message of ether data channel and described Flow Control message according on outgoing direction.
14. network equipments according to claim 13, it is characterized in that, described first logic device is filled the interface board mark of described interface board further and on described outgoing direction, is completed logical channel identifier corresponding to the data Ethernet message of transmission in described Flow Control atomic data bag; Described Flow Control message, further according to the interface board mark in described Flow Control atomic data bag and logical channel identifier, to write in described internal memory and corresponding is sent completely in queue by described second logic device; And described flow control method, according to the described Flow Control message read in queue from being sent completely described internal memory, safeguards the state of corresponding described transmission buffer queue.
15. network equipments according to claim 13, is characterized in that, described second logic device writes described Flow Control message in the mode of DMA to described internal memory.
16. network equipments according to claim 13, is characterized in that, described second logic device notifies described CPU in the mode of interrupting.
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 true CN104601490A (en) 2015-05-06
CN104601490B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893323A (en) * 2016-05-23 2016-08-24 华为技术有限公司 Data reading method and data reading equipment
CN106487721A (en) * 2015-08-25 2017-03-08 杭州华三通信技术有限公司 The network equipment and the message forwarding method being used in the network equipment
CN108370350A (en) * 2015-12-15 2018-08-03 华为技术有限公司 System and method for for data warehouse engine
CN112887059A (en) * 2021-01-26 2021-06-01 芯河半导体科技(无锡)有限公司 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

Cited By (7)

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

Also Published As

Publication number Publication date
CN104601490B (en) 2018-10-09

Similar Documents

Publication Publication Date Title
CN101986594B (en) Method and device for realizing communication between single boards
US10884965B2 (en) PCI express tunneling over a multi-protocol I/O interconnect
CN105991471B (en) The flow control method and flow control apparatus and the network equipment of the network equipment
CN103346949B (en) Based on Embedded dual pathways network packet unpack and organize bag method and system
CN104601490A (en) Network device and traffic control method and device thereof
CN110061923A (en) Flow control methods, device, interchanger, transmitting terminal server and medium
CN106603420B (en) It is a kind of in real time and failure tolerance network-on-chip router
CN105656708A (en) Single-board testing method and device
CN100375484C (en) Device and method of data pocket retransmission between POS-PHY bus and PCI bus
TWI411264B (en) Non-block network system and packet arbitration method thereof
CN117692535B (en) PCIe protocol message order preserving device
CN105635176A (en) Network data transmission method based on RapidIO
US10342032B2 (en) Method and device for streaming control data in a mobile communication system
CN107332794B (en) Dynamic time slot locking method for time-triggered communication
CN101425960B (en) Method and apparatus for load equalizing implementation
WO2019242368A1 (en) Link group configuration method and apparatus
WO2024131147A1 (en) Enhanced serial peripheral interface implementing method and apparatus, enhanced serial peripheral interface conversion device and medium
CN104486365A (en) Communication method and system between double controls
CN103560977B (en) Having that output postpones can accurately the E1 framing controller of allocative abilities and method of work
CN1738224B (en) TDM data and frame format conversion circuit and method , transmission switching system and method
CN102780639B (en) Router wire card and data processing method
JP5313155B2 (en) Data transmission method and system in time division multiplexing mode
CN104270341B (en) Data protocol repeater system in ip ran and method
CN104410586B (en) Message processing method and device under a kind of VSU environment
CN108255770B (en) Processing method based on 1394 bus event message response mechanism

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