CN108521341B - Message transmitting method and device - Google Patents

Message transmitting method and device Download PDF

Info

Publication number
CN108521341B
CN108521341B CN201810249365.6A CN201810249365A CN108521341B CN 108521341 B CN108521341 B CN 108521341B CN 201810249365 A CN201810249365 A CN 201810249365A CN 108521341 B CN108521341 B CN 108521341B
Authority
CN
China
Prior art keywords
protocol massages
message
port
bmc
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810249365.6A
Other languages
Chinese (zh)
Other versions
CN108521341A (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
New H3C 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 New H3C Information Technologies Co Ltd filed Critical New H3C 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

Landscapes

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

Abstract

The disclosure provides a kind of message transmitting method and device, is related to Internet technical field.Method is applied to server, and the server includes baseboard management controller BMC, which comprises monitors 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 connecting with the server communication by the management mouth, the protocol massages carry preset identification information, so that the port connecting on the communication equipment with the management mouth is set Spanning-Tree Protocol STP edge port by the communication equipment.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 technique
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.
Summary of the invention
In view of this, the disclosure is designed to provide a kind of message transmitting method and device.
In a first aspect, being applied to server, the server includes substrate present disclose provides a kind of message transmitting method Management Controller BMC, which comprises
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 connecting with the management mouth is set as Spanning-Tree Protocol STP edge port.
It optionally, further include the corresponding MAC Address of the BMC in the protocol massages of configuration, so that the communication is set It is standby improve destination address be the MAC Address or source address be the MAC Address message processing priority.
Second aspect, the disclosure provide a kind of message transmitting method, applied to the communication equipment communicated to connect with server, The described 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 The port for receiving the protocol massages on the communication equipment is set the edge Spanning-Tree Protocol STP by preset identification information Port.
Optionally, if it is determined that including the preset identification information in the protocol massages, the method also includes:
Obtain the MAC Address for including in the protocol massages;
Improve destination address be the MAC Address or source address be the MAC Address message processing priority.
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 connecting with the server communication, the protocol massages carry preset identification information, so that the communication The port connecting on the communication equipment with the management mouth is set Spanning-Tree Protocol STP edge port by equipment.
It optionally, further include the corresponding MAC Address of the BMC in the protocol massages of configuration, so that the communication is set It is standby improve destination address be the MAC Address or source address be the MAC Address message processing priority.
Fourth aspect, the disclosure provide a kind of message transmitting device, applied to the communication equipment communicated to connect with server, 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 port.
Optionally, the processing module be also used to if it is determined that in the protocol massages include the preset identification information, The MAC Address for including in the protocol massages is then obtained, it is described for improving 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 configuration protocol massages, 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 port, to avoid the end connecting on communication equipment with management mouth It mouthful is blocked, and then ensures the reliability of the message transmissions between communication equipment after the management mouth UP of BMC.
Further, message transmitting method and device that the disclosure provides further include BMC corresponding in the protocol massages of configuration MAC Address, communication equipment by improve destination address be the MAC Address or source address be the MAC Address message place Manage priority, it is ensured that message relevant to BMC can priority processing, caused by avoiding because of network congestion message relevant to 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 is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
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 figure for message transmitting method that the disclosure provides.
Fig. 7 is a kind of TLV form schematic diagram 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- server;11- memory;12- processor;13- network module;20- communication equipment 31- condition monitoring Module;32- message sending module;41- receiving module;42- processing module;43- monitoring module;44- removing module.
Specific embodiment
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 dedicated Management mouth is only connect with BMC, is only used as the management of BMC, is used for transmission message relevant to 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 of message transmissions relevant to BMC Divide important.
Through inventor the study found that the communication between BMC and communication equipment is primarily present following problems, if the master of server Machine restarting, physical layer (Physical Layer, the PHY) meeting of server end and the communication equipment for communicating with connection PHY holds consultation, and will 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 meeting is based in the duration The port block connecting on communication equipment with server is fallen, causes existing management connection to disconnect, needs to log in again.? During port block, message relevant to BMC can not be transmitted between communication equipment and server, be affected and BMC phase The reliability of the message transmissions of pass.
For defect present in above scheme, be inventor being obtained after practicing 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 connecting 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 connecting in equipment with management mouth is set as STP edge port, so that the port connecting on communication equipment with management mouth is not Be blocked, so ensure BMC management mouth UP after between communication equipment message transmissions reliability.
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 mentioning 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 Under every other embodiment obtained, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
As shown in Figure 1, be 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 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 thereby executing various functions With and data processing, i.e., realization 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 It 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 disclosed in the disclosure and logic diagram. General processor can be microprocessor or the processor is also possible to 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 It further include multiple ports.
Each component shown in Fig. 2 can be realized using hardware, software, or its combination.
The realization structure of communication equipment 20 can refer to Fig. 2, and compared with the server 10 in Fig. 2, communication equipment 20 can be with It does 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 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 spanning tree for the port connecting on the communication equipment 20 with the management mouth Agreement STP edge port.
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, the protocol massages for carrying 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 managing mouth again by management mouth UP.? 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 to this with no restriction.
Wherein, carrying the protocol massages of preset identification information, there are many format and generating modes.For example, can configure Preset kind/length/value TLV format protocol massages, set preset for the type in the protocol massages of the TLV format The value in the protocol massages of the TLV format is set the corresponding MAC Address of the BMC by parameter.In another example can be in BMC Middle realization Link Layer Discovery Protocol (Link Layer Discovery Protocol, LLDP), correspondingly, by TLV format LLDP message is as the protocol massages for carrying preset identification information.In another example protocol massages can be generated, and in agreement report Preset identification information is inserted into the heading of text.
Preset identification information can there are many, for example, can be setting field, setup parameter etc..
It optionally, in the disclosure, 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 for 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 to this with no restriction.
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 that the server 10 is sent.
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 not including the preset identification information, by institute if including the preset identification information Protocol massages are stated normally to be handled.
The port for receiving the protocol massages on the communication equipment 20 is set the side Spanning-Tree Protocol STP by step S25 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 to include whether preset identification information to determine to execute executes step S25.Since the protocol massages for including preset identification information are that server 10 is sent in the management mouth UP of BMC, thus, lead to Letter equipment 20 is in the protocol massages for determining to receive including will receive the agreement on communication equipment 20 after preset identification information The port of message is set as Spanning-Tree Protocol STP edge port, it can be ensured that connect on communication equipment 20 with the management mouth of BMC Port will not be blocked, so that it is guaranteed that can carry out reliable communication with communication equipment 20 when the management mouth UP of BMC.
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 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 time shorter, for example, the used time is less than under normal circumstances One second, so that BMC can be realized immediately and communication equipment 20 substantially after the working condition of management mouth is switched to UP by Down Data interaction, it is ensured that the reliability of message transmissions relevant to 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 side Spanning-Tree Protocol STP for the port for receiving the protocol massages 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 port, then keeps that the port of the protocol massages will be received It is set as the setting of Spanning-Tree Protocol STP edge port.
In the disclosure, Spanning-Tree Protocol STP edge port is set by port, is equivalent on port and closes STP.
In view of the management mouth of BMC may can also be total to can to connect BMC with the host communication installed on server 10 Management mouth is enjoyed, when the management mouth of BMC is Sharing Management mouth, the message of BMC transmission and the message pair of 10 host of server transmission Answering is the same port on communication equipment 20, 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 network congestion occurs, to may cause BMC access unstable or even cannot Access.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 include the preset mark in the protocol massages Information, also execution following steps.
Communication equipment 20 obtains the MAC Address for including in the protocol massages, 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, carrying the MAC Address in the protocol massages of preset identification information is the corresponding MAC Address of BMC.
The mode for improving processing priority includes but is 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 the customized service quality of user (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 Relevant " management message " the available priority processing of BMC, so that it is guaranteed that Message processing reliability relevant to BMC.
Optionally, communication equipment 20 is also used 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 port;Deletion raising destination address is the MAC Address or source address is the message of the MAC Address Processing priority setting.
The monitoring of communication equipment 20 receives the port (end communicated with BMC for carrying the protocol massages of 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 setting that has of BMC influences subsequent normal operation.
In order to more clearly illustrate the message transmissions process 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 is illustrated the principle of Sharing Management mouth for the scene shown in Fig. 5.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) connection, NIC are also connected with Host, and message enters Port0 When, NIC distinguishes message according to the target MAC (Media Access Control) address of message, sends the message that target MAC (Media Access Control) address belongs to BMC 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 the operating system on Host is restarted, can reinitialize NIC chip, when NIC chip initiation, physical layer PHY (the also referred to as Physical Layer) meeting 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 connect and disconnect, need to log in again, thus message transmissions between BMC and interchanger after influencing Sharing Management mouth UP Reliability.In addition, message relevant to BMC and message relevant with Host correspond on interchanger when using Sharing Management mouth The same port can share bandwidth, the flow of message relevant to Host is typically much deeper than the stream of message relevant with BMC Amount, and interchanger will not carry out automatically the distribution of bandwidth to these flows, cause to may cause BMC 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 chip with Keep Phy Link UP function, thus when reinitializing NIC chip Being able to maintain port Link state is UP, 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 function, 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 for closing 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, it may cause network loop after all closing STP, and need hand Work designated switch port is the edge port of STP protocol, and configuration is inconvenient, and the port each connected with server requires to refer to It is fixed, and if port purposes change, it is also necessary to modify, when wrong port may also will lead to network loop, and applicability is not high. Even if the relevant report of BMC can be given manually for another example still being able in order to ensure network congestion BMC occurs by consistent access Text and message relevant to Host configure different Qos strategies, and the priority of the flow of message relevant to BMC is improved, but It is to be also required to manual configuration Qos strategy in this way, configuration is inconvenient, and needs to change interchanger when replacement server The configuration of Qos strategy, applicability are to be improved.
In view of this, even if the disclosure provides a kind of NIC chip for being used without Keep Phy Link UP function, in weight Also being able to maintain port Link state when new initialization NIC chip is UP, and may insure Message Service quality relevant to BMC Transmission plan.Scheme realizes that process is as follows.
Server is realized based on Link Layer Discovery Protocol (Link Layer Discovery Protocol, LLDP) and is handed 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 network equipment port interconnected, such as the 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 Enjoy management mouth to interchanger send message when, for server, server is above-mentioned local device.Correspondingly, it is exchanging When machine sends message to server by port, 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 agreement is realized in BMC, when Sharing Management mouth Port0 work, sends LLDP message to interchanger, The TLV that mark Sharing Management mouth is carried in LLDP message realizes that process is as follows.
Sharing Management mouth Port0 is connected with the port interchanger Port3, STP and LLDP agreement, BMC are opened on interchanger The state for monitoring Sharing Management mouth Port0, as Sharing Management mouth Port0UP, BMC is set by Sharing Management mouth Port0 transmission Determine the LLDP message of TLV.
Fig. 7 is please referred to, present disclose provides the achievable modes of wherein TLV format.
Wherein TYPE can flexibly be set using the type reserved in LLDP agreement, such as can be set as 121, Value word Section inserts MAC Address corresponding with BMC, such as a0-d3-c1-f1-22-1e.In the disclosure, server includes BMC and Host, BMC MAC Address has been respectively corresponded with Host, has been MAC Address corresponding with BMC in Value field filling.
Interchanger receives the LLDP message of the TLV with TYPE equal to 121, then identifies the port Port3 for receiving message For the port for connecting server Sharing Management mouth Port0, interchanger recognizes the port Port3 of connection Sharing Management mouth Port0 Afterwards, STP edge port is set by port Port3, therefore port Port3 needs not move through the obstruction of 30s, can received and dispatched at once Message, so that it is guaranteed that the reliability of message transmissions relevant to BMC.
Interchanger identifies MAC Address corresponding with BMC from the LLDP message with TLV of the TYPE equal to 121, improves The priority of the message of the MAC Address guarantees the flow bandwidth of message relevant to BMC.Improve priority mode can be The strategy of default is issued, which is that the message of MAC Address corresponding with BMC is put into the team of highest priority by destination address Column.It can also be tactful for the different Qos of permission user configuration.
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 strategy issued on the Port3 of port is deleted.So that it is guaranteed that port Port3 connection other equipment 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 connecting with the server communication, the protocol massages carry preset identification information, so that the communication The port connecting on the communication equipment with the management mouth is set Spanning-Tree Protocol STP edge port by equipment.
Since message sending module 32 is similar with the realization principle of step S12 in Fig. 3, thus do not illustrate more herein.
It optionally, further include the corresponding MAC Address of the BMC in the protocol massages of configuration, so that the communication is set It is standby improve destination address be the MAC Address or source address be the MAC Address message processing priority.
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 port.
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 also used to if it is determined that including the preset mark letter in the protocol massages Breath then obtains the MAC Address for including in the protocol massages, and improving destination address as the MAC Address or source address is institute State the processing priority of the message of MAC Address.
Optionally, the message transmitting device further include: 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 port is deleted;It deletes Except improve destination address be the MAC Address or source address be the MAC Address message processing priority setting.
Message transmitting method and device in the disclosure 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 port, to avoid the port connecting on communication equipment with management mouth It is blocked, so that can comparatively fast realize the management network-in-dialing of BMC after the management mouth UP 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, enables message priority processing relevant to BMC, 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 provided by the disclosure, 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 of code, a part of the module, section or code include one or more for realizing defined logic function Executable instruction.It should also be noted that function marked in the box can also be in some implementations as replacement Occur different from the sequence marked in attached drawing.For example, two continuous boxes can actually be basically executed in parallel, they Sometimes it can also execute in the opposite order, this depends on the function 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, can function or movement as defined in executing it is special Hardware based system is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
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 readable storage medium.Based on this understanding, technical solution 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 embodied 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 a 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, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk. It should be noted that, in this document, 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 for including a series of elements not only includes those elements, but also including 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 alternative embodiments of the 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, made any to 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, which comprises
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 port.
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 also includes configuration protocol messages Step, the step include:
Preset kind/length/value TLV format protocol massages are configured, the type in the protocol massages of the TLV format is arranged For preset parameter, the corresponding MAC Address of the BMC is set by the value in the protocol massages of the TLV format.
4. a kind of message transmitting method, applied to the communication equipment communicated to connect with server, 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 Spanning-Tree Protocol STP edge port for the port for receiving the protocol massages on the communication equipment.
5. message transmitting method according to claim 4, which is characterized in that if it is determined that including described in the protocol massages Preset identification information, the method also includes:
Obtain the MAC Address for including in the protocol massages;
Improve destination address be the MAC Address or source address be the MAC Address message processing priority.
6. message transmitting method according to claim 5, which is characterized in that the method also includes:
Monitor the working condition of the port;
If the port Down, the setting for setting the port to STP edge port is deleted;Deleting and improving destination address is institute MAC Address or source address are stated as the setting of 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 Spanning-Tree Protocol STP edge port is set by the port connecting on the communication equipment with the management mouth.
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, applied to the communication equipment communicated to connect with server, 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 setting spanning tree association for the port for receiving the protocol massages on the communication equipment including the preset identification information Discuss STP edge port.
10. message transmitting device according to claim 9, which is characterized in that the processing module is also used to if it is determined that institute Stating includes the preset identification information in protocol massages, then obtains the MAC Address for including in the protocol massages, improves purpose Address be the MAC Address or source address be the MAC Address message processing priority.
11. message transmitting device according to claim 10, which is characterized in that the message transmitting device further include:
Monitoring module, for monitoring the working condition of the port;
Removing module deletes the setting for setting the port to STP edge port if being used for the port Down;Deletion mentions High destination address be the MAC Address or source address be the MAC Address message processing priority setting.
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 CN108521341A (en) 2018-09-11
CN108521341B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109361781B (en) * 2018-10-31 2021-07-06 新华三信息技术有限公司 Message forwarding method, device, server, system and storage medium
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
CN113708957B (en) * 2021-08-03 2022-12-27 中移(杭州)信息技术有限公司 Configuration method, terminal device and medium for server BMC

Citations (3)

* 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
CN105897623A (en) * 2016-03-25 2016-08-24 杭州昆海信息技术有限公司 Data transmission method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5923430B2 (en) * 2012-10-09 2016-05-24 株式会社日立製作所 Communication control device

Patent Citations (3)

* 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
CN105897623A (en) * 2016-03-25 2016-08-24 杭州昆海信息技术有限公司 Data transmission method and apparatus

Also Published As

Publication number Publication date
CN108521341A (en) 2018-09-11

Similar Documents

Publication Publication Date Title
CN108521341B (en) Message transmitting method and device
CN1773992B (en) Communication traffic control rule generation methods and systems
CN104243210B (en) The method and system of remote access router administration page
US7512705B2 (en) Truncating data units
US8219713B2 (en) Method and system for a network controller based pass-through communication mechanism between local host and management controller
CN111654493B (en) Method, system, storage medium and electronic device for intercepting specified flow in Openstack
CN108667638A (en) A kind of network service configuration method and network management device
US9807033B2 (en) Neighbor discovery using address registration protocol over ELMI
CN101001177A (en) Single logical network interface for advanced load balancing and fail-over functionality
CN111464454B (en) Load sharing method and system for virtual BRAS (broadband remote Access Server) equipment in data center
WO2014183726A1 (en) Network management implementation method, network element devices and system
CN105915383A (en) Remote router configuration method
CN108551679A (en) Wireless device communication means based on LAN Mesh technologies and system
CN104160735B (en) Send out message processing method, transponder, message processor, message handling system
CN109039764A (en) A kind of network parameter configuration method of distributed memory system
CN104022972A (en) Ethernet switch configuration method and switch applying the same
CN109600436A (en) A kind of distribution iscsi service implementing method, system and relevant apparatus
CN108353027A (en) A kind of software defined network system for detecting port failure
CN106169982B (en) Method, device and system for processing expansion port
CN110830598B (en) Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
CN111585791A (en) Data synchronization configuration method, system and storage medium
CN112214258B (en) End-to-end capability benchmark test method and device based on software defined wide area network
CN111600795B (en) Virtual edge device establishing method, controller and server
Cisco Configuring Interfaces
Cisco Configuring Interfaces

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant