CN102594484A - Method and device for abnormality detection recombination of high-speed serial transmission link - Google Patents

Method and device for abnormality detection recombination of high-speed serial transmission link Download PDF

Info

Publication number
CN102594484A
CN102594484A CN2011100013883A CN201110001388A CN102594484A CN 102594484 A CN102594484 A CN 102594484A CN 2011100013883 A CN2011100013883 A CN 2011100013883A CN 201110001388 A CN201110001388 A CN 201110001388A CN 102594484 A CN102594484 A CN 102594484A
Authority
CN
China
Prior art keywords
data
link
channel
terminal
module
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
CN2011100013883A
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.)
Shenzhen ZTE Microelectronics Technology Co Ltd
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2011100013883A priority Critical patent/CN102594484A/en
Publication of CN102594484A publication Critical patent/CN102594484A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method and a device for abnormality detection recombination of a high-speed serial transmission link, and is applied to the field of high-speed data transmission. The invention is characterized in that when a first terminal and a second terminal are used for data transmission through a high-speed serial transmission interface, the link status indication of a serializer-deserializer link is detected; if a link status indication output link of the serializer-deserializer link is detected to be abnormal, a data channel of a serializer-deserializer is detected, and the abnormal data channel is determined; and after being recombined, data required to be transmitted is mapped to an available channel for transmission. Through the method and the device, the defect that in the multi-channel high-speed serial data transmission interface, as long as one channel fails, the whole interface can not be used for data transmission is overcome, so that the utilization rate of the multi-channel high-speed serial data transmission interface is improved.

Description

A kind of method and device of high-speed serial transmission link abnormality detection reorganization
Technical field
The present invention relates to the high speed data transfer field, relate in particular to a kind of method and device of high-speed serial transmission link abnormality detection reorganization.
Background technology
Along with constantly riseing of data interconnect system speed and bandwidth; The high-speed serial interconnect technical application gets more and more widely, and also (two pairs of differential lines: a pair of of a pair of receipts can be referred to as passage from the 1x that begins most in interconnection; Lane); Develop into 2x (2lane), 4x (4lane), 8x (8lane) and 16x (16lane) etc.The number of channels of present most of high speed serial ports design is all fixed.Design such as high-speed serial bus PCIE 4x is exactly 4 passages, if transmission data that just can not be correct problem appearred, in a passage in 4 passages.An above-mentioned passage goes wrong, and then whole PCIE interface all can not transmit the passage occupation mode of data, has reduced the utilance of PCIE interface.
Summary of the invention
The present invention provides the method and the device of a kind of high-speed serial transmission link abnormality detection reorganization, is used for solving in the prior art multi-channel high-speed serial transmission interface as long as one the road go wrong, and whole interface just can not carry out the shortcoming of transfer of data.
The embodiment of the invention provides a kind of method of high-speed serial transmission link abnormality detection reorganization, and this method comprises:
When transfer of data is carried out through the high speed serial transmission interface in first terminal and second terminal, detect the Link State indication of serial deserializer link;
If it is undesired to detect the Link State indication output link of serial deserializer link, then detects the data channel of serial deserializer, and confirm to occur unusual data channel;
Be mapped on the available channel after the data recombination with the need transmission and transmit.
The embodiment of the invention also provides a kind of device of high-speed serial transmission link abnormality detection reorganization, comprising:
The abnormality detection module is used to detect the Link State indication output link of serial deserializer link when undesired, detects the data channel of serial deserializer, and confirms to occur unusual data channel;
The link recombination module is mapped on the available channel after the data recombination that is used for need are transmitted and transmits.
The method and apparatus of high-speed serial transmission link abnormality detection provided by the invention reorganization is when passage occurs can detecting the problem passage when unusual.When data are sent, the queueing problem passage, and change fractionation and the reorganization transmit data according to number of channels; Be distributed to difference to the state of the data based serial deserializer link that will send and confirm to transmit on the normal passages, recombinate the data that receive on the different passages of serial deserializer according to the order of passage simultaneously and export then.Use method and apparatus provided by the invention, can effectively improve the utilance of serial received.
Description of drawings
Fig. 1 is the method flow diagram of a kind of high-speed serial transmission link abnormality detection reorganization of the embodiment of the invention;
Fig. 2 is the structure drawing of device of a kind of high-speed serial transmission link abnormality detection reorganization of the embodiment of the invention;
Fig. 3 is the structure chart of abnormality detection module in the embodiment of the invention;
Fig. 4 is the structure of link recombination module in the embodiment of the invention;
The structure chart of the device that Fig. 5 recombinates to data after receiving terminal receives the data that transmission comes for the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of method of high-speed serial transmission link abnormality detection reorganization; When transfer of data is carried out through the high speed serial transmission interface in first terminal and second terminal; Comprise: if it is undesired to detect the Link State indication output link of serial deserializer link; Then detect the corresponding data channel of serial deserializer, and confirm to occur unusual gap marker; Confirm the gap marker of the quantity and the available channel of available channel, on available channel, transmit according to the data map that the sign of said available channel will be transmitted.
Do further explanation in the face of the method for a kind of high-speed serial transmission link abnormality detection reorganization of the embodiment of the invention down.As shown in Figure 1, when transfer of data was carried out through the high speed serial transmission interface in first terminal and second terminal, the concrete steps of this detection recombination method comprised:
Step 101, the Link State that detects serial deserializer link indicates whether the undesired indication of output link, if export undesired indication, confirms that then some or a plurality of data channel of serial deserializer occur unusual.
In the applied environment of reality, the undesired indication of Link State indication (link_status) output link is generally 0.
Step 102 detects the data channel of serial deserializer, and confirms to occur unusual data channel;
Step 103 is mapped on the available channel after the data recombination with the need transmission and transmits.
In the embodiment of the invention, data recombination is transmitted on the available channel and can be realized based on gap marker with being mapped to, concrete implementation is:
Confirm the gap marker of the quantity and the available channel of available channel, the data of needs transmission are recombinated according to the quantity of said available channel;
Data map after will recombinating according to the sign of available channel is transmitted on available channel.
Step 104, first terminal are inserted the link detecting sign indicating number in the transmission data in the process of second terminal data transmission data, if second terminal does not monitor the link detecting sign indicating number in the M that receives a continuously data, it is unusual to confirm that then link occurs, and request resets.After resetting, then change step 102 beginning initialization over to
Wherein, M confirms optimal selection desirable 512 according to the expense of link bandwidth demand and the transmission of link detecting sign indicating number.
The method of the data channel that in embodiments of the present invention, step 102 detection serial deserializer is corresponding can realize in the following manner:
First terminal is sent synchronization character through data channel to be detected to second terminal; Wherein synchronization character can be K28.5.
The number of the synchronization character receive is continuously detected at second terminal, when the synchronization character number of receiving continuously greater than first threshold, second terminal confirms that the Data Receiving passage of self is normal;
Link meeting less stable after owing to reset is so first threshold K1 can be provided with the value more than or equal to 16;
Second terminal is after the Data Receiving passage of confirming self is normal; Continue to accept the synchronization character that send at first terminal; The synchronization character number that receives when second terminal greater than second threshold value after, then send the link detecting sign indicating number to said first terminal, second threshold value is greater than first threshold;
Whether the link detecting sign indicating number is used for detecting sendaisle normal, and the link detecting sign indicating number can not be thought the data code flow form, avoids obscuring with data.The code stream that generally adds data with a plurality of control characters or control character realizes, but need avoid obscuring with other agreement, can select for use in embodiments of the present invention/K28.5/ ,/K28.0/ to perhaps/K28.4/, Dx.y is right.
The quantity of the link detecting sign indicating number that receives is detected at first terminal, if the link detecting number of codes that receives, confirms then that Data Receiving and the sendaisle of self is normal greater than the 3rd threshold value; Otherwise specified data channel abnormal.
If first terminal confirms that the Data Receiving of self and sendaisle are normal, then normal through Link State index signal (link_status) indication link, promptly the value after resetting (0) negate, normally 1; Otherwise link has problem, and hold reset value (0) is constant;
In addition, relatively stable owing to current link has passed through synchronously, so the value of the 3rd threshold value can be less, can get value in embodiments of the present invention greater than 4, most preferably be 8.
As shown in Figure 2, according to said method, the embodiment of the invention also provides a kind of device of high-speed serial transmission link abnormality detection reorganization, comprising:
Abnormality detection module 201 if it is undesired to be used for detecting the Link State indication output link of serial deserializer link, then detects the data channel of serial deserializer one by one, and confirms to occur the gap marker of unusual data channel;
Link recombination module 202 is used for confirming the quantity of available channel and the gap marker of available channel, transmits on available channel according to the data map that the sign of said available channel will be transmitted.
Real-time monitoring module 203 when being used for carrying out transfer of data through the high speed serial transmission interface, is inserted the link detecting sign indicating number in the transmission data, if in the M that receives a continuously data, do not monitor the link detecting sign indicating number, confirm that then link occurs unusually, and request resets.
As shown in Figure 3, said abnormality detection module 201 comprises the first module 301 and second unit 302:
First module 301; If it is undesired to be used for detecting the Link State indication output link of serial deserializer link; Send synchronization character through data channel to be detected to second unit 302; And receive and detect the quantity of the link detecting sign indicating number that receives, if the link detecting number of codes that receives, confirms then that Data Receiving and the sendaisle of self is normal greater than the 3rd threshold value; Otherwise specified data channel abnormal;
Second unit 302 is used to detect the number of the synchronization character of receiving continuously, when the synchronization character number of receiving continuously greater than first threshold, confirm that the Data Receiving passage of self is normal; After the synchronization character number that receives is greater than second threshold value, then send the link detecting sign indicating number to said first module 301, second threshold value is greater than first threshold.
As shown in Figure 4, link recombination module 202 according to the invention comprises buffer 401, shift register 402, port number and passage mapping computing module 403 and data map module 404:
Buffer 401 is used for the data that buffer memory need transmit;
Shift register 402 links to each other with said buffer, is used for after the instruction that receives port number and passage mapping computing module, shifting out the data and the buffer memory of specifying number from buffer 401;
Port number and passage mapping computing module 403; Be used to calculate the quantity of available channel; And control shift register 402 and from buffer 401, shift out the byte number identical with said port number at every turn, calculate the corresponding data map of each passage, and the control data mapping block remaps as data;
Data map module 404 is used for after the instruction that receives port number and passage mapping computing module, the data map in the shift register being carried out data to corresponding data channel sending.
Wherein, in order to reach optimum effect, the bit wide of said buffer 401 is (8*n) bits, and shift register 402 length are (8*2n) bits, and wherein, n is the total quantity of data channel;
When valid data length in the shift register 402 is less than or equal to (8*n) bits, from buffer 401, reads (8*n) bits data and move into shift register.
As shown in Figure 5, according to the described device of Fig. 4, after receiving terminal receives the next data of transmission, data are recombinated, specifically be embodied as:
Control module 501 is used to calculate the quantity of available channel, receives data according to the sign control data composite module 502 of available channel from available channel;
Data combination module 502, the data that are used for receiving available channel move into second shift register 503 by the synthetic packet of passage der group;
Second shift register 503 is used to deposit the data that receive from available channel, and when the length of self storage data during greater than (8*n) bits, shifts out (8*n) bits data of depositing and write in second buffer 504;
Second buffer 504 is used for the data that buffer memory second shift register shifts out.
The present invention proposes the method and apparatus of high-speed serial transmission link abnormality detection reorganization; Can change according to number of channels and carry out data fractionation and data recombination; Be distributed to the state of the data based serial deserializer link that will send on the different passages and transmit, simultaneously the data that receive on the different passages of serial deserializer according to the output then of recombinating of the order of passage.
Method of the present invention is not limited to the embodiment described in the embodiment, and those skilled in the art's technical scheme according to the present invention draws other execution mode, belongs to technological innovation scope of the present invention equally.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1. the method for a high-speed serial transmission link abnormality detection reorganization is characterized in that, comprising:
When transfer of data is carried out through the high speed serial transmission interface in first terminal and second terminal, detect the Link State indication of serial deserializer link;
If it is undesired to detect the Link State indication output link of serial deserializer link, then detects the data channel of serial deserializer, and confirm to occur unusual data channel;
Be mapped on the available channel after the data recombination with the need transmission and transmit.
2. the method for claim 1 is characterized in that, is mapped to after the said data recombination that will transmit to carry out transmission package on the available channel and draw together:
Confirm the gap marker of the quantity and the available channel of available channel, the data of needs transmission are recombinated according to the quantity of said available channel;
Data map after will recombinating according to the sign of available channel is transmitted on available channel.
3. the method for claim 1 is characterized in that, detects the data channel of serial deserializer, and confirms that the unusual data channel of appearance comprises:
First terminal is sent synchronization character through data channel to be detected to second terminal;
Second terminal receives and detects the number of the synchronization character of receiving continuously, when the synchronization character number of receiving continuously greater than first threshold, second terminal confirms that the Data Receiving passage of self is normal;
The synchronization character number that receives continuously when second terminal greater than second threshold value after, then send the link detecting sign indicating number to said first terminal, wherein, this second threshold value is greater than said first threshold;
The quantity of the link detecting sign indicating number that receives is detected at first terminal, if the link detecting number of codes that receives, confirms then that Data Receiving and the sendaisle of self is normal greater than the 3rd threshold value; Otherwise specified data channel abnormal.
4. method as claimed in claim 3 is characterized in that, said link detecting sign indicating number is the code stream that control character or control character add data.
5. the method for claim 1 is characterized in that, be mapped to after the data recombination with need transmission transmit on the available channel after, further comprise:
The link detecting sign indicating number is inserted in first terminal in the transmission data when the process of the second terminal transmission data, if second terminal does not monitor the link detecting sign indicating number in the M that receives a continuously data, confirm that then link occurs unusually, and request resets.
6. the device of a high-speed serial transmission link abnormality detection reorganization is characterized in that, comprising:
The abnormality detection module, the Link State indication output link that is used to detect serial deserializer link is undesired, then detects the data channel of serial deserializer, and confirms to occur unusual data channel;
The link recombination module is mapped on the available channel after the data recombination that is used for need are transmitted and transmits.
7. device as claimed in claim 6 is characterized in that, said abnormality detection module comprises first module and Unit second:
First module; Be used to detect the Link State indication output link of serial deserializer link when undesired; Send synchronization character through data channel to be detected to Unit second; And detect the quantity of the link detecting sign indicating number receive, if the link detecting number of codes that receives, confirms then that Data Receiving and the sendaisle of self is normal greater than the 3rd threshold value; Otherwise specified data channel abnormal;
Unit second is used to detect the number of the synchronization character of receiving continuously, when the synchronization character number of receiving continuously greater than first threshold, confirm that the Data Receiving passage of self is normal; After the synchronization character number that receives is greater than second threshold value, then send the link detecting sign indicating number to said first module, second threshold value is greater than first threshold.
8. device as claimed in claim 6 is characterized in that, this device also comprises:
Real-time monitoring module when being used for carrying out transfer of data through the high speed serial transmission interface, is inserted the link detecting sign indicating number in the transmission data, if in the M that receives a continuously data, do not monitor the link detecting sign indicating number, confirm that then link occurs unusually, and request resets.
9. device as claimed in claim 6 is characterized in that, said link recombination module comprises buffer, shift register, port number and passage mapping computing module and data map module:
Buffer is used for the data that buffer memory need transmit;
Shift register links to each other with said buffer, is used for after the instruction that receives port number and passage mapping computing module, shifting out the data and the buffer memory of specifying number from buffer;
Port number and passage mapping computing module; Be used to calculate the quantity of available channel; And control shift register and from buffer, shift out the byte number identical with said port number at every turn, calculate the corresponding data map of each passage, and the control data mapping block remaps as data;
The data map module is used for after the instruction that receives port number and passage mapping computing module, the data map in the shift register being carried out data to corresponding data channel sending.
10. device as claimed in claim 9 is characterized in that, the bit wide of said buffer is (8*n) bits, and shift register length is (8*2n) bits, and wherein, n is the total quantity of data channel;
When valid data length is less than or equal to 8*n in the shift register, sense data and move into shift register from buffer.
CN2011100013883A 2011-01-05 2011-01-05 Method and device for abnormality detection recombination of high-speed serial transmission link Pending CN102594484A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100013883A CN102594484A (en) 2011-01-05 2011-01-05 Method and device for abnormality detection recombination of high-speed serial transmission link

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100013883A CN102594484A (en) 2011-01-05 2011-01-05 Method and device for abnormality detection recombination of high-speed serial transmission link

Publications (1)

Publication Number Publication Date
CN102594484A true CN102594484A (en) 2012-07-18

Family

ID=46482719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100013883A Pending CN102594484A (en) 2011-01-05 2011-01-05 Method and device for abnormality detection recombination of high-speed serial transmission link

Country Status (1)

Country Link
CN (1) CN102594484A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103676742A (en) * 2013-12-16 2014-03-26 中国电子科技集团公司第四十一研究所 Data reconstitution method based on FPGA
WO2017000737A1 (en) * 2015-06-30 2017-01-05 深圳市中兴微电子技术有限公司 Transmission checking method, node, system and computer storage medium
CN111026698A (en) * 2019-11-20 2020-04-17 迈普通信技术股份有限公司 Link repair method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859155A (en) * 2005-07-02 2006-11-08 华为技术有限公司 Link state self consulting method
CN101208898A (en) * 2005-06-29 2008-06-25 英特尔公司 Data packet reconstruction in link-based interconnects with retransmission
CN101226221A (en) * 2007-01-17 2008-07-23 恩益禧电子股份有限公司 Semiconductor device, and test circuit and test method for testing semiconductor device
CN101459530A (en) * 2007-12-14 2009-06-17 华为技术有限公司 Method, system and equipment for wireless network management and maintenance
CN101661454A (en) * 2009-10-16 2010-03-03 首都师范大学 High-speed serial buss system capable of being dynamically reconfigured and control method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101208898A (en) * 2005-06-29 2008-06-25 英特尔公司 Data packet reconstruction in link-based interconnects with retransmission
CN1859155A (en) * 2005-07-02 2006-11-08 华为技术有限公司 Link state self consulting method
CN101226221A (en) * 2007-01-17 2008-07-23 恩益禧电子股份有限公司 Semiconductor device, and test circuit and test method for testing semiconductor device
CN101459530A (en) * 2007-12-14 2009-06-17 华为技术有限公司 Method, system and equipment for wireless network management and maintenance
CN101661454A (en) * 2009-10-16 2010-03-03 首都师范大学 High-speed serial buss system capable of being dynamically reconfigured and control method thereof

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103676742A (en) * 2013-12-16 2014-03-26 中国电子科技集团公司第四十一研究所 Data reconstitution method based on FPGA
CN103676742B (en) * 2013-12-16 2017-01-11 中国电子科技集团公司第四十一研究所 Data reconstitution method based on FPGA
WO2017000737A1 (en) * 2015-06-30 2017-01-05 深圳市中兴微电子技术有限公司 Transmission checking method, node, system and computer storage medium
CN106330357A (en) * 2015-06-30 2017-01-11 深圳市中兴微电子技术有限公司 Serializer/deserializer (SERDES) transmission verification method, node and system
CN106330357B (en) * 2015-06-30 2019-11-15 深圳市中兴微电子技术有限公司 A kind of transfer check method, node and the system of SERDES
US10523235B2 (en) 2015-06-30 2019-12-31 Sanechips Technology Co., Ltd. Transmission checking method, node, system and computer storage medium
CN111026698A (en) * 2019-11-20 2020-04-17 迈普通信技术股份有限公司 Link repair method and device, electronic equipment and storage medium
CN111026698B (en) * 2019-11-20 2022-06-21 迈普通信技术股份有限公司 Link repair method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN101197649B (en) Peripheral unit interconnection high speed bus interface and switchboard port testing method and system
US9106570B2 (en) 50 Gb/s Ethernet using serializer/deserializer lanes
US9934181B2 (en) PCI express tunneling over a multi-protocol I/O interconnect
CN101729940B (en) Method for sending data to multiple communication channels and method for receiving data
US20130336334A1 (en) Multiple protocol tunneling using time division operations
CN102035688B (en) Design method for rapidly controlling network link access
CN102708080B (en) A kind of method and system of the high-speed serial communication passage that aligns
CN104094567A (en) Multi-protocol i/o interconnect flow control
CN103530245B (en) A kind of SRIO interconnecting and switching device based on FPGA
CN101159687A (en) System and device and method of multi-channel communication transmitting data
CN104158822A (en) Point-to-point transmission system of optical fiber links based on dual-channel binding and transmission method
CN105282631A (en) System and method for realizing electrical layer linear protection in POTN
CN102594484A (en) Method and device for abnormality detection recombination of high-speed serial transmission link
CN105573922A (en) Method and device for realizing data format conversion
CN106027397A (en) Network communication method for distributed measuring equipment of star expansion
CN204463106U (en) UM-BUS bus run Failure Detection Controller
US8861529B2 (en) Ethernet apparatus and method of adjusting transmission rate thereof
CN105141483A (en) Multi-node network minimum communication interval measurement method based on CAN bus
CN203761399U (en) Optical communication equipment of single-fiber bi-directional symmetrical rate and system
CN106506118A (en) The method and system that USXGMII multichannels IPG is accurately compensated
CN101192911B (en) A data transmission method and system under time division multiplexing
US8472482B2 (en) Multiple infiniband ports within a higher data rate port using multiplexing
CN111193650B (en) Node receiving and dispatching control device based on SAE AS5643 standard
CN106095720A (en) A kind of multichannel computer system
CN102916910B (en) Synchronous multiplexing method on basis of asynchronous system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20151022

Address after: Dameisha Yantian District of Shenzhen City, Guangdong province 518085 Building No. 1

Applicant after: SHENZHEN ZTE MICROELECTRONICS TECHNOLOGY CO., LTD.

Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice

Applicant before: ZTE Corporation

RJ01 Rejection of invention patent application after publication

Application publication date: 20120718

RJ01 Rejection of invention patent application after publication