CN101110768B - Data communication method, system, master control card and cable fastener - Google Patents

Data communication method, system, master control card and cable fastener Download PDF

Info

Publication number
CN101110768B
CN101110768B CN200710117642XA CN200710117642A CN101110768B CN 101110768 B CN101110768 B CN 101110768B CN 200710117642X A CN200710117642X A CN 200710117642XA CN 200710117642 A CN200710117642 A CN 200710117642A CN 101110768 B CN101110768 B CN 101110768B
Authority
CN
China
Prior art keywords
ply
yarn drill
throne
main control
control card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN200710117642XA
Other languages
Chinese (zh)
Other versions
CN101110768A (en
Inventor
刘玉印
张耀
张国良
向邦柱
余永飞
易莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN200710117642XA priority Critical patent/CN101110768B/en
Publication of CN101110768A publication Critical patent/CN101110768A/en
Application granted granted Critical
Publication of CN101110768B publication Critical patent/CN101110768B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Looms (AREA)

Abstract

The present invention discloses a method, a system and a main control card and line cards for data communication, which comprise that the main control card receives the communication attribute information sent from the on-position line card, and notices the on-position line card with the communication attribute information of all the on-position line cards; the on-position line card establishes a data channel connection with other on-position line cards according to the communication attribute information sent from the main control card, and operates the data communication with other n-position line cards through the data channel connection. The present invention realizes the data communication based on a non-switched network environment.

Description

Data communications method, system, main control card and ply-yarn drill
Technical field
The present invention relates to data communication technology field, be specifically related to data communications method, system, main control card and ply-yarn drill.
Background technology
Comprise a plurality of ply-yarn drills and a main control card on the distribution router, all can carry out data communication between plate between ply-yarn drill and the ply-yarn drill and between ply-yarn drill and the main control card.For the distribution router based on the switching network mode, between main control card and the ply-yarn drill and ply-yarn drill when carrying out data communication each other, transmit leg only needs that data are directly sent to the recipient and gets final product, and need not to establish a communications link in advance.But, variation along with network environment, distribution router based on non-switching network mode has appearred, for example: based on peripheral component interconnect upgrading (PCI-E, Peripheral Components Interconnect Express) distribution router of agreement, at this moment between main control card and the ply-yarn drill, and ply-yarn drill is when carrying out data communication each other, transmit leg must be learnt the exercisable recipient's of transmit leg buffer zone address or packet address in advance, then data are dealt in this address corresponding buffer region or the bag, the recipient reads this data from this buffering area or bag.Therefore, existing data communication mode based on the switching network mode can't be applicable to that prior art does not provide the solution of this aspect in this distribution router based on non-switching network mode.
Summary of the invention
The invention provides data communications method, system, main control card and ply-yarn drill, to realize based on the data communication under the non-switching network environment.
Technical scheme of the present invention is achieved in that
A kind of data communications method comprises:
Main control card is received in the communication attributes information that the bit line card is sent, and the communication attributes information of all ply-yarn drills on the throne is notified to this ply-yarn drill on the throne;
The communication attributes information of all ply-yarn drills on the throne that this ply-yarn drill on the throne is sent according to main control card is set up data channel with other ply-yarn drill on the throne and is connected, and connects with other ply-yarn drill on the throne by this data channel and to carry out data communication.
The communication attributes information of described ply-yarn drill on the throne comprises at least: the slot number of each ply-yarn drill on the throne and integrated circuit board type;
Described main control card further comprises before being received in the communication attributes information that the bit line card sends:
Ply-yarn drill on the throne sends the query requests carry self communication attributes information to main control card.
Described ply-yarn drill on the throne and other ply-yarn drill on the throne are set up data channel and be connected and comprise: ply-yarn drill on the throne sends the connection of carrying exercisable self storage address information of other ply-yarn drill on the throne to other ply-yarn drill on the throne respectively and sets up request, and self and connection status between the ply-yarn drill on the throne that returns connection establishment response be recorded as be connected the state of foundation;
Ply-yarn drill on the throne carries out data communication with other ply-yarn drill on the throne and comprises: ply-yarn drill on the throne judge self record with other ply-yarn drill on the throne between connection status whether for being connected the state of foundation, if carry out data communication with other ply-yarn drill on the throne; Otherwise, do not carry out data communication with other ply-yarn drill on the throne.
Described main control card further comprises after the communication attributes information of all ply-yarn drills on the throne is notified to this ply-yarn drill on the throne: this ply-yarn drill on the throne is received this communication attributes information, request is set up in the connection that sends the storage address information of carrying exercisable this ply-yarn drill on the throne of main control card to main control card, if receive the connection establishment response of the storage address information of the exercisable main control card of this ply-yarn drill on the throne that main control card returns, then the connection status with between the main control card of self record is set to be connected the state of foundation;
And this ply-yarn drill on the throne and main control card that is set to connect the state of foundation carries out data communication.
Described this ply-yarn drill on the throne further comprises after main control card sends connection foundation request: main control card is received the connection foundation request that this ply-yarn drill on the throne is sent, then self preserving address information that this connection request of setting up carries and the corresponding relation that should ply-yarn drill on the throne identifies, and the connection status with between this ply-yarn drill on the throne of self record is set to be connected the state of foundation, and returns connection establishment response to this ply-yarn drill on the throne;
And this main control card that is set to connect the state of foundation carries out data communication with this ply-yarn drill on the throne.
Described main control card further comprises after the communication attributes information of all ply-yarn drills on the throne is notified to this ply-yarn drill on the throne: main control card defines ply-yarn drill on the throne and is released, then discharge and be connected with this data channel that is released between the ply-yarn drill, and self record and this connection status that is released between the ply-yarn drill be set to state not on the throne, and send to each ply-yarn drill on the throne and to carry the connection removal request that this is released ply-yarn drill communication attributes information, receive each ply-yarn drill on the throne of this request, discharge self and be connected with data channel that this is released between the ply-yarn drill, and self record and this connection status that is released between the ply-yarn drill be set to state not on the throne.
Described main control card is received in after the communication attributes information that the bit line card sends, further comprise before the communication attributes information of all ply-yarn drills on the throne is notified to this ply-yarn drill on the throne: main control card self with all addressable memory space of standby main control card in write down the communication attributes information of this ply-yarn drill on the throne;
Described main control card further comprises after the communication attributes information of all ply-yarn drills on the throne is notified to this ply-yarn drill on the throne: when the main control card operation irregularity, standby main control card reads the communication attributes information of all ply-yarn drills on the throne from described memory space, notify each ply-yarn drill on the throne with the communication attributes information of this standby main control card and all ply-yarn drills on the throne, each ply-yarn drill on the throne is changed the main control card of self record and the communication attributes information of all ply-yarn drills on the throne according to the communication attributes information of this standby main control card and all ply-yarn drills on the throne.
Further comprise after the main control card of described each ply-yarn drill change self record on the throne and the communication attributes information of all ply-yarn drills on the throne: each ply-yarn drill on the throne is set up data communication with new master with main control card and is connected, and when setting up successfully, newly main be set to be connected the state of foundation with this with the connection status between the main control card in self record; Simultaneously, the communication attributes information of all ply-yarn drills on the throne that the more standby main control card of each ply-yarn drill on the throne is sent and self record and connection state information each ply-yarn drill, if having detected new ply-yarn drill on the throne adds, setting up data channel with this new ply-yarn drill on the throne is connected, and when setting up successfully, be set to be connected the state of foundation in the connection status with between this new ply-yarn drill on the throne of self record; Discharge if detected ply-yarn drill on the throne, then self record changed to state not on the throne with this connection status that is released between the ply-yarn drill by being connected the state of foundation.
A kind of data communication system comprises: main control card and ply-yarn drill, wherein:
Main control card receives and is recorded in the communication attributes information that the bit line card reports, and the communication attributes information of all ply-yarn drills on the throne is sent to this ply-yarn drill on the throne;
Ply-yarn drill, after becoming ply-yarn drill on the throne, report self communication attributes information, the communication attributes information of all ply-yarn drills on the throne of sending according to main control card to main control card, set up data channel with other ply-yarn drill on the throne and be connected, connect with other ply-yarn drill on the throne according to the data channel of being set up and carry out data communication.
Described main control card comprises:
Ply-yarn drill state-maintenance module writes down the communication attributes information of each ply-yarn drill on the throne and the connection state information between main control card and each ply-yarn drill on the throne;
Ply-yarn drill state notifying module is received in the communication attributes information that the bit line card reports, and preserves the communication attributes information of this ply-yarn drill on the throne in ply-yarn drill state-maintenance module, and the communication attributes information of main control card and all ply-yarn drills on the throne is sent to this ply-yarn drill on the throne;
Connect and to set up module, receive the connection that ply-yarn drill on the throne sends and set up request, main control card is set to be connected the state of foundation with connection status between this ply-yarn drill on the throne in ply-yarn drill state-maintenance module;
Data communication module reads connection status between main control card and the ply-yarn drill on the throne from ply-yarn drill state-maintenance module, if this connection status is set up state for connecting, then begins to carry out data communication with this ply-yarn drill on the throne; Otherwise, do not carry out data communication with this ply-yarn drill on the throne.
Described ply-yarn drill comprises:
State reporting module on the throne when powering on, sends the communication attributes information of this ply-yarn drill on the throne to main control card;
Ply-yarn drill state-maintenance module is used to preserve the communication attributes information of main control card and all ply-yarn drills on the throne, and between this ply-yarn drill on the throne and other ply-yarn drill on the throne and the connection state information between basis ply-yarn drill on the throne and the main control card;
Connect and set up module, receive the main control card that main control card sends and the communication attributes information of all ply-yarn drills on the throne, the communication attributes information of this main control card and all ply-yarn drills on the throne is kept in the ply-yarn drill state-maintenance module, be connected the request of foundation to each ply-yarn drill on the throne and main control card transmission, if receive the connection establishment response that ply-yarn drill on the throne and/or main control card return, then this ply-yarn drill on the throne is set to be connected the state of foundation with connection status between this ply-yarn drill on the throne and/or the main control card in ply-yarn drill state-maintenance module;
Data communication module reads connection status between this ply-yarn drill on the throne and other ply-yarn drill on the throne or the main control card from ply-yarn drill state-maintenance module, judges whether this connection status is to connect to set up, if beginning is carried out data communication with other ply-yarn drill on the throne or main control card; Otherwise, do not carry out data communication with other ply-yarn drill on the throne or main control card.
A kind of main control card comprises: module and data communication module are set up in ply-yarn drill state-maintenance module, ply-yarn drill state notifying module, connection, wherein:
Ply-yarn drill state-maintenance module writes down the communication attributes information of all ply-yarn drills on the throne and the connection state information between main control card and each ply-yarn drill on the throne;
Ply-yarn drill state notifying module is received in the communication attributes information that the bit line card is sent, and the communication attributes information of this ply-yarn drill on the throne of record in ply-yarn drill state-maintenance module sends to this ply-yarn drill on the throne with the communication attributes information of main control card and all ply-yarn drills on the throne;
Connect and to set up module, receive the connection that ply-yarn drill on the throne sends and set up request, main control card is set to be connected the state of foundation with connection status between this ply-yarn drill on the throne in ply-yarn drill state-maintenance module;
Data communication module reads connection status between main control card and the ply-yarn drill on the throne from ply-yarn drill state-maintenance module, if this connection status is set up state for connecting, then begins to carry out data communication with this ply-yarn drill on the throne; Otherwise, do not carry out data communication with this ply-yarn drill on the throne.
This main control card further comprises: ply-yarn drill discharges processing module and is connected removing module, wherein:
Ply-yarn drill discharges processing module, receive and carry the release notice that is released ply-yarn drill communication attributes information, in ply-yarn drill state-maintenance module, main control card and this connection status that is released between the ply-yarn drill are changed to state not on the throne, and the release condition that main control card and this are released between the ply-yarn drill in ply-yarn drill state-maintenance module are set to state in the deletion, state during the release notify status between main control card and each ply-yarn drill on the throne is set to send and deletes;
Connect removing module, in state-detection in the cycle, detect the main control card that writes down in the ply-yarn drill state-maintenance module and be released release condition between the ply-yarn drill, then these release condition are changed to the deletion completion status for state in deleting; The release notify status that detects between main control card and each ply-yarn drill on the throne is state in the transmission deletion, then send and carry the connection removal request that is released the ply-yarn drill sign to each ply-yarn drill on the throne, and after receiving the connection deletion response that ply-yarn drill on the throne returns, main control card and the release notify status between this ply-yarn drill on the throne that writes down in the ply-yarn drill state-maintenance module changed to transmission deletion completion status by state in the transmission deletion.
This main control card further comprises: the masterslave switchover processing module, detect this main control card and upgrade to the main main control card of using by standby main control card, then read the communication attributes information of all ply-yarn drills on the throne, send the communication attributes information of this main control card and all ply-yarn drills on the throne to each ply-yarn drill on the throne respectively from ply-yarn drill state-maintenance module.
A kind of ply-yarn drill, this ply-yarn drill comprises: module and data communication module are set up in state reporting module on the throne, ply-yarn drill state-maintenance module, connection, wherein:
State reporting module on the throne when powering on, sends the communication attributes information of this ply-yarn drill on the throne to main control card, and the communication attributes information of all ply-yarn drills on the throne that main control card is returned is kept at ply-yarn drill state-maintenance module, sets up module to connection and sends the indication that connects;
Ply-yarn drill state-maintenance module is used to preserve connection state information between this ply-yarn drill on the throne and other ply-yarn drill on the throne and the connection state information between this ply-yarn drill on the throne and the main control card;
Connect and set up module, receive the indication that connects that state reporting module on the throne is sent, read the communication attributes information of all ply-yarn drills on the throne from ply-yarn drill state-maintenance module, be connected the request of foundation to each ply-yarn drill on the throne and main control card transmission, if receive the connection establishment response that ply-yarn drill on the throne and/or main control card return, then this ply-yarn drill on the throne is set to be connected the state of foundation with connection status between this ply-yarn drill and/or the main control card in ply-yarn drill state-maintenance module;
Data communication module reads the connection status of this ply-yarn drill on the throne and other ply-yarn drill on the throne and/or main control card from ply-yarn drill state-maintenance module, if this connection status is set up state for connecting, then begins to carry out data communication with other ply-yarn drill on the throne and/or main control card; Otherwise, do not carry out data communication with other ply-yarn drill on the throne and/or main control card.
This ply-yarn drill further comprises:
Connect removing module, receive the connection removal request that is released ply-yarn drill communication attributes information of carrying that main control card sends, in ply-yarn drill state-maintenance module, this ply-yarn drill on the throne and this connection status that is released between the ply-yarn drill are changed to state not on the throne, return to connect to main control card simultaneously and delete response.
This ply-yarn drill further comprises: the masterslave switchover processing module, the communication attributes information of all ply-yarn drills on the throne that the reception main control card is sent, determine that this main control card is the new main main control card of using behind the masterslave switchover, to newly lead to send to connect and set up module with main control card sign, basis ply-yarn drill of preserving in the communication attributes information of all ply-yarn drills on the throne and the ply-yarn drill state-maintenance module according to this on the throne and the connection state information between each ply-yarn drill, add if detected new ply-yarn drill on the throne, then should new ply-yarn drill sign on the throne send to connection and set up module; If having detected ply-yarn drill on the throne is released, then this is released ply-yarn drill communication attributes information and sends to the connection removing module;
Described connection is set up after new master that module receives that the masterslave switchover processing module sends identifies with main control card sign and new ply-yarn drill on the throne, Xiang Xinzhu sends with new ply-yarn drill on the throne with main control card and is connected the request of foundation, if receive this new main connection establishment response that returns with main control card and/or new ply-yarn drill on the throne, then this ply-yarn drill on the throne is set to be connected the state of foundation with new master with the connection status between main control card and/or this new ply-yarn drill on the throne in ply-yarn drill state-maintenance module;
Described connection removing module receives that the masterslave switchover processing module sends be released ply-yarn drill communication attributes information after, discharge this ply-yarn drill on the throne and be connected, and in ply-yarn drill state-maintenance module, this ply-yarn drill on the throne and this connection status that is released between the ply-yarn drill are changed to state not on the throne with the data channel that this is released between the ply-yarn drill.
Compared with prior art, the embodiment of the invention by main control card receive communication attributes information that ply-yarn drill on the throne is sent as: after ply-yarn drill slot number and the integrated circuit board type, the communication attributes information that all ply-yarn drills on the throne are reported as: ply-yarn drill slot number and integrated circuit board type send to this ply-yarn drill on the throne, then this ply-yarn drill on the throne according to the communication attributes information of other ply-yarn drill on the throne as ply-yarn drill slot number and integrated circuit board type, set up data channel respectively with other ply-yarn drill on the throne and be connected, realized based on the data communication under the non-switching network environment.
In addition, in the embodiment of the invention, between main control card and the ply-yarn drill and the message packet that transmits each other of ply-yarn drill adopted regularly retransmission mechanism, improved the stability of data communication between plate.
Description of drawings
The schematic diagram of data communication between the plate of the distribution router that Fig. 1 provides for the embodiment of the invention;
The flow chart of data communication between the realization plate that Fig. 2 provides for inventive embodiments;
Fig. 3 for the embodiment of the invention provide when ply-yarn drill on the throne is released, the flow chart of data channel connection status between the plate of change among the FSM;
Fig. 4 for the embodiment of the invention provide when main control card carries out masterslave switchover, the flow chart that data channel connect to be upgraded between plate;
The composition diagram of data communication system between the plate that Fig. 5 provides for the embodiment of the invention.
Embodiment
The present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
Each ply-yarn drill on the distribution router all possible and main control card or other ply-yarn drill generation data communication, and communication all is two-way.Fig. 1 has provided the schematic diagram of data communication between the plate of distribution router, as shown in Figure 1, can regard data communication between the plate of distribution router as a fully-connected network end to end, and each ply-yarn drill A~D and main control card can be regarded an end equipment as.Each connects promptly: being connected between main control card and each ply-yarn drill A~D, ply-yarn drill A~D connection each other all is unidirectional end to end connection, independently of one another.
Core concept of the present invention is: when ply-yarn drill is on the throne, report self slot number and integrated circuit board type to main control card, main control card sends to this ply-yarn drill on the throne with the slot number and the integrated circuit board type of all ply-yarn drills on the throne, this ply-yarn drill on the throne is according to the slot number of other ply-yarn drill on the throne afterwards, send to other ply-yarn drill on the throne with the integrated circuit board type of self with to the storage address information that can operate self, thereby setting up data channel with other ply-yarn drill on the throne is connected, when this ply-yarn drill on the throne will carry out data communication with another ply-yarn drill, judge at first whether self connects with this another ply-yarn drill, if then send data to this another ply-yarn drill.
In the embodiment of the invention, all has a finite state machine (FSM, Finite State Machine) respectively on the main control card of distribution router and each ply-yarn drill.For the FSM on the main control card, this FSM is used to safeguard the connection status between main control card and each ply-yarn drill; And, when ply-yarn drill is released, safeguards main control card and be released release condition between ply-yarn drill, and safeguard the release notify status between main control card and each ply-yarn drill on the throne; And, when main control card generation masterslave switchover, safeguard the notify status between new main control card and each ply-yarn drill on the throne.For the FSM on the ply-yarn drill, this FSM is used to safeguard the connection status between this ply-yarn drill and other each ply-yarn drill.
Wherein, connection status comprises: connect state and the state not on the throne set up, release condition comprise: state and deletion completion status in the deletion, the release notify status comprises: send state and transmission deletion completion status in the deletion, notify status comprises: state and notice issued completion status during notice issued.
In the embodiment of the invention, the PCI-E agreement is adopted in data communication between plate, and the message packet of mentioning all is remote procedure call communication (RPC, a Remote Progress Communication) message packet, and therefore, at first the form to the RPC message packet describes:
The RPC message packet is a request/back message using, that is: transmit leg sends a RPC message packet, and the recipient receives that this message must return a back message using to transmit leg.Table 1 has provided RPC message packet head form:
Figure B200710117642XD00081
Figure B200710117642XD00091
Table 1 RPC message packet head form
The RPC message packet mainly is made of: heading and data field two parts, and as shown in table 1, heading comprises:
Error flag is used to indicate message whether to produce error of transmission.When transmit leg sends a RPC message packet, error flag is changed to 0, when the recipient received this message, if detecting error flag is 0, then the confirmation message transmission was normal, carries out subsequent treatment; If detecting error flag is 1, confirm that then this message transmissions is unusual, to construct back message using, and the error flag in the back message using is put 1, after transmit leg was received this back message using, detecting error flag was 1, then repeats to send the RPC message packet to the recipient.
Source slot number: the slot number of transmit leg.
Purpose slot number: recipient's slot number.
Type of message: the type that is used to indicate the RPC message packet.It is 4 types that RPC message packet in the embodiment of the invention is divided into: query messages message, connection are set up message packet, are connected deletion message packet and notification message message.For example: when value of message types is 0x00, represent that this message is the query messages message; When value of message types is 0x01, represent that this message is to connect to set up message packet; When value of message types is 0x02, represent that this message is for connecting the deletion message packet; When value of message types is 0x03, represent that this message is the notification message message.
Request/response sign: be used to represent that this message is request message or back message using.For example: on duty is 0 o'clock, the expression request message; On duty is 1 o'clock, the expression response message.
Data field length: the length that is used to indicate the data field data that part comprises of this message.
Data field: i.e. data division.
The flow chart of data communication between the realization plate that Fig. 2 provides for the embodiment of the invention, as shown in Figure 2, its concrete steps are as follows:
Step 201: ply-yarn drill powers on, and the FSM on the ply-yarn drill carries out initialization, and initialization finishes, and ply-yarn drill sends the inquiry request message message to main control card, starts retransmission timer simultaneously.
The error flag of inquiry request message message is changed to the inerrancy sign, the source slot number is the slot number of this ply-yarn drill, the purpose slot number is the slot number of main control card, type of message is the query messages type of message, request/response sign is changed to request mark, and data field partly comprises the integrated circuit board type information of main control card and each ply-yarn drill.Data channel difference between the dissimilar ply-yarn drills.For example: the integrated circuit board type is divided into: category-A and category-B, but if the memory address of other ply-yarn drill operation A class ply-yarn drill is a buffer zone address, then other ply-yarn drill need mail to data in the buffering area of category-A ply-yarn drill when the category-A ply-yarn drill sends data; If it is packet address that other ply-yarn drill can be operated the memory address of category-B ply-yarn drill, then other ply-yarn drill need mail to data in the bag of category-B ply-yarn drill when the category-B ply-yarn drill sends data.
Ply-yarn drill powers on and comprises two kinds of situations: one, distribution router initially powers on and makes ply-yarn drill power on; Two, after distribution router initially powered on and finishes, ply-yarn drill newly inserted distribution router and makes ply-yarn drill power on.
Step 202: main control card is received this inquiry request message message, and the ply-yarn drill on the slot number corresponding groove position, source of determining to carry in this message is on the throne, the slot number of this ply-yarn drill of record and the corresponding relation of integrated circuit board type information in FSM.
Step 203: main control card returns the query response message message to this ply-yarn drill of sending this inquiry request message message, this message carries the slot number of main control card and the corresponding relation of integrated circuit board type information, and the corresponding relation of the slot number of all ply-yarn drills and integrated circuit board type information.
Error condition in the query response message message is changed to the inerrancy sign, the source slot number is the slot number of main control card, the purpose slot number is the slot number of ply-yarn drill, type of message is the query messages type of message, request/response sign is changed to responds sign, the data field part is then carried the slot number of main control card and the corresponding relation of integrated circuit board type information, and the corresponding relation of the slot number of each ply-yarn drill and integrated circuit board type information.
In the present embodiment, the data field part can only be carried the slot number of main control card and the corresponding relation of integrated circuit board type information, and the corresponding relation of the slot number of ply-yarn drill on the throne and integrated circuit board type information, the perhaps also corresponding relation of the slot number of portability main control card and integrated circuit board type information, and the corresponding relation of the slot number of all ply-yarn drills and integrated circuit board type information, and the integrated circuit board type information of ply-yarn drill on the throne is not changed to sky, and is not on the throne to represent this ply-yarn drill.
When distribution router powers on, each ply-yarn drill on the throne can send the inquiry request message message to main control card simultaneously, main control card can be received the inquiry request message message that each ply-yarn drill on the throne is sent simultaneously, and to all inquiry request message message parallel processings promptly: the slot number of the ply-yarn drill on the throne that parallel each message of preservation carries and the corresponding relation of integrated circuit board type information walk abreast then and return the query response message message to each ply-yarn drill on the throne.
Step 204: ply-yarn drill judges whether the query response message message of receiving that before retransmission timer is overtime main control card is sent, if, execution in step 206; Otherwise, execution in step 205.
Step 205: ply-yarn drill repeats to send the inquiry request message message to main control card, and restarts retransmission timer, goes to step 204.
Step 206: ply-yarn drill is received the query response message message, the slot number of the main control card that this message of record carries in FSM and the corresponding relation of integrated circuit board type information, and the corresponding relation of the slot number of all ply-yarn drills and integrated circuit board type information.
Particularly, if the query response message message has only carried the slot number of main control card and the corresponding relation of integrated circuit board type information, and the corresponding relation of the slot number of ply-yarn drill on the throne and integrated circuit board type information, then ply-yarn drill can only write down the slot number of main control card and the corresponding relation of integrated circuit board type information and the corresponding relation of the slot number of ply-yarn drill on the throne and integrated circuit board type information in FSM; If the query response message message has carried the slot number of main control card and the corresponding relation of integrated circuit board type information, and the corresponding relation of the slot number of all ply-yarn drills and integrated circuit board type information, then ply-yarn drill can write down the slot number of main control card and the corresponding relation of integrated circuit board type information in FSM, and the corresponding relation of the slot number of all ply-yarn drills and integrated circuit board type information, can only preserve the slot number of main control card and the corresponding relation of integrated circuit board type information, and the integrated circuit board type information is not the slot number of empty ply-yarn drill on the throne and the corresponding relation of integrated circuit board type information yet.
Step 207: ply-yarn drill on the throne sends to be connected with main control card to other ply-yarn drill on the throne sets up the request message message, and starts retransmission timer.
Connect the error condition of setting up in the request message message and be changed to the inerrancy sign, the source slot number is the slot number of the ply-yarn drill of this message of transmission, the purpose slot number is the slot number of other ply-yarn drill on the throne or main control card, type of message is set up the message packet type for connecting, and request/response sign is changed to request mark; The storage address information that the data field part is then carried the ply-yarn drill of other ply-yarn drill on the throne or exercisable this message of transmission of main control card, after other ply-yarn drill on the throne or main control card receive that the request message message is set up in this connection, preserve the integrated circuit board type information of this address information and this message of transmission.
Receive connection and set up other ply-yarn drill on the throne or main control card of request message message, can learn that the address that this message carries is buffer zone address or packet address according to the integrated circuit board type of carrying in this message.
Step 208: ply-yarn drill judges whether the connection establishment response message packet of receiving that before retransmission timer is overtime each ply-yarn drill on the throne and main control card return, if, execution in step 210; Otherwise, execution in step 209.
Other ply-yarn drill on the throne and main control card receive that this ply-yarn drill on the throne sends be connected set up the request message message after, can return exercisable self the connection establishment response message packet of storage address information of the integrated circuit board type of carrying this other ply-yarn drill on the throne or main control card and this ply-yarn drill on the throne to this ply-yarn drill on the throne, other ply-yarn drill on the throne and/or the integrated circuit board type of main control card and the address information of self exercisable other ply-yarn drill on the throne and/or main control card that this ply-yarn drill on the throne carries according to this response message message, set up with other ply-yarn drill on the throne and/or main control card between data channel be connected.
Step 209: ply-yarn drill repeats to set up the request message message to other ply-yarn drill on the throne that does not return the connection establishment response message packet and/or main control card transmission connection, and restarts retransmission timer, goes to step 208.
Step 210: ply-yarn drill is preserved and is returned other ply-yarn drill on the throne of connection establishment response message packet and/or the slot number of main control card, integrated circuit board type and self can be operated the corresponding relation of the storage address information of this other ply-yarn drill on the throne or main control card, determine with other ply-yarn drill on the throne that returns the connection establishment response message packet and/or main control card between data channel be connected foundation, in the FSM of self, self and connection status between other ply-yarn drill on the throne that returns the connection establishment response message packet and/or the main control card be recorded as and be connected the state of foundation, that is: write down the slot number of other ply-yarn drill on the throne and/or main control card, the integrated circuit board type be connected the corresponding relation of setting up state information.
After main control card receives that the request message message is set up in connection that ply-yarn drill on the throne is sent, preserve slot number, the integrated circuit board type of this ply-yarn drill on the throne and self can operate the corresponding relation of the storage address information of this ply-yarn drill on the throne, determine with this ply-yarn drill on the throne between data channel be connected foundation, record self and the connection status of this ply-yarn drill on the throne that is: are preserved slot number, the integrated circuit board type of this ply-yarn drill on the throne and are connected the corresponding relation of setting up state information for being connected the state of foundation in the FSM of self.
Step 211: ply-yarn drill on the throne will carry out data communication with another ply-yarn drill on the throne or main control card, connection status between self and this another ply-yarn drill on the throne or the main control card that writes down among the FSM according to self, judge that whether connection status between another ply-yarn drill on the throne of self and this or the main control card is for being connected foundation, if, execution in step 212; Otherwise, execution in step 213.
Step 212: this ply-yarn drill begins to carry out data communication with this another ply-yarn drill on the throne or main control card, and this flow process finishes.
Step 213: this ply-yarn drill does not carry out data communication with this another ply-yarn drill on the throne or main control card.
Equally, when main control card will carry out data communication with ply-yarn drill on the throne, connection status between self and this ply-yarn drill on the throne that writes down in also will FSM according to self, judge that whether connection status between self and this ply-yarn drill on the throne is for being connected the state of foundation, if beginning is carried out data communication with this ply-yarn drill on the throne; Otherwise, do not carry out data communication with this ply-yarn drill on the throne.
In actual applications, ply-yarn drill on the throne may be released, for example: the hot swappable ply-yarn drill may be pulled out in the running of distribution router, ply-yarn drill on the throne is by exceptional reset etc., at this moment, main control card and each ply-yarn drill on the throne need to write down among the timely change FSM and this be released connection status between the ply-yarn drill.
Fig. 3 for the embodiment of the invention provide when ply-yarn drill on the throne is released, the flow chart of data channel connection status between the change plate, as shown in Figure 3, its concrete steps are as follows:
Step 301: the ply-yarn drill administration module on the distribution router has detected ply-yarn drill on the throne and has been released, and sends ply-yarn drill to main control card and discharges notice, and this notice is carried the slot number that is released ply-yarn drill.
Hot-plug interface module on the distribution router can detect ply-yarn drill and be pulled out, and the reset detection module can detect ply-yarn drill by exceptional reset.
Step 302: main control card receives that this ply-yarn drill discharges notice, discharge self be released that data channel between the ply-yarn drill is connected as: discharge self preserve self can operate this storage address information that is released ply-yarn drill etc., and self of writing down among the FSM changed to state not on the throne with connection status that this is released between the ply-yarn drill by being connected the state of foundation, record self and this release condition that are released between the ply-yarn drill are state in the deletion in FSM, and the notice release condition in FSM between record self and each ply-yarn drill on the throne are for sending state in the deletion.
Step 303: main control card determines that the FSM sense cycle arrives, detect write down among the FSM self be state in deleting with the release condition that are released between the ply-yarn drill, then with this self and the release condition that are released between the ply-yarn drill change to the deletion completion status.
Main control card can preestablish a FSM sense cycle, that is: the various state informations that write down in FSM of a FSM sense cycle detection with the state that determines whether ply-yarn drill change have taken place.
Main control card is with self and be released release condition between the ply-yarn drill and change to deletion and finish, and is to discharge main control card repeatedly for fear of main control card to be connected with the data channel that is released between the ply-yarn drill.
Step 304: main control card detects notice release condition between self and each ply-yarn drill on the throne that writes down among the FSM simultaneously for sending state in the deletion, then send and connect the deletion request message message to each ply-yarn drill on the throne, this message carries the slot number that is released ply-yarn drill, and starts retransmission timer.
The dislocation sign that connects the deletion request message message is changed to the inerrancy sign, the source slot number is the slot number of main control card, the purpose slot number is the slot number of ply-yarn drill on the throne, type of message is for connecting deletion message packet type, request/response sign is changed to request mark, and data field is partly for being released the slot number of ply-yarn drill.
Step 305: ply-yarn drill on the throne is received this connection deletion request message message, according to the slot number that is released ply-yarn drill that carries in this message, discharging self is connected with the data channel that is released between ply-yarn drill, and self of writing down among the FSM changed to state not on the throne with connection status that this is released between the ply-yarn drill by being connected the state of foundation, return to main control card then and connect deletion response message message.
Step 306: main control card judges whether before retransmission timer is overtime, receives the connection deletion response message message that each ply-yarn drill on the throne returns, if, execution in step 308; Otherwise, execution in step 307.
Step 307: main control card repeats not send connection deletion request message message to returning each ply-yarn drill on the throne that connects deletion response message message, goes to step 306.
Step 308: main control card changes to transmission deletion completion status with the notice release condition of respectively returning between the ply-yarn drill on the throne that is connected deletion response message message by state in the transmission deletion with self of writing down among the FSM.
In actual applications, the generation of situation can't be normally carried out in data communication between the plate of and the distribution router that cause unusual for fear of main control card, two main control cards can be set simultaneously: main with main control card and standby main control card on distribution router, when the master is unusual with main control card, can take over former master by standby main control card and work on, become new master and use main control card with main control card.Because during main control card carries out masterslave switchover, the state on the throne of ply-yarn drill may be changed, in order to make each ply-yarn drill on the throne can obtain up-to-date ply-yarn drill information on the throne, simultaneously, also in order to make each ply-yarn drill on the throne can in time learn new main slot number with main control card, new master need be notified to each ply-yarn drill on the throne with main control card with up-to-date ply-yarn drill information on the throne and the slot number of self when masterslave switchover is finished, with normally carrying out of data communication between the assurance plate.
Fig. 4 for the embodiment of the invention provide when main control card carries out masterslave switchover, the flow chart that data channel connect to be upgraded between plate, as shown in Figure 4, its concrete steps are as follows:
Step 401: the masterslave switchover module on the distribution router detects main unusual with main control card, starts standby main control card.
Step 402: standby main control card starts, become the new main main control card of using, obtain the former main former main connection state information of using between main control card and each ply-yarn drill on the throne that in FSM, writes down with main control card, that is: the corresponding relation of the slot number of each ply-yarn drill on the throne, integrated circuit board type and connection state information.
Former master can be stored in the former main connection state information with main control card and each ply-yarn drill on the throne that writes down the former main main control card of using with newly main with in the addressable memory space of main control card with main control card in FSM, obtain this information with convenient master newly with main control card.Particularly, the address information of this memory space can be pre-configured in the former main main control card and new main with on the main control card of using, and perhaps, the former main main control card of using sends to new master with this address information and uses main control card after the address information of determining this memory space.
Step 403: the new main main control card of using is according to former main with the connection state information between main control card and each ply-yarn drill on the throne, determine ply-yarn drill on the throne, to each ply-yarn drill on the throne message that sends a notification message, and startup retransmission timer, this notification message message carries new main with the slot number of main control card and the corresponding relation of integrated circuit board type information, and the corresponding relation of the slot number of each ply-yarn drill and integrated circuit board type information, simultaneously the notify status between self and each ply-yarn drill on the throne of writing down among self FSM is issued middle state for notice.
Error flag in the notification message message is changed to the inerrancy sign, and the source slot number is new main slot number with main control card, and the purpose slot number is the slot number of ply-yarn drill on the throne, and type of message is the notification message message, and request/response sign is changed to request mark; The data field part can only be carried new main with the slot number of main control card and the corresponding relation of integrated circuit board type information, and the corresponding relation of the slot number of each ply-yarn drill on the throne and integrated circuit board type information, also portability is newly main with the slot number of main control card and the corresponding relation of integrated circuit board type information, and the corresponding relation of the slot number of all ply-yarn drills and integrated circuit board type information, and the integrated circuit board type information of ply-yarn drill on the throne is not changed to sky.
Step 404: each ply-yarn drill on the throne is received this notification message message, returns the push-notification-answer message packet to main control card.
Step 405: the slot number and the integrated circuit board type of each ply-yarn drill that each ply-yarn drill on the throne carries according to this notification message message, and the connection status between self and each ply-yarn drill of writing down among the FSM of self, judge whether new ply-yarn drill adding on the throne or had ply-yarn drill on the throne to discharge, if there is new ply-yarn drill on the throne to add execution in step 406; If there is ply-yarn drill on the throne to discharge execution in step 407; Otherwise, do not deal with, go to step 408.
Because each ply-yarn drill on the throne is not preserved new main slot number with main control card, therefore, behind the notified message packet of each ply-yarn drill on the throne, the source slot number that carries according to this message, can determine that masterslave switchover has taken place main control card, is connected thereby set up data channel with new master with main control card.
Step 406: ply-yarn drill on the throne is set up data channel with this new ply-yarn drill on the throne and is connected, and goes to step 408.
The detailed process of this step is identical with step 207~210.
Step 407: this ply-yarn drill on the throne discharges and is connected with this data channel that is released between ply-yarn drill, and self of writing down among self FSM changed to state not on the throne with connection status that this is released between the ply-yarn drill by being connected the state of foundation.
Step 408: main control card judges whether before retransmission timer is overtime, receives the push-notification-answer message packet that each ply-yarn drill on the throne returns, if, execution in step 410; Otherwise, execution in step 409.
Step 409: main control card repeats to each ply-yarn drill on the throne that does not return push-notification-answer message packet message that sends a notification message, and restarts retransmission timer, goes to step 408.
Step 410: main control card with write down among self FSM self and return notify status between the ply-yarn drill of push-notification-answer message packet issue by notice in state change to notice and issue completion status.
The composition diagram of data communication system between the plate that Fig. 5 provides for the embodiment of the invention, as shown in Figure 5, it mainly comprises: main control card and ply-yarn drill, wherein:
Main control card comprises: module 513 and data communication module 514 are set up in ply-yarn drill state-maintenance module 511, ply-yarn drill state notifying module 512, connection, and the function of each module is specific as follows:
Ply-yarn drill state-maintenance module 511: be used to write down the slot number of each ply-yarn drill and the corresponding relation of integrated circuit board type information, connection state information between record main control card and each ply-yarn drill, main control card and be moved out of notification status information between release notification status information, main control card and each ply-yarn drill on the throne between release condition information, main control card and each ply-yarn drill on the throne between the ply-yarn drill.
Ply-yarn drill state notifying module 512: receive the inquiry request message message that ply-yarn drill is sent, the slot number of the ply-yarn drill that record carries in this inquiry request message message in ply-yarn drill state-maintenance module 511 and the corresponding relation of integrated circuit board type information are carried at the corresponding relation of the slot number of the corresponding relation of the slot number of all ply-yarn drills of writing down in the ply-yarn drill state-maintenance module 511 and integrated circuit board type information and main control card and integrated circuit board type information and send to the ply-yarn drill that this sends the inquiry request message message in the query response message message.
Ply-yarn drill state notifying module 512 also can be recorded in the not slot number of ply-yarn drill on the throne and the corresponding relation of integrated circuit board type information in the ply-yarn drill state-maintenance module 511, and the integrated circuit board type information of ply-yarn drill on the throne is not changed to sky, and is not on the throne to represent this ply-yarn drill.
Connect and to set up module 513: receive the connection that ply-yarn drill sends and set up the request message message, connection status in ply-yarn drill state-maintenance module 511 between record main control card and this ply-yarn drill is for being connected the state of foundation, and returns the connection establishment response message packet of the storage address information of carrying the exercisable main control card of this ply-yarn drill to this ply-yarn drill.
Data communication module 514: in the time will carrying out data communication, read the connection status of self and this ply-yarn drill, judge whether this connection status is to connect to set up, if beginning is carried out data communication with this ply-yarn drill from ply-yarn drill state-maintenance module 511 with ply-yarn drill; Otherwise, do not carry out data communication with this ply-yarn drill.
Main control card in the present embodiment also can comprise: ply-yarn drill discharges processing module 515 and is connected removing module 516, wherein:
Ply-yarn drill discharges processing module 515: receive the release notice of carrying the slot number that is released ply-yarn drill that the ply-yarn drill administration module is sent, the main control card of record in the ply-yarn drill state-maintenance module 511 is changed to state not on the throne with the connection status of this ply-yarn drill by being connected the state of foundation, and the release condition that main control card and this are released between the ply-yarn drill in ply-yarn drill state-maintenance module 511 are set to state in the deletion, state during the release notify status of main control card and each ply-yarn drill on the throne is set to send and deletes.
Connect removing module 516: determine that the FSM sense cycle arrives, the release condition that detect the main control card of record in the ply-yarn drill state-maintenance module 511 and be released between the ply-yarn drill are state in the deletion, then release is connected with this data channel that is released between ply-yarn drill, and the main control card of record in the ply-yarn drill state-maintenance module 511 and the release condition that are released between the ply-yarn drill are changed to the deletion completion status by state in the deletion; The release notify status that detects between main control card and each ply-yarn drill on the throne is set to send state in the deletion, then send the connection deletion request message message that carries the slot number that is released ply-yarn drill to each ply-yarn drill on the throne, and after receiving the connection deletion response message message that ply-yarn drill on the throne returns, main control card and the release notify status between this ply-yarn drill on the throne that writes down in the ply-yarn drill state-maintenance module 511 changed to transmission deletion completion status by state in the transmission deletion.
Main control card in the present embodiment also can comprise: masterslave switchover processing module 517: detect self to upgrade to leading and use main control card, then read former main connection state information with all addressable ply-yarn drill state-maintenance of main control card module 511 with main control card and each ply-yarn drill from self and former master, determine ply-yarn drill on the throne, to each ply-yarn drill on the throne message that sends a notification message, this message carries the slot number of self and the corresponding relation of integrated circuit board type, and the corresponding relation of the slot number of each ply-yarn drill and integrated circuit board type, the notify status in ply-yarn drill state-maintenance module 511 between self and each ply-yarn drill on the throne is set to notice and issues middle state; Receive the push-notification-answer message packet that ply-yarn drill on the throne returns, self changing to notify and issue completion status with record in the ply-yarn drill state-maintenance module 511 with notify status between each ply-yarn drill on the throne.
If carry the not slot number of ply-yarn drill on the throne and the corresponding relation of integrated circuit board type information in the notification message message, then with this not the integrated circuit board type information of ply-yarn drill on the throne be changed to sky.
Ply-yarn drill comprises: module 523 and data communication module 524 are set up in state reporting module 521 on the throne, ply-yarn drill state-maintenance module 522, connection, wherein:
State reporting module 521 on the throne: be used for when powering on, send the inquiry request message message that carries this ply-yarn drill slot number and integrated circuit board type information to main control card, the slot number that carries main control card that the reception main control card returns and the corresponding relation of integrated circuit board type information, and the inquiry response message of the corresponding relation of the slot number of all ply-yarn drills and integrated circuit board type information, with the slot number of this main control card and the corresponding relation of integrated circuit board type information, and the corresponding relation of the slot number of all ply-yarn drills and integrated circuit board type information is kept in the ply-yarn drill state-maintenance module 522, and sets up module 523 to connection and send the indication that connects.
Ply-yarn drill state-maintenance module 522: be used to preserve the connection state information between this ply-yarn drill and other each ply-yarn drill, and the connection state information between this ply-yarn drill and the main control card.
Connect and set up module 523: receive the indication that connects that state reporting module 521 on the throne is sent, from ply-yarn drill state-maintenance module 522, read the slot number of main control card and the corresponding relation of integrated circuit board type information, and the corresponding relation of the slot number of each ply-yarn drill and integrated circuit board type information, determine ply-yarn drill on the throne, send to be connected to each ply-yarn drill on the throne and main control card and set up the request message message, if receive the connection establishment response message packet that ply-yarn drill on the throne and/or main control card return, then this ply-yarn drill is set to be connected the state of foundation with connection status between this ply-yarn drill and/or the main control card in ply-yarn drill state-maintenance module 522.
Data communication module 524: in the time will carrying out data communication with another ply-yarn drill or main control card, read the connection status of this ply-yarn drill and this another ply-yarn drill state from ply-yarn drill state-maintenance module 522, judge whether this connection status is to connect the state of setting up, if beginning is carried out data communication with this another ply-yarn drill or main control card; Otherwise, do not carry out data communication with this another ply-yarn drill or main control card.
Ply-yarn drill in the present embodiment also can comprise:
Connect removing module 525: receive the connection deletion request message message that is released the ply-yarn drill slot number that carries that main control card sends, discharge and be connected with this data channel that is released between ply-yarn drill, and in ply-yarn drill state-maintenance module 522, this ply-yarn drill and this connection status that is released between the ply-yarn drill are changed to state not on the throne, return to connect to main control card simultaneously and delete the response message message.
Ply-yarn drill in the present embodiment also can comprise:
Masterslave switchover processing module 526: receive the new main new master that carries who sends with main control card and use the slot number of main control card and the corresponding relation of integrated circuit board type information, and the notification message message of the corresponding relation of the slot number of each ply-yarn drill and integrated circuit board type information, Xiang Xinzhu returns the push-notification-answer message packet with main control card, and it is new main with the slot number of main control card and the corresponding relation of integrated circuit board type information according to this, and the corresponding relation of the slot number of each ply-yarn drill and integrated circuit board type, and the connection status of this ply-yarn drill of preserving in the ply-yarn drill state-maintenance module 522 and each ply-yarn drill, and this ply-yarn drill and former main connection status with main control card, determine that masterslave switchover has taken place main control card, new main slot number with main control card is sent to connection set up module 523, and judged whether new ply-yarn drill adding on the throne or had ply-yarn drill on the throne to discharge, if there is new ply-yarn drill on the throne to add, the slot number of this new ply-yarn drill on the throne sent to connect set up module 523; If there is ply-yarn drill on the throne to discharge, the slot number that then this is released ply-yarn drill sends to and connects removing module 525.
Connect and to set up module 523 to receive that masterslave switchover processing module 526 is sent new main with behind the slot number of main control card, it is new main with the slot number of main control card and the corresponding relation of integrated circuit board type information to preserve this in ply-yarn drill state-maintenance module 522, and carry new master to this new master with the main control card transmission and set up the request message message with the connection of the storage address information of exercisable ply-yarn drill of main control card, if receive the connection establishment response message packet that carries self exercisable new main storage address information with main control card that this new master returns with main control card, then in ply-yarn drill state-maintenance module 522 this ply-yarn drill with should new master be set to be connected the state of foundation with the connection status between the main control card; After receiving the slot number of the new ply-yarn drill on the throne that masterslave switchover processing module 526 is sent, in ply-yarn drill state-maintenance module 522, preserve the slot number of this new ply-yarn drill on the throne and the corresponding relation of integrated circuit board type information, and set up the request message message to the connection that this new ply-yarn drill on the throne sends the storage address information of carrying exercisable ply-yarn drill of this new ply-yarn drill on the throne, if receive the connection establishment response message packet of the storage address information of carrying exercisable this new ply-yarn drill on the throne of this ply-yarn drill that this new ply-yarn drill on the throne returns, then this ply-yarn drill is set to be connected the state of foundation with connection status between this new ply-yarn drill on the throne in ply-yarn drill state-maintenance module 522.
After connecting the slot number that is released ply-yarn drill that removing module 525 receives that masterslave switchover processing module 526 sends, discharge this ply-yarn drill and be connected, and in ply-yarn drill state-maintenance module 522, this ply-yarn drill and this connection status that is released between the ply-yarn drill are changed to state not on the throne with the data channel that this is released between ply-yarn drill.
The above only is process of the present invention and method embodiment, in order to restriction the present invention, all any modifications of being made within the spirit and principles in the present invention, is not equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (15)

1. a data communications method is characterized in that, comprising:
Main control card is received in the communication attributes information of this ply-yarn drill on the throne that the bit line card sends, and the communication attributes information of all ply-yarn drills on the throne is notified to this ply-yarn drill on the throne;
The communication attributes information of all ply-yarn drills in place that this ply-yarn drill in place is sent according to main control card; Send the connection of carrying exercisable self storage address information of other ply-yarn drill in place to other ply-yarn drill in place respectively and set up request; And self and connection status between the ply-yarn drill in place that returns connection establishment response be recorded as be connected the state of foundation; Setting up data channel with connection status for other ply-yarn drill in place that is connected the state of foundation connects; And connect with other ply-yarn drill in place by this data channel and to carry out data communication
Described communication attributes information comprises at least: slot number and integrated circuit board type.
2. the method for claim 1, it is characterized in that, described main control card further comprises after the communication attributes information of all ply-yarn drills on the throne is notified to this ply-yarn drill on the throne: this ply-yarn drill on the throne is received this communication attributes information, request is set up in the connection that sends the storage address information of carrying exercisable this ply-yarn drill on the throne of main control card to main control card, if receive the connection establishment response of the storage address information of the exercisable main control card of this ply-yarn drill on the throne that main control card returns, then the connection status with between the main control card of self record is set to be connected the state of foundation;
And this ply-yarn drill on the throne and main control card that is set to connect the state of foundation carries out data communication.
3. method as claimed in claim 2, it is characterized in that, described this ply-yarn drill on the throne further comprises after main control card sends connection foundation request: main control card is received the connection foundation request that this ply-yarn drill on the throne is sent, then self preserving address information that this connection request of setting up carries and the corresponding relation that should ply-yarn drill on the throne identifies, and the connection status with between this ply-yarn drill on the throne of self record is set to be connected the state of foundation, and returns connection establishment response to this ply-yarn drill on the throne;
And this main control card that is set to connect the state of foundation carries out data communication with this ply-yarn drill on the throne.
4. the method for claim 1, it is characterized in that, described main control card further comprises after the communication attributes information of all ply-yarn drills on the throne is notified to this ply-yarn drill on the throne: main control card defines ply-yarn drill on the throne and is released, then discharge and be connected with this data channel that is released between the ply-yarn drill, and self record and this connection status that is released between the ply-yarn drill be set to state not on the throne, and send to each ply-yarn drill on the throne and to carry the connection removal request that this is released ply-yarn drill communication attributes information, receive each ply-yarn drill on the throne of this request, discharge self and be connected with data channel that this is released between the ply-yarn drill, and self record and this connection status that is released between the ply-yarn drill be set to state not on the throne.
5. the method for claim 1, it is characterized in that described main control card is received in after the communication attributes information of this ply-yarn drill on the throne that the bit line card sends, further comprise before the communication attributes information of all ply-yarn drills on the throne is notified to this ply-yarn drill on the throne: main control card self with all addressable memory space of standby main control card in write down the communication attributes information of this ply-yarn drill on the throne;
Described main control card further comprises after the communication attributes information of all ply-yarn drills on the throne is notified to this ply-yarn drill on the throne: when the main control card operation irregularity, standby main control card reads the communication attributes information of all ply-yarn drills on the throne from described memory space, notify each ply-yarn drill on the throne with the communication attributes information of this standby main control card and all ply-yarn drills on the throne, each ply-yarn drill on the throne is changed the main control card of self record and the communication attributes information of all ply-yarn drills on the throne according to the communication attributes information of this standby main control card and all ply-yarn drills on the throne.
6. method as claimed in claim 5, it is characterized in that, further comprise after the main control card of described each ply-yarn drill change self record on the throne and the communication attributes information of all ply-yarn drills on the throne: each ply-yarn drill on the throne is set up data communication with new master with main control card and is connected, and when setting up successfully, newly main be set to be connected the state of foundation with this with the connection status between the main control card in self record; Simultaneously, the communication attributes information of all ply-yarn drills on the throne that the more standby main control card of each ply-yarn drill on the throne is sent and self record and connection state information each ply-yarn drill, if having detected new ply-yarn drill on the throne adds, setting up data channel with this new ply-yarn drill on the throne is connected, and when setting up successfully, be set to be connected the state of foundation in the connection status with between this new ply-yarn drill on the throne of self record; Discharge if detected ply-yarn drill on the throne, then self record changed to state not on the throne with this connection status that is released between the ply-yarn drill by being connected the state of foundation.
7. a data communication system is characterized in that, comprising: main control card and ply-yarn drill, wherein:
Main control card receives and is recorded in the communication attributes information of this ply-yarn drill on the throne that the bit line card reports, and the communication attributes information of all ply-yarn drills on the throne is sent to this ply-yarn drill on the throne, and described communication attributes information comprises at least: slot number and integrated circuit board type;
Ply-yarn drill, after becoming ply-yarn drill on the throne, report the communication attributes information of self to main control card, the communication attributes information of all ply-yarn drills on the throne of sending according to main control card, send the connection of carrying exercisable self storage address information of other ply-yarn drill on the throne to other ply-yarn drill on the throne respectively and set up request, and self and connection status between the ply-yarn drill on the throne that returns connection establishment response be recorded as be connected the state of foundation, set up data channel with connection status for other ply-yarn drill on the throne that is connected the state of foundation and connect, connect with other ply-yarn drill on the throne according to the data channel of being set up and carry out data communication.
8. system as claimed in claim 7 is characterized in that, described main control card comprises:
Ply-yarn drill state-maintenance module writes down the communication attributes information of each ply-yarn drill on the throne and the connection state information between main control card and each ply-yarn drill on the throne;
Ply-yarn drill state notifying module is received in the communication attributes information that the bit line card reports, and preserves the communication attributes information of this ply-yarn drill on the throne in ply-yarn drill state-maintenance module, and the communication attributes information of main control card and all ply-yarn drills on the throne is sent to this ply-yarn drill on the throne;
Connect and set up module, receive the connection of carrying exercisable this ply-yarn drill storage address information on the throne of main control card that ply-yarn drill on the throne sends and set up request, main control card is set to be connected the state of foundation with connection status between this ply-yarn drill on the throne in ply-yarn drill state-maintenance module;
Data communication module reads connection status between main control card and the ply-yarn drill on the throne from ply-yarn drill state-maintenance module, if this connection status is set up state for connecting, then begins to carry out data communication with this ply-yarn drill on the throne; Otherwise, do not carry out data communication with this ply-yarn drill on the throne.
9. system as claimed in claim 7 is characterized in that, described ply-yarn drill comprises:
State reporting module on the throne when powering on, sends the communication attributes information of this ply-yarn drill on the throne to main control card;
Ply-yarn drill state-maintenance module is used to preserve the communication attributes information of main control card and all ply-yarn drills on the throne, and between this ply-yarn drill on the throne and other ply-yarn drill on the throne and the connection state information between basis ply-yarn drill on the throne and the main control card;
Connect and set up module, receive the main control card that main control card sends and the communication attributes information of all ply-yarn drills on the throne, the communication attributes information of this main control card and all ply-yarn drills on the throne is kept in the ply-yarn drill state-maintenance module, send the request of foundation that is connected of carrying exercisable self storage address information of each ply-yarn drill on the throne and main control card to each ply-yarn drill on the throne and main control card, if receive the connection establishment response that ply-yarn drill on the throne and/or main control card return, then this ply-yarn drill on the throne is set to be connected the state of foundation with connection status between this ply-yarn drill on the throne and/or the main control card in ply-yarn drill state-maintenance module;
Data communication module reads connection status between this ply-yarn drill on the throne and other ply-yarn drill on the throne or the main control card from ply-yarn drill state-maintenance module, judges whether this connection status is to connect to set up, if beginning is carried out data communication with other ply-yarn drill on the throne or main control card; Otherwise, do not carry out data communication with other ply-yarn drill on the throne or main control card.
10. a main control card is characterized in that, comprising: module and data communication module are set up in ply-yarn drill state-maintenance module, ply-yarn drill state notifying module, connection, wherein:
Ply-yarn drill state-maintenance module writes down the communication attributes information of all ply-yarn drills on the throne, and the connection state information between main control card and each ply-yarn drill on the throne, and described communication attributes information comprises at least: slot number and integrated circuit board type;
Ply-yarn drill state notifying module, be received in the communication attributes information of this ply-yarn drill on the throne that the bit line card sends, the communication attributes information of this ply-yarn drill on the throne of record in ply-yarn drill state-maintenance module sends to this ply-yarn drill on the throne with the communication attributes information of main control card and all ply-yarn drills on the throne;
Connect and set up module, receive the connection of carrying exercisable this ply-yarn drill storage address information on the throne of main control card that ply-yarn drill on the throne sends and set up request, main control card is set to be connected the state of foundation with connection status between this ply-yarn drill on the throne in ply-yarn drill state-maintenance module;
Data communication module reads connection status between main control card and the ply-yarn drill on the throne from ply-yarn drill state-maintenance module, if this connection status is set up state for connecting, then begins to carry out data communication with this ply-yarn drill on the throne; Otherwise, do not carry out data communication with this ply-yarn drill on the throne.
11. main control card as claimed in claim 10 is characterized in that, this main control card further comprises: ply-yarn drill discharges processing module and is connected removing module, wherein:
Ply-yarn drill discharges processing module, receive and carry the release notice that is released ply-yarn drill communication attributes information, in ply-yarn drill state-maintenance module, main control card and this connection status that is released between the ply-yarn drill are changed to state not on the throne, and the release condition that main control card and this are released between the ply-yarn drill in ply-yarn drill state-maintenance module are set to state in the deletion, state during the release notify status between main control card and each ply-yarn drill on the throne is set to send and deletes;
Connect removing module, in state-detection in the cycle, detect the main control card that writes down in the ply-yarn drill state-maintenance module and be released release condition between the ply-yarn drill, then these release condition are changed to the deletion completion status for state in deleting; The release notify status that detects between main control card and each ply-yarn drill on the throne is state in the transmission deletion, then send and carry the connection removal request that is released the ply-yarn drill sign to each ply-yarn drill on the throne, and after receiving the connection deletion response that ply-yarn drill on the throne returns, main control card and the release notify status between this ply-yarn drill on the throne that writes down in the ply-yarn drill state-maintenance module changed to transmission deletion completion status by state in the transmission deletion.
12. as claim 10 or 11 described main control cards, it is characterized in that, this main control card further comprises: the masterslave switchover processing module, detect this main control card and upgrade to the main main control card of using by standby main control card, then read the communication attributes information of all ply-yarn drills on the throne, send the communication attributes information of this main control card and all ply-yarn drills on the throne to each ply-yarn drill on the throne respectively from ply-yarn drill state-maintenance module.
13. a ply-yarn drill is characterized in that, this ply-yarn drill comprises: module and data communication module are set up in state reporting module on the throne, ply-yarn drill state-maintenance module, connection, wherein:
State reporting module on the throne, when powering on, send the communication attributes information of this ply-yarn drill on the throne to main control card, the communication attributes information of all ply-yarn drills on the throne that main control card is returned is kept at ply-yarn drill state-maintenance module, set up module to connection and send the indication that connects, described communication attributes information comprises at least: slot number and integrated circuit board type;
Ply-yarn drill state-maintenance module is used to preserve connection state information between this ply-yarn drill on the throne and other ply-yarn drill on the throne and the connection state information between this ply-yarn drill on the throne and the main control card;
Connect and set up module, receive the indication that connects that state reporting module on the throne is sent, read the communication attributes information of all ply-yarn drills on the throne from ply-yarn drill state-maintenance module, send the request of foundation that is connected of carrying exercisable self storage address information of each ply-yarn drill on the throne and main control card to each ply-yarn drill on the throne and main control card, if receive the connection establishment response that ply-yarn drill on the throne and/or main control card return, then this ply-yarn drill on the throne is set to be connected the state of foundation with connection status between this ply-yarn drill and/or the main control card in ply-yarn drill state-maintenance module;
Data communication module reads the connection status of this ply-yarn drill on the throne and other ply-yarn drill on the throne and/or main control card from ply-yarn drill state-maintenance module, if this connection status is set up state for connecting, then begins to carry out data communication with other ply-yarn drill on the throne and/or main control card; Otherwise, do not carry out data communication with other ply-yarn drill on the throne and/or main control card.
14. ply-yarn drill as claimed in claim 13 is characterized in that, this ply-yarn drill further comprises:
Connect removing module, receive the connection removal request that is released ply-yarn drill communication attributes information of carrying that main control card sends, in ply-yarn drill state-maintenance module, this ply-yarn drill on the throne and this connection status that is released between the ply-yarn drill are changed to state not on the throne, return to connect to main control card simultaneously and delete response.
15. ply-yarn drill as claimed in claim 14, it is characterized in that, this ply-yarn drill further comprises: the masterslave switchover processing module, the communication attributes information of all ply-yarn drills on the throne that the reception main control card is sent, determine that this main control card is the new main main control card of using behind the masterslave switchover, to newly lead to send to connect and set up module with main control card sign, basis ply-yarn drill of preserving in the communication attributes information of all ply-yarn drills on the throne and the ply-yarn drill state-maintenance module according to this on the throne and the connection state information between each ply-yarn drill, add if detected new ply-yarn drill on the throne, then should new ply-yarn drill sign on the throne send to connection and set up module; If having detected ply-yarn drill on the throne is released, then this is released ply-yarn drill communication attributes information and sends to the connection removing module;
Described connection is set up after new master that module receives that the masterslave switchover processing module sends identifies with main control card sign and new ply-yarn drill on the throne, Xiang Xinzhu sends with new ply-yarn drill on the throne with main control card and is connected the request of foundation, if receive this new main connection establishment response that returns with main control card and/or new ply-yarn drill on the throne, then this ply-yarn drill on the throne is set to be connected the state of foundation with new master with the connection status between main control card and/or this new ply-yarn drill on the throne in ply-yarn drill state-maintenance module;
Described connection removing module receives that the masterslave switchover processing module sends be released ply-yarn drill communication attributes information after, discharge this ply-yarn drill on the throne and be connected, and in ply-yarn drill state-maintenance module, this ply-yarn drill on the throne and this connection status that is released between the ply-yarn drill are changed to state not on the throne with the data channel that this is released between the ply-yarn drill.
CN200710117642XA 2007-06-20 2007-06-20 Data communication method, system, master control card and cable fastener Active CN101110768B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710117642XA CN101110768B (en) 2007-06-20 2007-06-20 Data communication method, system, master control card and cable fastener

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710117642XA CN101110768B (en) 2007-06-20 2007-06-20 Data communication method, system, master control card and cable fastener

Publications (2)

Publication Number Publication Date
CN101110768A CN101110768A (en) 2008-01-23
CN101110768B true CN101110768B (en) 2010-10-06

Family

ID=39042666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710117642XA Active CN101110768B (en) 2007-06-20 2007-06-20 Data communication method, system, master control card and cable fastener

Country Status (1)

Country Link
CN (1) CN101110768B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107133188A (en) * 2017-04-24 2017-09-05 京信通信技术(广州)有限公司 The master-slave communication of daisy chain connection distributes address approach, system and slave, main frame

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567810B (en) * 2008-11-11 2011-11-16 武汉虹信通信技术有限责任公司 Method for realizing self-detection of hot-plug board card
US8483049B2 (en) * 2010-03-29 2013-07-09 Futurewei Technologies, Inc. System and method for communications system routing component level high availability
CN102075580B (en) * 2011-01-20 2013-04-17 迈普通信技术股份有限公司 Method and system for storing synchronous data in distributive network equipment
CN102387074B (en) * 2011-10-18 2015-01-07 迈普通信技术股份有限公司 Line processing unit (LPU) card in-place detecting and resetting method and main processing unit (MPU) card and LPU card
CN102447578B (en) * 2011-11-23 2014-10-29 瑞斯康达科技发展股份有限公司 Backup method and device
CN103873302B (en) * 2014-03-21 2017-10-17 新华三技术有限公司 The distribution method and device of a kind of virtual trough position
CN105634769A (en) * 2014-10-29 2016-06-01 中兴通讯股份有限公司 Routing device management method, main master control unit, and line card unit
CN105939278B (en) * 2015-04-30 2020-04-03 杭州迪普科技股份有限公司 Traffic processing method and device
CN105162712B (en) * 2015-10-20 2019-01-15 烽火通信科技股份有限公司 The realization method and system of distributed protocol in a kind of router
CN111309471B (en) * 2018-12-11 2024-02-09 迈普通信技术股份有限公司 Data processing method, device and distributed system
CN112272122A (en) * 2020-10-14 2021-01-26 北京中科网威信息技术有限公司 FPGA accelerator card detection method and device and readable storage medium
CN113515304A (en) * 2021-06-10 2021-10-19 锐捷网络股份有限公司 Interaction method and device between board cards based on frame type network equipment
CN115604169A (en) * 2021-07-07 2023-01-13 中兴通讯股份有限公司(Cn) Message forwarding method, line card, master control card, device and computer storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1642135A (en) * 2004-01-17 2005-07-20 华为技术有限公司 GGSN/PDSN device and its data forwarding method
CN1744546A (en) * 2004-06-30 2006-03-08 英特尔公司 Advanced switching peer-to-peer protocol
CN1890654A (en) * 2003-12-18 2007-01-03 英特尔公司 Multiple interfaces in a storage enclosure

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1890654A (en) * 2003-12-18 2007-01-03 英特尔公司 Multiple interfaces in a storage enclosure
CN1642135A (en) * 2004-01-17 2005-07-20 华为技术有限公司 GGSN/PDSN device and its data forwarding method
CN1744546A (en) * 2004-06-30 2006-03-08 英特尔公司 Advanced switching peer-to-peer protocol

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CN 1890654 A,全文.

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107133188A (en) * 2017-04-24 2017-09-05 京信通信技术(广州)有限公司 The master-slave communication of daisy chain connection distributes address approach, system and slave, main frame
CN107133188B (en) * 2017-04-24 2020-05-05 京信通信系统(中国)有限公司 Daisy chain connected master-slave communication address distributing method, system and slave computer and master computer

Also Published As

Publication number Publication date
CN101110768A (en) 2008-01-23

Similar Documents

Publication Publication Date Title
CN101110768B (en) Data communication method, system, master control card and cable fastener
CN100405260C (en) Reduction of idle power expense in networked battery power supply apparatus
CN101060412B (en) Ethernet power supply system, master control module and Ethernet power supply method
CN100454817C (en) Computer remote wakeup method and device based on network
CN102244669B (en) Software upgrading method in stacking equipment and stacking equipment
US8225116B2 (en) Power supply system electronic card and method for supplying power to the electronic card
CN102945192A (en) Data backup and recovery method and intelligent mobile terminal
CN101437259B (en) Method, apparatus and system for establishing incidence relation between each system of integrated multi-module base station
CN101645780B (en) Method and device for restoring allocation after power off and power on of power over Ethernet (POE) system
CN101841735B (en) Frame-type switch, stack system and fault treatment method after stack
CN101459521A (en) Hot-plugging implementing method and apparatus for router cable fastener
CN104704479A (en) Methods and apparatus for reducing power consumption within embedded systems
CN101877631A (en) Server and business switching method thereof
JP2011086175A (en) Information terminal and computer program
CN101305585A (en) Near field communication host controller interface
CN101699416B (en) Communication method and system between host computer and card reader with multiple card holders
CN202750089U (en) Bluetooth device and integrated peripheral devices
CN101345631B (en) Management method and system for blade server system exchange plane
CN102645965A (en) Method, system and device for enabling USB (universal serial bus) data card with U disc function to enter into dormant state
CN100563356C (en) The message tracing method of distributed management system
CN205281402U (en) A device, wearable equipment for data storage and synchronization
CN100495315C (en) Device for electronic equipment synchronous display through USB port and method thereof
CN100473020C (en) A switching method for master and slave background network administration
CN102983992A (en) Method and system capable of achieving communication among multiple board cards in advanced telecom computing architecture (ATCA) device
CN207924704U (en) Equipment account information processing unit

Legal Events

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

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

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

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

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20230629

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right