CN101184032B - Stacked system equipment communication method - Google Patents

Stacked system equipment communication method Download PDF

Info

Publication number
CN101184032B
CN101184032B CN200710166016XA CN200710166016A CN101184032B CN 101184032 B CN101184032 B CN 101184032B CN 200710166016X A CN200710166016X A CN 200710166016XA CN 200710166016 A CN200710166016 A CN 200710166016A CN 101184032 B CN101184032 B CN 101184032B
Authority
CN
China
Prior art keywords
message
msg
pdu
head
messages
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN200710166016XA
Other languages
Chinese (zh)
Other versions
CN101184032A (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.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN200710166016XA priority Critical patent/CN101184032B/en
Publication of CN101184032A publication Critical patent/CN101184032A/en
Application granted granted Critical
Publication of CN101184032B publication Critical patent/CN101184032B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a high-efficiency communication method of stacking system devices, which saves the CPU and the memory resources. The method uses a two-tuples of a Device ID and a Process ID to uniquely identify one end and distributes the unique Device ID to the members in the system, and distributes the unique Process ID to the process in the device simultaneously; the DATA part of the Ethernet frame is partitioned and a self-defined message format is introduced, meanwhile, the message type is divided into five types. The invention transmits the message by fragmentizing, retransmitting and confirming the data in a link layer, thereby avoids depending on the operating system TCP/IP internet protocol suite and the Socket interface and saves a large quantity of CPU and memory resources, meanwhile, the invention is independent of specific link medium, and reduces the dependence on a hardware. The invention also comprises a signal channel releasing and rebuilding step, wherein, the releasing step comprises normal release and abnormal release.

Description

A kind of method of stacked system equipment communication
Technical field:
The invention belongs to Ethernet and pile up technical field, be specifically related to a kind of method of stacked system equipment communication.
Background technology:
When the switch ports themselves lazy weight when satisfying the network application demand, under the situation that is not changing legacy network planning topology, increase the port number of switch, do not increase the burden of webmaster simultaneously again.Breed the exchange piling technology this moment.The technology of piling up is different from the simple cascade of switch, and the equipment of cascade logically is separate, and exchange piling, and from logic, they are equivalent to same equipment.In order to realize the efficient interconnected and unified management of inter-exchange, require to have transmission information between a kind of efficient, process that the reliable news communication mechanism is finished main frame and standby host, main frame and slave.
Message communicating is followed certain hierarchical structure, and the most common level is divided and seen Fig. 1.Wherein, the messages application layer is each functional module of upper strata that needs communication service; The message communicating layer is given full play to the Transmission Control Protocol function, and the concrete practice: the TCP message data is partially submerged into the message that oneself defines, and realizes the application layer forwarding; TCP/IP protocol suite and Socket interface utilize the IP agreement to carry out Route Selection, utilize Transmission Control Protocol to hold-hold control, and the streaming service of not delimiting is provided, and TCP/IP protocol suite and interface are provided by the operating system protocol stack; Ethernet is provided packet receiving, is given out a contract for a project and finish communication on the link level by BSP, driving.
This level is divided in actual applications, there is the protocol stack that too much relies on operating system, the communications protocol complexity, efficient is low, need build TCP and connect, and sets up service end and client, link layer receives that message submits protocol stack, Communication Layer call operation system provides the Socket interface function to obtain message, carries out application layer and transmits, and message is resolved layer by layer and consumed a large amount of CPU and memory source.
Summary of the invention:
In view of this, the object of the present invention is to provide a kind of efficient height, save the stacked system equipment communication method of CPU and memory source.
The communication mechanism that stacked system equipment circulation method of the present invention for this reason adopts comprises:
The data division of ethernet frame is divided into several bytes, determine message format, these bytes comprise start of heading sign Begin-Flag, ENMES sign End-flag, message parameter head MSG-PDU Head and variable length message body MSG-PDUpayload.Wherein, message parameter head MSG-PDU Head comprises event number, receiving equipment number, receiving process number, transmitting apparatus number, sends process number.
This method comprises that channel is set up and the transmission of messages step, wherein in the transmission of messages step when non-local device transmits message, carry out the burst processing by the message Communication Layer according to message-length.
The formula that calculates the burst number is: the burst number=(message-length+MSG_MTU-1)/MSG_MTU, wherein MSG_MTU is the ethernet frame data byte number partly that message transmission unit comprises; And fill MSG-PDU payload structure according to following burst rule:
1), the burst number be 1, the first composed as follows:
Begin-Flag、MSG-PDU?Head、MSG-PDU?payload、End-flag
2), the burst number is 2, each sheet composed as follows:
First: Begin-Flag, MSG-PDU Head, MSG-PDU payload
Second: MSG-PDU payload, End-flag
3), the burst number is 3 or more than 3, each sheet composed as follows:
First: Begin-Flag, MSG-PDU Head, MSG-PDU payload
Intermediate: MSG-PDU Head, MSG-PDU payload
Rear panel: MSG-PDU payload, End-flag.
The communication mechanism that the inventive method adopts also comprises:
Two tuples with device number and process number are come unique identification equipment, and the member in system distributes unique device number DeviceID, simultaneously the unique process number PID of course allocation in equipment;
The byte of ethernet frame data part also comprises message delivery header MsgHead_Snd and protocol data unit head PduHead;
Type of message is divided into five kinds, and promptly connection request NODE_CONNECT, node receive NODE_ACCEPT, turn-off request NODE_CLOSE, send message NODE_MSG and acknowledge message NODE_CONFIRM;
With the state description of message channel is that four kinds of states are promptly from waiting for main attitude, main operating conditions, receiving attitude from operating conditions, wait master.
The inventive method transmission of messages step can also be included in the link that the message Communication Layer retransmits and confirms message.Wherein the implementation method of message re-transmission is: send chained list and introduce head pointer, tail pointer, current pointer, the interval expression of this section sends from the head pointer to the current pointer, the interval expression of this section does not send from the current pointer to the tail pointer, current pointer points to first message to be sent, during transmission, at first will send sign and be changed to 1, if send and successfully point to next message, get nowhere if send, will send sign and be changed to 0, wait for next time sending; The implementation method that message is confirmed is: after receiving terminal is received message, resolve " transmitting Sequence Number " conduct " receive sequence number " among the PduHead, be used for the affirmation to transmitting terminal; If before replying transmitting terminal, receive a plurality of messages of transmitting terminal, then receive that with up-to-date " transmitting Sequence Number " in the transmitting terminal message is " receive sequence number ".
The step of the inventive method can also comprise that channel discharges reconstruction, the method that channel discharges is: main frame section is not at the appointed time received the slave message, main frame is sent out probe messages, requires slave to respond, and removes link if this message slave of sending out number of times certain is not responded; The method that channel discharges can also for: slave is being initiated turn-off request from operating conditions to main frame, and slave enters from waiting for main attitude, and main frame is removed link after receiving turn-off request.
The inventive method is not utilized operating system " TCP/IP protocol suite and Socket interface ", " message Communication Layer " can realize " TCP/IP protocol suite " partial function, realize burst at the message Communication Layer, retransmit, confirm, end-to-end reliable communication, dependence operating system TCP/IP protocol suite and Socket interface have been avoided, the inventive method with message communication layer as separate unit, can add system at any time or from system, peel off, owing to do not adopt ICP/IP protocol, the monitoring client that does not need service end, save a large amount of CPU and memory source, irrelevant with concrete link medium simultaneously, reduced dependence to hardware.
Description of drawings:
Fig. 1 is the message layer hierarchical structure chart of stacked system equipment communication method of the prior art;
Fig. 2 is the message format key diagram of stacked system equipment communication method of the present invention;
Fig. 3 sets up flow chart for the channel of stacked system equipment communication method of the present invention;
Fig. 4 is burst, re-transmission, the affirmation flow chart of stacked system equipment communication method of the present invention.
Embodiment:
The communication mechanism of stacked system equipment communication method of the present invention comprises:
A, in the stacked system equipment communication method of prior art, " TCP/IP protocol suite " is that two tuples with " IP address " and " port numbers " are come unique identification one end, realizes communication end to end.The present invention comes unique identification equipment with two tuples of device number and process number, and realization equipment is interior, the process communication of equipment room.The distribution of device number and process number requires:
Member in a1, the system distributes unique device number DeviceID, arranges certain digitized representation main equipment, arranges certain digitized representation and be equipped with equipment, arrange some digitized representation slave unit, arranges digital decision device intrasystem role.
The unique process number PID of course allocation in the a2, equipment, process one fixes in the process registration table and registered, each equipment has a process registration table, and on each equipment process registration table process number unanimity.
B, the data division of ethernet frame is divided, introduced self-defining message format, the simple protocol message format of message Communication Layer is described and is seen Fig. 2, wherein:
B1, Begin-Flag are the start of heading signs, and End-flag is the ENMES sign, are used to realize burst and group bag;
B2, MSG-PDU Head are the message parameter heads, contain event number, receiving equipment number, receiving process number, transmitting apparatus number, send process number, are used for to the message body brief overview convenient the forwarding; MSG-PDU payload is that variable length message body is contained each field among the MSG-PDU Head, contains the messages application layer simultaneously and imports data division into.
B3, MsgHead_Snd are the message delivery headers, must contain to send sign, idle marker, last message blocks, back one message blocks, and these information are used to the realization that retransmits, confirm.
B4, PduHead are protocol data unit head, must contain active equipment number, destination device number, the sequence number of type of message, transmission and confirmation of receipt sequence number, and these information are used for the message of message channel and transmit.
C, type of message is divided into five kinds is that connection request NODE_CONNECT, node receive NODE_ACCEPT, turn-off request NODE_CLOSE, send message NODE_MSG, acknowledge message NODE_CONFIRM, with the effect of expression message.
The state description of d, message channel is that four kinds of states are promptly from waiting for main attitude, main operating conditions, receiving attitude from operating conditions and wait master, to realize channel foundation, transmission of messages, channel release.
Below in conjunction with Fig. 3 the channel establishment step of the inventive method is elaborated, arranges main frame here as server, slave is all as client.
Step 301, slave message channel enter " from waiting for main attitude ", prepare channel and set up;
Step 302, slave sends connection request NODE_CONNECT to main frame, carries some important informations of slave in the message, as device number and MAC Address;
Step 303, slave send after the success of " NODE_CONNECT " message, and the slave message channel is changed to " waiting for the main attitude that receives ";
Step 304, main frame are operated in " main operating conditions " always, and main frame receives the slave connection request and returns a confirmation of receipt message " NODE_ACCEPT " to slave;
Step 305 judges whether slave receives the confirmation of receipt message " NODE_ACCEPT " that main frame is beamed back, if do not receive or overtime, repeats above-mentioned steps and rebulids channel;
Step 306, if receive the confirmation of receipt message " NODE_ACCEPT " that main frame is beamed back, then slave enters " from operating conditions ", communicates with main frame, so far message channel is set up.
Below in conjunction with Fig. 4 the transmission of messages step of the inventive method is described in further detail:
Step 401, the messages application floor provides and will send message event number, message content, message-length, destination device number and purpose process number, and message sends to be handled function and these information are assembled simultaneously destination device number and purpose process number are carried out validity checking;
Step 402, message Communication Layer are judged and if device number is oneself, is then carried out destination device that application layer imports into number Message Processing in this equipment, otherwise to send a message to relevant device;
Step 403, the message Communication Layer carries out burst according to message-length to be handled, calculating burst counts formula and is: the burst number=(message-length+MSG_MTU-1)/MSG_MTU, wherein MSG_MTU is the number of the byte of the ethernet frame data part that comprises of message transmission unit; And fill MSG-PDU payload structure according to following burst rule:
1, the burst number be 1, the first composed as follows:
Begin-Flag、MSG-PDU?Head、MSG-PDU?payload、End-flag
2, the burst number is 2, each sheet composed as follows:
First: Begin-Flag, MSG-PDU Head, MSG-PDU payload
Second: MSG-PDU payload, End-flag
3, the burst number is 3 or more than 3, each sheet composed as follows:
First: Begin-Flag, MSG-PDU Head, MSG-PDU payload
Intermediate: MSG-PDU Head, MSG-PDU payload
Rear panel: MSG-PDU payload, End-flag.
Extract event number among the MSG-PDU payload, receiving equipment number, receiving process number, transmitting apparatus number simultaneously, send process number and fill MSG-PDU Head;
Step 404 is with sending sign, idle marker, last message blocks, back one message blocks filling MsgHead_Snd; Fill PduHead with source device number, destination device number, the sequence number, confirmation of receipt sequence number, the type of message that send, what messages the expression source device that wherein transmits Sequence Number sends to destination device, receive sequence number, expression receives what messages of destination device.
Message retransmits to be realized: send chained list and introduce head pointer, tail pointer, current pointer, the interval expression of this section sends from the head pointer to the current pointer, and the interval expression of this section does not send from the current pointer to the tail pointer.Current pointer points to first message to be sent; During transmission, at first will send sign and be changed to 1, successfully point to next message, get nowhere, will send sign and be changed to 0, and wait for next time sending if send if send.
The realization that message is confirmed: after receiving terminal is received message, resolve " transmitting Sequence Number " conduct " receive sequence number " among the PduHead, be used for affirmation to transmitting terminal.If before replying transmitting terminal, receive a plurality of messages of transmitting terminal, then receive that with up-to-date " transmitting Sequence Number " in the transmitting terminal message is " receive sequence number ".
Channel discharges the normal release of branch and two kinds of situations of unusual release.Normal release is that slave is being initiated turn-off request from operating conditions to main frame, and slave enters from waiting for main attitude, and main frame is removed link after receiving turn-off request; Unusual discharge be main frame at the appointed time section do not receive the slave message, main frame is sent out probe messages, requires slave to respond, if this message slave of sending out certain number of times is not responded then removed links.It can be three times that main frame is sent out this probe messages number of times.
Every place that relates to slave can be with standby host as selection scheme in the above technical scheme of the present invention.
The reliable end-to-end means of communication that the present invention proposes in message Communication Layer realization burst, re-transmission, affirmation, finish the function of operating system " TCP/IP protocol suite and the Socket interface " protocol stack of stacked system equipment communication method of the prior art at the message Communication Layer, at the message Communication Layer message is resolved, to the distribution of messages application layer, save precious resources such as CPU, internal memory.

