CN100591050C - Data transmission apparatus and method for supporting multi-channel data transmission - Google Patents

Data transmission apparatus and method for supporting multi-channel data transmission Download PDF

Info

Publication number
CN100591050C
CN100591050C CN200710085592A CN200710085592A CN100591050C CN 100591050 C CN100591050 C CN 100591050C CN 200710085592 A CN200710085592 A CN 200710085592A CN 200710085592 A CN200710085592 A CN 200710085592A CN 100591050 C CN100591050 C CN 100591050C
Authority
CN
China
Prior art keywords
passage
data
buffer memory
side buffer
flow
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
CN200710085592A
Other languages
Chinese (zh)
Other versions
CN101039270A (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
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 CN200710085592A priority Critical patent/CN100591050C/en
Publication of CN101039270A publication Critical patent/CN101039270A/en
Application granted granted Critical
Publication of CN100591050C publication Critical patent/CN100591050C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A data transmission device which supports the multi-channel data transmission comprises a multi-channel interface which proceeds the data transmission between the sending equipment and the receiving equipment, a sending side sustained storage, a receiving side sustained storage and a sending unit. The sending equipment and the multi-channel interface are connected with the sending side sustained storage, which puts the output data from the sending equipment into the sending side sustained storage according to the channel and sends the data in the sending side sustained storage to the multi-channel interface according to the flow control dispatching information of each channel. The receiving unit is connected with the multi-channel interface, the receiving side sustained storage and the receiving equipment, which puts the output data from the multi-channel interface into the receiving side sustained storage to wait to be transmitted into the receiving equipment and produces the corresponding flow control information based on the sustained storage data capacity of each channel in the receiving side sustained storage. The present invention also comprises the corresponding method of the data transmission of the data transmission device. By using the out sustained storage the present invention efficiently extendeds the quantity of the channel which is supported by the multi-channelinterface such as the SPI4.2 and avoids the phenomena of the team joint block.

Description

Support the data transmission device and the method for multi-channel data transmission
Technical field
The present invention relates to network service, relate in particular to the transfer of data between communication equipment; More particularly, the present invention relates to make fluidics and the data transmission technology that to carry out multi-channel data transmission between described communication equipment by external cache.
Background technology
SPI (System Packet Interface, system's packet interface) is OIF (OpticalInternetworking Forum, optical fiber internet forum) the interconnection physical layer (Physicallayer of Zhi Dinging, PHY) equipment and link layer (Link layer, LINK) the point-to-point interface standard of equipment.At different applied environments, described SPI be to should there being a plurality of different editions, and that obtain extensive use at present is SPI3 (SPI Level 3) and SPI4.2 (SPI Level 4 Phase 2); Wherein SPI3 at signal frequency be 2.5Gbps, and the message transmission rate of the corresponding 10Gbps of SPI4.2.More specifically, SPI4.2 can be used for message and cell transmits, be mainly used in OC-192 (192 grades of light carriers) ATM (Asynchronous Transfer Mode, asynchronous transfer mode) net, SONET (Synchronous Optical Network, synchronous optical network)/SDH (Synchronous DigitalHierarchy, synchronous digital hierarchy net) etc.And described SPI4.2 interface mainly has following technical characterictic:
A, can be used for point-to-point connection, such as supporting physical layer and the unidirectional of link layer device to be connected;
B, on a physical channel, can support 256 logical channels in theory at most, an actual port of the corresponding physical layer of each logical channel;
C, transmission/reception data path have the 16bit bit wide, and wherein the minimum speed limit of every data lines is that 622Mbps is to support the interconnection applications of 10Gbps;
D, transmission/reception FIFO (First In First Out, first in first out) the state path has the parallel Status Flag of 2bit, and its I/O (Input/Output, I/O) level adopts LVTTL (Lower Voltage Transistor-Transistor Logic, low pressure triode logic level) or LVDS (Low Voltage Differential Signaling, low-voltage differential level).
Fig. 1 is the reference model schematic diagram of above-mentioned SPI4.2 interface interconnecting link layer equipment 100 and physical layer equipment 300.As shown in Figure 1, between link layer device 100 (comprising link layer transmitting apparatus 110 and link layer receiving equipment 120) and physical layer equipment 300, data corresponding to link layer device 100 send and receive, and establish sendaisle 410 and 420 two logical channels of receive path respectively by SPI4.2 interface 200.Described sendaisle 410 is used to transmit the data that described link layer transmitting apparatus 110 exports described physical layer equipment 300 to, and described physical layer equipment 300 feeds back to the fifo status of described link layer transmitting apparatus 110; Described receive path 420 is used to transmit the data that described physical layer equipment 300 exports described link layer receiving equipment 120 to, and described link layer receiving equipment feeds back to the fifo status of described physical layer equipment 300.
Wherein, described fifo status is used for indicating the receiver side FIFO buffer status of described SPI4.2 interface respective logic passage, make described transmitter side equipment (comprising link layer transmitting apparatus 110 or physical layer equipment 300) to control the data transmit operation of respective logic passage, also promptly when described receiver side FIFO buffer status is " expiring ", stop the data transmit operation of described respective logic passage 410/420 according to described fifo status, and allow the data transmit operation of described respective logic passage 410/420 when " sky " at described receiver side FIFO buffer status.
For above-mentioned SPI4.2 interface 200, because the SPI4.2 interface standard is defined as each logical channel and designs independently reception/transmission FIFO buffer memory respectively, and the message transmission rate higher (being not less than 9.952Gbps) of described SPI4.2 interface 200 of while, this just makes described SPI4.2 interface chip need built-in huge cache resources.This will increase the production cost of SPI4.2 interface chip greatly, and then the logical channel negligible amounts (being generally 8 or 16) that makes existing most of SPI4.2 interface chips realizations, although defined 256 logical channels in the SPI4.2 interface standard that OIF formulates.
Huge for the built-in cache resources demand that solves the initiation of above-mentioned independent receptions/transmissions FIFO buffer memory, can support problem such as logical channel negligible amounts, have the design that some SPI4.2 interface chips adopt the shared FIFO buffer memory of a plurality of logical channels at present.Under this design, stopping up, make it when the data channel of a certain logical channel correspondence can't be from described shared FIFO buffer memory during sense data, other logical channels of then shared FIFO buffer memory with it all can't be from described shared FIFO buffer memory sense data, team's clogging has also promptly appearred.
Summary of the invention
At above-mentioned the deficiencies in the prior art, the object of the invention is to provide a kind of data transmission device, with the expansion multi-channel data coffret can be supported such as the SPI4.2 interface logical channel quantity, and avoid occurring team's clogging under the shared FIFO caching situation of multichannel.
Simultaneously, another purpose of the present invention is to provide the respective data transfer that is applied to above-mentioned data transmission device method.
In order to achieve the above object, the invention provides a kind of data transmission device of supporting the multi-channel data transmission, comprise the multichannel interface that is used between transmitting apparatus and receiving equipment, carrying out transfer of data, also comprise transmitter side buffer memory, transmitting element, receiver side buffer memory, reach receiving element, wherein:
Described transmitter side buffer memory is used for the data by the described transmitting apparatus output of passage buffer memory;
Described receiver side buffer memory is used for waiting for the data of importing described receiving equipment by the passage buffer memory;
Described transmitting element, link to each other with described transmitting apparatus, described multichannel interface and described transmitter side buffer memory, be used to receive the data of described transmitting apparatus output, and press in the corresponding space of passage with this deposit data each described passage in the described transmitter side buffer memory, simultaneously according to the flow-control information scheduling of each described passage and carry out in the described transmitter side buffer memory operation that data in each described passage corresponding space are sent to described multichannel interface;
Described receiving element, link to each other with described receiving equipment, described multichannel interface and described receiver side buffer memory, be used to receive the data of described multichannel interface output, and by passage with being received by described receiving equipment treating in the corresponding space of this deposit data each described passage in the described receiver side buffer memory, produce the flow-control information of each described passage after described multichannel interface feeds back to described transmitting element according to the data capacity in each described passage corresponding space in the described receiver side buffer memory simultaneously;
Wherein, indicate the passage of cell correspondence by the partial bit position in the self-defining data head.
For above-mentioned data transmission device, preferably, be provided with stopping sending threshold value and allowing sending threshold value of each described passage in the described receiving element, wherein:
When the data capacity in certain described passage corresponding space in the described receiver side buffer memory be higher than this passage stop sending threshold value the time, then produce the flow-control information stop to send this channel data;
When the data capacity in certain described passage corresponding space in the described receiver side buffer memory is lower than the permission sending threshold value of this passage, then produce the flow-control information that allows to send this channel data.
For above-mentioned data transmission device, preferably, described receiving element comprises reception caching management module and Flow Control generation module, wherein:
Described reception caching management module, link to each other with described receiving equipment, described multichannel interface and described receiver side buffer memory, be used to receive the data that described multichannel interface is transmitted, to be received by described receiving equipment treating in the corresponding space of this deposit data each described passage in the described receiver side buffer memory by passage, and write down the data capacity in each described passage corresponding space in the described receiver side buffer memory;
Described Flow Control generation module, link to each other with described multichannel interface with described reception caching management module, be used for the record of data capacity in each described passage corresponding space of described receiver side buffer memory being produced the flow-control information of each described passage, and export described flow-control information to described multichannel interface according to described reception caching management module.
For above-mentioned data transmission device, preferably, described transmitting element comprises Flow Control parsing module and transmission caching management module, wherein:
Described Flow Control parsing module, link to each other with described multichannel interface with described transmission caching management module, be used to receive the flow-control information of each described passage that described multichannel interface transmits, and resolve each described flow-control information respectively for allowing or stop the data transmit operation of respective channel;
Described transmission caching management module, link to each other with described transmitting apparatus, described multichannel interface and described transmitter side buffer memory, be used to receive the data of described transmitting apparatus output and the flow-control information that described multichannel interface is transmitted, described transmitting apparatus dateout is stored in the corresponding space of each described passage in the described transmitter side buffer memory by passage, dispatches and carry out the operation that data in each described passage corresponding space in the described transmitter side buffer memory is sent to described multichannel interface simultaneously according to described flow-control information.
For above-mentioned data transmission device, preferably, described multichannel interface is the SPI4.2 interface.
For above-mentioned data transmission device, preferably, described transmitter side buffer memory and/or described receiver side buffer memory are SDRAM (Synchronous Dynamic Random Access Memory, synchronous DRAM), perhaps be SRAM (Static Random Access Memory, static random access memory), perhaps be FIFO (First In First Out) register, perhaps be various buffer memory devices such as memory bar.
Simultaneously, the present invention also provides the data transmission method of using above-mentioned data transmission device, to carry out multichannel transfer of data between transmitting apparatus and receiving equipment; This method includes the following step:
Step T1 is stored in the corresponding space of each described passage in the transmitter side buffer memory by the dateout of passage with described transmitting apparatus;
Step T2 dispatches and carries out the operation that data in each described passage corresponding space in the described transmitter side buffer memory is sent to the multichannel interface according to the flow-control information of each described passage;
Step R1 is stored in the corresponding space of each described passage in the receiver side buffer memory by the dateout of passage with described multichannel interface, to wait for the described receiving equipment of input;
Step R2 according to the data capacity in each described passage corresponding space in the described receiver side buffer memory, produces the flow-control information of each described passage;
Wherein, indicate the passage of cell correspondence by the partial bit position in the self-defining data head.
For above-mentioned data transmission method, preferably, described step R2 specifically includes the following step:
Step R2-1, when the data capacity in certain described passage corresponding space in the described receiver side buffer memory be higher than this passage stop sending threshold value the time, produce the flow-control information stop to send this channel data;
Step R2-2 when the data capacity in certain described passage corresponding space in the described receiver side buffer memory is lower than the permission sending threshold value of this passage, produces the flow-control information that allows to send this channel data.
For above-mentioned data transmission method, preferably, described step T2 specifically includes the following step:
Step T2-1 when receiving when stopping to send the flow-control information of certain described channel data, stops the data transmit operation of this passage;
Step T2-2 when receiving the flow-control information that allows certain described channel data of transmission, allows the data transmit operation of this passage.
For above-mentioned data transmission method, preferably, described multichannel interface is the SPI4.2 interface; Simultaneously, similar with the aforementioned data transmitting device, described transmitter side buffer memory and/or described receiver side buffer memory are SDRAM (Synchronous Dynamic Random Access Memory, synchronous DRAM), perhaps be SRAM (Static Random Access Memory, static random access memory), perhaps be FIFO (First In First Out) register, perhaps be various buffer memory devices such as memory bar.
In sum as can be known, for being used for the multichannel interface such as the SPI4.2 interface of high-speed interconnect transmitting apparatus and receiving equipment, the present invention carries out by the passage buffer memory transmitting apparatus dateout and receiving equipment input data by utilizing the external cache resource, and stops/allowing the data transmission according to what the flow-control information of each described passage was controlled each described passage respectively.Like this, beneficial effect of the present invention mainly contains:
At first, compare with the existing general SPI4.2 interface that is the built-in independent transmission/reception FIFO buffer memory of each passage, owing to need not to set up huge cache resources at chip internal, the present invention is the number of active lanes that can support of extended SPI 4.2 interfaces effectively, also will reduce the design cost of described SPI4.2 interface greatly simultaneously.
Secondly, compare,, make the present invention can effectively avoid the generation of hol blocking phenomenon because the data transmit operation that stops/allowing of each passage is independent of each other with the existing SPI4.2 interface of the another kind of the shared transmission of a plurality of passages/reception FIFO buffer memory.
Description of drawings
Fig. 1 is the application reference model schematic diagram of SPI4.2 interface in the prior art;
Fig. 2 is the structural representation of data transmission device first embodiment of the present invention;
Fig. 3 is the data structure diagram of the cell of application SPI4.2 interface transmission among the present invention;
Fig. 4 is the schematic diagram of self-defining data head in the data transmission device of the present invention;
Fig. 5 is the structural representation of data transmission device second embodiment of the present invention;
Fig. 6 is the schematic flow sheet of data transmission method of the present invention.
Embodiment
As mentioned above, the invention provides the data transmission device of supporting the multi-channel data transmission, and the respective data transfer method of using described data transmission device, introduce technical solution of the present invention below with reference to accompanying drawings in detail.
At first, Fig. 2 has provided the structural representation of data transmission device first embodiment of interconnection transmitting apparatus provided by the present invention and receiving equipment.
Need to prove, be specially link layer device 100 at transmitting apparatus described in Fig. 2, described receiving equipment is specially physical layer equipment 300; Also promptly, for the purpose of simplifying description, Fig. 2 only shows the one-way data transmission that link layer device 100 sends, physical layer equipment 300 receives.Yet, those skilled in the art will be understood that diagram like this is just in order to simplify drawing, do not represent that data transmission device provided by the present invention only supports the one-way data transfer function, and data transmission device in fact provided by the present invention can be supported bidirectional data transfers fully.
As shown in Figure 2, data transmission device 500 provided by the present invention comprises SPI4.2 interface 200, also comprise transmitting element 510, receiving element 530, transmitter side buffer memory 520, reach receiver side buffer memory 540, wherein: described SPI4.2 interface is to be applied in the multichannel interface that carries out transfer of data between described link layer device 100 and the described physical layer equipment 300, described transmitting element 510, transmitter side buffer memory 520, receiving element 530, and receiver side buffer memory 540 then common constitute described multichannel interface is carried out the peripheral flow control apparatus that data flow sends control.
In Fig. 2, the multichannel interface that carries out transfer of data between described link layer device 100 and described physical layer equipment 300 is specially the SPI4.2 interface that OIF formulates.Although it is the rule that provides mutual data transmission between a cover link layer and the physical layer equipment that OIF formulates the original intention of SPI4.2 standard, but in fact the SPI4.2 interface is designed to satisfy this application-specific requirement, can also satisfy the application requirements that other transmit message or cell simultaneously.Therefore, shown in Figure 2 only is a reference model, do not represent that the both sides of data transmission device provided by the present invention must connect the device/device/equipment of physical layer or link layer and so on, do not represent that the multichannel interface in the data transmission device provided by the present invention must be the SPI4.2 interface simultaneously yet.
Described transmitting element 510 and described link layer device 100, described transmitter side buffer memory 520 as transmitting apparatus, and described receiving element 530 link to each other.Described transmitting element 510 is mainly used in the dateout that receives described link layer device 100 as transmitting apparatus, and press passage with in the corresponding space of this deposit data each described passage in the described transmitter side buffer memory 520 with to be sent; Simultaneously, described transmitting element also needs to dispatch and carry out the operation that data in each described passage corresponding space in the described transmitter side buffer memory 520 is sent to described SPI4.2 interface 200 according to the flow-control information of each described passage.
And the particular content of described data dispatching transmit operation has: under the situation that does not receive described flow-control information, described transmitting element 510 is dispatched the data transmit operation of each described passage according to predetermined scheduling strategy; Receiving when stopping to send the flow-control information of certain channel data, described transmitting element 510 stops the data transmit operation of this passage and allows the passage of data transmit operations to dispatch according to described predetermined scheduling strategy to other, also promptly stops from described transmitter side buffer memory 520 reading of data in this passage corresponding space and output and does not influence the data transmit operation of other passages; When receiving the flow-control information that allows certain channel data of transmission, described transmitting element 510 allows the data transmit operation of these passages and allows the passage of data transmit operations to dispatch according to described predetermined scheduling strategy to this passage and other, also promptly allows to read data in this passage corresponding space and output from described transmitter side buffer memory 520, equally also do not influence the data transmit operation of other passages according to scheduling result.
Wherein, described predetermined scheduling strategy comprises RR (Round Robin, repeating query) multiple scheduling strategies such as scheduling, WRR (Weighted Round Robin, weighted round ring) scheduling, WRED (Weighted RandomEarly Detection, Weighted random earlier detection) scheduling.Therefore, those skilled in the art will be understood that described predetermined scheduling strategy can be set according to the load state of actual each described passage flexibly by the user.
Described receiving element 530 and described transmitting element 510, described receiver side buffer memory 540, and described physical layer equipment 300 as receiving equipment link to each other.Described receiving element 530 is mainly used in the dateout of the described link layer device 100 of reception after described transmitting element 510 sends scheduling, and will be received by described physical layer equipment 300 treating in the corresponding space of this deposit data each described passage in the described receiver side buffer memory 540 by passage; Simultaneously, described receiving element also needs according to the data capacity in each described passage corresponding space in the described receiver side buffer memory 540, produces the flow-control information of corresponding each described passage.
And, the concrete executing rule of described generation flow-control information is: stop sending threshold value and allow sending threshold value for each described passage is provided with respectively, when the data capacity in certain passage corresponding space in the described receiver side buffer memory 540 be higher than this passage stop sending threshold value the time, the flow-control information of this channel data of described receiving element 530 generations stopping to send, and this flow-control information fed back to described transmitting element 510; When the data capacity in certain passage corresponding space in the described receiver side buffer memory 540 is lower than the permission sending threshold value of this passage, 530 of described receiving elements produce the flow-control information that allows to send this channel data, and this flow-control information is fed back to described transmitting element 510.
Wherein, when the stopping sending threshold value and allow sending threshold value of each described passage specifically is set, need to consider many-sided site of deployment factors such as respective cache space size, respective channel message transmission rate of each described passage.Therefore, those skilled in the art will be understood that and describedly stop sending threshold value and allow sending threshold value to be set according to the practical application needs by the user.
For first embodiment of data transmission device of the present invention shown in Figure 2, preferably, can carry out the cell differentiation to described data and described flow-control information by the self-defining data head.In the cell that the SPI4.2 interface transmits, complete after the control word is the pay(useful) load payload in the prior art.Such as shown in Figure 3, choose after the described control word 2 bytes of payload byte 1-2 and be used for the self-defining data head, and bytes of payload 3-8 after the described self-defining data head is used as keeping expansion.How specifically the described self-defining data head of definition as for then can carry out for example with reference to shown in Figure 4.
As shown in Figure 4: for the described self-defining data head of 2 bytes, identify the passage of this cell correspondence with 12 bits (the illustration bit sequence is 0-11 among Fig. 4) wherein, also i.e. 1 unique corresponding with it channel number of 1 channel allocation and specify that 12 bits transmit described channel number in the described self-defining data head; Representing the cell type with 2 bits (the illustration bit sequence is 14-15 among Fig. 4) wherein, be that transmission data, 01 this cell of sign of this passage is the flow-control information of this passage such as 00 this cell of sign; Representing the particular content of described flow-control information with wherein remaining 2 bits (the illustration bit sequence is 12-13 among Fig. 4), is the data transmit operation that stops this passage such as the described flow-control information of 01 expression for data transmit operation, the described flow-control information of 10 expressions that allows this passage.
In sum, described transmitting element 510 and described receiving element 530 press respectively passage with the metadata cache of this passage in described transmitter side buffer memory 520 corresponding and described receiver side buffer memory 540 in the corresponding space with this passage, simultaneously described receiving element 530 produces the flow-control information of each described passage according to data capacity state in the corresponding space of each described passage in the described receiver side buffer memory 540, and described transmitting element 510 is then according to the flow-control information scheduling of each described passage and carry out the data transmit operation of each described passage.
That is to say, described transmitter side buffer memory 520 is as the external cache of described transmitting element 510, be mainly used in dateout, send by predetermined scheduling strategy according to corresponding flow-control information by described transmitting element 510 to wait for by the described link layer device 100 as transmitting apparatus of passage buffer memory; Described receiver side buffer memory 540 is mainly used in by the passage buffer memory and sends the dateout of dispatching through described transmitting element 510 as the external cache of described receiving element 530, receives to wait for by described physical layer equipment 300 as receiving equipment.
And, described transmitter side buffer memory 520 and/or described receiver side buffer memory 540 can adopt any device/device that can be used for metadata cache, such as SDRAM (Synchronous DynamicRandom Access Memory, synchronous DRAM), SRAM (Static RandomAccess Memory, static random access memory), FIFO (First In First Out) buffer memory, or memory bar etc.
Like this, compare with the existing general SPI4.2 interface that is the built-in independent transmission/reception FIFO buffer memory of each passage, owing to need not to set up huge cache resources at chip internal, make the present invention not only greatly reduce the design cost of SPI4.2 interface, the more important thing is and also effectively expanded the number of active lanes that the SPI4.2 interface can be supported; And compare with the existing SPI4.2 interface of the another kind of the shared transmission of a plurality of passages/reception FIFO buffer memory, because the data transmit operation that stops/allowing of each described passage is independent of each other, make the present invention can effectively avoid the generation of hol blocking phenomenon.
For data transmission device that the invention described above provides 500, wherein said transmitting element 510 and described receiving element 530 are as the auxiliary fluidic devices in the periphery of described multichannel interface (particular instantiation is the SPI4.2 interface among Fig. 2), can adopt CPU (Central Processing Unit, central processing unit) or FPGA (Field Programmable Gate Array, field programmable gate array) wait and realize.Introduce the embodiment of described transmitting element 510 and described receiving element 530 below in detail with reference to Fig. 5.
Comparison diagram 2 and Fig. 5 as can be known, data transmission device second embodiment provided by the present invention can regard the preferred implementation of above-mentioned first embodiment as.And as shown in Figure 5, in data transmission device second embodiment provided by the present invention, described transmitting element 510 comprises transmission caching management module 511 and 514 one-tenth of Flow Control parsing modules; Similarly, described receiving element 530 comprises reception caching management module 512 and Flow Control generation module 513.Wherein:
Described reception caching management module 512 links to each other with described receiver side buffer memory 520 with described receiving equipment (not shown among Fig. 5), described multichannel interface (particular instantiation is a SPI4.2 interface 200 among Fig. 5), be used to receive the data that described SPI4.2 interface 200 is transmitted, and by passage with being received by described receiving equipment treating in the corresponding space of this deposit data each described passage in the described receiver side buffer memory 540, write down the data capacity in each described passage corresponding space in the described receiver side buffer memory 540 simultaneously.
Described Flow Control generation module 513 and described reception caching management module 512 link to each other with described multichannel interface (particular instantiation is a SPI4.2 interface 200 among Fig. 5), be used for producing the flow-control information of each described passage, and export described flow-control information to described SPI4.2 interface 200 according to the record of data capacity in 512 pairs of described receiver side buffer memory 540 each described passage corresponding space of described reception caching management module.
Described Flow Control parsing module 514 links to each other with described multichannel interface (particular instantiation is a SPI4.2 interface 200 among Fig. 5) with described transmission caching management module 511, be used to receive the flow-control information of each described passage that described SPI4.2 interface 200 transmits, and resolve described flow-control information respectively for allowing or stop the data transmit operation of respective channel.
Described transmission caching management module 511 and described transmitting apparatus (not shown among Fig. 5), described multichannel interface (particular instantiation is a SPI4.2 interface 200 among Fig. 5) links to each other with described transmitter side buffer memory 520, be used to receive the data of described transmitting apparatus output and each passage flow-control information of transmitting through described SPI4.2 interface 200, and described transmitting apparatus dateout is stored in the corresponding space of each described passage in the described transmitter side buffer memory 520 by passage, simultaneously according to described flow-control information scheduling and carry out the operation that data in each described passage corresponding space in the described transmitter side buffer memory 520 is sent to described SPI4.2 interface 200.
Like this, for described transmitting element 510 and described receiving element 530, wherein the operation that described transmitter side buffer memory 520 and described receiver side buffer memory 540 are carried out reading and writing data is specifically carried out by described transmission caching management module 511 and described reception caching management module 512 respectively, and wherein the operation that above-mentioned reading and writing data is controlled is then specifically carried out by described Flow Control generation module 513 and described Flow Control parsing module 514.That is to say, described Flow Control generation module 513 is used to produce the flow-control information of each described passage, and its main basis that produces the flow-control information of each described passage is to wait to receive the record of data capacity in 512 pairs of described receiver side buffer memorys 540 of described reception caching management module in each described passage corresponding space; And described Flow Control parsing module 514 is used to resolve the flow-control information of each the described passage that receives, and controls the data transmit operation that described transmission caching management module 511 allowed or stopped this passage according to described analysis result.
More particularly, be provided with stopping sending threshold value and allowing sending threshold value of each described passage in the described Flow Control generation module 513, like this:
When described Flow Control generation module 513 via described reception caching management module 512 find the data capacity in certain passage corresponding space in the described receiver side buffer memory 540 be higher than this passage stop sending threshold value the time, then correspondingly produce a flow-control information that stops to send this channel data, and this flow-control information is fed back to described transmitting element 510 via described SPI4.2 interface 200.Subsequently, after described Flow Control parsing module 514 obtains this flow-control information via described SPI4.2 interface 200, resolve this flow-control information and know the data that need stop to send at this moment this passage, then notify described transmission to receive the data transmit operation that caching management module 511 stops this passage in view of the above.
When described Flow Control generation module 513 finds that via described reception caching management module 512 data capacity in certain passage corresponding space is lower than the permission sending threshold value of this passage in the described receiver side buffer memory 540, then correspondingly produce a flow-control information that allows to send this channel data, and this flow-control information is fed back to described transmitting element 510 via described SPI4.2 interface 200 equally.Subsequently, after described Flow Control parsing module 514 obtains this flow-control information via described SPI4.2 interface 200, resolve the data that this flow-control information is known needs permission to send this passage this moment, then notify described transmission caching management module 511 to allow the data transmit operation of these passages in view of the above.
Need to prove: though as mentioned above, describedly stop sending threshold value and described permission sending threshold value is arranged in the described Flow Control generation module 513, compare the operation of data cached capacity and threshold value by described Flow Control generation module 513; But those skilled in the art will be understood that and describedly stop sending threshold value and described permission sending threshold value also can be arranged in the described reception caching management module 512, compared the operation of data cached capacity and threshold value by described reception caching management module.That is to say that the present invention does not limit the described place that specifically is provided with that stops sending threshold value and described permission sending threshold value.
In addition, the present invention also provides the respective data transfer that is applied to above-mentioned data transmission device method, between transmitting apparatus and receiving equipment, to carry out multichannel transfer of data, and Fig. 6 has provided the schematic flow sheet of this method, with reference to data transmission device of the present invention shown in Figure 2 each step shown in Figure 6 is explained in detail below.
As shown in Figure 6, the transmitter side that in data transmission device 500 shown in Figure 2, links to each other with link layer device 100 as transmitting apparatus, the step that this method is mainly carried out has:
Step T0, transmitting element 510 shown in Figure 2 receives the data of described link layer device 100 outputs;
Step T1, then, described transmitting element 510 is stored in the corresponding space of each described passage in the transmitter side buffer memory 520 shown in Figure 2 by the dateout of passage with described link layer device 100, to treat exporting the SPI4.2 interface 200 as the multichannel interface shown in Figure 2 to through the transmit operation scheduling;
Step T2, simultaneously, described transmitting element 510 also receives the flow-control information of being transmitted by described SPI4.2 interface 200, and dispatches and carry out the operation that data in each described passage corresponding space in the described transmitter side buffer memory 520 is sent to described SPI4.2 interface 200 according to the flow-control information of each described passage.
Wherein, according to the difference of concrete flow-control information, described step T2 might be embodied in one of the following step:
Step T2-0, when not receiving any flow-control information, described transmitting element 510 is according to predetermined scheduling strategy scheduling and carry out the operation that data in each described passage corresponding space in the described transmitter side buffer memory 520 is sent to described SPI4.2 interface 200; And, described predetermined scheduling strategy can be the RR scheduling strategy, also can be the WRR scheduling strategy, also can be WRED scheduling strategy etc.;
Step T2-1, when receiving when stopping to send the flow-control information of certain described channel data, described transmitting element 510 stops the data transmit operation of this passage, also promptly according to aforementioned predetermined scheduling strategy scheduling and carry out and will not comprise in the described transmitter side buffer memory 520 that data in the corresponding space that respectively allows data transmit operation passage of this passage are sent to the operation of described SPI4.2 interface 200;
Step T2-2, when receiving the flow-control information that allows certain described channel data of transmission, described transmitting element 510 will allow the data transmit operation of this passage, also promptly from begin according to aforementioned predetermined scheduling strategy scheduling and carry out and will comprise the described transmitter side buffer memory 520 that data in the corresponding space that respectively allows data transmit operation passage of this passage are sent to the operation of described SPI4.2 interface 200 this moment.
Simultaneously, as shown in Figure 6, the receiver side that in data transmission device 500 shown in Figure 2, links to each other with physical layer equipment 300 as receiving equipment, the step that this method is mainly carried out has:
Step R0, receiving element 530 shown in Figure 2 receives the data of described SPI4.2 interface 200 outputs;
Step R1, then, described receiving element 530 is stored in the corresponding space of each described passage in the receiver side buffer memory 540 shown in Figure 2 by the dateout of passage with described SPI4.2 interface 200, to treat by described physical layer equipment 300 receptions;
Step R2, simultaneously, described receiving element 530 also need monitor the data capacity in each described passage corresponding space in the described receiver side buffer memory 540, and produces the flow-control information of each described passage after feed back to described transmitting element 510 by described SPI4.2 interface 200 according to described supervision result.
Wherein, preferably, stop sending threshold value accordingly and allow sending threshold value for each described passage is provided with respectively in the described receiving element 530.And different with the comparative result of described two threshold values according to data capacity in each described passage corresponding space in the described receiver side buffer memory 540, described step R2 might be embodied in one of the following step:
Step R2-1, when the data capacity in certain passage corresponding space in the described receiver side buffer memory 540 be higher than this passage stop sending threshold value the time, described receiving element 530 produces the flow-control information that stops to send this channel data, and by described SPI4.2 interface this flow-control information is fed back to described transmitting element 510;
Step R2-2, when the data capacity in certain passage corresponding space in the described receiver side buffer memory 540 is lower than the permission sending threshold value of this passage, described receiving element 530 produces the flow-control information that allows to send this channel data, and by described SPI4.2 interface this flow-control information is fed back to described transmitting element 510.
What need statement is that foregoing invention content and embodiment are intended to prove the practical application of technical scheme provided by the present invention, should not be construed as the qualification to protection range of the present invention.Those skilled in the art are in spirit of the present invention and principle, when doing various modifications, being equal to and replacing or improve.Protection scope of the present invention is as the criterion with appended claims.

Claims (10)

1. a data transmission device comprises the multichannel interface that is used for carrying out transfer of data between transmitting apparatus and receiving equipment, it is characterized in that this data transmission device also comprises:
The transmitter side buffer memory is used for the data by the described transmitting apparatus output of passage buffer memory;
The receiver side buffer memory is used for waiting for the data of importing described receiving equipment by the passage buffer memory;
Transmitting element, link to each other with described transmitting apparatus, described multichannel interface and described transmitter side buffer memory, be used to receive the data of described transmitting apparatus output, press in the corresponding space of passage with this deposit data each described passage in the described transmitter side buffer memory, simultaneously according to the flow-control information scheduling of each described passage and carry out the operation that data in each described passage corresponding space in the described transmitter side buffer memory is sent to described multichannel interface;
Receiving element, link to each other with described receiving equipment, described multichannel interface and described receiver side buffer memory, be used to receive the data of described multichannel interface output, to be received by described receiving equipment treating in the corresponding space of this deposit data each described passage in the described receiver side buffer memory by passage, and produce the flow-control information of each described passage after described multichannel interface feeds back to described transmitting element according to the data capacity in each described passage corresponding space in the described receiver side buffer memory;
Wherein, indicate the passage of cell correspondence by the partial bit position in the self-defining data head.
2. data transmission device as claimed in claim 1 is characterized in that, is provided with stopping sending threshold value and allowing sending threshold value of each described passage in the described receiving element, wherein:
When the data capacity in certain described passage corresponding space in the described receiver side buffer memory be higher than this passage stop sending threshold value the time, then produce the flow-control information stop to send this channel data;
When the data capacity in certain described passage corresponding space in the described receiver side buffer memory is lower than the permission sending threshold value of this passage, then produce the flow-control information that allows to send this channel data.
3. data transmission device as claimed in claim 1 is characterized in that, described receiving element comprises:
Receive caching management module, link to each other with described receiving equipment, described multichannel interface and described receiver side buffer memory, be used to receive the data that described multichannel interface is transmitted, to be received by described receiving equipment treating in the corresponding space of this deposit data each described passage in the described receiver side buffer memory by passage, and write down the data capacity in each described passage corresponding space in the described receiver side buffer memory;
The Flow Control generation module, link to each other with described multichannel interface with described reception caching management module, be used for the record of data capacity in each described passage corresponding space of described receiver side buffer memory being produced the flow-control information of each described passage, and export described flow-control information to described multichannel interface according to described reception caching management module.
4. data transmission device as claimed in claim 1 is characterized in that, described transmitting element comprises Flow Control parsing module and transmission caching management module, wherein:
Described Flow Control parsing module, link to each other with described multichannel interface with described transmission caching management module, be used to receive the flow-control information of each described passage that described multichannel interface transmits, and resolve described flow-control information respectively for allowing or stop the data transmit operation of respective channel;
Described transmission caching management module, link to each other with described transmitting apparatus, described multichannel interface and described transmitter side buffer memory, be used to receive the data of described transmitting apparatus output and the flow-control information that described multichannel interface is transmitted, described transmitting apparatus dateout is stored in the corresponding space of each described passage in the described transmitter side buffer memory by passage, dispatches and carry out the operation that data in each described passage corresponding space in the described transmitter side buffer memory is sent to described multichannel interface simultaneously according to described flow-control information.
5. as the arbitrary described data transmission device of claim 1 to 4, it is characterized in that described multichannel interface is the SPI4.2 interface.
6. as the arbitrary described data transmission device of claim 1 to 4, it is characterized in that described transmitter side buffer memory and/or described receiver side buffer memory are synchronous DRAM, perhaps are static random access memory, perhaps are fifo register, perhaps are memory bar.
7. data transmission method, is characterized in that this method comprises to carry out multichannel transfer of data between transmitting apparatus and receiving equipment:
Step T1 is stored in the corresponding space of each described passage in the transmitter side buffer memory by the dateout of passage with described transmitting apparatus;
Step T2 dispatches and carries out the operation that data in each described passage corresponding space in the described transmitter side buffer memory is sent to the multichannel interface according to the flow-control information of each described passage;
Step R1 is stored in the corresponding space of each described passage in the receiver side buffer memory by the dateout of passage with described multichannel interface, to wait for the described receiving equipment of input;
Step R2 according to the data capacity in each described passage corresponding space in the described receiver side buffer memory, produces the flow-control information of each described passage;
Wherein, indicate the passage of cell correspondence by the partial bit position in the self-defining data head.
8. data transmission method as claimed in claim 7 is characterized in that, described step R2 specifically comprises:
Step R2-1, when the data capacity in certain described passage corresponding space in the described receiver side buffer memory be higher than this passage stop sending threshold value the time, produce the flow-control information stop to send this channel data;
Step R2-2 when the data capacity in certain described passage corresponding space in the described receiver side buffer memory is lower than the permission sending threshold value of this passage, produces the flow-control information that allows to send this channel data.
9. data transmission method as claimed in claim 7 is characterized in that, described step T2 specifically includes:
Step T2-1 when receiving when stopping to send the flow-control information of certain described channel data, stops the data transmit operation of this passage;
Step T2-2 when receiving the flow-control information that allows certain described channel data of transmission, allows the data transmit operation of this passage.
10. as the arbitrary described data transmission method of claim 7 to 9, it is characterized in that described multichannel interface is the SPI4.2 interface.
CN200710085592A 2007-03-12 2007-03-12 Data transmission apparatus and method for supporting multi-channel data transmission Active CN100591050C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710085592A CN100591050C (en) 2007-03-12 2007-03-12 Data transmission apparatus and method for supporting multi-channel data transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710085592A CN100591050C (en) 2007-03-12 2007-03-12 Data transmission apparatus and method for supporting multi-channel data transmission

Publications (2)

Publication Number Publication Date
CN101039270A CN101039270A (en) 2007-09-19
CN100591050C true CN100591050C (en) 2010-02-17

Family

ID=38889914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710085592A Active CN100591050C (en) 2007-03-12 2007-03-12 Data transmission apparatus and method for supporting multi-channel data transmission

Country Status (1)

Country Link
CN (1) CN100591050C (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252545B (en) * 2008-04-11 2010-08-25 杭州华三通信技术有限公司 Apparatus and method for processing stream control information
CN101667959B (en) * 2008-09-05 2014-08-20 华为技术有限公司 Method and device for transmitting data in physical layer and data transmission system
CN101383773B (en) * 2008-10-09 2011-08-17 中国科学院计算技术研究所 Apparatus for maintaining multichannel order rule and corresponding method
CN101982817B (en) * 2010-10-22 2012-07-11 王振国 Circuitry capable of transmitting multi-channel data streams through single bus interface
CN102065015B (en) * 2010-12-29 2012-09-12 福建星网锐捷网络有限公司 Data transmission method, network equipment and device
CN104038718B (en) * 2014-06-18 2017-09-01 广州晶序达电子科技有限公司 A kind of Mini LVDS channel multiplexings interface and its channel signal time-sharing multiplexing method
CN104038441A (en) * 2014-06-25 2014-09-10 浪潮(北京)电子信息产业有限公司 Method and system for transmitting data
CN104035904B (en) * 2014-07-04 2017-01-25 山东超越数控电子有限公司 FPGA-based interconnection device among chips
CN107547414A (en) * 2016-06-24 2018-01-05 中兴通讯股份有限公司 File transmitting method and device
JP2018064187A (en) * 2016-10-12 2018-04-19 キヤノン株式会社 Communication device, communication method, and program
CN106603434B (en) * 2016-12-07 2019-08-02 盛科网络(苏州)有限公司 Avoid the system and method for hol blocking during multi-channel data transmission
CN110139063B (en) * 2018-02-09 2020-12-18 杭州海康威视数字技术股份有限公司 Method, device and equipment for determining number of video streams supported by equipment
CN110134528A (en) * 2019-04-15 2019-08-16 平安普惠企业管理有限公司 Interface message storage call method, device and the terminal device of micro services frame
CN115396388B (en) * 2022-08-15 2023-07-25 成都北中网芯科技有限公司 Efficient network processing device based on NP

Also Published As

Publication number Publication date
CN101039270A (en) 2007-09-19

Similar Documents

Publication Publication Date Title
CN100591050C (en) Data transmission apparatus and method for supporting multi-channel data transmission
US10468078B2 (en) Methods and systems for pin-efficient memory controller interface using vector signaling codes for chip-to-chip communication
CN101753388B (en) Router and interface device suitable for the extending on and among sheets of polycaryon processor
CN109086228B (en) High speed memory chip with multiple independent access channels
CN101052013B (en) Method and system for realizing network equipment internal managing path
CN103988140A (en) Interconnection of a packaged chip to a die in a package utilizing on-package input/output interfaces
CN102866980B (en) Network communication cell used for multi-core microprocessor on-chip interconnected network
CN111339003A (en) General multichannel data sending system and method based on FPGA
CN100525172C (en) Transmission set of multiplexing multiplepath interface in physical layer
CN1819554B (en) Data processing system and data interfacing method thereof
CN108259368A (en) A kind of data transmission system and method based on FPGA
CN100512230C (en) Method and device for processing multichannel data
US9495309B2 (en) System and method for increased capacity and scalability of a memory topology
CN103117962B (en) A kind of spaceborne Shared memory switch device
CN101437035A (en) Data communication method and Ethernet equipment
CN100536460C (en) Device for dispatching and arbitration
CN103684651A (en) Constant-bit-rate interface data receiving method and device for optical transport network mixed services
CN100574319C (en) The method of the fiduciary FLOW CONTROL in the computer system, system and equipment
US20230119889A1 (en) Computer system based on wafer-on-wafer architecture
CN103516627A (en) Method and apparatus for transmitting and receiving data packets in multi-chip communication
CN203761399U (en) Optical communication equipment of single-fiber bi-directional symmetrical rate and system
CN110191069B (en) Annular network on chip with multiple channels
CN113490080A (en) Multi-port FC switching host and switching method
CN201557161U (en) Parallel expansion multi-path audio switching mixing device
CN207352610U (en) A kind of FPGA data processing card based on PCI Express bus architectures

Legal Events

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

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

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.