CN105591722A - Inter-board communication method and device - Google Patents

Inter-board communication method and device Download PDF

Info

Publication number
CN105591722A
CN105591722A CN201510540798.3A CN201510540798A CN105591722A CN 105591722 A CN105591722 A CN 105591722A CN 201510540798 A CN201510540798 A CN 201510540798A CN 105591722 A CN105591722 A CN 105591722A
Authority
CN
China
Prior art keywords
message
veneer
response message
location message
location
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.)
Granted
Application number
CN201510540798.3A
Other languages
Chinese (zh)
Other versions
CN105591722B (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.)
Hangzhou H3C 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 CN201510540798.3A priority Critical patent/CN105591722B/en
Publication of CN105591722A publication Critical patent/CN105591722A/en
Application granted granted Critical
Publication of CN105591722B publication Critical patent/CN105591722B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides an inter-board communication method and an inter-board communication device. The inter-board communication method comprises the steps of: broadcasting a target signal-board positioning message, so that a single board receiving the positioning message determines to return a response message corresponding to the positioning message according to the positioning message and its identifier; receiving the response message; and performing inter-board communication with the target signal board by regarding a source media access control MAC address of the response message as the MAC address of the target signal board. By adopting the inter-board communication method and the inter-board communication device, number of messages required to be sent in inter-board communication can be reduced, and the efficiency of inter-board communication can be increased.

Description