Claims (10)

1. the method for a stacked system equipment communication is characterized in that the communication mechanism that this method adopts comprises:
The data division of ethernet frame is divided into several bytes, and these bytes comprise start of heading sign Begin-Flag, ENMES sign End-flag, message parameter head MSG-PDU Head and variable length message body MSG-PDU payload; Wherein, message parameter head MSG-PDU Head comprises event number, receiving equipment number, receiving process number, transmitting apparatus number, sends process number;
This method comprises that channel is set up and the transmission of messages step, wherein in the transmission of messages step when non-local device transmits message, carry out the burst processing by the message Communication Layer according to message-length.
2. the method for stacked system equipment communication according to claim 1, the formula that it is characterized in that message is carried out calculating when burst is handled the burst number is: the burst number=(message-length+MSG_MTU-1)/MSG_MTU, wherein MSG_MTU is the number of the byte of the described ethernet frame data part that comprises of message transmission unit; And fill MSG-PDU payload structure according to following burst rule:
1), the burst number be 1, the first composed as follows:
Begin-Flag、MSG-PDU?Head、MSG-PDU?payload、End-flag
2), the burst number is 2, each sheet composed as follows:
First: Begin-Flag, MSG-PDU Head, MSG-PDU payload
Second: MSG-PDU payload, End-flag
3), the burst number is 3 or more than 3, each sheet composed as follows:
First: Begin-Flag, MSG-PDU Head, MSG-PDU payload
Intermediate: MSG-PDU Head, MSG-PDU payload
Rear panel: MSG-PDU payload, End-flag.
3. the method for stacked system equipment communication according to claim 1 is characterized in that the communication mechanism that this method adopts also comprises:
Two tuples with device number and process number are come unique identification equipment, and the member in system distributes unique device number DeviceID, simultaneously the unique process number PID of course allocation in equipment;
The byte of the data division of described ethernet frame also comprises message delivery header MsgHead_Snd and protocol data unit head PduHead;
Type of message is divided into five kinds, and promptly connection request NODE_CONNECT, node receive NODE_ACCEPT, turn-off request NODE_CLOSE, send message NODE_MSG and acknowledge message NODE_CONFIRM;
With the state description of message channel is that four kinds of states are promptly from waiting for main attitude, main operating conditions, receiving attitude from operating conditions, wait master.
4. the method for stacked system equipment communication according to claim 1 and 2 is characterized in that the step of described transmission of messages comprises that also message retransmits, message is confirmed.
5. the method for stacked system equipment communication according to claim 4 is characterized in that the step of described transmission of messages comprises that also channel discharges.
6. the method for stacked system equipment communication according to claim 3, the step that it is characterized in that described transmission of messages comprises that also message retransmits, its implementation is: send chained list and introduce head pointer, tail pointer, current pointer, the interval expression of this section sends from the head pointer to the current pointer, the interval expression of this section does not send from the current pointer to the tail pointer, current pointer points to first message to be sent, during transmission, at first will send sign and be changed to 1, if send and successfully point to next message, get nowhere if send, will send sign and be changed to 0, wait for next time sending.
7. according to the method for claim 3 or 6 described stacked system equipment communications, the step that it is characterized in that described transmission of messages also comprises the message affirmation, its implementation is: after receiving terminal is received message, resolve " transmitting Sequence Number " conduct " receive sequence number " among the PduHead, be used for affirmation transmitting terminal; If before replying transmitting terminal, receive a plurality of messages of transmitting terminal, then receive that with up-to-date " transmitting Sequence Number " in the transmitting terminal message is " receive sequence number ".
8. the method for stacked system equipment communication according to claim 7, the step that it is characterized in that described transmission of messages comprises that also channel discharges, the method that channel discharges is: main frame section is not at the appointed time received the slave message, main frame is sent out probe messages, require slave to respond, link if this message slave of sending out certain number of times is not responded then removed.
9. the method for stacked system equipment communication according to claim 8 is characterized in that it is three times that main frame is sent out this probe messages number of times.
10. the method for stacked system equipment communication according to claim 7, the step that it is characterized in that described transmission of messages comprises that also channel discharges, the method that channel discharges is: slave is being initiated turn-off request from operating conditions to main frame, slave enters from waiting for main attitude, and main frame is removed link after receiving turn-off request.
CN200710166016XA 2007-10-31 2007-10-31 Stacked system equipment communication method Expired - Fee Related CN101184032B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710166016XA CN101184032B (en) 2007-10-31 2007-10-31 Stacked system equipment communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710166016XA CN101184032B (en) 2007-10-31 2007-10-31 Stacked system equipment communication method

Publications (2)

Publication Number Publication Date
CN101184032A CN101184032A (en) 2008-05-21
CN101184032B true CN101184032B (en) 2010-09-08

Family

ID=39449123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710166016XA Expired - Fee Related CN101184032B (en) 2007-10-31 2007-10-31 Stacked system equipment communication method

Country Status (1)

Country Link
CN (1) CN101184032B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014067B (en) * 2010-12-14 2012-11-21 北京星网锐捷网络技术有限公司 Message fragment sending method, device and network equipment
CN102739552B (en) * 2012-07-19 2015-09-23 迈普通信技术股份有限公司 A kind of method and system realizing many master controls remote procedure call
CN104219178A (en) * 2013-06-04 2014-12-17 中兴通讯股份有限公司 Openflow-based control message processing method, Openflow-based control message transmitting device, Openflow-based control message receiving device and Openflow-based control message processing system
CN111163022B (en) * 2018-11-08 2023-01-10 深圳市中兴微电子技术有限公司 Message transmission method and device and computer readable storage medium
CN112839057A (en) * 2021-02-09 2021-05-25 芯河半导体科技(无锡)有限公司 Flexible and extensible Ethernet message excitation generator

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543104A (en) * 2003-04-28 2004-11-03 华为技术有限公司 Data transmission method for mobile packet network
CN1691639A (en) * 2004-04-21 2005-11-02 华为技术有限公司 A method of fragmented packet transmission

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543104A (en) * 2003-04-28 2004-11-03 华为技术有限公司 Data transmission method for mobile packet network
CN1691639A (en) * 2004-04-21 2005-11-02 华为技术有限公司 A method of fragmented packet transmission

Also Published As

Publication number Publication date
CN101184032A (en) 2008-05-21

Similar Documents

Publication Publication Date Title
US6370592B1 (en) Network interface device which allows peripherals to utilize network transport services
CN101286867B (en) Software updating method and system of network equipment
JP3805332B2 (en) OAM Function Discovery Method in Ethernet (registered trademark) Passive Optical Subscriber Network
CN101542980B (en) Method for the operation of an ethernet-compatible field bus device
CN102833332B (en) A kind of distributed multi-to-multi devices communicating and management method
CN102546778B (en) Agent-based cross-platform wireless network access controller multi-board communication method
CN100471162C (en) Method for releasing and processing virtual circuit information and supplier edge device
CN101184032B (en) Stacked system equipment communication method
JP2009094832A (en) Multicast data distribution apparatus, distribution method therefor, and distribution control program thereof
CN101675346A (en) Pseudowire load balancing
CN101834783A (en) Method and device for forwarding messages and network equipment
CN101567861A (en) Data synchronization method and application system between heterogeneous application systems
CN101009669B (en) A method and system and route device for transmitting the multicast message
JP2006279937A (en) Wireless base station, wireless terminal, and wireless access network
CN1960281B (en) Virtual internet exchanging system having virtual line card and its transmission method
CN101931661B (en) Serial bus-based terminal device in streaming media transmission system
JPH11341041A (en) Relay communication system, its data transfer guarantee monitoring method and communication equipment used for the method
US20130191501A1 (en) Procedures for the Transfer of User Data
CN101267458A (en) A data transmission method for storage system under network environment
CN101902386B (en) Packing method of virtual private network control message in IP telecommunication network system
CN102237962B (en) Internet protocol (IP) telecommunication network-oriented link frame encapsulation method
CN101772054A (en) Method and device for establishing communication connection between protocol server boards and line terminal board
CN102238163B (en) IP (Internet Protocol) telecommunication network-oriented multi-protocol message transmitting method
CN101902387B (en) Method for encapsulating general control messages in IP telecommunication network system
CN101662451B (en) Message identifier mechanism-based command/response relevance control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100908

Termination date: 20191031

CF01 Termination of patent right due to non-payment of annual fee