Movatterモバイル変換


[0]ホーム

URL:


CN101540653A - Data sending and receiving method, data transmitting device and data transmitting system - Google Patents

Data sending and receiving method, data transmitting device and data transmitting system
Download PDF

Info

Publication number
CN101540653A
CN101540653ACN200910083096ACN200910083096ACN101540653ACN 101540653 ACN101540653 ACN 101540653ACN 200910083096 ACN200910083096 ACN 200910083096ACN 200910083096 ACN200910083096 ACN 200910083096ACN 101540653 ACN101540653 ACN 101540653A
Authority
CN
China
Prior art keywords
data
packet
sending
data transmission
channel
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.)
Pending
Application number
CN200910083096A
Other languages
Chinese (zh)
Inventor
杨静忠
李剑
杨卿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co LtdfiledCriticalHuawei Technologies Co Ltd
Priority to CN200910083096ApriorityCriticalpatent/CN101540653A/en
Publication of CN101540653ApublicationCriticalpatent/CN101540653A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明的实施例公开了一种数据发送和接收方法、芯片和数据传输系统。涉及通信领域;解决了数据传输过程中发生数据丢失的问题。所述数据发送方法包括:通过数据通道发送数据,所述数据包含一个以上的数据包;在全部数据包发送完成后,通过相同的数据通道发送指示数据发送结束的数据包。本发明提供的技术方案适用于数据传输,尤其适用于Rapid IO协议下器件之间的数据传输。

Figure 200910083096

The embodiment of the invention discloses a data sending and receiving method, a chip and a data transmission system. It relates to the field of communication; it solves the problem of data loss in the process of data transmission. The data sending method includes: sending data through a data channel, the data including more than one data packet; after sending all the data packets, sending a data packet indicating the end of data sending through the same data channel. The technical solution provided by the invention is suitable for data transmission, especially for data transmission between devices under the Rapid IO protocol.

Figure 200910083096

Description

Data method of sending and receiving, data transmission device and data transmission system
Technical field
The present invention relates to the communications field, relate in particular to a kind of data method of sending and receiving, data transmission device and data transmission system.
Background technology
I/O (Rapid Input/Output, Rapid IO) agreement is a kind of open system interconnection architecture standard agreement based on reliability fast, is mainly used in the high-speed transfer of data between chip chamber or backboard.Adopt the data transmission system of Rapid IO agreement to comprise two class devices as shown in Figure 1, a class is anend points device 101, is used to send packet and receives packet; Another kind of is interchanger (Rapid IO SWITCH) 102, is used to realize route and the transmission of packet between each end points device.
Rapid IO agreement is all adopted in communication between each end points device, finishes via the interchanger exchange.Packet under the Rapid IO agreement once can transmit the data of 256 bytes at most, therefore when the data length that needs transmission during greater than 256 bytes, the source endpoint device need split into data a plurality of packets, and these packets are sent to the target endpoint device one by one.And then the source end-apparatus spare that sends data sends a DOORBELL bag to the target endpoint device after the entire packet transmission is finished, notification target end points device data has sent and finished; The target endpoint device begins data are handled after receiving the DOORBELL bag.
State in realization in the process of transmission data, the inventor finds that there are the following problems at least in the prior art:
Because packet takies the different transmission channel transmission of interchanger with the DOORBELL bag, under the big situation of transmitted data amount, the transmission of packet can produce delay, at this moment DOORBELL is surrounded by and may arrives the target endpoint device before entire packet arrives the target endpoint device, and the target endpoint device will start the processing to the data that receive immediately after receiving the DOORBELL bag, causes data processing to make a mistake.
Summary of the invention
Embodiments of the invention provide a kind of data method of sending and receiving, data transmission device and data transmission system, have improved reliability of data transmission.
Embodiments of the invention provide a kind of data transmission method for uplink, comprising:
Send data by data channel, described data comprise more than one packet;
After entire packet is sent completely, send the packet of indicating data transmission completeness by identical data channel.
Embodiments of the invention also provide a kind of data receive method, comprising:
Receive data by data channel, described data comprise at least one packet;
By the packet of identical data channel reception indicating data transmission completeness, the affirmation Data Receiving is finished.
Embodiments of the invention also provide a kind of data transmission device, comprising:
The packet sending module sends data by data channel, and described data comprise more than one packet;
Send and finish indicating module, be used for after described packet sending module is finished the whole subdatas of transmission, sending the packet of indicating data transmission completeness by identical data channel.
Embodiments of the invention also provide a kind of data transmission system, comprise first data transmission device and second data transmission device;
Described first data transmission device is used for sending data by data channel to described second data transmission device, and described data comprise more than one packet; After entire packet is sent completely, send the packet of indicating data transmission completeness to described second data transmission device by identical data channel;
Described second data transmission device is used for by data channel, receives the data that described first data transmission device sends, and described data comprise at least one packet; After receiving entire packet, receive the packet of the indicating data transmission completeness that described first data transmission device sends by identical data channel, and data are handled.
A kind of data transmission method for uplink, data receive method, data transmission device and data transmission system that embodiments of the invention provide, after entire packet is sent completely, send the packet of indicating data transmission completeness again by identical data channel, guaranteed that the target endpoint device just receives the packet of indicating data transmission completeness after data all arrive, solve the problem that the data processing that exists in the prior art makes a mistake, improved reliability of data transmission.
Description of drawings
Fig. 1 is the hardware configuration schematic diagram of the data transmission system of Rapid IO agreement;
Fig. 2 is the three-layer architecture schematic diagram of the Rapid IO agreement of embodiments of the invention use;
The flow chart of a kind of data transmission method for uplink that Fig. 3 provides for embodiments of the invention;
The flow chart of a kind of data receive method that Fig. 4 provides for embodiments of the invention;
The flow chart of a kind of data method of sending and receiving that Fig. 5 provides for another embodiment of the present invention;
The flow chart of a kind of data method of sending and receiving that Fig. 6 provides for another embodiment of the present invention;
The structural representation of a kind of data transmission device that Fig. 7 provides for embodiments of the invention;
The structural representation of a kind of data transmission device that Fig. 8 provides for another embodiment of the present invention;
The structural representation of a kind of data transmission system that Fig. 9 provides for embodiments of the invention.
Embodiment
In the present embodiment, Rapid IO agreement adopts the architecture of three layers of classification, and this structure is respectively as shown in Figure 2:logical layer 201,transport layer 202 andphysical layer 203.
Logical layer 201 has defined all accord of interface and the form of bag at top layer;Transport layer 202 is in the intermediate layer, and address space and data needed routing iinformation of transmission package between the end points device of definition Rapid IO agreement have been realized route, the transmission of Rapid IO packet;Physical layer 203 is positioned at the bottom of whole hierarchy, comprises the device level interface details.
The core of Rapid IO agreement is bag and control character, and bag is the basic communication unit between the end points device in the system, and control character is used for the transaction flow that interconnects between managing physical layer end points device, also is used to wrap affirmation, flow control and maintenance.
Below the bag commonly used in the Rapid IO agreement is introduced.
1, NWRITE bag: write request, data are mail to certain sector address of certain target endpoint device with the form of bag, do not need the target endpoint device from high-rise feedback response;
2, SWRITE bag: the stream write request, data are mail to certain sector address of certain target endpoint device with the form of bag, do not need the target endpoint device from high-rise feedback response, the data length in the bag must be the integral multiple of 64bit;
3, NRITE_R bag: the write request of band response, data are mail to certain sector address of certain target endpoint device with the form of bag, require the target endpoint device from high-rise feedback response;
4, DOORBELL bag: a kind of as message body, subsidiary any data can be used for triggering and interrupt.
Wherein, NWRITE bag and SWRITE bag do not need the target endpoint device to provide feedback response from high level, the high level that is the target endpoint device can't be known the situation that data arrive, if wanting notification target end points device data to send, finishes by the source endpoint device, then can be after entire packet be sent completely, send a DOORBELL bag to the target endpoint device, be used for the transmission of notification target end points device data and finish, and trigger of the processing of target endpoint device data.
Therefore RapidIO protocol specifies data bag once can transmit the data of 256 bytes at most, when the data length that needs transmission during greater than 256 bytes, data need be divided into a plurality of packets and be docile and obedient preface and send to the target endpoint device.With above-mentioned NWRITE bag and SWRITE bag is example, these two kinds of bags do not need the target endpoint device to provide feedback response from high level, the high level that is the target endpoint device can't be known the situation that data arrive, if wanting notification target end points device data to send, finishes by the source endpoint device, then need be after entire packet be sent completely, send a DOORBELL bag to the target endpoint device, be used for the transmission of notification target end points device data and finish, and trigger of the processing of target endpoint device data.
Consider the disposal ability of target endpoint device to data, under the big data quantity situation, need cooperate the source endpoint device to finish data processing jointly by a plurality of target endpoint devices, the data that are the source endpoint device need to send to a plurality of target endpoint devices simultaneously, handle by a plurality of target endpoint device parallels, to improve data-handling efficiency.
Source endpoint device and target endpoint device carry out transfer of data by interchanger (Rapid IO SWITCH), and packet and control character all have the IP address of source endpoint device and the IP address of target endpoint device, carry out route by interchanger.Interchanger has a plurality of different passages, is respectively applied for the different information of transmission.Because packet is different with the transmission means of DOORBELL bag, so take the different transmission channel of interchanger, for example packet transmits by data channel, and the DOORBELL bag transmits by control channel.
Under the big situation of transmitted data amount, the transfer of data back-pressure can appear in the target endpoint device, promptly need the overabundance of data that receives, data transfer delay appears on data channel, and this moment, need data quantity transmitted will reduce a lot relatively on the control channel, at this moment, data just might occur does not finish receiving as yet, but receive the situation of DOORBELL bag, the target endpoint device is after receiving the DOORBELL bag, the memory address of the data of can be immediately carrying according to the DOORBELL bag obtains data and handles, but in fact data all do not arrive as yet, and what store on specified memory address might be old data, mistake will occur when the target endpoint device carries out data processing.
Arrive fully in order to solve the pending data of knowing that target devices can't be correct, the problem that causes data processing to make a mistake, the embodiment of the invention provide a kind of data transmission method for uplink and a kind of data receive method.
The process of a kind of data transmission method for uplink transmission data that the use embodiment of the invention provides comprises as shown in Figure 3:
Step 301, send data by data channel, described data comprise more than one packet;
Step 302, after entire packet is sent completely, send the packet of indicating data transmission completeness by identical data channel.
The process of the data receive method reception data that the use embodiment of the invention provides comprises as shown in Figure 4:
Step 401, receive data by data channel, described data comprise at least one packet;
Step 402, receive the packet of indicating data transmission completeness, confirm that Data Receiving finishes by identical data channel.
A kind of data transmission method for uplink and data receive method that embodiments of the invention provide, at first send data, described data comprise at least one packet, after entire packet is sent completely, send the packet of indicating data transmission completeness again by identical data channel, determined the transmission sequence of the packet of packet and indicating data transmission completeness, guaranteed that the target endpoint device just receives the packet of indicating data transmission completeness after data all arrive, solve the problem that the data processing that exists in the prior art makes a mistake, improved reliability of data transmission under the Rapid IO standard.
Below in conjunction with accompanying drawing 5, another embodiment of the present invention is introduced.
Arrive fully in order to solve the pending data of knowing that target devices can't be correct, and then the problem that causes data processing to make a mistake, the embodiment of the invention provides a kind of data transmission method for uplink and a kind of data receive method.
The process of the data method of sending and receiving transmission data that the use embodiment of the invention provides comprises as shown in Figure 5:
Step 501, source endpoint device are divided into more than one packet with data;
In this step, owing to need the data length of transmission long, the packet of a Rapid IO can not transmit whole data, is divided into a plurality of packets so will be used for the data of a data processing.
Step 502, source endpoint device send described packet in order;
In this step, with the form of broadcasting described a plurality of packets are sent in order, the packet of transmission does not need the feedback of target endpoint device high level; Each packet all carries the memory address of target endpoint device, routes a data packet to corresponding target endpoint device by switching equipment, and writes in the internal memory of this target endpoint device.
Step 503, target endpoint device receive data;
In this step, the target endpoint device receives a plurality of packets of described composition data, because in the embodiment of the invention, the packet that sends is not need the high-rise feedback of target endpoint device, so target endpoint device and do not known to receive new data in fact, the target endpoint device just when receiving the indication of source endpoint device, is handled the data in the internal memory.
Carry target endpoint device memory address in the described packet, according to described memory address, the target endpoint device writes the data packet in the corresponding core position and goes.
Step 504, source endpoint device send the packet of indicating data transmission completeness;
In this step, the source endpoint device uses packet that is used for indicating data transmission completeness of identical data passage broadcast transmission after sending data with the forms of broadcasting, be sent completely with notification target end points device data, can begin data processing.
In the embodiment of the invention, be equipped with interrupt register on the target endpoint device, and be interrupt register distributing independent address, described interrupt register is an addressable register; The described packet that is used for indicating data transmission completeness is for triggering bag, and it is in the nature packet, and the destination address that triggers bag is the address of interrupt register, carries trigger message in this triggering bag; Interrupt register receives and triggers bag, extracts trigger message wherein; , operate accordingly according to trigger message, trigger the target endpoint device and carry out data processing.
Because triggering bag transmits in identical data channel with packet, and the source endpoint device just sends after sending packet and triggers bag, trigger bag so the target endpoint device also will just receive after receiving entire packet, guaranteed that data arrive the order of target endpoint device.
Step 505, target endpoint device receive the packet of described indicating data transmission completeness;
In this step, the target endpoint device receives the triggering bag by identical data channel afterstep 503 receives entire packet by data channel.
The address of the interrupt register that interchanger carries according to described triggering bag should be triggered bag and being routed to interrupt register.
The embodiment of the invention adopts addressable register as interrupt register, value according to addressable register determines whether the trigger data handling process, the bit position that described addressable register can be set is a trigger bit, and it is trigger bit that a plurality of bit position also can be set; When bit position of equipment is trigger bit, can stipulate trigger data handling process when the value of this trigger bit is 0, also can stipulate trigger data handling process when the value of this trigger bit is 1.
It is example that the embodiment of the invention has the trigger bit of a bit position with described interrupt register, when the triggering place value of described interrupt register is 1, triggers the processing of processor to data.
In the embodiment of the invention, carry trigger message in the triggering bag that interruption location register receives, the value that described trigger message is specially the trigger bit of the described interrupt module of indication is set to 1.
Step 506, target endpoint device deal with data;
In this step, the value of described interrupt register trigger bit is set to 1, and interrupt register triggers the flow chart of data processing of target endpoint device processor.
The total data that described triggering bag carries one group of data that described source endpoint device sends wraps in the memory address in the described target endpoint device internal memory, and processor wraps in the corresponding internal memory according to triggering and obtains data, and data are handled.
A kind of data transmission method for uplink and data receive method that embodiments of the invention provide, at first send data, described data comprise at least one packet, after entire packet is sent completely, send the packet of indicating data transmission completeness again by same data channel, determined the transmission sequence of the packet of packet and indicating data transmission completeness, guaranteed that the target endpoint device just receives the packet of indicating data transmission completeness after data all arrive, solve the problem of the loss of data that exists in the prior art, improved reliability of data transmission under the Rapid IO standard.
Below in conjunction with accompanying drawing, another embodiment of the present invention is introduced.
Arrive the problem of the loss of data that causes fully in order to solve the pending data of knowing that target devices can't be correct, the embodiment of the invention provides a kind of data transmission method for uplink and a kind of data receive method.
The process of using described data method of sending and receiving transmission data comprises as shown in Figure 6:
Step 601, source endpoint device are divided into more than one packet with data;
In this step, owing to need the data length of transmission long, the packet of a Rapid IO can not transmit whole data, is divided into a plurality of packets so will be used for one group of data of a data processing.
In the embodiment of the invention, described one group of data comprise two or more data types, and for example up frequency domain data and up time domain data are divided into packet respectively with these data types, be all corresponding at least one the packet of data of each data type, transmit these packets again.
Step 602, source endpoint device send described packet in order;
In this step, with broadcast mode described a plurality of packets are sent in order, the packet of transmission does not need the feedback of target endpoint device high level; Each packet all carries the memory address of target endpoint device, routes a data packet to corresponding target endpoint device by switch, and writes in the internal memory of this target endpoint device.
Step 603, target endpoint device receive data;
In this step, the target endpoint device receives a plurality of packets of described composition data, because in the embodiment of the invention, the packet that sends is not need the high-rise feedback of target endpoint device, so target endpoint device and do not known to receive new data in fact, the target endpoint device just when receiving the indication of source endpoint device, is handled the data in the internal memory.
Carry target endpoint device memory address in the described packet, according to described memory address, the target endpoint device writes the data packet in the corresponding core position and goes.
Step 604, source endpoint device send the packet of indicating data transmission completeness;
In this step, the source endpoint device uses packet that is used for indicating data transmission completeness of identical data channel broadcast transmission after sending data with the forms of broadcasting, be sent completely with notification target end points device data, can begin data processing.
In the embodiment of the invention, the described packet that is used for indicating data transmission completeness is for triggering bag, and it is in the nature packet, triggers bag and carries trigger message, and destination address is the address of interrupt register; Interrupt register receives and triggers bag, extracts trigger message wherein, operates accordingly, triggers the target endpoint device and carries out data processing.
Because triggering bag transmits in same data channel with packet, and the source endpoint device just sends after sending packet and triggers bag, trigger bag so the target endpoint device also will just receive after receiving entire packet, guaranteed that data arrive the order of target endpoint device.
In the embodiment of the invention, the data that comprise numerous types of data in one group of data that the source endpoint device sends, so described triggering bag carries extra interruption info information, described interruption info information comprises the memory location of data in internal memory of data type information and each data type.For example, comprise up frequency domain data and up time domain data in one group of data of transmission, up frequency domain data is divided into more than one packet, and the address of each packet of up frequency domain data added to interrupt in the info information; Up time domain data also is divided into more than one packet, and the address of each packet of up time domain data added to interrupts in the info information.
Step 605, target endpoint device receive the packet of described indicating data transmission completeness;
In this step, the target endpoint device receives the triggering bag by identical data channel afterstep 503 receives entire packet by data channel.
The processor of the target endpoint device in the embodiment of the invention is connected with interrupt register, and interrupt register has independently address, and in this step, the address of the interrupt register that interchanger carries according to described triggering bag should be triggered bag and being routed to interrupt register.
The embodiment of the invention adopts addressable register as interrupt register, value according to addressable register determines whether the trigger data handling process, can be trigger bit with a bit position of described addressable register, can be trigger bit also with a plurality of bit position, it is example that the embodiment of the invention has the trigger bit of a bit position with described addressable register, when the triggering place value of described addressable register is 1, trigger the processing of processor to data.
In the embodiment of the invention, carry trigger message in the triggering bag that the interrupt register of target endpoint device receives, the triggering place value that described trigger message is specially described interrupt register is changed to 1.
Carry interruption info information owing to trigger bag, interrupt register dumps to described interruption info information in the internal memory after identifying described interruption info information, and the memory location can be to be specified by the source endpoint device, carries by triggering bag; Also can be by a position in the target endpoint device beforehand specified memory, be used for storing the info information of interrupting specially.
Step 606, target endpoint device deal with data;
In this step, the value of described addressable register trigger bit is set to 1, and interrupt register triggers the flow chart of data processing of target endpoint device processor.
Because described triggering bag carries the info information of interrupting, and be stored in the internal memory of target endpoint device, when the processor of target endpoint device begins deal with data, at first by reading the info information of interrupting in the internal memory, obtain data of different types according to the data type information in the described interruption info information, data of different types is handled respectively successively.For example, comprise up frequency domain data and up time domain data in one group of data of reception, from interrupt info information, extract the address of each packet of up frequency domain data, obtain up frequency domain data according to described address; From interrupt info information, extract the address of each packet of up time domain data, obtain up time domain data according to described address.
Need to prove, in the embodiment of the invention, data type information also can be carried by packet, whenstep 606 target endpoint device carries out data processing, just can obtain the data type of described packet in the time of read data packet, then data of different types be handled respectively.
The data method of sending and receiving that the embodiment of the invention provides when one group of data handling when needs comprise the data of numerous types of data, is divided at least one packet respectively with the data of different types of data, sends described entire packet by data channel; After entire packet is sent completely, sends the packet of indicating data transmission completeness by identical data channel, and in this packet, carry the data type information of several data; After receiving a plurality of packets that constitute one group of data by data channel, receive the packet of indicating data transmission completeness by identical data channel, and when carrying out data processing, at first extract data type information, according to described data type information data of different types is handled respectively then.Guaranteed to comprise under the situation of a plurality of packets that the target endpoint device ability specified data after receiving total data that receives data finishes receiving, and has solved the problem of loss of data, has improved data-handling efficiency one group of data.
Embodiments of the invention also provide a kind of data transmission device, and the structure of this data transmission device comprises as shown in Figure 7:
Packet sending module 701 is used for sending data by data channel, and described data comprise more than one packet;
Send and finish indicatingmodule 702, be used for after describedpacket sending module 701 is finished the whole subdatas of transmission, sending the packet of indicating data transmission completeness by identical data channel.
Further, said chip also comprises as shown in Figure 8:
Packet receiver module 703 is used for receiving the data that describedpacket sending module 701 sends by described data channel, and described data comprise at least one packet;
Interrupt module 704 is used for receiving the packet that described transmission finishes the indicating data transmission completeness of indicatingmodule 702 transmissions by identical data channel, and the trigger data handling process.When specific implementation, interrupt module can be a for example addressable register of interrupt register.
Above-mentioned data transmission device, can combine with a kind of data method of sending and receiving that embodiments of the invention provide, when sending data, the data volume that sends as required bypacket sending module 701, data are divided at least one packet, and a plurality of packets are sent in order by data channel; After described data are sent completely, finish the packet of indicatingmodule 702 by described transmission at identical data channel transmission indicating data transmission completeness, notification target end points device data sends and finishes, can carry out data processing.
When receiving data, at first receive data by data channel bypacket receiver module 703, described data comprise at least one packet; Afterwards, interrupt module 704 is by the packet of identical data channel reception indicating data transmission completeness, and the trigger data handling process.
The data transmission device that the embodiment of the invention provides, can combine with a kind of data method of sending and receiving that embodiments of the invention provide, after sending the data that constitute by a plurality of packets, send the packet of indicating data transmission completeness by identical data channel by data channel; After receiving a plurality of packets of composition data, receive the packet of indicating data transmission completeness by identical data channel by data channel.Guaranteed to comprise under the situation of a plurality of packets that the target endpoint device ability specified data after receiving total data that receives data finishes receiving, and has solved the problem of loss of data in data.
Embodiments of the invention also provide a kind of data transmission system, and the structure of this system comprises firstdata transmission device 901 and seconddata transmission device 902 as shown in Figure 9; Be equipped with a data channel and at least one other passages, for example control channel between described firstdata transmission device 901 and seconddata transmission device 902.
Described firstdata transmission device 901 is used for sending data by data channel to described seconddata transmission device 902, and described data comprise more than one packet; After entire packet is sent completely, send the packet of indicating data transmission completeness to described seconddata transmission device 902 by identical data channel;
Described seconddata transmission device 902 is used for by data channel, receives the data that described firstdata transmission device 901 sends, and described data comprise at least one packet; After receiving entire packet, receive the packet of the indicating data transmission completeness that described firstdata transmission device 901 sends by identical data channel, and data are handled.
Further, described seconddata transmission device 902 also is used for the information according to the packet of described indicating data transmission completeness, from the corresponding core position of described second data transmission device, obtain the data of different types of data, the data of each data type are handled respectively.
A kind of data transmission system that the embodiment of the invention provides, can combine with a kind of data transmission method that embodiments of the invention provide, after sending the data that constitute by a plurality of packets, send the packet of indicating data transmission completeness by identical data channel by data channel; After receiving a plurality of packets, receive the packet of indicating data transmission completeness by identical data channel by data channel.Guaranteed to comprise under the situation of a plurality of packets that the target endpoint device ability specified data after receiving total data that receives data finishes receiving, and has solved the problem of loss of data in data.
One of ordinary skill in the art will appreciate that and realize that all or part of step that the foregoing description method is carried is to instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, this program comprises one of step or its combination of method embodiment when carrying out.
In addition, each functional unit in each embodiment of the present invention can be integrated in the module, also can be that the independent physics in each unit exists, and also can be integrated in the module two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, also can adopt the form of software function module to realize.If described integrated module realizes with the form of software function module and during as independently production marketing or use, also can be stored in the computer read/write memory medium.
The above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the described protection range of claim.

Claims (10)

Translated fromChinese
1、一种数据发送方法,其特征在于,包括:1. A data sending method, characterized in that, comprising:通过数据通道发送数据,所述数据包含一个以上的数据包;sending data through a data channel, the data comprising more than one data packet;在全部数据包发送完成后,通过相同的数据通道发送指示数据发送结束的数据包。After all data packets are sent, a data packet indicating the end of data sending is sent through the same data channel.2、根据权利要求1所述的数据发送方法,其特征在于,所述指示数据发送结束的数据包用于触发接收端的中断和数据处理。2. The data sending method according to claim 1, wherein the data packet indicating the end of data sending is used to trigger an interruption and data processing at the receiving end.3、根据权利要求1所述的数据发送方法,其特征在于,还包括:3. The data sending method according to claim 1, further comprising:如果待发送的数据包含两种以上的数据类型,则所述指示数据发送结束的数据包还携带数据类型信息以及各个数据类型的数据在接收端内存中的存储地址。If the data to be sent includes more than two data types, the data packet indicating the end of data sending also carries data type information and storage addresses of data of each data type in the memory of the receiving end.4、一种数据接收方法,其特征在于,包括:4. A method for receiving data, comprising:通过数据通道接收数据,所述数据包含至少一个数据包;receiving data through a data channel, the data comprising at least one data packet;通过相同的数据通道接收指示数据发送结束的数据包,确认数据接收完成。Receive a data packet indicating the end of data transmission through the same data channel to confirm the completion of data reception.5、根据权利要求4所述的数据接收方法,其特征在于,所述指示数据发送结束的数据包的目的地址为中断寄存器地址,所述通过所述数据通道接收指示数据发送结束的数据包,确认数据接收完成的步骤包括:5. The data receiving method according to claim 4, wherein the destination address of the data packet indicating the end of data transmission is an interrupt register address, and receiving the data packet indicating the end of data transmission through the data channel, The steps to confirm the completion of data reception include:从所述指示数据发送结束的数据包中获取中断寄存器地址,根据所述中断寄存器地址查找对应的中断寄存器;Obtain an interrupt register address from the data packet indicating the end of data transmission, and search for a corresponding interrupt register according to the interrupt register address;驱动中断寄存器,触发数据处理流程。Drive the interrupt register to trigger the data processing flow.6、根据权利要求5所述的数据接收方法,其特征在于,还包括:6. The data receiving method according to claim 5, further comprising:若所述指示数据发送结束的数据包携带数据类型信息以及各个数据类型的数据在接收端内存中的存储地址,存储所述指示数据发送结束的数据包;If the data packet indicating the end of data transmission carries data type information and the storage address of the data of each data type in the memory of the receiving end, store the data packet indicating the end of data transmission;根据所述指示数据发送结束的数据包中的信息,从相应的内存位置中获取不同数据类型的数据,对各个数据类型的数据分别进行处理。According to the information in the data packet indicating the end of data transmission, data of different data types are acquired from corresponding memory locations, and the data of each data type are respectively processed.7、一种数据传输装置,其特征在于,包括:7. A data transmission device, characterized in that it comprises:数据包发送模块,用于通过数据通道发送数据,所述数据包含一个以上的数据包;A data packet sending module, configured to send data through a data channel, and the data includes more than one data packet;发送结束指示模块,用于在所述数据包发送模块完成发送全部子数据后,通过相同的数据通道发送指示数据发送结束的数据包。The sending end indicating module is used to send a data packet indicating the end of data sending through the same data channel after the data packet sending module finishes sending all the sub-data.8、根据权利要求7所述的装置,其特征在于,还包括:8. The device according to claim 7, further comprising:数据包接收模块,用于通过数据通道接收数据,所述数据包含至少一个数据包;A data packet receiving module, configured to receive data through a data channel, the data comprising at least one data packet;中断模块,用于通过相同的数据通道接收所述发送结束指示模块发送的指示数据发送结束的数据包,并触发数据处理流程。The interruption module is configured to receive the data packet indicating the end of data transmission sent by the transmission end indication module through the same data channel, and trigger the data processing flow.9、一种数据传输系统,其特征在于,包括第一数据传输装置和第二数据传输装置;9. A data transmission system, characterized in that it comprises a first data transmission device and a second data transmission device;所述第一数据传输装置,用于通过数据通道向所述第二数据传输装置发送数据,所述数据包含一个以上的数据包;在全部数据包发送完成后,通过相同的数据通道向所述第二数据传输装置发送指示数据发送结束的数据包;The first data transmission device is configured to send data to the second data transmission device through a data channel, and the data includes more than one data packet; after sending all the data packets, send the data to the second data transmission device through the same data channel The second data transmission device sends a data packet indicating the end of data transmission;所述第二数据传输装置,用于通过数据通道,接收所述第一数据传输装置发送的数据,所述数据包含至少一个数据包;在接收全部数据包后,通过相同的数据通道接收所述第一数据传输装置发送的指示数据发送结束的数据包,并对数据进行处理。The second data transmission device is configured to receive the data sent by the first data transmission device through a data channel, and the data includes at least one data packet; after receiving all the data packets, receive the data through the same data channel The first data transmission device sends a data packet indicating the end of data transmission, and processes the data.10、根据权利要求9所述的数据传输系统,其特征在于,所述第二数据传输装置还用于根据所述指示数据发送结束的数据包中的信息,从所述第二数据传输装置相应的内存位置中获取不同数据类型的数据,对各个数据类型的数据分别进行处理。10. The data transmission system according to claim 9, characterized in that, the second data transmission device is further configured to, according to the information in the data packet indicating the end of data transmission, respond from the second data transmission device The data of different data types is obtained from the memory location of each data type, and the data of each data type is processed separately.
CN200910083096A2009-04-292009-04-29Data sending and receiving method, data transmitting device and data transmitting systemPendingCN101540653A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN200910083096ACN101540653A (en)2009-04-292009-04-29Data sending and receiving method, data transmitting device and data transmitting system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN200910083096ACN101540653A (en)2009-04-292009-04-29Data sending and receiving method, data transmitting device and data transmitting system

Publications (1)

Publication NumberPublication Date
CN101540653Atrue CN101540653A (en)2009-09-23

Family

ID=41123659

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN200910083096APendingCN101540653A (en)2009-04-292009-04-29Data sending and receiving method, data transmitting device and data transmitting system

Country Status (1)

CountryLink
CN (1)CN101540653A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2016123975A1 (en)*2015-02-062016-08-11中兴通讯股份有限公司Data transmission method and apparatus
CN105893323A (en)*2016-05-232016-08-24华为技术有限公司Data reading method and data reading equipment
CN108733598A (en)*2018-05-072018-11-02济南浪潮高新科技投资发展有限公司A kind of data transmission method and data transmission device
CN109669903A (en)*2018-12-072019-04-23天津津航计算技术研究所A kind of the bridge module design and optimization method of SRIO agreement
CN111665778A (en)*2020-05-292020-09-15国电南瑞科技股份有限公司Method for rapid communication transmission and data processing between PLC and upper computer
CN112084120A (en)*2020-07-302020-12-15济南浪潮高新科技投资发展有限公司RapidIO data transmission processing method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2016123975A1 (en)*2015-02-062016-08-11中兴通讯股份有限公司Data transmission method and apparatus
CN105992186A (en)*2015-02-062016-10-05中兴通讯股份有限公司Data transmission method and device
CN105992186B (en)*2015-02-062020-11-03中兴通讯股份有限公司Data transmission method and device
CN105893323A (en)*2016-05-232016-08-24华为技术有限公司Data reading method and data reading equipment
CN108733598A (en)*2018-05-072018-11-02济南浪潮高新科技投资发展有限公司A kind of data transmission method and data transmission device
CN109669903A (en)*2018-12-072019-04-23天津津航计算技术研究所A kind of the bridge module design and optimization method of SRIO agreement
CN111665778A (en)*2020-05-292020-09-15国电南瑞科技股份有限公司Method for rapid communication transmission and data processing between PLC and upper computer
CN111665778B (en)*2020-05-292022-05-24国电南瑞科技股份有限公司 A method for fast communication transmission and data processing between PLC controller and host computer
CN112084120A (en)*2020-07-302020-12-15济南浪潮高新科技投资发展有限公司RapidIO data transmission processing method and device

Similar Documents

PublicationPublication DateTitle
CN107689931B (en)System and method for realizing Ethernet switching function based on domestic FPGA
US7916632B1 (en)Systems and methods for handling packet fragmentation
US7644147B1 (en)Remote network device management
US7773599B1 (en)Packet fragment handling
US7813342B2 (en)Method and apparatus for writing network packets into computer memory
CA2338969C (en)Packet exchange and router and input packet processing method thereof
US7936758B2 (en)Logical separation and accessing of descriptor memories
CN101540653A (en)Data sending and receiving method, data transmitting device and data transmitting system
CN101877671B (en)Sending method of mirror image message, switch chip and Ethernet router
US8085780B1 (en)Optimized buffer loading for packet header processing
US7328270B1 (en)Communication protocol processor having multiple microprocessor cores connected in series and dynamically reprogrammed during operation via instructions transmitted along the same data paths used to convey communication data
CN101692647B (en)Tunnel forwarding system in which IPv4 packets are encapsulated by IPv6 head in router
CN102598590A (en)Active multi-path network redundancy with performance monitoring
TWI257790B (en)System for protocol processing engine
CN105978762A (en)Redundant Ethernet data transmission device, system and method thereof
KR20170133236A (en)STORAGE SYSTEM, METHOD, AND APPARATUS FOR FAST IO ON PCIe DEVICES
CN100353307C (en)Storage system and method of storaging data and method of reading data
US7239630B1 (en)Dedicated processing resources for packet header generation
US7158520B1 (en)Mailbox registers for synchronizing header processing execution
EP2201740B1 (en)High speed packet processing in a wireless network
US20030193894A1 (en)Method and apparatus for early zero-credit determination in an infiniband system
US9055008B1 (en)Device and process for efficient multicasting
US7180893B1 (en)Parallel layer 2 and layer 3 processing components in a network router
US7362750B2 (en)Switch module architecture
CN1965550B (en) Method and apparatus for processing complete bursts of data

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C12Rejection of a patent application after its publication
RJ01Rejection of invention patent application after publication

Application publication date:20090923


[8]ページ先頭

©2009-2025 Movatter.jp