CN108521341A - Message transmitting method and device - Google Patents

Message transmitting method and device Download PDF

Info

Publication number
CN108521341A
CN108521341A CN201810249365.6A CN201810249365A CN108521341A CN 108521341 A CN108521341 A CN 108521341A CN 201810249365 A CN201810249365 A CN 201810249365A CN 108521341 A CN108521341 A CN 108521341A
Authority
CN
China
Prior art keywords
protocol massages
message
bmc
communication equipment
mac address
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
CN201810249365.6A
Other languages
Chinese (zh)
Other versions
CN108521341B (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
Unis Huashan Information 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 Unis Huashan Information Technologies Co Ltd filed Critical Unis Huashan Information Technologies Co Ltd
Priority to CN201810249365.6A priority Critical patent/CN108521341B/en
Publication of CN108521341A publication Critical patent/CN108521341A/en
Application granted granted Critical
Publication of CN108521341B publication Critical patent/CN108521341B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion

Abstract

A kind of message transmitting method of disclosure offer and device, are related to Internet technical field.Method is applied to server, and the server includes baseboard management controller BMC, the method includes:Monitor the working condition of the management mouth of the BMC;If the management mouth UP, the protocol massages of configuration are sent to the communication equipment being connect with the server communication by the management mouth, the protocol massages carry preset identification information, so that the communication equipment sets the port being connect with the management mouth on the communication equipment to Spanning-Tree Protocol STP edge ports.So that it is guaranteed that the reliability of message transmissions.

Description

Message transmitting method and device
Technical field
This disclosure relates to Internet technical field, in particular to a kind of message transmitting method and device.
Background technology
Baseboard management controller (Baseboard Management Controller, BMC) is the outband management of server Multiple functions may be implemented in system, BMC, for example, Intelligent Platform Management Interface (Intelligent Platform can be based on Management Interface, IPMI) agreement, intelligently monitoring and management server.User can pass through the management mouth of BMC The administration interface for logging in BMC, is managed server.After server is connect with communication apparatus communication, server and communication are set Message transmissions can be carried out between standby.
Invention content
In view of this, the disclosure is designed to provide a kind of message transmitting method and device.
In a first aspect, present disclose provides a kind of message transmitting method, it is applied to server, the server includes substrate Management Controller BMC, the method includes:
Monitor the working condition of the management mouth of the BMC;
If the management mouth UP, the protocol massages of configuration are sent to by the management mouth and are connected with the server communication The communication equipment connect, the protocol massages carry preset identification information, so that the communication equipment is by the communication equipment The upper port being connect with the management mouth is set as Spanning-Tree Protocol STP edge ports.
Optionally, in the protocol massages of configuration further include the corresponding MAC Address of the BMC, so that the communication is set The standby processing priority for improving the message that destination address is the MAC Address or source address is the MAC Address.
Second aspect, the disclosure provide a kind of message transmitting method, are applied to the communication equipment with server communication connection, The method includes:
Receive the protocol massages that the server is sent;
It parses the protocol massages and judges in the protocol massages whether to include preset identification information, if including described Preset identification information sets the port that the protocol massages are received on the communication equipment to the edges Spanning-Tree Protocol STP Port.
Optionally, if it is determined that the protocol massages include the preset identification information, the method further includes:
Obtain the MAC Address that the protocol massages include;
Improve the processing priority for the message that destination address is the MAC Address or source address is the MAC Address.
The third aspect, the disclosure provide a kind of message transmitting device, are applied to server, the server includes substrate pipe Controller BMC is managed, the message transmitting device includes:
Monitoring module, the working condition of the management mouth for monitoring the BMC;
The protocol massages of configuration are sent to if being used for the management mouth UP by the management mouth by message sending module The communication equipment being connect with the server communication, the protocol massages carry preset identification information, so that the communication Equipment sets the port being connect with the management mouth on the communication equipment to Spanning-Tree Protocol STP edge ports.
Optionally, in the protocol massages of configuration further include the corresponding MAC Address of the BMC, so that the communication is set The standby processing priority for improving the message that destination address is the MAC Address or source address is the MAC Address.
Fourth aspect, the disclosure provide a kind of message transmitting device, are applied to the communication equipment with server communication connection, The message transmitting device includes:
Receiving module, the protocol massages sent for receiving the server;
Processing module, for parsing the protocol massages and judging in the protocol massages whether to include that preset mark is believed The port that the protocol massages are received on the communication equipment is set as generating by breath if including the preset identification information Tree protocol STP edge ports.
Optionally, the processing module is additionally operable to if it is determined that the protocol massages include the preset identification information, The MAC Address that the protocol massages include then is obtained, it is described to improve destination address as the MAC Address or source address The processing priority of the message of MAC Address.
5th aspect, the disclosure provide a kind of computer readable storage medium, and the computer readable storage medium includes Computer program, the equipment computer program controls the computer readable storage medium when running where execute above-mentioned report Message transmitting method.
The message transmitting method and device that the disclosure provides can be connect after the management mouth UP of BMC to server communication Communication equipment send the protocol massages of configuration, protocol massages carry preset identification information so that communication equipment will be with pipe The port of reason mouth connection is set as Spanning-Tree Protocol STP edge ports, to avoid the end being connect with management mouth on communication equipment It mouthful is blocked, and then ensures the reliability of the message transmissions between communication equipment after the management mouth UP of BMC.
Further, the message transmitting method and device that the disclosure provides further include that BMC is corresponded in the protocol massages of configuration MAC Address, communication equipment is by improving the place that destination address is the MAC Address or message that source address is the MAC Address Manage priority, it is ensured that with the relevant messages of BMC can priority processing, avoid caused by network congestion with the relevant messages of BMC without Method stablizes transmission, to improve the reliability of BMC management.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate Appended attached drawing, is described in detail below.
Description of the drawings
In order to illustrate more clearly of the technical solution of the disclosure, letter will be made to attached drawing needed in the embodiment below It singly introduces, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as to range It limits, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings Obtain other relevant attached drawings.
Fig. 1 is a kind of application scenarios schematic diagram for message transmitting method that the disclosure provides.
Fig. 2 is a kind of block diagram for server that the disclosure provides.
Fig. 3 is a kind of flow chart for message transmitting method that the disclosure provides.
Fig. 4 is the flow chart for another message transmitting method that the disclosure provides.
Fig. 5 is a kind of schematic diagram for Sharing Management mouth that the disclosure provides.
Fig. 6 is a kind of exemplary application scene graph for message transmitting method that the disclosure provides.
Fig. 7 is a kind of TLV form schematic diagrams that the disclosure provides.
Fig. 8 is a kind of block diagram for message transmitting device applied to server that the disclosure provides.
Fig. 9 is a kind of block diagram for message transmitting device applied to communication equipment that the disclosure provides.
Icon:10- servers;11- memories;12- processors;13- network modules;20- communication equipment 31- condition monitorings Module;32- message sending modules;41- receiving modules;42- processing modules;43- monitoring modules;44- removing modules.
Specific implementation mode
There are mainly two types of forms for the management mouth of BMC, and one is dedicated management mouths, another is Sharing Management mouth.It is special Management mouth is only connect with BMC, is only used, is used for transmission and the relevant messages of BMC as the management of BMC.Sharing Management mouth can connect BMC is met, can also serviced with the host communication installed on server since Sharing Management mouth can reduce the cost of server It is used extensively on device.Multiple functions may be implemented in view of based on BMC, it is ensured that the reliability ten with the relevant message transmissions of BMC Divide important.
Through inventor the study found that the communication between BMC and communication equipment is primarily present problems with, if the master of server Machine restarts, physical layer (Physical Layer, the PHY) meeting of server end and the communication equipment for communicating with connection PHY holds consultation, and can lead to the Link UP/Down between server and communication equipment in some cases.It is on a communications device Anti- loops generally can all open Spanning-Tree Protocol (Spanning Tree Protocol, STP), according to STP, communication equipment Port UP/Down after, the topology of network can be recalculated, need certain duration during this period, STP meetings are based in the duration The port block being connect with server on communication equipment is fallen, causes existing management connection to disconnect, needs to log in again. It during port block, can not be transmitted, affect and BMC phases between communication equipment and server with the relevant messages of BMC The reliability of the message transmissions of pass.
For the defect present in above scheme, be inventor being obtained after putting into practice and carefully studying as a result, Therefore, the discovery procedure of the above problem and the solution that hereinafter disclosure is proposed regarding to the issue above all should be The contribution that inventor makes the disclosure during disclosure.
Based on the studies above, present disclose provides a kind of message transmitting method and devices, monitor the work of the management mouth of BMC State sends the protocol massages of configuration, agreement report to the communication equipment being connect with server communication after the management mouth UP of BMC Text carries preset identification information, and communication equipment receives the protocol massages, after identifying preset identification information, will communicate The port being connect with management mouth in equipment is set as STP edge ports so that the port being connect with management mouth on communication equipment is not It is blocked, and then ensures the reliability of the message transmissions between communication equipment after the management mouth UP of BMC.
Below in conjunction with attached drawing in the disclosure, the technical solution in the disclosure is clearly and completely described, it is clear that Described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually retouched in attached drawing here The component for the disclosure stated and shown can be arranged and be designed with a variety of different configurations.Therefore, below to carrying in the accompanying drawings The detailed description of the embodiment of the present invention of confession is not intended to limit the range of claimed invention, but is merely representative of this The selected embodiment of invention.Based on the embodiment of the present invention, those skilled in the art are in the premise for not making creative work Lower obtained every other embodiment, shall fall within the protection scope of the present invention.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.
As shown in Figure 1, being a kind of application scenarios schematic diagram for message transmitting method that the disclosure provides, the report in the disclosure Message transmitting method is applied to the server 10 and communication equipment 20 of communication connection.Wherein, server 10 is controlled including substrate management Device BMC, BMC are carried out data transmission by managing mouth with communication equipment 20.
Fig. 2 is please referred to, for a kind of block diagram for server 10 that the disclosure provides.As shown in Fig. 2, server 10 include:Memory 11, processor 12, network module 13 and message transmitting device.
The memory 11, processor 12 and network module 13 are directly or indirectly electrically connected between each other, with reality The transmission or interaction of existing data.For example, these elements can be realized between each other by one or more communication bus or signal wire It is electrically connected.Be stored with message transmitting device in memory 11, the message transmitting device include it is at least one can with software or The form of firmware (firmware) is stored in the software function module in the memory 11, and the processor 12 is deposited by operation The software program and module stored up in memory 11 are answered such as the message transmitting device in the disclosure to perform various functions With and data processing, that is, realize the disclosure in message transmitting method.
Wherein, the memory 11 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc.. Wherein, memory 11 is for storing program, and the processor 12 executes described program after receiving and executing instruction.
The processor 12 may be a kind of IC chip, the processing capacity with data.Above-mentioned processor 12 Can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc..It may be implemented or execute each method, step and logic diagram disclosed in the disclosure. General processor can be microprocessor or the processor can also be any conventional processor etc..
Network module 13 is used to establish the communication connection between server 10 and external communications terminals by network, realizes net The transmitting-receiving of network signal and data operates.
It is appreciated that structure shown in Fig. 2 is only to illustrate, server 10 may also include than shown in Fig. 2 more or more Few component, or with the configuration different from shown in Fig. 2.For example, further including BMC in server 10.In another example server 10 Further include multiple ports.
Hardware, software, or its combination realization may be used in each component shown in Fig. 2.
The realization structure of communication equipment 20 can be with reference chart 2, compared with the server 10 in Fig. 2, and communication equipment 20 can be with Do not include BMC, for being not repeated explanation in the realization structure disclosure of communication equipment 20.
The disclosure also provides a kind of computer readable storage medium, including computer program.The computer program operation When control the computer readable storage medium where server 10 execute following message transmitting method.
Referring to Fig. 3, server 10 realizes message transmissions by following steps.
Step S11, server 10 monitor the working condition of the management mouth of the BMC.
The management mouth of BMC refers to the port that data transmission between BMC and external communication device 20 is realized on server 10, example Such as, the management mouth of BMC can be the network interface of server 10, such as network interface card (Network Interface Card, NIC) interface.
In the present embodiment, the management mouth of BMC both can be only to be connect with BMC, the only dedicated management as the management of BMC Mouthful, or BMC can be connected, it also can be with the Sharing Management mouth for the host communication installed on server 10.
Step S12, if the management mouth UP, server 10 by the management mouth by the protocol massages of configuration be sent to The communication equipment 20 that the server 10 communicates to connect, the protocol massages carry preset identification information, so that described logical Believe that equipment 20 according to the protocol massages, sets the port being connect with the management mouth on the communication equipment 20 to spanning tree Agreement STP edge ports.
Monitor that the protocol massages of configuration are then sent to corresponding communication equipment 20, the protocol massages of configuration by management mouth UP In carry preset identification information.Wherein, carrying the protocol massages of preset identification information can be pre-configured with and store In server 10, monitor that the protocol massages are sent to corresponding communication equipment 20 by management mouth UP by managing mouth again. Regeneration it can carry the protocol massages of preset identification information after monitoring management mouth UP and be sent to corresponding communication Equipment 20, the present embodiment is not restricted this.
Wherein, carrying the protocol massages of preset identification information, there are many format and generating modes.For example, can configure Type in the protocol massages of the TLV formats is set as preset by the protocol massages of preset kind/length/value TLV formats Parameter sets the value in the protocol massages of the TLV formats to the corresponding MAC Address of the BMC.In another example can be in BMC Middle realization Link Layer Discovery Protocol (Link Layer Discovery Protocol, LLDP), correspondingly, by TLV formats LLDP messages are as the protocol massages for carrying preset identification information.In another example protocol massages can be generated, and in agreement report It is inserted into preset identification information in the heading of text.
Preset identification information can there are many, for example, can be setting field, setup parameter etc..
Optionally, in the disclosure, it further include BMC pairs in the protocol massages for carrying preset identification information configured The MAC Address answered, so that the communication equipment 20 improves, destination address is the MAC Address or source address is the MAC The processing priority of the message of location.
It is alternatively possible to only when the working condition for managing mouth is switched to UP by Down, just by managing mouth by configuration Protocol massages are sent to corresponding communication equipment 20.It can also be when the working condition for managing mouth be UP, by setting time interval The protocol massages of configuration are sent to corresponding communication equipment 20, the present embodiment is not restricted this.
In the disclosure, step S11 and step S12 can be executed by the BMC in server 10.
Referring to Fig. 4, communication equipment 20 realizes message transmissions by following steps.
Step S21, communication equipment 20 receive the protocol massages of the transmission of the server 10.
Whether step S22, communication equipment 20 parse the protocol massages and judge in the protocol massages to include preset Identification information executes step S25 if including the preset identification information, if not including the preset identification information, by institute Protocol massages are stated normally to be handled.
Step S25 sets the port that the protocol massages are received on the communication equipment 20 to the sides Spanning-Tree Protocol STP Acies mouth.
It can be previously stored with preset identification information in communication equipment 20, receive the protocol massages of the transmission of server 10 Afterwards, communication equipment 20 is by judging in protocol massages whether including preset identification information whether to execute step to judge to execute S25.Since the protocol massages including preset identification information are that server 10 is sent in the management mouth UP of BMC, thus, lead to Letter equipment 20 will receive the agreement after judging that the protocol massages received include preset identification information on communication equipment 20 The port of message is set as Spanning-Tree Protocol STP edge ports, it can be ensured that is connect with the management mouth of BMC on communication equipment 20 Port will not be blocked, so that it is guaranteed that when the management mouth UP of BMC, can carry out reliable communication with communication equipment 20.
If only preset mark just will be carried by managing mouth when the working condition for managing mouth is switched to UP by Down The protocol massages of information are sent to communication equipment 20, will be connect due to receiving the protocol massages to communication equipment 20 from communication equipment 20 Receiving the ports of the protocol massages, to be set as the Spanning-Tree Protocol STP edge port used times shorter, for example, the used time is less than under normal circumstances One second so that manage mouth working condition UP is switched to by Down after, BMC can be realized immediately and communication equipment 20 substantially Data interaction, it is ensured that the reliability with the relevant message transmissions of BMC.
If the working condition for managing mouth is UP, the agreement of preset identification information can will be carried by setting time interval Message is sent to communication equipment 20, and communication equipment 20 can set the port for receiving the protocol massages to the sides Spanning-Tree Protocol STP Acies mouth, if after communication equipment 20 receives the protocol massages for carrying preset identification information again, judgement obtain incited somebody to action The port for receiving the protocol massages is set as Spanning-Tree Protocol STP edge ports, then keeps that the port of the protocol massages will be received It is set as the setting of Spanning-Tree Protocol STP edge ports.
In the disclosure, sets port to Spanning-Tree Protocol STP edge ports, be equivalent on port and close STP.
In view of the management mouth of BMC may be that can connect BMC, can be also total to the host communication installed on server 10 Management mouth is enjoyed, when the management mouth of BMC is Sharing Management mouth, the message pair of the message and the transmission of 10 host of server of BMC transmission It is the same port on communication equipment 20 to answer so that the message of BMC transmission and the message of 10 host of server transmission can be total to Bandwidth is enjoyed, and flow used in the message of 10 host of server transmission is typically much deeper than flow used in the message of BMC transmission, is communicating Equipment 20 does not carry out the case where distribution of bandwidth automatically, if generation network congestion may cause BMC access unstable or even cannot It accesses.In order to improve the problem, optionally, in the disclosure, what is configured carries the protocol massages of preset identification information In further include the corresponding MAC Address of the BMC.Communication equipment 20 is if it is determined that the protocol massages include the preset mark Information also executes following steps.
Communication equipment 20 obtains the MAC Address that the protocol massages include, and it is institute that communication equipment 20, which improves destination address, MAC Address or source address are stated as the processing priority of the message of the MAC Address.
Wherein, it is the corresponding MAC Address of BMC to carry the MAC Address in the protocol massages of preset identification information.
Improve processing priority mode include but not limited to:By destination address be the MAC Address or source address is The processing priority of the message of the MAC Address is set as highest, allows User Defined service quality (Quality of Service, Qos) etc..
Since BMC can add source MAC of the MAC Address of BMC as message in the message of transmission, it is sent to BMC Message in target MAC (Media Access Control) address of the MAC Address as message added with BMC, pass through the adjustment of priority, it can be ensured that with BMC relevant " management message " can obtain priority processing, so that it is guaranteed that with the relevant Message processing reliabilities of BMC.
Optionally, communication equipment 20 is additionally operable to execute following steps.
Communication equipment 20 monitors the working condition of the port, if the port Down, deletion sets the port to The setting of STP edge ports;It is the MAC Address or the message that source address is the MAC Address to delete and improve destination address Processing priority setting.
The monitoring of communication equipment 20 receives the port (end communicated with BMC for the protocol massages for carrying preset identification information Mouthful) working condition characterize the already off communication connection with BMC in the port if port Down, disconnect with BMC's After communication connection, original setting on the port is deleted, it, will not be because being directed to when in order to the port and other equipment communication connection The existing setting of BMC influences subsequent normal operation.
In order to more clearly illustrate the message transmissions flow in the disclosure, by taking following scenes as an example, to the reality of the disclosure Existing mode is illustrated.
Assuming that the management mouth of the BMC in server is that can connect BMC, it also can be with the host communication installed on server Sharing Management mouth, the host in server is Host, and Host is considered as the host CPU (Central of server Processing Unit, CPU) and server communication connection communication equipment be interchanger.Preset identification information is setting TLV.
The disclosure illustrates the principle of Sharing Management mouth by taking scene shown in Fig. 5 as an example.Wherein, NIC (Network Interface Card) be network chip, Port0 is Sharing Management mouth, and NIC and BMC pass through simplify the media independent interface (Reduced Media Independent Interface, RMII) is connected, and NIC is also connected with Host, and message enters Port0 When, NIC distinguishes message according to the target MAC (Media Access Control) address of message, and the message that target MAC (Media Access Control) address is belonged to BMC is sent to Target MAC (Media Access Control) address is belonged to the message up sending of Host to Host by BMC.NIC can also include other ports, such as Port1, Port2 Deng.
Wherein, NIC and Host can pass through high speed serialization computer expansion bus standard (peripheral component Interconnect express, PCI-Express) communication connection, NIC and Host can pass through NC-SI (Network Controller Sideband Interface) communication connection.
When in view of using Sharing Management mouth, there are following problems:When operating system on Host is restarted, it can reinitialize NIC chips, when NIC chip initiations, physical layer PHY (the also referred to as Physical Layer) meetings of server end and peer switches PHY hold consultation, lead to Link UP/Down between server and interchanger.And loop is generally all in order to prevent on interchanger Spanning-Tree Protocol (Spanning Tree Protocol, STP) can be opened, according to STP, after port UP/Down, can be recalculated The topology of network has certain time length, such as 30s during this, and STP can fall port block in the duration, causes to have Management connection disconnect, need to log in again, to influence after Sharing Management mouth UP message transmissions between BMC and interchanger Reliability.In addition, when using Sharing Management mouth, correspond on interchanger with the relevant messages of BMC and with the relevant messages of Host The same port can share bandwidth, the stream with the relevant messages of BMC is typically much deeper than with the flow of the relevant messages of Host Amount, and interchanger will not carry out these flows automatically the distribution of bandwidth, lead to that BMC may be caused to access shakiness when network congestion It is fixed even to access.
In order to improve the above problem, inventor carries out following thinking, for example, in order to ensure message between BMC and interchanger The reliability of transmission, using the NIC chips with Keep Phy Link UP functions, to when reinitializing NIC chips It is UP that can keep port Link states, but it has been investigated that, there is the chip of many mainstreams not support the function, such as Intel X550 and X710 etc. do not support Keep Phy Link UP functions, cause this kind of solution applicability limited.In another example In order to ensure the reliability of message transmissions between BMC and interchanger, the STP or setting STP port that close exchanger side are side The time-out time of setting is arranged in acies mouth in BMC, and when port, Down falls then within the time-out time of setting when UP, really Protecting port connection will not be aging.But it has been investigated that, network loop may be caused after Close All STP, and need hand Work designated switch port is the edge port of STP protocol, and configuration is inconvenient, and each port connected with server is required for referring to It is fixed, and if port purposes change, it is also necessary to change, when wrong port may also can cause network loop, applicability not high. For another example being remained able to by consistent access in order to ensure even if network congestion BMC occurs, the relevant reports of BMC can be given manually Text and different Qos strategies are configured from the relevant messages of Host, the priority of the flow with the relevant messages of BMC is improved, but It is to be also required to manual configuration Qos strategies in this way, configuration is inconvenient, and needs to change interchanger when replacement server The configuration of Qos strategies, applicability are to be improved.
In view of this, even if the disclosure provides a kind of NIC chips being used without Keep Phy Link UP functions, in weight Also it is UP that port Link states can be kept when new initialization NIC chips, and be may insure and the relevant Message Service quality of BMC Transmission plan.Scheme realizes that process is as follows.
It realizes server based on Link Layer Discovery Protocol (Link Layer Discovery Protocol, LLDP) and hands over That changes planes is mutually distinguishable, and LLDP is one and realizes the agreement that the network equipment is mutually distinguishable, and provides a kind of link layer hair of standard Existing mode.By in the port that the network equipment is connected with each other, such as Sharing Management mouth and interchanger and the Sharing Management of server Mutually send LLDP protocol massages on the port of mouthful connection, can by the information of local device, as unique ability, management address, Device identification, port-mark etc. are organized into different TLV (Type/Length/Value, type/length/value), and encapsulate LLDP The neighbours direct-connected with oneself are distributed in message, to realize that two equipment are mutually distinguishable.It should be appreciated that passing through altogether in server When enjoying management mouth to interchanger transmission message, for server, server is above-mentioned local device.Correspondingly, it is exchanging When machine sends message by port to server, for interchanger, interchanger is above-mentioned local device.
Fig. 6 is please referred to, if the Sharing Management mouth Port0 of server is connect with switch port Port3, interchanger connects It is connected to management net and service network, and corresponding management message is netted in management and service message corresponding with service network passes through port Port3 is sent to server, when Sharing Management mouth Port0 receives message, by the different target MAC (Media Access Control) address of message by message Be distinguished into service message or the management message of BMC, if it is determined that message be service message then on send to Host, if it is determined that message is Message is managed, then is sent to BMC.
LLDP agreements are realized in BMC, and when Sharing Management mouth Port0 works, LLDP messages are sent to interchanger, The TLV that mark Sharing Management mouth is carried in LLDP messages realizes that process is as follows.
Sharing Management mouth Port0 is connected with the ports interchanger Port3, STP and LLDP agreements, BMC are opened on interchanger The state for monitoring Sharing Management mouth Port0, as Sharing Management mouth Port0UP, BMC is set by the Port0 transmissions of Sharing Management mouth Determine the LLDP messages of TLV.
Fig. 7 is please referred to, present disclose provides the achievable modes of wherein TLV formats.
Wherein TYPE uses the type reserved in LLDP agreements, can flexibly set, such as can be set as 121, Value words Section inserts MAC Address corresponding with BMC, such as a0-d3-c1-f1-22-1e.In the disclosure, server includes BMC and Host, BMC It is corresponding with MAC Address respectively with Host, is MAC Address corresponding with BMC in Value fields filling.
Interchanger receives the LLDP messages of the TLV equal to 121 with TYPE, then identifies the port Port3 for receiving message For the port of Connection Service device Sharing Management mouth Port0, interchanger recognizes the port Port3 of connection Sharing Management mouth Port0 Afterwards, it sets port Port3 to STP edge ports, therefore port Port3 needs not move through the obstruction of 30s, can receive and dispatch at once Message, so that it is guaranteed that the reliability with the relevant message transmissions of BMC.
Interchanger identifies MAC Address corresponding with BMC from the LLDP messages of the TLV with TYPE equal to 121, improves The priority of the message of the MAC Address ensures the flow bandwidth with the relevant messages of BMC.Improving the mode of priority can be The strategy of acquiescence is issued, which is that the message of MAC Address corresponding with BMC is put into the team of highest priority by destination address Row.Can also be the Qos strategies for allowing user configuration different.
When interchanger monitors port Port3Down, interchanger deletes the LLDP neighbours under the Port3 of port, by STP Edge port configuration is deleted, and the Qos strategies issued on the Port3 of port are deleted.So that it is guaranteed that port Port3 connection other equipments Afterwards, the normal work of interchanger is not influenced.
Fig. 8 is please referred to, based on similarly conceiving with above-mentioned message transmitting method, the disclosure additionally provides a kind of message Transmitting device, is applied to server 10, and the server 10 includes baseboard management controller BMC, the message transmitting device packet It includes:Monitoring module 31 and message sending module 32.
Wherein, monitoring module 31 is used to monitor the working condition of the management mouth of the BMC.
Since monitoring module 31 is similar with the realization principle of step S11 in Fig. 3, thus do not illustrate more herein.
If message sending module 32 is used for the management mouth UP, the protocol massages of configuration are sent to by the management mouth The communication equipment being connect with the server communication, the protocol massages carry preset identification information, so that the communication Equipment sets the port being connect with the management mouth on the communication equipment to Spanning-Tree Protocol STP edge ports.
Since message sending module 32 is similar with the realization principle of step S12 in Fig. 3, thus do not illustrate more herein.
Optionally, in the protocol massages of configuration further include the corresponding MAC Address of the BMC, so that the communication is set The standby processing priority for improving the message that destination address is the MAC Address or source address is the MAC Address.
Fig. 9 is please referred to, based on similarly conceiving with above-mentioned message transmitting method, the disclosure additionally provides a kind of message Transmitting device, is applied to communication equipment 20, and message transmitting device includes:Receiving module 41 and processing module 42.
Wherein, receiving module 41 is used to receive the protocol massages that the server is sent.
Since receiving module 41 is similar with the realization principle of step S21 in Fig. 4, thus do not illustrate more herein.
Whether processing module 42 is for parsing the protocol massages and judging in the protocol massages to include preset mark Information makes a living the port that the protocol massages are received on communication equipment setting if including the preset identification information At tree protocol STP edge ports.
Since processing module 42 and step S22 in Fig. 4 are similar with the realization principle of step S23, thus do not make herein more Explanation.
Optionally, the processing module 42 is additionally operable to if it is determined that the protocol massages include the preset mark letter Breath then obtains the MAC Address that the protocol massages include, and it is institute to improve destination address as the MAC Address or source address State the processing priority of the message of MAC Address.
Optionally, the message transmitting device further includes:Monitoring module 43 and removing module 44.
Wherein, monitoring module 43 is used to monitor the working condition of the port.
If removing module 44 is used for the port Down, the setting for setting the port to STP edge ports is deleted;It deletes Except the setting for the processing priority for improving the message that destination address is the MAC Address or source address is the MAC Address.
Message transmitting method in the disclosure and device can be to connecting after the management mouth UP of BMC with server communication Communication equipment sends the protocol massages of configuration, and protocol massages carry preset identification information so that communication equipment will be with management The port of mouth connection is set as Spanning-Tree Protocol STP edge ports, to avoid the port being connect with management mouth on communication equipment It is blocked so that after the management mouth UP of BMC, can comparatively fast realize the management network-in-dialing of BMC.Further include in the protocol massages of configuration The corresponding MAC Address of BMC, by improving, destination address is the MAC Address to communication equipment or source address is the MAC Address The processing priority of message so that with BMC relevant messages can priority processing, so that it is guaranteed that the management network connection of BMC Service quality, it is convenient to realize, with strong applicability.
In several embodiments that the disclosure is provided, it should be understood that disclosed device and method can also pass through Other modes are realized.Device and method embodiment described above is only schematical, for example, the flow chart in attached drawing The device of multiple embodiments according to the present invention, the system in the cards of method and computer program product are shown with block diagram Framework, function and operation.In this regard, each box in flowchart or block diagram can represent a module, program segment or generation A part for code, the part of the module, section or code include one or more for realizing defined logic function Executable instruction.It should also be noted that at some as in the realization method replaced, the function that is marked in box can also be with Occur different from the sequence marked in attached drawing.For example, two continuous boxes can essentially be basically executed in parallel, they Sometimes it can also execute in the opposite order, this is depended on the functions involved.It is also noted that block diagram and or flow chart In each box and the box in block diagram and or flow chart combination, the special of function or action as defined in executing can be used Hardware based system is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each function module in each embodiment of the present invention can integrate to form an independent portion Point, can also be modules individualism, can also two or more modules be integrated to form an independent part.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be People's computer, electronic equipment or network equipment etc.) execute all or part of step of each embodiment the method for the present invention Suddenly.And storage medium above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), is deposited mobile hard disk at random The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic disc or CD. It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability Contain, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device. In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element Process, method, article or equipment in there is also other identical elements.
The foregoing is merely the alternative embodiments of the present invention, are not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (11)

1. a kind of message transmitting method is applied to server, the server includes baseboard management controller BMC, and feature exists In, the method includes:
Monitor the working condition of the management mouth of the BMC;
If the management mouth UP, the protocol massages of configuration are sent to by the management mouth and are connect with the server communication Communication equipment, the protocol massages carry preset identification information so that the communication equipment by the communication equipment with The port of the management mouth connection is set as Spanning-Tree Protocol STP edge ports.
2. message transmitting method according to claim 1, which is characterized in that further include institute in the protocol massages of configuration The corresponding MAC Address of BMC is stated, destination address is the MAC Address or source address is described so that the communication equipment improves The processing priority of the message of MAC Address.
3. message transmitting method according to claim 2, which is characterized in that the method further includes configuration protocol message Step, the step include:
Type in the protocol massages of the TLV formats is arranged the protocol massages for configuring preset kind/length/value TLV formats For preset parameter, it sets the value in the protocol massages of the TLV formats to the corresponding MAC Address of the BMC.
4. a kind of message transmitting method is applied to the communication equipment with server communication connection, which is characterized in that the method packet It includes:
Receive the protocol massages that the server is sent;
It parses the protocol massages and judges in the protocol massages whether to include preset identification information, if including described default Identification information, set the port that the protocol massages are received on the communication equipment to Spanning-Tree Protocol STP edge ports.
5. message transmitting method according to claim 4, which is characterized in that if it is determined that the protocol massages include described Preset identification information, the method further include:
Obtain the MAC Address that the protocol massages include;
Improve the processing priority for the message that destination address is the MAC Address or source address is the MAC Address.
6. message transmitting method according to claim 5, which is characterized in that the method further includes:
Monitor the working condition of the port;
If the port Down, the setting for setting the port to STP edge ports is deleted;It is institute to delete and improve destination address State the setting of MAC Address or source address for the processing priority of the message of the MAC Address.
7. a kind of message transmitting device is applied to server, the server includes baseboard management controller BMC, and feature exists In the message transmitting device includes:
Monitoring module, the working condition of the management mouth for monitoring the BMC;
The protocol massages of configuration are sent to and institute if being used for the management mouth UP by the management mouth by message sending module The communication equipment of server communication connection is stated, the protocol massages carry preset identification information, so that the communication equipment Set the port being connect with the management mouth on the communication equipment to Spanning-Tree Protocol STP edge ports.
8. message transmitting device according to claim 7, which is characterized in that further include institute in the protocol massages of configuration The corresponding MAC Address of BMC is stated, destination address is the MAC Address or source address is described so that the communication equipment improves The processing priority of the message of MAC Address.
9. a kind of message transmitting device is applied to the communication equipment with server communication connection, which is characterized in that the message passes Defeated device includes:
Receiving module, the protocol massages sent for receiving the server;
Processing module, for parsing the protocol massages and judging in the protocol massages whether to include preset identification information, If including the preset identification information, it sets the port that the protocol massages are received on the communication equipment to spanning tree association Discuss STP edge ports.
10. message transmitting device according to claim 9, which is characterized in that the processing module is additionally operable to if it is determined that institute It includes the preset identification information to state protocol massages, then obtains the MAC Address that the protocol massages include, and improves purpose Address is the processing priority of the MAC Address or message that source address is the MAC Address.
11. message transmitting device according to claim 10, which is characterized in that the message transmitting device further includes:
Monitoring module, the working condition for monitoring the port;
Removing module deletes the setting for setting the port to STP edge ports if being used for the port Down;Deletion carries High destination address is the setting of the processing priority of the MAC Address or message that source address is the MAC Address.
CN201810249365.6A 2018-03-23 2018-03-23 Message transmitting method and device Active CN108521341B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810249365.6A CN108521341B (en) 2018-03-23 2018-03-23 Message transmitting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810249365.6A CN108521341B (en) 2018-03-23 2018-03-23 Message transmitting method and device

Publications (2)

Publication Number Publication Date
CN108521341A true CN108521341A (en) 2018-09-11
CN108521341B CN108521341B (en) 2019-09-13

Family

ID=63434224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810249365.6A Active CN108521341B (en) 2018-03-23 2018-03-23 Message transmitting method and device

Country Status (1)

Country Link
CN (1) CN108521341B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109361781A (en) * 2018-10-31 2019-02-19 紫光华山信息技术有限公司 Message forwarding method, device, server, system and storage medium
CN112866118A (en) * 2019-11-12 2021-05-28 北京华为数字技术有限公司 Method, device and storage medium for detecting port capability information of network equipment
CN113411220A (en) * 2021-06-30 2021-09-17 新华三技术有限公司 Method and device for configuring spanning tree protocol edge port
CN113708957A (en) * 2021-08-03 2021-11-26 中移(杭州)信息技术有限公司 Configuration method, terminal device and medium for server BMC

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022393A (en) * 2007-03-20 2007-08-22 杭州华为三康技术有限公司 Fast transferring method and exchanger
CN101616163A (en) * 2009-07-27 2009-12-30 中兴通讯股份有限公司 Precise time transfer protocol message processing method and device
US20140098706A1 (en) * 2012-10-09 2014-04-10 Hitachi, Ltd. Communication control equipment
CN105897623A (en) * 2016-03-25 2016-08-24 杭州昆海信息技术有限公司 Data transmission method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022393A (en) * 2007-03-20 2007-08-22 杭州华为三康技术有限公司 Fast transferring method and exchanger
CN101616163A (en) * 2009-07-27 2009-12-30 中兴通讯股份有限公司 Precise time transfer protocol message processing method and device
US20140098706A1 (en) * 2012-10-09 2014-04-10 Hitachi, Ltd. Communication control equipment
CN105897623A (en) * 2016-03-25 2016-08-24 杭州昆海信息技术有限公司 Data transmission method and apparatus

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109361781A (en) * 2018-10-31 2019-02-19 紫光华山信息技术有限公司 Message forwarding method, device, server, system and storage medium
CN109361781B (en) * 2018-10-31 2021-07-06 新华三信息技术有限公司 Message forwarding method, device, server, system and storage medium
CN112866118A (en) * 2019-11-12 2021-05-28 北京华为数字技术有限公司 Method, device and storage medium for detecting port capability information of network equipment
CN112866118B (en) * 2019-11-12 2022-09-02 北京华为数字技术有限公司 Method, device and storage medium for detecting port capability information of network equipment
CN113411220A (en) * 2021-06-30 2021-09-17 新华三技术有限公司 Method and device for configuring spanning tree protocol edge port
CN113708957A (en) * 2021-08-03 2021-11-26 中移(杭州)信息技术有限公司 Configuration method, terminal device and medium for server BMC

Also Published As

Publication number Publication date
CN108521341B (en) 2019-09-13

Similar Documents

Publication Publication Date Title
CN108521341B (en) Message transmitting method and device
US10986171B2 (en) Method for unified communication of server, baseboard management controller, and server
US20060280195A1 (en) Systems and methods for providing dedicated or shared network interface functionality via a single MAC
CN103534992A (en) Method, switch, server, and system for transmitting an establish connection request
US10587535B2 (en) Adding a network port to a network interface card via NC-SI embedded CPU
US9807033B2 (en) Neighbor discovery using address registration protocol over ELMI
CN108667638A (en) A kind of network service configuration method and network management device
CN111726293B (en) Message transmission method and device
CN104821925A (en) Data interaction method, system and device
US20200084304A1 (en) Auto-negotiation over extended backplane
CN104022972A (en) Ethernet switch configuration method and switch applying the same
EP3086508B1 (en) Fiber-to-the-distribution point device and communication method therefor
CN101958888A (en) Configuration method of port negotiation capacity, communication port and communication device
CN108540551A (en) A kind of acquisition methods of server node information and obtain system
CN107682162A (en) Electronic equipment, network share method and device
CN111585791B (en) Data synchronization configuration method, system and storage medium
CN106169982B (en) Method, device and system for processing expansion port
Spurgeon et al. Ethernet switches: An introduction to network design with switches
CN109039754A (en) A kind of management method and device of the network equipment
Cisco Campus Infrastructure Considerations
Cisco Troubleshooting LAN Switching Environments
US20210157384A1 (en) Assigning power sources
KR100636390B1 (en) remote administration method for network device
CN113132188B (en) Communication method and network equipment
CN111314198B (en) Method and equipment for setting port IP of white box switch

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310000 11/F, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Xinhua Sanxin Information Technology Co., Ltd.

Address before: 310000 11/F, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Applicant before: Huashan Information Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant