[go: up one dir, main page]

CN1321510C - Link management method that supports hot plugging - Google Patents

Link management method that supports hot plugging Download PDF

Info

Publication number
CN1321510C
CN1321510C CNB2005100313948A CN200510031394A CN1321510C CN 1321510 C CN1321510 C CN 1321510C CN B2005100313948 A CNB2005100313948 A CN B2005100313948A CN 200510031394 A CN200510031394 A CN 200510031394A CN 1321510 C CN1321510 C CN 1321510C
Authority
CN
China
Prior art keywords
port
state
link
micropacket
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.)
Expired - Fee Related
Application number
CNB2005100313948A
Other languages
Chinese (zh)
Other versions
CN1674529A (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.)
National University of Defense Technology
Original Assignee
National University of Defense Technology
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 National University of Defense Technology filed Critical National University of Defense Technology
Priority to CNB2005100313948A priority Critical patent/CN1321510C/en
Publication of CN1674529A publication Critical patent/CN1674529A/en
Application granted granted Critical
Publication of CN1321510C publication Critical patent/CN1321510C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The present invention discloses a method for supporting the link management of hot connection and disconnection. The technical problems to be solved are to offer a link management method of internet systems and a method of supporting a routing chip port to connect the hot connection and disconnection of cables. The present invention has the technical scheme that the receiving and the sending of link data, the management of link states and the management of serial numbers and letters are realized by a port module of the routing chip; the port module is composed of a link state machine module, a port input module, a port output module, a port letter management module and a port serial number management module; link is controlled to start, reset and recover after taking mistakes by a link state machine; meanwhile, small bags are specially managed to carry out initialized communication, and the initialized serial numbers of the network link and the reset serial number are realized. The present invention supports the hot connection and disconnection of the cables or optical cables, and network nodes can be added on line and can be asynchronously reset by adopting the present invention.

Description

Support the link management method of hot plug
Technical field:
The present invention relates to the communication link management method of computer realm, especially be applied to adopt the link management method of supporting hot plug in the high-performance router chip design of the interconnected network system that the about Flow Control of letter is connected with cable.
Background technology:
At present, in high-performance computer system, interconnects subsystems adopts cable (optical cable, cable) to connect in a large number and realizes long line transmission.Because the cable huge amount of using in the system, therefore for such system, the failure rate of cable is than higher.The property tieed up of cable is the availability of the whole computer system of influence directly.At present, when cable broke down in the computer system, the processing method that adopts had usually:
1) whole computer system shutdown is restarted system behind the replacing fault cable again.The consequence of Chu Liing may be very serious like this, and all programs of moving in the computer system all are interrupted, and rerun again.
2) when (partition) operation is divided in the computer system support area, the zone at closing fault cable place after fixing a breakdown, adds the corresponding operating zone.This processing method can reduce the scope of fault effects, but still a plurality of nodes in the system that need shut down computer.
These treatment technologies have all reduced the availability of computer system widely, even second method, system also is that degradation uses.If the interference networks subsystem in the high-performance computer system supports the router chip port to connect the hot plug of cable, so because the fault that the cable problem causes just is easy to eliminating.At present, in the interconnection system of SGI, adopt special little bag to realize the cold reset and the hot reset of link port, adopted the CCIT-CRC sign indicating number that the little bag of the base unit of link is carried out verification, adopted retransmission technique to carry out the link error correction simultaneously.Though these technology can improve the reliability of system, the hot plug that really realizes the link cable also need solve port signal shake that hot plug may cause and cause sending between two-port the port logic of both link ends after the no longer synchronous problem of receive logic, the hot plug and can not cause problem that the letter of port loses approximately and hot plug rear port to no longer include letter fully synchronously causing message to block approximately to cause the problem that message can not flow in the interconnection system.
The hot plug implementation method of router chip port cable is the problem that computer realm is paid close attention to always, does not still have disclosed technical data to relate to the content of this respect at present.
Summary of the invention:
The technical problem to be solved in the present invention provides a kind of link management method of interconnected network system, supports the router chip port to connect the hot plug of cable.
Technical scheme of the present invention is: the port module of design router chip is realized the transmitting-receiving of link data and management and the sequence number and the letter management approximately of Link State, port module is by the link state machine module, the port input module, the port output module, port about administration module of letter and port sequence number administration module are formed, startup by link state machine control link, recovery after resetting and makeing mistakes, design the little bag of special management simultaneously and carry out initialize communications, realize the initialization of network link and reset, the isolating chip staging error, the assurance network system is normally moved, and realizes the recovery certainly and the management function of high-speed interconnect network link.
The link state machine module is made up of Link State conversion logic, the online snooping logic of cable, Initial attitude processing logic, Shutdown attitude processing logic, Work attitude processing logic, link state machine comprises Initial (initialization), Normal (normally) and three states of Shutdown (closing), and link state machine is controlled the startup of link, recovery after resetting and makeing mistakes with the little bag of special management; The port input module is made up of logic buffer, data assembling logic, time sequence control logic; The port output module is made up of output logic, the little bag state machine of output, core data, retransmission buffer formation.The letter of two-port concerns approximately between the about administration module handle link of port letter, and the modification of value approximately of control letter realizes based on letter Flow Control strategy approximately; Port sequence number administration module is handled transmission sequence number and the Receive sequence number that little bag carries, and supports the realization of link sliding window protocol; Link state machine module output link state is to port input module, port output module, port sequence number administration module and the about administration module of port letter, and port input module, port output module, port sequence number administration module and port credit management module are carried out respective handling according to the link current state.Particularly, when the port input module when link correctly receives little bag of initialization and the little bag of initialization response, notice link state machine module, when Link State is in Initial state and Shutdown state, port input module reset logic buffer and time sequence control logic; When Link State is in the Normal state, the normal data of coming that receive of port input module from link.For the port output module, when the little bag state machine of output was in a little bag state that receives and Link State and is the Shutdown state, notice link state machine module can enter the Normal state; When Link State is Shutdown state and Initial state, the retransmission buffer formation that resets of port output module; When Link State was in the Normal state, the port output module normally sent data to link.For sequence number administration module and the about administration module of letter, when Link State is the Initial state, believe that about administration module is put by force and export to believe that being worth perseverance approximately is 0; When Link State is the Shutdown state, to put by force to export and believe that value is permanent in maximum approximately, transmission sequence number is set the sequence number administration module and Receive sequence number is the sequence number of the special little bag of reception.The source simultaneous techniques is adopted in the transmitting-receiving of link data, does not need to increase the hot plug that link signal is supported port cable.
The present invention adopts the worm channel handoff technique based on general interference networks designing technique, and the minimum unit of information that transmits on the link is a little bag.The little bag of each of link transmission all carries transmission sequence number and the response sequence number of supporting retransmission operation.A piece of news is made of several little bags, and little bag that banner message begins is a little bag, and little bag that banner message finishes is the little bag of tail.If when a message is made of a little bag, so this little bag be a little bag be again the little bag of tail.The little bag of special management is two kinds of little bags that carry out initialize communications between the port of both link ends.They are respectively little bag of initialization and the little bag of initialization response.These two kinds of little bags and other little bag are distinguished by little bag type coding.The port of both link ends carries out cold start-up or warm start, when carrying out initialization operation, by little bag of initialization and the little bag of initialization response link is carried out closed loop test, method is that at first two ports all send the little bag of initialization, waits for then receiving the little bag of initialization response that the other side's port sends.If little bag of initialization and the little bag of initialization response that two ports receive are all correct, link can be used so.Bad when the contact of the cable of both link ends, pulled out or fixed physical to occur wrong and retransmit in the time of can't recovering, the port of both link ends carries out reset operation.When the cable of both link ends connects again, after the port logic at two ends was tested link and connected, two ports carried out initialization operation, recover link and can use.
Export little bag state machine and be arranged in the port output module, this state machine identifies little bag output state.Particularly, this state machine comprises two states, and a kind of is to wait for that little bag state (state 0) another kind is to wait for the little bag state of tail (state 1).When Link State enters the Normal state by the Shutdown state, export little bag state machine with link state machine realize communicating by letter between port synchronously.The course of work of little bag state machine is: when port reset (Reset), export little bag state machine and be in state 0, under this state, port is waited for the little bag of delivery; When one of port output is a head when being little bag of tail again, export little bag state machine hold mode 0; When the little bag of port delivery, export little bag state machine and be transformed into state 1 from state 0; When the little bag state machine of output waited for that the little bag of tail is exported, state machine remained on state 1; When the little bag of port output tail, export little bag state machine and be transformed into state 0 from state 1.
The concrete course of work of link state machine is as follows:
3.5 interconnected network system adopts the error of transmission on verification and the retransmission mechanism handle link.
3.6 when port had just powered on or done warm start, the link port of interference networks entered the Initial state.Under this state, port sequence number administration module is provided with transmission sequence number and Receive sequence number and port output module retransmission buffer queue full signal (or port sequence number administration module be provided with letter is worth approximately be 0) is set, simultaneously logic buffer and the retransmission buffer in time sequence control logic and the output module in the reseting port input module and export little bag state machine.Initial attitude processing logic starts an overtime timer (if this timer expired then enters the Shutdown state, preventing that port always is in the Initial state).Whether port is at first surveyed cable by the online snooping logic of cable to the cable power on signal (or link clock) of outside input and is connected.When detecting link and connected, the port output module of both link ends constantly sends the little bag of initialization (in a period of time, when not receiving the little bag of correct initialization response).When the port input module correctly receives the little bag of initialization, start an overtime timer, guarantee in this timing range, no longer to handle the little bag of initialization.The port output module has sent the little bag of initialization, and after the port input module received the little bag of correct initialization, the port output module sent the little bag of initialization response; After the port input module correctly received the little bag of initialization response, port entered the Normal state, clear corresponding timer, and the transmission sequence number that little bag is set is 0, puts retransmission buffer simultaneously for empty, the output letter is worth approximately for maximum.
When 3) port is in the Normal state, the port operate as normal.Under this state, the detected transmission sequence number of normal little bag and carry out verification, if incorrect, then this little bag is dropped, and little bag backward also is dropped, up to receiving the correct little bag of transmission sequence number.Under the Normal state, port does not receive the little bag of initialization response.
4) if initialization failure when the Initial state, when the Normal state retransmission time out, letter expire overtime, cable contacts bad and when receiving the little bag of initialization, port enters the Shutdown state.Under this state, reception buffering area in the reseting port module and retransmission buffer and reception send little bag logic, guarantee state consistency between two-port, and be synchronous to guarantee port.Simultaneously, under the Shutdown state, put by force retransmission buffer for empty and letter approximately value solve because port no longer includes letter and cause the message obstruction to cause the problem that message can not flow in the interconnection system approximately for maximum.When preceding state is the Normal attitude, then when the reception buffering area is done to reset, arbitrated success but the little Bao Shangwei outflow of tail as if the message in the virtual channel of this buffering area, this message can stop the identical virtual channel information of other port to flow out so.Therefore, to after receiving buffering area and doing to reset, must insert little bag of the end-of-reel mark of tape error flag bit and decontrol the delivery outlet virtual channel, or the little bag of the little bag state machine of output telegram end of the corresponding virtual channel of wait delivery outlet is overtime, inserts little bag of the end-of-reel mark of tape error flag bit again and decontrols corresponding output port virtual channel.Under the Shutdown state, little bag does not enter retransmission buffer.Under the Shutdown state, when the online snooping logic of cable detected link and connected, the port output module constantly sent the little bag of initialization (in a period of time, when not receiving the little bag of correct initialization response), carries out the link initialization operation again.Correctly receive the little bag state machine of output in little bag of initialization response and the port output module when the port input module and be in when receiving a little bag state that port enters the Normal state.In the time of can guaranteeing that like this two-port is recovered to communicate by letter again, letter is correct approximately.
Adopt the present invention's design can reach following technique effect:
1) online adding network node.
Owing to realized the hot plug of link, the off-line reparation of the node that breaks down and be connected into system again and the adding of node newly can both be carried out under the situation that does not influence system's operate as normal.
2) hot plug of support cable or optical cable.
When the link hot plug, because logic buffer and time sequence control logic in the port input/output module are resetted, so signal jitter that produces in the hot plug process and mess code, can not influence the operate as normal of other parts, and after guaranteeing that heat is pegged graft, system need not to reset (not influencing the operation of normal operation), and link can operate as normal;
3) allow each network node asynchronous reset.
Because link adopts little bag to carry out reset processing, so each network node need not strict power-up sequence and homing sequence in the system, as long as link-attached node both sides power up or reset and finish, but the link operate as normal.
Description of drawings:
Fig. 1 is a port module structure chart of the present invention;
Fig. 2 is the state transition graph of link state machine of the present invention.
Fig. 3 is that port of the present invention is exported little bag state machine state transition diagram.
Embodiment:
Fig. 1 is a port module structure chart of the present invention.Port module is made up of link state machine module, port input module, port output module, port sequence number administration module and the about administration module of port letter.The link state machine module is made up of Link State conversion logic, the online snooping logic of cable, Initial attitude processing logic, Shutdown attitude processing logic, Work attitude processing logic; The port input module is made up of logic buffer, data assembling logic, time sequence control logic; The port output module is made up of output logic, the little bag state machine of output, core data, retransmission buffer formation.Link state machine module output link state is to port input module, port output module, port sequence number administration module and the about administration module of port letter, and these modules are carried out respective handling according to the link current state.Particularly, when the port input module when link correctly receives little bag of initialization and the little bag of initialization response, notice link state machine module, when Link State is in Initial state and Shutdown state, port input module reset logic buffer and time sequence control logic; When Link State is in the Normal state, the normal data of coming that receive of port input module from link.For the port output module, when the little bag state machine of output was in a little bag state that receives and Link State and is the Shutdown state, notice link state machine module can enter the Normal state; When Link State is Shutdown state and Initial state, the retransmission buffer formation that resets of port output module; When Link State was in the Normal state, the port output module normally sent data to link.For sequence number administration module and the about administration module of letter, when Link State is the Initial state, believe that about administration module is put by force and export to believe that being worth perseverance approximately is 0; When Link State is the Shutdown state, to put by force to export and believe that value is permanent in maximum approximately, transmission sequence number is set the sequence number administration module and Receive sequence number is the sequence number of the special little bag of reception.
Fig. 2 is the state transition graph of link state machine.Among the figure:
A: when expression powered on success or system's warm start, the link port of interference networks entered the Initial state.
B:Initiai→Normal。During expression initialization success, port enters the Normal state from the Initial state.Initialization success finger tip mouth has received little bag of correct initialization and the correct little bag of initialization response.After the initialization success, enter the Normal state, clear corresponding timer, the transmission sequence number that little bag is set is 0, puts retransmission buffer simultaneously for empty, output believes that value is for maximum approximately.
C:Intial→Shutdown。When representing the initialization failure, port status enters the Shutdown state by Intial, and value is permanent in maximum approximately to put the output letter by force.
D:Normal→Shutdown。The expression port is under the Normal state, because retransmission time out, letter expires overtime and receive the little bag of initialization etc., port enters the Shutdown state.After port entered the Shutdown state, continuation kept the arbitration of the port, and the output letter of port value perseverance approximately is maximum, and the message of other port inflow the port is all taken away like this, just can not influence the normal running of other correct port.
E:Shutdown→Normal。The expression port is received the little bag of initialization response under the Shutdown state, when the little bag state machine of output is in when receiving a little bag state, port enters the Normal state.If not being in, the little bag state machine of output do not enter the Normal state when receiving a little bag, so the transmission sequence number of port and believe that value all may be made mistakes approximately.
Fig. 3 is the little bag state machine state transition diagram of output.
When port reset (Reset), export little bag state machine and be in state 0, under this state, port is waited for the little bag of delivery.When one of port output is a head when being little bag of tail again, export little bag state machine hold mode 0.
F: state 0 → state 1, the little bag of expression port delivery is exported little bag state machine and is transformed into state 1 from state 0.
G: state 1 → state 1, the little bag state machine of expression output remains on state 1, waits for the little bag output of tail.
H: state 1 → state 0, the little bag of expression port output tail is exported little bag state machine and is transformed into state 0 from state 1.
Adopt the FPGA of Xilinx company, the National University of Defense technology adopts the present invention to realize hot plug in the computer system of development voluntarily, has solved port signal shake that hot plug may cause and has caused sending between two-port the port logic of both link ends after the no longer synchronous problem of receive logic, the hot plug and can not cause problem that the letter of port loses approximately and hot plug rear port to no longer include letter fully synchronously causing the message to block approximately to cause the problem that message can not flow in the interconnection system.

Claims (3)

1.一种支持热插拔的链路管理方法,其特征在于设计路由芯片的端口模块和特殊管理微包,由端口模块实现链路数据的收发和链路状态的管理以及序号和信约的管理,由特殊管理微包进行初始化通信,特殊管理微包是在链路两端的端口间进行初始化通信的两种微包,它们分别是初始化微包和初始化响应微包,这两种微包与其它微包通过微包类型编码进行区分,由特殊管理微包实现网络链路的初始化和复位:1. A link management method that supports hot plugging is characterized in that the port module and the special management micro-package of the design routing chip, the management of the sending and receiving of the link data and the management of the link state and the management of the sequence number and the contract are realized by the port module , the initial communication is carried out by special management micropackets, which are two types of micropackets for initial communication between the ports at both ends of the link. They are initialization micropackets and initialization response micropackets. Micro-packets are distinguished by micro-packet type codes, and the initialization and reset of network links are realized by special management micro-packets: 1.1端口模块的设计方法是:它由链路状态机模块、端口输入模块、端口输出模块、端口信约管理模块和端口序号管理模块组成:链路状态机模块由链路状态转换逻辑、缆线在线探测逻辑、Initial态处理逻辑、Shutdown态处理逻辑、Work态处理逻辑组成,链路状态机包括Initial、Normal和Shutdown三个状态,链路状态机与特殊管理微包一起控制链路的启动、复位和出错后的恢复;端口输入模块由缓冲区逻辑、数据装配逻辑、时序控制逻辑组成;端口输出模块由输出逻辑、输出微包状态机、核心数据、重传缓冲区队列组成;端口信约管理模块处理链路间两端口的信约关系,控制信约值的修改,实现基于信约的流控策略;端口序号管理模块处理微包携带的传输序号和接收序号,支持链路滑动窗口协议的实现;链路状态机模块输出链路状态到端口输入模块、端口输出模块、端口序号管理模块和端口信约管理模块,端口输入模块、端口输出模块、端口序号管理模块和端口信约管理模块根据链路当前状态进行相应处理:当端口输入模块从链路正确接收到初始化微包和初始化响应微包时,通知链路状态机模块,当链路状态处于Initial状态和Shutdown状态时,端口输入模块复位缓冲区逻辑和时序控制逻辑;当链路状态处于Normal状态时,端口输入模块正常接收从链路过来的数据;对于端口输出模块,当输出微包状态机处于接收头微包状态且链路状态为Shutdown状态时,通知链路状态机模块可以进入Normal状态了;当链路状态为Shutdown状态和Initial状态时,端口输出模块复位重传缓冲区队列;当链路状态处于Normal状态时,端口输出模块向链路正常发送数据;对于序号管理模块和信约管理模块,当链路状态为Initial状态时,信约管理模块强置输出信约值恒为0;当链路状态为Shutdown状态时,强置输出信约值恒为最大,序号管理模块设置传输序号和接收序号为接收特殊微包的序号;1.1 The design method of the port module is: it is composed of a link state machine module, a port input module, a port output module, a port contract management module and a port serial number management module: the link state machine module is composed of link state transition logic, cable It is composed of online detection logic, Initial state processing logic, Shutdown state processing logic, and Work state processing logic. The link state machine includes three states: Initial, Normal, and Shutdown. The link state machine controls the startup, Reset and recovery after error; the port input module is composed of buffer logic, data assembly logic, and timing control logic; the port output module is composed of output logic, output micropacket state machine, core data, and retransmission buffer queue; port contract The management module handles the contract relationship between two ports between links, controls the modification of the contract value, and implements a contract-based flow control strategy; the port sequence number management module processes the transmission sequence number and reception sequence number carried by the micro-packet, and supports the link sliding window protocol realization; the link state machine module outputs the link state to the port input module, the port output module, the port serial number management module and the port contract management module, the port input module, the port output module, the port serial number management module and the port contract management module Perform corresponding processing according to the current state of the link: when the port input module correctly receives the initialization micropacket and the initialization response micropacket from the link, it notifies the link state machine module; when the link state is in the Initial state and the Shutdown state, the port input module The module resets the buffer logic and timing control logic; when the link state is in the Normal state, the port input module normally receives the data from the link; for the port output module, when the output micropacket state machine is in the receiving head micropacket state and the link When the link state is the Shutdown state, notify the link state machine module that it can enter the Normal state; when the link state is the Shutdown state and the Initial state, the port output module resets the retransmission buffer queue; when the link state is in the Normal state, The port output module sends data to the link normally; for the serial number management module and the contract management module, when the link status is Initial, the contract management module forces the output contract value to be 0; when the link status is Shutdown , force the output signal contract value to be the maximum, and the sequence number management module sets the transmission sequence number and the reception sequence number as the sequence numbers for receiving special micropackets; 1.2特殊管理微包进行网络链路的初始化和复位的过程是:链路两端的端口进行冷启动或热启动,进行初始化操作时,通过初始化微包和初始化响应微包对链路进行闭环测试,方法是首先两个端口都发送初始化微包,然后等待接收对方端口发送的初始化响应微包,如果两个端口接收到的初始化微包和初始化响应微包都正确,那么链路可用,当链路两端的缆线接触不好、被拔或出现固定物理错以及重传无法恢复时,链路两端的端口进行复位操作,复位端口模块中的接收缓冲区和重传缓冲区以及接收发送微包逻辑,保证两端口间状态一致,以保证端口同步;强置重传缓冲区为空和信约值为最大,解决由于端口不再有信约造成报文阻塞导致互连系统中报文不能流动的问题,当链路两端的缆线重新接好,两端的端口逻辑测试到链路已连接上后,两个端口进行初始化操作,恢复链路可用。1.2 The process of initialization and reset of the network link by the special management micropacket is: the ports at both ends of the link are cold-started or hot-started. The method is that both ports first send initialization micropackets, and then wait to receive the initialization response micropackets sent by the other port. If the initialization micropackets and initialization response micropackets received by the two ports are correct, the link is available. When the link When the cables at both ends are not in good contact, pulled out or have fixed physical errors, and retransmission cannot be resumed, the ports at both ends of the link perform reset operations to reset the receiving buffer and retransmitting buffer in the port module and the logic of receiving and sending micropackets. , to ensure that the state between the two ports is consistent, so as to ensure port synchronization; force the retransmission buffer to be empty and the contract value to be the maximum, to solve the problem that the message cannot flow in the interconnection system due to the message blocking caused by the port no longer having a contract , when the cables at both ends of the link are reconnected, and the logic test of the ports at both ends confirms that the link is connected, the two ports perform initialization operations to restore the link to be available. 2.如权利要求1所述的支持热插拔的链路管理方法,其特征在于所述输出微包状态机位于端口输出模块中,该状态机标识微包输出状态,该状态机包括两种状态,一种是等待头微包状态,另一种是等待尾微包状态,当链路状态由Shutdown状态进入Normal状态时,输出微包状态机与链路状态机一起实现端口间通信的同步,微包状态机的工作过程是:当端口复位即Reset时,输出微包状态机处于等待头微包状态,在该状态下,端口等待输出头微包;当端口输出一个既是头又是尾的微包时,输出微包状态机保持等待头微包状态;当端口输出头微包,输出微包状态机从等待头微包状态转换到等待尾微包状态;当输出微包状态机等待尾微包输出时,状态机保持在等待尾微包状态;当端口输出尾微包,输出微包状态机从等待尾微包状态转换到等待头微包状态。2. the link management method that supports hot swap as claimed in claim 1, is characterized in that described output micro-packet state machine is positioned at port output module, and this state machine identifies micro-packet output state, and this state machine comprises two kinds State, one is waiting for the head micropacket state, and the other is waiting for the tail micropacket state. When the link state changes from the Shutdown state to the Normal state, the output micropacket state machine and the link state machine together realize the synchronization of communication between ports , the working process of the micropacket state machine is: when the port is reset, that is, Reset, the output micropacket state machine is in the state of waiting for the header micropacket. In this state, the port waits for the output header micropacket; when the port outputs a When the micropacket is output, the output micropacket state machine remains in the state of waiting for the header micropacket; when the port outputs the header micropacket, the output micropacket state machine switches from the state of waiting for the header micropacket to the state of waiting for the tail micropacket; when the output micropacket state machine waits for When the tail micropacket is output, the state machine remains in the state of waiting for the tail micropacket; when the port outputs the tail micropacket, the output micropacket state machine switches from the state of waiting for the tail micropacket to the state of waiting for the head micropacket. 3.如权利要求1所述的支持热插拔的链路管理方法,其特征在于所述链路状态机具体工作过程如下:3. The link management method supporting hot swap as claimed in claim 1, wherein the specific working process of the link state machine is as follows: 3.1互连网络系统采用校验和重传机制处理链路上的传输错误;3.1 The interconnection network system uses a checksum retransmission mechanism to handle transmission errors on the link; 3.2当端口刚上电或作热启动时,互连网络的链路端口进入Initial状态,在这个状态下,端口序号管理模块设置传输序号和接收序号以及端口输出模块设置重传缓冲区队列满信号或端口序号管理模块设置信约值为0,同时复位端口输入模块中的缓冲区逻辑以及时序控制逻辑和输出模块中的重传缓冲区以及输出微包状态机,Initial态处理逻辑启动一个超时计时器,若该计时器超时,则进入Shutdown状态,防止端口总处于Initial状态;端口首先通过缆线在线探测逻辑对外面输入的缆线上电信号或链路时钟探测缆线是否已连接,当探测到链路已连接上时,链路两端的端口输出模块不断发送初始化微包,当端口输入模块正确接收到初始化微包时,启动一个超时计时器,保证在该计时范围内不再处理初始化微包;端口输出模块发送了初始化微包,且端口输入模块收到正确的初始化微包后,端口输出模块发送初始化响应微包;端口输入模块正确接收到初始化响应微包后,端口进入Normal状态,清相应计时器,设置微包的传输序号为0,同时置重传缓冲区为空,输出信约值为最大;3.2 When the port is just powered on or hot-started, the link port of the interconnection network enters the Initial state. In this state, the port serial number management module sets the transmission serial number and the receiving serial number, and the port output module sets the retransmission buffer queue full signal Or the port serial number management module sets the letter value to 0, resets the buffer logic in the port input module and the retransmission buffer in the sequence control logic and the output module and the output micropacket state machine at the same time, and the Initial state processing logic starts a timeout timer If the timer times out, it will enter the Shutdown state to prevent the port from always being in the Initial state; the port first uses the cable online detection logic to detect whether the cable is connected to the externally input cable power signal or the link clock. When the link is connected, the port output modules at both ends of the link continuously send initialization micro-packets. When the port input module receives the initialization micro-packets correctly, it starts a timeout timer to ensure that the initialization micro-packets are no longer processed within the timing range. packet; the port output module sends an initialization micropacket, and after the port input module receives the correct initialization micropacket, the port output module sends an initialization response micropacket; after the port input module receives the initialization response micropacket correctly, the port enters the Normal state, Clear the corresponding timer, set the transmission sequence number of the micropacket to 0, and set the retransmission buffer to be empty at the same time, and the output contract value is the maximum; 3.3端口处于Normal状态时,端口正常工作,在这个状态下,正常微包被检测传输序号和进行校验,若不正确,则该微包被丢弃,并且往后的微包也被丢弃,直到接收到传输序号正确的微包,在Normal状态下,端口不接收初始化响应微包;3.3 When the port is in the Normal state, the port works normally. In this state, the normal micropacket is detected and the transmission sequence number is checked. If it is incorrect, the micropacket is discarded, and subsequent micropackets are also discarded until Received a micropacket with the correct transmission sequence number, and in the Normal state, the port does not receive the initialization response micropacket; 3.4如果在Initial状态时初始化失败,在Normal状态时重传超时、信约满超时、缆线接触不好和收到初始化微包时,端口进入Shutdown状态;在这个状态下,复位端口模块中的接收缓冲区和重传缓冲区以及接收发送微包逻辑,保证两端口间状态一致,以保证端口同步;同时,在Shutdown状态下,强置重传缓冲区为空和信约值为最大,解决由于端口不再有信约造成报文阻塞导致互连系统中报文不能流动的问题;当前一个状态为Normal态,则在对接收缓冲区作复位时,若该缓冲区的虚信道中的报文已仲裁成功但尾微包尚未流出,那么该报文会阻止其它端口相同虚信道信息流出;对接收缓冲区作复位后,插入带错误标志位的带尾标志的微包放开输出口虚信道,或等待输出口的相应虚信道的输出微包状态机报尾微包超时,再插入带错误标志位的带尾标志的微包放开相应的输出端口虚信道;在Shutdown状态下,微包不进入重传缓冲区;在Shutdown状态下,当缆线在线探测逻辑探测到链路已连接上时,端口输出模块不断发送初始化微包,重新进行链路初始化操作;当端口输入模块正确收到初始化响应微包且端口输出模块中的输出微包状态机处于接收头微包状态时,端口进入Normal状态。3.4 If the initialization fails in the Initial state, the port enters the Shutdown state when it is in the Normal state, the retransmission timeout, the contract expires, the cable contact is not good, and the initialization micropacket is received; in this state, reset the port module. Receive buffer, retransmit buffer, and the logic of receiving and sending micropackets ensure that the state between the two ports is consistent to ensure port synchronization; at the same time, in the Shutdown state, the retransmission buffer is forced to be empty and the contract value is the largest, which solves the problem due to The port no longer has the problem of message blocking caused by the contract and the message cannot flow in the interconnection system; the current state is Normal, and when the receiving buffer is reset, if the message in the virtual channel of the buffer If the arbitration is successful but the tail micropacket has not yet flowed out, then the message will prevent the same virtual channel information from other ports from flowing out; after resetting the receiving buffer, insert a micropacket with an error flag and a tail flag to release the virtual channel of the output port , or wait for the output micropacket state machine of the corresponding virtual channel of the output port to report a tail micropacket timeout, and then insert a micropacket with a tail flag with an error flag bit to release the virtual channel of the corresponding output port; in the Shutdown state, the micropacket Do not enter the retransmission buffer; in the Shutdown state, when the cable online detection logic detects that the link is connected, the port output module will continue to send initialization micro-packets to re-initialize the link; when the port input module correctly receives When the response micropacket is initialized and the output micropacket state machine in the port output module is in the receiving head micropacket state, the port enters the Normal state.
CNB2005100313948A 2005-03-30 2005-03-30 Link management method that supports hot plugging Expired - Fee Related CN1321510C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100313948A CN1321510C (en) 2005-03-30 2005-03-30 Link management method that supports hot plugging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100313948A CN1321510C (en) 2005-03-30 2005-03-30 Link management method that supports hot plugging

Publications (2)

Publication Number Publication Date
CN1674529A CN1674529A (en) 2005-09-28
CN1321510C true CN1321510C (en) 2007-06-13

Family

ID=35046811

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100313948A Expired - Fee Related CN1321510C (en) 2005-03-30 2005-03-30 Link management method that supports hot plugging

Country Status (1)

Country Link
CN (1) CN1321510C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4774029B2 (en) * 2007-10-17 2011-09-14 三菱電機株式会社 Instrumentation control system
US8868811B2 (en) * 2011-10-03 2014-10-21 Via Technologies, Inc. Systems and methods for hot-plug detection recovery
CN108462528B (en) * 2016-12-12 2020-12-29 中国航空工业集团公司西安航空计算技术研究所 FC link timeout processing circuit
CN109672578B (en) * 2017-10-13 2020-09-25 深圳市中兴微电子技术有限公司 Link establishing method and device, storage medium and information processing device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01145128A (en) * 1987-11-30 1989-06-07 Fujitsu General Ltd Manufacturing method of bright laminated steel sheet
JPH1145128A (en) * 1997-06-16 1999-02-16 Compaq Computer Corp Computer system provided with adapter card connector
US5991831A (en) * 1995-07-17 1999-11-23 Lee; David D. High speed serial communications link for desktop computer peripherals
CN1529465A (en) * 2003-09-29 2004-09-15 港湾网络有限公司 Hot plug detection and processing method
US6856254B1 (en) * 1999-05-12 2005-02-15 Hitachi, Ltd. Electronic device, electronic device system control method and electronic device system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01145128A (en) * 1987-11-30 1989-06-07 Fujitsu General Ltd Manufacturing method of bright laminated steel sheet
US5991831A (en) * 1995-07-17 1999-11-23 Lee; David D. High speed serial communications link for desktop computer peripherals
JPH1145128A (en) * 1997-06-16 1999-02-16 Compaq Computer Corp Computer system provided with adapter card connector
US6856254B1 (en) * 1999-05-12 2005-02-15 Hitachi, Ltd. Electronic device, electronic device system control method and electronic device system
CN1529465A (en) * 2003-09-29 2004-09-15 港湾网络有限公司 Hot plug detection and processing method

Also Published As

Publication number Publication date
CN1674529A (en) 2005-09-28

Similar Documents

Publication Publication Date Title
CN108702327B (en) Multi-channel communication interface, communication link and communication method on multi-channel communication link
US6885670B1 (en) Method and apparatus for fault tolerant, software transparent and high data integrity extension to a backplane or bus interconnect
US6661773B1 (en) Method for detection of stale cells following route changes in a data communication
US7191255B2 (en) Transaction layer link down handling for PCI express
EP0980612B1 (en) Physical layer device having a media independent interface for connecting to either media access control entities or other physical layer devices
EP1454440B1 (en) Method and apparatus for providing optimized high speed link utilization
CN101421989B (en) Customer traffic forwarding continues while control plane is reset
US6925578B2 (en) Fault-tolerant switch architecture
JP4768017B2 (en) Point-to-point link negotiation method and apparatus
EP1477899B1 (en) Data processing apparatus and method
JPS6022846A (en) Data communication system and device
US6747997B1 (en) Network channel receiver architecture
CN108733608B (en) USB link bridge
US7020393B2 (en) Method of synchronizing parallel optical links between communications components
US6625163B1 (en) Collision detection on a differential bus
CN1321510C (en) Link management method that supports hot plugging
JP2986798B2 (en) Data transmission control method and data communication device
US6493351B1 (en) Collision detection on a differential bus
CN114884767A (en) Synchronous dual-redundancy CAN bus communication system, method, equipment and medium
CN101361310A (en) Data processor system and method for communicating data
CN100571108C (en) Be used between computing node, carrying out data communications system and method
Chau et al. A design-diversity based fault-tolerant COTS avionics bus network
CN116582473B (en) Rack-mounted communication equipment and serial port management method thereof
EP1298833B1 (en) Method of synchronizing parallel optical links between communications components.
Zhao et al. Buffer design based on flow control in RapidIO

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070613

Termination date: 20150330

EXPY Termination of patent right or utility model