A kind of interplate communication method and device
Technical field
The present invention relates to network communications technology field, relate in particular to a kind of interplate communication method and device.
Background technology
In the middle-and high-end applications of data communication solution, for distributed frame type equipment, generally can establishCount into the application model of master control borad+business board, formed by a master control borad and polylith business board.
But practice discovery, in existing distributed frame type equipment, when certain veneer need to enter with another veneerWhen row communication between plates, need to send logical to each groove position of distributed frame type equipment respectively by the mode of clean cultureLetter request, and after receiving the response of this another veneer, carry out communication between plates with this another veneer.
Bootloader (start-up loading) software asks with business board loads the host software on master control borad(being to load between plate) is example. At present, between the plate of main flow, in loading scheme realization flow, business board needsTo all the other each veneer clean culture load request, this load request only has master control borad to reply respectively, thus businessCan determine according to response message the groove position of master control borad, and load host software number in the mode of unicast messageAccording to message.
Visible, the message amount that existing communication between plates need to send is too much, and communication between plates implementation efficiency is lower.
Summary of the invention
The invention provides a kind of interplate communication method and device, to solve communication between plates needs in prior artThe message amount sending is too much, the problem that communication between plates implementation efficiency is lower.
According to the first aspect of the embodiment of the present invention, a kind of interplate communication method is provided, be applied to distributedIn frame type equipment, comprising:
Broadcast object veneer location message, so that receive the veneer of described location message, according to described fixedPosition message and self identification are determined and are returned to the response message corresponding with described location message;
Receive described response message;
MAC using the source medium access control MAC Address of described response message as described object veneerAddress, carries out communication between plates with described object veneer.
According to the second aspect of the embodiment of the present invention, a kind of communication between plates device is provided, be applied to distributedIn frame type equipment, comprising:
Positioning unit, for broadcasting object veneer location message so that receive the veneer of described location message,Determine and return to the response message corresponding with described location message according to described location message and self identification;
Described positioning unit, also for receiving described response message;
Communication unit, for the source medium access control MAC Address using described response message as describedThe MAC Address of object veneer, carries out communication between plates with described object veneer.
The application embodiment of the present invention, carries out object veneer by the mode of broadcast object veneer location messageLocation, and then, can carry out communication between plates according to the positional information of object veneer and object veneer, with existingHave in technology and need to compare to the implementation of each groove position unicast communication request respectively, reduced communication between platesNeed the message amount sending, improved the efficiency of communication between plates.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of a kind of interplate communication method of providing of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the another kind of interplate communication method that provides of the embodiment of the present invention;
Fig. 3 is on a kind of business board of providing of the embodiment of the present invention on Bootloader request of loading master control boradThe plate of host software between interaction flow schematic diagram;
Fig. 4 is a kind of hardware structure diagram of the communication between plates device place equipment that provides of the embodiment of the present invention;
Fig. 5 is the structural representation of a kind of communication between plates device of providing of the embodiment of the present invention;
Fig. 6 is the structural representation of the another kind of communication between plates device that provides of the embodiment of the present invention.
Detailed description of the invention
In order to make those skilled in the art person understand better the technical scheme in the embodiment of the present invention, and makeAbove-mentioned purpose, the feature and advantage of the embodiment of the present invention can become apparent more, below in conjunction with accompanying drawing pairIn the embodiment of the present invention, technical scheme is described in further detail.
Refer to Fig. 1, the schematic flow sheet of a kind of interplate communication method providing for the embodiment of the present invention,Wherein, the method can be applied to distributed frame type equipment, and as shown in Figure 1, this interplate communication method canTo comprise the following steps:
Step 101, broadcast object veneer location message, so that receive the veneer of described location message,Determine and return to the response message corresponding with described location message according to described location message and self identification.
In the embodiment of the present invention, it is (following that said method can be applied to veneer in distributed frame type equipmentBe called source veneer), this source veneer can comprise Master (master) master control borad, or arbitrary business board; OnState object veneer can for the same machine frame of source veneer in Master master control borad or business board, can be alsoMaster master control borad or business board in machine frames different from source veneer.
In the embodiment of the present invention, when certain veneer (source veneer) is wanted to enter with another veneer (object veneer)Row communication between plates, and source veneer is not while knowing the MAC Address of object veneer, this source veneer can be broadcastedObject veneer location message. The veneer that receives this object veneer location message can be according to this location messageWith self identification (veneer sign) determines whether to respond this message, if so, return and locate reportThe response message that literary composition is corresponding; Otherwise, this message is not responded, for example, can directly abandon this reportLiterary composition.
Alternatively, above-mentioned veneer sign can include but not limited to board type, veneer model etc.
As the optional embodiment of one, in above-mentioned steps 101, broadcast object veneer location message,So that receive the veneer of this location message, according to locating, message and self identification are definite to be returned and locates reportThe response message that literary composition is corresponding, can be specially:
Broadcast object veneer location message, this location message comprises for showing that this message is for location messageType of message mark so that receive this location message and according to this type of message mark and the list of selfBoard type is determined and is returned to the response message corresponding with locating message.
For instance, taking the Bootloader on business board 1 want to load host software on master control borad asExample, in embodiments of the present invention, can pre-define message-master control borad location, a kind of location message, shouldLocation message is used for locating master control borad, and just needs to respond while only having master control borad to receive this location message;Correspondingly, in the time that the Bootloader on business board 1 wants to load the host software on master control borad, canBy broadcasting this predefined location message, master control borad is positioned, this location message comprise forShow that this message is the type of message mark of location message; In the time that other veneer receives this location message,The type of message mark that can comprise according to this location message determines that this message is for location message, and combinationThe board type of self is determined without this location message is responded, and then other business board can be directAbandon this message; Master control borad is in the time receiving this location message, and learning need to be according to the board type of selfJudge, in the time that the board type of master control borad is the needed board type of location message, master control boradDetermine and can respond this message, send the response message corresponding with this location message.
As the optional embodiment of one, in above-mentioned steps 101, broadcast object veneer location message,So that receive the veneer of this location message, according to locating, message and self identification are definite to be returned and locates reportThe response message that literary composition is corresponding, can be specially:
Broadcast object veneer location message, this location message comprises the model of object veneer, so that receiveTo this location message and determine that the veneer that the model of self model and object veneer matches returns and this locationThe response message that message is corresponding.
In this embodiment, in the object veneer location message of source veneer broadcast, can comprise object veneerModel, thereby, in the time that other veneer receives this location message, can judge self model and this is fixedWhether the model of the position object veneer that comprises of message mates, and if so, returns with to locate message correspondingResponse message; Otherwise, this location message is not responded, for example, directly abandon this location message.
For example, suppose can comprise in certain machine frame the business board of 3 kinds of models: business board A, business board BAnd business board C, in the time that certain business board is wanted to carry out communication between plates with business board B, this business board canSend object veneer location message, in this object veneer location message, can comprise the model of object veneer (Business board B), the veneer that receives this location message can judge the model of self model and object veneerWhether mate, determine whether self model is business board B, and if so, restoring to normal position message is correspondingResponse message; Otherwise, directly abandon this location message.
Step 102, reception response message.
In the embodiment of the present invention, when source veneer receives the response message that object veneer returns, can willSource MAC (MediaAccessControl, the medium access control) address of response message is as object listThe MAC Address of plate, and carry out communication between plates according to this MAC Address and object veneer.
Alternatively, in embodiments of the present invention, in response message, can comprise for showing that this message is for answeringAnswer the type of message mark of message, in the time that source veneer receives the message of other veneer transmission, can basisThe type of message mark that this message comprises determines whether it is response message.
By above-mentioned flow process, realize the location of source veneer to object veneer.
Step 103, MAC Address using the source MAC of this response message as object veneer, withObject veneer carries out communication between plates.
In the embodiment of the present invention, after source veneer receives response message, can obtain in this response messageThe source MAC comprising, the MAC Address using this source MAC as object veneer, and according toThis source MAC and object veneer carry out communication between plates.
For instance, still want to load the host software on master control borad with the Bootloader on business board 1For example. Business board 1 can obtain in this response message after receiving the response message that master control borad returnsThe source MAC comprising, and MAC Address using this source MAC as master control borad, and then,Business board 1 can, taking this MAC Address as target MAC (Media Access Control) address, enter by mode and the master control borad of clean cultureRow communication between plates, loads host software.
As the optional embodiment of one, in embodiments of the present invention, when object veneer is same machine frameIn master control borad (being that object veneer and source veneer are in same machine frame) time, in response message, can wrapDraw together groove number;
Correspondingly, in above-mentioned steps 102, after receiving response message, can also comprise:
The frame type of the groove comprising according to this response message number definite machine frame.
Concrete, in the machine frame due to different frame types, groove position, master control borad place may corresponding difference, exampleAs, for the machine frame of 04 frame type, master control borad is generally No. 1 groove position; For the machine frame of 08 frame type, mainControl plate is generally No. 5 or No. 6 groove positions. Therefore, source veneer receive response message that master control borad returns itAfter, the groove that can carry according to this response message number is determined the frame type of machine frame of living in, and then, in following stagesWhile joining the communication between plates in frame scene, can in communication message, carry this frame type.
Alternatively, in this embodiment, after receiving response message, can also comprise the following steps:
11), obtain response message and comprise groove number;
12), judge whether groove number mates with the board type of object veneer;
13) if coupling determine and carry out using the source MAC of response message as object veneerMAC Address, carries out the step of communication between plates with object veneer.
In this embodiment, in order to ensure that the response message that source veneer receives is the object veneer of expectionThe response message returning, after source veneer receives this response message, can be according to sending this response messageThe groove position at veneer place determine the board type of this veneer, and the board type that judges this veneer whether withThe board type of the object veneer of expection is identical, if identical, can think that this response message is what expectThe response message that object veneer returns; Otherwise, can think that this response message is not the object veneer of expectionThe response message returning.
For instance, still with the host software on the Bootloader request of loading master control borad on business board 1For example, after business board 1 broadcast main control plate location message, when receiving other veneer, business board 1 returnsMessage, and to identify this message be after response message, business board 1 can obtain in this response message and wrapDraw together groove number, because the common corresponding groove position of machine frame master control borad of 8 groove positions is No. 5 or No. 6,4 groove positionsMachine frame master control borad conventionally corresponding groove position be No. 1 (its that also can be for making an appointment according to concrete sceneIts groove position), therefore, business board 1 can further judge that whether groove that this response message comprises number isNo. 1, No. 5 or No. 6, if so, can think that the veneer of this response message of transmission is master control borad, reallyThe response message that the object veneer that fixed this response message is expection returns; Otherwise, can think and send and should answerThe veneer of answering message is business board, and this response message is not the response message that the object veneer of expection returns.
As the optional embodiment of another kind, in the embodiment of the present invention, in response message, can comprise listBoard type;
Correspondingly, in above-mentioned steps 102, after receiving response message, can also comprise the following steps:
21), obtain the board type that response message comprises;
22), judge that whether this board type is identical with the board type of object veneer;
23) if identical, determine and carry out using the source MAC of response message as object veneerMAC Address, carries out with object veneer the step that plate is communicated by letter.
In this embodiment, in order to ensure that the response message that source veneer receives is the object veneer of expectionThe response message returning, can also carry the board type of transmit leg veneer in response message; Source veneer connectsAfter receiving response message, can obtain the board type that this response message comprises, and judge this veneerWhether type is identical with the board type of the object veneer of expection, if identical, can think that this replys reportThe response message that literary composition returns for the object veneer of expection; Otherwise, can think that this response message is not expectionThe response message that returns of object veneer.
For instance, still record the host software on master control borad with the Bootloader request on business board 1For example, after business board 1 sends master control borad location message, when the message that receives other veneer and return,And to identify this message be after response message, business board 1 can obtain the veneer that this response message comprisesType, and judge whether this board type is master control borad, if so, can think that this response message is for pre-The response message that the object veneer of phase returns; Otherwise, can think that this response message is not the object of expectionThe response message that veneer returns.
It should be noted that in embodiments of the present invention, in response message, also can comprise groove number simultaneously,And board type; Correspondingly, source veneer receives the message that other veneer sends, and identifies this messageAfter response message, the groove number that can comprise according to this response message, or/and, in this response message, wrapThe board type of drawing together, judges whether this response message is the response message of the object veneer transmission of expection, itsSpecific implementation does not repeat them here.
As another optional embodiment, in the embodiment of the present invention, can above-mentioned purpose veneer is fixedPosition design of EDI messages is a kind of specific broadcasting packet, and the format of the MAC Address of this message is:
{ fixed field 1, fixed field 2, fixed field 3, frame number, board type, groove number };
Wherein, the intrinsic field that this fixed field is MAC Address, can be according to different scenes orDevice fabrication manufacturer presets, and for example, fixed field 1, fixed field 2 and fixed field 3 canTo be respectively 0x00,0x10,0xFC; Frame number is for identifying the veneer place machine frame that sends this message; SingleBoard type is for identifying the board type of the veneer that sends this message; Groove number sends this message for identifyingGroove position, veneer place.
After object veneer receives above-mentioned purpose veneer location message, MAC in the response message returningThe format of address also needs for above-mentioned form.
Wherein, in this embodiment, the groove that above-mentioned response message comprises number, frame number and veneerOne or more in type all can be included in MAC Address in the mode of field.
It should be noted that in this embodiment, the target MAC (Media Access Control) address of broadcasting packet is still with existingThe target MAC (Media Access Control) address identical (full F) of broadcasting packet, and do not need with reference to above-mentioned format.
Correspondingly, in above-mentioned steps 102, after receiving response message, can also comprise the following steps:
31), obtain the MAC Address that this response message comprises;
32) whether the format that, judges this MAC Address is above-mentioned format;
33), if so, determine the MAC carrying out using the source MAC of response message as object veneerAddress, carries out the step of communication between plates with object veneer.
In this embodiment, in order to ensure that the response message that source veneer receives is the object veneer of expectionThe response message returning, after source veneer sends object veneer location message, when source, veneer receives otherThe message that veneer sends, and when identifying this message and being response message, can judge the MAC of this response messageWhether the format of address is above-mentioned format, if so, can think that this response message is for expectionThe response message that returns of object veneer; Otherwise, can think that this response message is not the object list of expectionThe response message that plate returns.
Further, in this embodiment, the design of the MAC Address of source veneer definite response messageForm is after above-mentioned format, can be further according to wrapping in the source MAC of this response messageThe frame number of drawing together, board type and groove number judge whether this response message is that the object veneer of expecting returnsResponse message, its specific implementation can be referring to the associated description in above-mentioned flow process, and the embodiment of the present invention is at thisNo longer limit.
It should be noted that in other optional embodiment of the present invention the format of MAC AddressIn also can only comprise one or two in frame number, groove number and board type, for example, MAC AddressFormat in can only comprise board type, in the time that source veneer receives response message, can basisWhether the format of the MAC Address of this response message is the format of expection, and/or, MonoplacophoraWhether type is identical with the board type of object veneer, judges whether response message is that the object veneer of expecting returnsThe response message returning, its specific implementation does not repeat them here.
Visible, in the described method flow of Fig. 1, in the time that needs carry out communication between plates, by broadcastThe mode of object veneer location message positions object veneer, and then, can be according to object veneerPositional information and object veneer carry out communication between plates, with in prior art, need respectively to the position clean culture of each groove logicalThe implementation of letter request is compared, and has reduced the message amount that communication between plates need to send, and has improved between plateThe efficiency of communication.
Refer to Fig. 2, the schematic flow sheet of the another kind of interplate communication method providing for the embodiment of the present invention,Wherein, the method can be applied to distributed frame type equipment, in this embodiment, and with on business boardHost software on Bootloader request of loading master control borad is example, as shown in Figure 2, and this communication between plates sideMethod can comprise the following steps:
Step 201, the first business board broadcast main control plate location message, the source MAC of this master control borad location messageAddress comprises frame No. the first, the first board type and groove No. the first; Wherein, the first frame number is for markThe first business board place machine frame, the first board type is for identifying the board type of the first business board, firstGroove is number for identifying the first groove position, business board place.
In the embodiment of the present invention, can design and use a kind of specific broadcasting packet, this broadcasting packet is used forBusiness board Search and Orientation master control borad, is referred to as master control borad location message herein, and for its definition specialType of message.
In the embodiment of the present invention, the device format of the MAC Address of master control borad location message is: 0x00,0x10,0xFC, frame number, board type, groove number }; Wherein:
0x00,0x10, the fixed field of 0xFC:MAC address, can be according to different scenes orDevice fabrication manufacturer presets, in this embodiment, and taking the regulation field of MAC Address as 0x00,0x10,0xFC, but should be realized that, it is not limiting the scope of the present invention.
Frame number: for identifying the machine frame at veneer place, be applied to cascade frame scene, for unit frame scene,Can be for it arranges a fixed value, as 0x00.
Board type: for identifying different board types, for example, according to board type value respectively:
0x0: represent master control borad;
0x1: represent business board;
0x2: represent web plate;
Etc..
Groove number: i.e. slot number, for identifying the groove position sequence number at veneer place.
In the embodiment of the present invention, when the Bootloader on certain business board wants to load the main frame on master control boradWhen software, this business board can first be broadcasted above-mentioned master control borad location message, so that master control borad is positioned.
It should be noted that in embodiments of the present invention, the first business board is not to refer to certain to fixBusiness board, but can refer to any one and need to load the business board of the host software on master control borad.
Step 202, the first business board receive master control borad location response message, and report is replied in this master control borad locationThe source MAC of literary composition comprises the second frame number, the second board type, and groove No. the second, wherein,The second frame is number for identifying this master control borad place machine frame, and the second board type is for identifying the list of this master control boradBoard type, the second groove is number for identifying groove position, master control borad place.
In the embodiment of the present invention, can design and use a kind of specific unicast message, respond for master control boradAbove-mentioned master control borad location message, is referred to as master control borad location response message herein, this message use and onState the identical MAC Address format of master control borad location message.
In the embodiment of the present invention, after the first business board broadcast main control plate location message, receive this master control boradOther veneer (comprise all the other business boards outside the first business board, and master control borad) of location message canTo resolve the type of this message, in the time that this message of identification is master control borad location message, all the other business boards are notThis message is responded, can directly abandon this message; Master control borad is replied with above-mentioned master control borad locationThis message of message response.
In the embodiment of the present invention, receive that all the other veneers of master control borad location message can be according to messageThe format of MAC Address and type of message (broadcasting packet) determine that this message is master control borad location reportLiterary composition; Or, in the master control borad location message that the first business board sends, can also carry special type of messageMark (as positioning mark) and master control borad mark, this type of message mark is used for indicating that this message is for fixedPosition message, and location object veneer be master control borad, its specific implementation does not repeat them here.
In the embodiment of the present invention, the first business board receives the master control borad location response message that master control borad returnsTime, the source MAC of this message can be defined as to the MAC Address of master control borad, and according to this MACThe information such as the frame number, groove number of master control borad are determined in address.
In the embodiment of the present invention, the first business board can be directly according to this master control borad location response messageMAC Address format and type of message (unicast message) determine that this message is that reply master control borad locationMessage, or master control borad, in the time sending master control borad location response message, can also carry in this messageSpecial type of message mark (as replying mark), this replys mark for indicating that this message is for replying reportLiterary composition, its specific implementation does not repeat them here.
In the embodiment of the present invention, in order to ensure that the response message that the first business board receives is the master control of expectionThe response message that plate sends, after the first business board receives master control borad response message, can also be according to being somebody's turn to doThe MAC Address format of message is or/and the frame that MAC Address comprises number, board type, grooveWhether one or more definite this message in number is the response message of the master control borad transmission of expection, and it is concreteRealization can be shown in Figure 1 method flow in associated description, the embodiment of the present invention is no longer superfluous at thisState.
Step 203, the first business board are taking the source MAC in the response message of master control borad location as master control boradMAC Address, the host software on request of loading master control borad.
In the embodiment of the present invention, the first business board receives the master control borad location response message that master control borad returnsAfterwards, the source MAC of this master control borad location response message can be defined as to the MAC of master control boradAddress, and taking this MAC Address as target MAC (Media Access Control) address, carry out unicast communication with master control borad, request addsCarry the host software on master control borad, carry out point-to-point data message loading. After having loaded between plate,The integrality of the host software that the first business board can verification master control borad sends over, and in verification by itAfter, guiding os starting, wherein, on the first business board (being the business board 1 in Fig. 3)Between the plate of the host software on Bootloader request of loading master control borad, interaction flow can be as shown in Figure 3.
Visible, in the method flow shown in Fig. 2, by the Search and Orientation master during host software is loadedBetween control plate and plate, load request process separates, and the mode of first locating by broadcast before loading between plate is to masterControl plate positions, and after navigating to master control borad, is undertaken adding between plate by mode of unicast and master control boradCarry, and in prior art, need respectively, to compared with the implementation of each groove position clean culture load request, to have reducedBetween plate, load the message amount that needs transmission, improved the efficiency loading between plate.
In addition, due to the host software on business board Bootloader request of loading master control borad in prior artTime, need to ask to load request between the transmission board of the each groove of distributed frame type equipment position respectively by the mode of clean cultureAsk, therefore, business board need to be known the number of slots amount of frame type equipment, other frame type as newly developed in fruit productEquipment, increased and decreased the quantity of business board slot position. Just need to revise software, to support new frame type equipmentBetween plate, load. For example, suppose that current frame type equipment always has 8 groove positions, business board need to be to all the otherLoad request between 7 groove position transmission boards. If increase a frame type equipment that has 12 groove positions newly, needAmendment software is to load request between all the other 11 groove positions difference transmission boards, and the skill that the embodiment of the present invention providesIn art scheme, locate master control borad by broadcasting packet, do not rely on concrete equipment frame type, number of slots amount,Avoid because frame type equipment groove position increases the software upgrading bringing.
In the embodiment of the present invention, the business board in distributed frame type equipment completes according to the flow process shown in Fig. 2After host software loads, when this business board need to same machine frame in or (cascade frame field in other machine frameScape) other veneer while carrying out communication between plates, if this business board does not get the positional information of object veneer(as groove position, MAC Address etc.), this business board still can be according to the method shown in Fig. 1 and objectVeneer carries out communication between plates.
Can find out by above description, in the technical scheme providing in the embodiment of the present invention, when needs enterWhen row communication between plates, by the mode of broadcast object veneer location message, object veneer is positioned, enterAnd, can carry out communication between plates according to the positional information of object veneer and object veneer, in prior artNeed to compare to the implementation of each groove position unicast communication request respectively, having reduced communication between plates needs to sendMessage amount, improved the efficiency of communication between plates.
Device embodiment can realize by software, also can be by the mode of hardware or software and hardware combiningRealize. Be embodied as example with software, as the device on a logical meaning, by its place equipmentProcessor reads operation in internal memory by computer program instructions corresponding in nonvolatile memory and forms. Say from hardware view, as shown in Figure 4, the communication between plates device institute providing for the embodiment of the present inventionAt a kind of hardware structure diagram of equipment, except the processor shown in Fig. 4, network interface, internal memory and non-Outside volatile memory, the equipment that installs place in embodiment can also comprise other hardware conventionally, asBe responsible for forwarding chip of processing message etc.; May be also distributed from this equipment of hardware configurationEquipment, may comprise multiple interface cards, to carry out the expansion of message processing at hardware view.
Refer to Fig. 5, the structural representation of a kind of communication between plates device providing for the embodiment of the present invention,Wherein, described device can be applied in distributed frame type equipment, as shown in Figure 4, and this communication between plates dressPut and can comprise:
Positioning unit 510, for broadcasting object veneer location message, so that receive described location messageVeneer, determine and return and corresponding the replying of described location message according to described location message and self identificationMessage;
Described positioning unit 510, also for receiving described response message;
Communication unit 520, for the source medium access control MAC Address using described response message as instituteState the MAC Address of object veneer, carry out communication between plates with described object veneer.
In the optional embodiment of one, described positioning unit 510, can be specifically for broadcast object veneerLocation message, described location message comprises for showing that this message is the type of message mark of location message,So that receive described location message and identify with the board type of self and determine and return according to described type of messageReturn the response message corresponding with described location message.
In the optional embodiment of another kind, described positioning unit 510, fixed specifically for broadcast object veneerPosition message, described location message comprises the model of described object veneer, so that receive described location reportLiterary composition and determine that the veneer that the model of self model and described object veneer matches returns and described location messageCorresponding response message.
In optional embodiment, in described response message, can also comprise board type;
Correspondingly, see also Fig. 6, the another kind of communication between plates device providing for the embodiment of the present inventionStructural representation, this embodiment is on aforementioned basis embodiment illustrated in fig. 5, described device is all rightComprise: the first acquiring unit 530 and the first judging unit 540. Wherein:
The first acquiring unit 530, the board type comprising for obtaining described response message;
The first judging unit 540, for the board type that judges described board type and object veneer whetherIdentical;
Described communication unit 520, can be specifically for the judged result when described the first judging unit 540For when coupling, the MAC Address using the source MAC of described response message as described object veneer,Carry out communication between plates with described object veneer.
In optional embodiment, the MAC Address of described response message comprises in following fieldOr multiple:
Frame number, board type and groove number;
Wherein, described frame number is for the frame type of recognition purpose veneer place machine frame; Described board type is used forThe board type of recognition purpose veneer, described groove number is for the groove position at recognition purpose veneer place.
In optional embodiment, described object veneer is the master control borad in same machine frame;
Described communication unit 520, can specifically for the source MAC in described response message asThe MAC Address of described master control borad, the host software described in request of loading on master control borad.
In said apparatus, the implementation procedure of the function and efficacy of unit specifically refers in said method correspondingThe implementation procedure of step, does not repeat them here.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part ginsengSee the part explanation of embodiment of the method. Device embodiment described above is only schematically,The wherein said unit as separating component explanation can or can not be also physically to separate, and doesThe parts that show for unit can be or can not be also physical locations, can be positioned at a place,Or also can be distributed on multiple NEs. Can select according to the actual needs part wherein orThe whole modules of person realize the present invention program's object. Those of ordinary skill in the art are not paying creativenessIn the situation of work, be appreciated that and implement.
As seen from the above-described embodiment, by the mode of broadcast object veneer location message, object veneer is carried outLocation, and then, can carry out communication between plates according to the positional information of object veneer and object veneer, with existingHave in technology and need to compare to the implementation of each groove position unicast communication request respectively, reduced communication between platesNeed the message amount sending, improved the efficiency of communication between plates.
Those skilled in the art are considering description and are putting into practice after invention disclosed herein, will easily expect thisOther embodiment of invention. The application is intended to contain any modification of the present invention, purposes or adaptabilityChange, these modification, purposes or adaptations are followed general principle of the present invention and are comprised thisBright undocumented common practise or conventional techniques means in the art. Description and embodiment only byBe considered as exemplary, true scope of the present invention and spirit pointed out by claim below.
Should be understood that, the present invention is not limited to described above and illustrated in the accompanying drawings accurateStructure, and can carry out various amendments and change not departing from its scope. Scope of the present invention is only by instituteAttached claim limits.

Claims (12)

1. an interplate communication method, is applied in distributed frame type equipment, it is characterized in that, comprising:
Broadcast object veneer location message, so that receive the veneer of described location message, according to described fixedPosition message and self identification are determined and are returned to the response message corresponding with described location message;
Receive described response message;
MAC using the source medium access control MAC Address of described response message as described object veneerAddress, carries out communication between plates with described object veneer.
2. method according to claim 1, is characterized in that, broadcast object veneer location message,So that receive the veneer of described location message, according to described location message and self identification determine return withResponse message corresponding to described location message, is specially:
Broadcast object veneer location message, described location message comprises for showing that this message is for location reportThe type of message mark of literary composition, so that receive described location message and identify and oneself according to described type of messageThe board type of body is determined and is returned to the response message corresponding with described location message.
3. method according to claim 1, is characterized in that, broadcast object veneer location message,So that receive the veneer of described location message, according to described location message and self identification determine return withResponse message corresponding to described location message, is specially:
Broadcast object veneer location message, described location message comprises the model of described object veneer, withMake to receive described location message and determine self model and veneer that the model of described object veneer matchesReturn to the response message corresponding with described location message.
4. method according to claim 1, is characterized in that, described response message comprises veneerType;
After the described response message of described reception, also comprise:
Obtain the board type that described response message comprises;
Judge that whether described board type is identical with the board type of object veneer;
If identical, determine and carry out the described source MAC using described response message as described objectThe MAC Address of veneer, carries out the step of communication between plates with described object veneer.
5. according to claim 1-4 any one method, it is characterized in that the MAC of described response messageAddress comprises one or more in following field:
Frame number, board type and groove number;
Wherein, described frame is number for recognition purpose veneer place machine frame; Described board type is used for identifying orderThe board type of veneer; Described groove number is for the groove position at recognition purpose veneer place.
6. according to the method described in claim 1-4 any one, it is characterized in that, described object veneer isMaster control borad in same machine frame;
The described source MAC using described response message is as the MAC Address of described object veneer, withDescribed object veneer carries out communication between plates, comprising:
MAC Address using the source MAC in described response message as described master control borad, request addsCarry the host software on described master control borad.
7. a communication between plates device, is applied in distributed frame type equipment, it is characterized in that, comprising:
Positioning unit, for broadcasting object veneer location message, so that receive the list of described location messagePlate, determines and returns to the response message corresponding with described location message according to described location message and self identification;
Described positioning unit, also for receiving described response message;
Communication unit, for the source medium access control MAC Address using described response message as describedThe MAC Address of object veneer, carries out communication between plates with described object veneer.
8. device according to claim 7, is characterized in that,
Described positioning unit, specifically for broadcast object veneer location message, described location message comprisesFor showing that this message is the type of message mark of location message, so that receive described location message and rootDetermine and return to answer corresponding with described location message according to described type of message mark and the board type of selfAnswer message.
9. device according to claim 7, is characterized in that,
Described positioning unit, specifically for broadcast object veneer location message, described location message comprisesThe model of described object veneer, so that receive described location message and determine self model and described objectThe veneer that the model of veneer matches returns to the response message corresponding with described location message.
10. device according to claim 7, is characterized in that, described response message comprises listBoard type;
Described device also comprises:
The first acquiring unit, the board type comprising for obtaining described response message;
The first judging unit, for judging that whether described board type is identical with the board type of object veneer;
Described communication unit, specifically in the time that the judged result of described the first judging unit is coupling, withThe source MAC of described response message is as the MAC Address of described object veneer, with described object listPlate carries out communication between plates.
11. according to the device described in claim 7-10 any one, it is characterized in that described response messageMAC Address comprise one or more in following field:
Frame number, board type and groove number;
Wherein, described frame is number for recognition purpose veneer place machine frame; Described board type is used for identifying orderThe board type of veneer, described groove number is for the groove position at recognition purpose veneer place.
12. according to the device described in claim 7-10 any one, it is characterized in that described object veneerFor the master control borad in same machine frame;
Described communication unit, specifically for the source MAC in described response message as described masterThe MAC Address of control plate, the host software described in request of loading on master control borad.
CN201510540798.3A 2015-08-28 2015-08-28 A kind of interplate communication method and device Active CN105591722B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510540798.3A CN105591722B (en) 2015-08-28 2015-08-28 A kind of interplate communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510540798.3A CN105591722B (en) 2015-08-28 2015-08-28 A kind of interplate communication method and device

Publications (2)

Publication Number Publication Date
CN105591722A true CN105591722A (en) 2016-05-18
CN105591722B CN105591722B (en) 2019-05-07

Family

ID=55931001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510540798.3A Active CN105591722B (en) 2015-08-28 2015-08-28 A kind of interplate communication method and device

Country Status (1)

Country Link
CN (1) CN105591722B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547132A (en) * 2017-05-31 2018-01-05 新华三技术有限公司 A kind of board and distributed apparatus
CN113515304A (en) * 2021-06-10 2021-10-19 锐捷网络股份有限公司 Interaction method and device between board cards based on frame type network equipment
CN114430403A (en) * 2022-04-07 2022-05-03 湖南戎腾网络科技有限公司 Addressing method and device between board cards and computer equipment
WO2023116136A1 (en) * 2021-12-23 2023-06-29 中兴通讯股份有限公司 Method, system, and device for managing startup of single board of chassis device, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5836785A (en) * 1995-03-06 1998-11-17 Advanced Micro Devices, Inc. Apparatus and method to uniquely identify similarly connected electrical devices
CN1905510A (en) * 2006-08-18 2007-01-31 华为技术有限公司 Method for obtaining MAC address by communication apparatus and communication system
CN101141363A (en) * 2007-07-19 2008-03-12 中兴通讯股份有限公司 Inter-board communication method suitable for single board communication structure variation
CN101599852A (en) * 2008-06-06 2009-12-09 中兴通讯股份有限公司 The veneer of the communication means of multimode, multi-software module, communication apparatus between veneer
CN103401773A (en) * 2013-06-26 2013-11-20 杭州华三通信技术有限公司 Method and network equipment realizing interboard communication
CN104038449A (en) * 2014-06-11 2014-09-10 华为技术有限公司 Business single board communication method, business single board and communication device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5836785A (en) * 1995-03-06 1998-11-17 Advanced Micro Devices, Inc. Apparatus and method to uniquely identify similarly connected electrical devices
CN1905510A (en) * 2006-08-18 2007-01-31 华为技术有限公司 Method for obtaining MAC address by communication apparatus and communication system
CN101141363A (en) * 2007-07-19 2008-03-12 中兴通讯股份有限公司 Inter-board communication method suitable for single board communication structure variation
CN101599852A (en) * 2008-06-06 2009-12-09 中兴通讯股份有限公司 The veneer of the communication means of multimode, multi-software module, communication apparatus between veneer
CN103401773A (en) * 2013-06-26 2013-11-20 杭州华三通信技术有限公司 Method and network equipment realizing interboard communication
CN104038449A (en) * 2014-06-11 2014-09-10 华为技术有限公司 Business single board communication method, business single board and communication device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547132A (en) * 2017-05-31 2018-01-05 新华三技术有限公司 A kind of board and distributed apparatus
CN113515304A (en) * 2021-06-10 2021-10-19 锐捷网络股份有限公司 Interaction method and device between board cards based on frame type network equipment
WO2023116136A1 (en) * 2021-12-23 2023-06-29 中兴通讯股份有限公司 Method, system, and device for managing startup of single board of chassis device, and storage medium
CN114430403A (en) * 2022-04-07 2022-05-03 湖南戎腾网络科技有限公司 Addressing method and device between board cards and computer equipment
CN114430403B (en) * 2022-04-07 2022-06-17 湖南戎腾网络科技有限公司 Addressing method and device between board cards and computer equipment

Also Published As

Publication number Publication date
CN105591722B (en) 2019-05-07

Similar Documents

Publication Publication Date Title
CN105591722A (en) Inter-board communication method and device
EP3451592B1 (en) Packet transmission between vxlan domains
JP6359652B2 (en) Information transmission method, apparatus and device
JP2005073230A5 (en)
CN109474443B (en) Configuration method, device and system of newly added server and communication equipment
US20130321834A1 (en) Distribution system, image processing apparatus, distribution apparatus, and control method thereof
US20220086239A1 (en) Method and Apparatus for Establishing Session, and Related Device
JP4257238B2 (en) Automatic IP address assignment method / program / recording medium / device / system, chassis management device, control card
CN104113435A (en) Method and device for generating identifier
CN111263377B (en) Network configuration method, device, equipment and system and distribution network testing method and system
US20230376704A1 (en) Method for inventorying tag and related device
CN107547400B (en) Virtual machine migration method and device
CN110708400B (en) Network address allocation method, device, node equipment and storage medium
CN106302861B (en) Address allocation method and device
CN102025797A (en) Address prefix processing method, device, system and network equipment
CN107656739B (en) Code compiling method and device based on windows system
CN107659516B (en) Function control method and device for broadband remote access server BRAS
EP3474501B1 (en) Network device stacking
CN112311736B (en) Remote control device, household appliance and communication protocol configuration method and device thereof
CN111277883B (en) Playing method, terminal and playing system
CN109992197A (en) A kind of data read-write method, device, electronic equipment and storage medium
US20160094956A1 (en) Communication apparatus, control method therefor, program, and storage medium
CN103347102A (en) Identification method and device of conflict address detection message
CN109151093A (en) A kind of method, apparatus, storage medium and computer equipment for distributing IP address
CN109104767A (en) A kind of dynamic time slot allocation optimization 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
CB02 Change of applicant information
CB02 Change of applicant information

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

Applicant after: Xinhua three Technology Co., Ltd.

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

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant