CN109361781A - Message forwarding method, device, server, system and storage medium - Google Patents
Message forwarding method, device, server, system and storage medium Download PDFInfo
- Publication number
- CN109361781A CN109361781A CN201811292902.1A CN201811292902A CN109361781A CN 109361781 A CN109361781 A CN 109361781A CN 201811292902 A CN201811292902 A CN 201811292902A CN 109361781 A CN109361781 A CN 109361781A
- Authority
- CN
- China
- Prior art keywords
- server
- arp request
- management mouth
- message
- forwarding
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
- H04L61/103—Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Abstract
The embodiment of the present application provides a kind of message forwarding method, device, server, system and storage medium, is related to field of communication technology.Method is applied to the server in the message forwarding system comprising multiple servers, the Sharing Management mouth of server is connect with an adjacent upper equipment, the dedicated management mouth of server is connect with adjacent next equipment, and method includes: the message to be forwarded that server obtains adjacent upper equipment transmission by Sharing Management mouth;Message to be forwarded is forwarded to adjacent next equipment by dedicated management mouth by server.Realize the normal forwarding to message, and the Sharing Management mouth due to server is connected with dedicated management mouth respectively at different equipment, so that port needed for the connection equipment of forwarding device can also be saved in message forwarding system, thus solves BMC and be managed the technical issues of needing to occupy forwarding device a large amount of port resource to server.
Description
Technical field
This application involves fields of communication technology, in particular to a kind of message forwarding method, device, server, system
And storage medium.
Background technique
BMC (Baseboard Management Controller, baseboard management controller) in server can be based on
IPMI (Intelligent Platform Management Interface, Intelligent Platform Management Interface) agreement is intelligently managed
Manage server.There are two types of the interfaces that BMC is supplied on server, is dedicated management mouth and Sharing Management mouth respectively.
Currently, can by server dedicated management mouth and Sharing Management mouth be all connected on access switch, realize BMC
Server is managed by the way that the connection of dedicated management mouth and Sharing Management mouth and forwarding device is intelligent.A machine is added
More than ten to twenties servers can be generally installed on frame, then need to occupy a to more than 40 ends more than 20 on forwarding device
Mouth resource cooperates BMC to be managed these servers to realize, causes the port resource of forwarding device to occupy serious.
Summary of the invention
The application is to provide a kind of message forwarding method, device, server, system and storage medium, effective solution
The technical issues of demand of the server admin to switch port resource cannot be effectively reduced in the prior art.
To achieve the goals above, embodiments herein is accomplished in that
In a first aspect, the embodiment of the present application provides a kind of message forwarding method, applied to the report comprising multiple servers
Server in literary repeater system, the Sharing Management mouth of the server are connect with an adjacent upper equipment, the server
Dedicated management mouth connect with adjacent next equipment, which comprises
The server obtains the message to be forwarded that an adjacent upper equipment is sent by the Sharing Management mouth;
The message to be forwarded is forwarded to described adjacent next set by the dedicated management mouth by the server
It is standby.
With reference to first aspect, in some implementations optionally, the method also includes:
If the link at the Sharing Management mouth disconnects, the server generates first of the MAC Address comprising itself
ARP request;
First ARP request is sent to described adjacent next set by the dedicated management mouth by the server
It is standby, so that the forwarding device is asked based on the first ARP of acquisition when adjacent next equipment is forwarding device
It asks, determines to the Sharing Management mouth and send message;Adjacent next equipment be server when, it is described it is adjacent under
One equipment generates the second ARP request of the MAC Address comprising itself based on first ARP request, and downwards described in forwarding
First ARP request and second ARP request.
With reference to first aspect, in some implementations optionally, the method also includes:
If the link at the Sharing Management mouth reverts to connection from disconnection, it includes self MAC that the server, which generates,
The third ARP request and the 4th ARP request of address;
When adjacent next equipment is forwarding device, the server abandons the third ARP request;And
The 4th ARP request is sent to an adjacent upper equipment by the dedicated management mouth;
When adjacent next equipment is server, the server passes through the third ARP request described
Dedicated management mouth is sent to adjacent next server, so that adjacent next server is based on the 3rd ARP
Request generates the 4th ARP request comprising own MAC address and forwards the third ARP request downwards;The server will also
The 4th ARP request that the 4th ARP request and adjacent next server that itself is generated are sent passes through described
Sharing Management mouth is transmitted to an adjacent upper equipment.
With reference to first aspect, in some implementations optionally, the method also includes:
If the link at the Sharing Management mouth of other servers disconnects, the server is obtained by the Sharing Management mouth
Obtain the first ARP request of the MAC Address comprising other servers that other servers generate;
The server is based on first ARP request, generates the second ARP request of the MAC Address comprising itself;
First ARP request and second ARP request are sent to by the server by the dedicated management mouth
Adjacent next equipment, so that the forwarding device is based on when adjacent next equipment is forwarding device
First ARP request and second ARP request obtained determines to the Sharing Management mouth and sends message;In the phase
When adjacent next equipment is server, adjacent next equipment forwards downwards first ARP request.
With reference to first aspect, in some implementations optionally, the server by first ARP request and
After second ARP request is sent to adjacent next equipment by the dedicated management mouth, the method is also wrapped
It includes:
The server will be forwarded to phase from the received message to be forwarded of the dedicated management mouth from the Sharing Management mouth
An adjacent upper equipment.
With reference to first aspect, in some implementations optionally, the method also includes:
When link at the Sharing Management mouth of other servers reverts to connection from disconnection, the server is obtained
The third ARP request of MAC Address comprising other servers;
The server generates the 4th ARP request of the MAC Address comprising itself based on the third ARP request, and leads to
It crosses the Sharing Management mouth and the 4th ARP request is sent to an adjacent upper equipment;
When next equipment is forwarding device, the server abandons the third ARP request;
When next equipment is server, the server is by the dedicated management mouth by the 3rd ARP
Request is forwarded to adjacent next equipment, so that sending the third ARP request under next equipment.
Second aspect, the embodiment of the present application provide a kind of apparatus for forwarding message, applied to the report comprising multiple servers
Server in literary repeater system, the Sharing Management mouth of the server are connect with an adjacent upper equipment, the server
Dedicated management mouth connect with adjacent next equipment, described device includes:
First message obtains module, obtains described adjacent upper one by the Sharing Management mouth for the server
The message to be forwarded that equipment is sent.
First packet forwarding module is forwarded the message to be forwarded by the dedicated management mouth for the server
To adjacent next equipment.
In conjunction with second aspect, in some implementations optionally, described device further include:
First message generation module, if disconnecting for the link at the Sharing Management mouth, the server generates packet
The first ARP request containing the MAC Address of itself.
First message sending module is sent out first ARP request by the dedicated management mouth for the server
It send to adjacent next equipment, so that when adjacent next equipment is forwarding device, the forwarding device
First ARP request based on acquisition determines to the Sharing Management mouth and sends message;In adjacent next equipment
When for server, adjacent next equipment generates second of the MAC Address comprising itself based on first ARP request
ARP request, and first ARP request and second ARP request are forwarded downwards.
In conjunction with second aspect, in some implementations optionally, described device further include:
Second message generation module, it is described if the link at the Sharing Management mouth reverts to connection from disconnection
Server generates third ARP request and the 4th ARP request comprising own MAC address.
Second message sending module, for when adjacent next equipment is forwarding device, the server will
The third ARP request abandons;And the 4th ARP request is sent to described adjacent upper one by the dedicated management mouth
A equipment.
The second message sending module is also used to the service when adjacent next equipment is server
The third ARP request is sent to adjacent next server by the dedicated management mouth by device, so that described adjacent
Next server based on the third ARP request generate comprising own MAC address the 4th ARP request and downwards forward described in
Third ARP request;The server is also by the 4th ARP request and adjacent next server of itself generation
The 4th ARP request sent is transmitted to an adjacent upper equipment by the Sharing Management mouth.
In conjunction with second aspect, in some implementations optionally, described device further include:
Second message obtains module, if disconnecting for the link at the Sharing Management mouth of other servers, the service
Device obtains the first ARP of the MAC Address comprising other servers that other servers generate by the Sharing Management mouth
Request.
Third message generation module is based on first ARP request for the server, generates the MAC comprising itself
Second ARP request of address.
Third message sending module passes through first ARP request and second ARP request for the server
The dedicated management mouth is sent to adjacent next equipment, so that being forwarding device in adjacent next equipment
When, first ARP request and second ARP request of the forwarding device based on acquisition are determined to the Sharing Management
Mouth sends message;When adjacent next equipment is server, described in adjacent next equipment forwards downwards
First ARP request.
In conjunction with second aspect, in some implementations optionally, described device further include:
Second packet forwarding module, will be from the received message to be forwarded of the dedicated management mouth from institute for the server
It states Sharing Management mouth and is forwarded to an adjacent upper equipment.
In conjunction with second aspect, in some implementations optionally, described device further include:
Third message obtains module, reverts to for the link at the Sharing Management mouth of other servers from disconnection
When connection, the server obtains the third ARP request of the MAC Address comprising other servers.
4th message generation module generates the MAC comprising itself based on the third ARP request for the server
4th ARP request of location, and the 4th ARP request is sent to by the Sharing Management mouth by an adjacent upper equipment.
4th message sending module, for when next equipment is forwarding device, the server is by described the
Three ARP requests abandon.
The 4th message sending module is also used to when next equipment is server, and the server passes through
The third ARP request is forwarded to adjacent next equipment by the dedicated management mouth, so that sending under next equipment
The third ARP request.
The third aspect, the embodiment of the present application provide a kind of server, and the server includes: host, network interface card and BMC;
The network interface card is separately connected the host and the BMC, and the network interface card is equipped with the Sharing Management mouth of the server, described
BMC is equipped with the dedicated management mouth of the server;
The BMC, the dedicated management mouth for Sharing Management mouth and the server to the server are monitored,
To execute the message forwarding method as described in first aspect and any implementation of first aspect.
Fourth aspect, the embodiment of the present application provide a kind of message forwarding system, and the message forwarding system includes: multiple
Server and forwarding device,
The Sharing Management of the dedicated management mouth of each server and adjacent next server in the multiple server
Mouth connection forms link, the Sharing Management mouth positioned at the server of the first end of the link and the second end positioned at the link
The dedicated management mouth of server connect with the forwarding device;
Any server in the multiple server, for executing such as first aspect and any realization of first aspect
Message forwarding method described in mode.
5th aspect, the embodiment of the present application provide a kind of calculating of non-volatile program code that can be performed with computer
The readable storage medium of machine, said program code make the computer execute such as first aspect and any realization side of first aspect
Message forwarding method described in formula.
The beneficial effect of the embodiment of the present application includes:
Sharing Management mouth based on server is connect with an adjacent upper equipment, is obtained by Sharing Management mouth adjacent
The message to be forwarded that a upper equipment is sent, but the dedicated management mouth based on server is connect with adjacent next equipment, and
Message to be forwarded is forwarded to adjacent next equipment by dedicated management mouth, realizes the normal forwarding to message.In this
Simultaneously as the Sharing Management mouth of server is connected with dedicated management mouth respectively at different equipment, so that message forwarding system
Port needed for the connection equipment of middle forwarding device can also be saved, thus solved BMC and be managed need to server
The technical issues of occupying forwarding device a large amount of port resource.
To enable the above objects, features, and advantages of the application 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
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows a kind of structural block diagram of message forwarding system of the application first embodiment offer;
The structural block diagram of server in a kind of message forwarding system provided Fig. 2 shows the application first embodiment;
Fig. 3 shows a kind of flow chart of message forwarding method of the application second embodiment offer;
Fig. 4 shows a kind of the first application scenarios schematic diagram of message forwarding method of the application second embodiment offer;
Fig. 5 shows a kind of the second application scenarios schematic diagram of message forwarding method of the application second embodiment offer;
Fig. 6 shows a kind of structural block diagram of apparatus for forwarding message of the application 3rd embodiment offer.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Ground description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Usually exist
The component of the embodiment of the present application described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit claimed the application's to the detailed description of the embodiments herein provided in the accompanying drawings below
Range, but it is merely representative of the selected embodiment of the application.Based on embodiments herein, those skilled in the art not into
Row goes out all other embodiment obtained under the premise of creative work, shall fall in the protection scope of this application.
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.Term " first ", " the
Two " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
First embodiment
Referring to Fig. 1, the embodiment of the present application provides a kind of message forwarding system 10, which includes:
Forwarding device 11 and multiple servers 20.
Forwarding device 11 can be the equipment in communication network for being forwarded to message, and forwarding device 11 can be friendship
It changes planes, router, gateway or bridge etc..In the present embodiment, scheme is illustrated so that forwarding device 11 is interchanger as an example,
But it is not intended as limiting.
Each server 20 can be conventional in multiple servers 20 network server or database server etc., or it is every
A server 20 can be the child servers cluster being made of multiple child servers.It is for network server with each server 20
Example is illustrated scheme, but is not intended as limiting.
In the present embodiment, each server 20 may include dedicated management mouth and Sharing Management mouth, and in multiple servers
In 20, the Sharing Management mouth of server 20 can be connect with an adjacent upper equipment, and the dedicated management mouth of server 20 is then
It can be connect with adjacent next equipment.Wherein, the adjacent upper equipment being connect with the Sharing Management mouth of server 20
It can be other servers 20 or forwarding device 11, and what is connect with the dedicated management mouth of server 20 adjacent next sets
It is standby then be also possible to other servers 20 or forwarding device 11.
As a kind of mode optionally that multiple servers 20 are connect with forwarding device 11, multiple servers 20 can be according to
Secondary connection forms link.Sharing Management mouth positioned at the server 20 of the first end of link then can be with the first of forwarding device 11
Port connection.Sharing Management mouth positioned at the server 20 of the second end of link can then connect with the second port of forwarding device 11
It connects.The Sharing Management mouth of server 20 between the first end and second end of link then can be with an adjacent upper service
The dedicated management mouth of device 20 connects, and the dedicated management mouth for the server 20 being located between the first end and second end of link is then gone back
It can be connect with the Sharing Management mouth of adjacent next server 20.
In this present embodiment, the default of forwarding device 11 can be forwarded by server 20 of the first port into link and be reported
Text, and after forwarding device 11 carries out ARP entry study, forwarding device 11 can pass through server of the second port into link
20 E-Packet.
Referring to Fig. 2, each server 20 may include: host 21, network interface card 22 and BMC23.Wherein, network interface card 22 can divide
It is not connect with host 21 and BMC23.
The structure of server 20 is illustrated by taking any server 20 in multiple servers 20 as an example below.
Host 21 is the core equipment in server 20, core function of the host 21 for realizing each server 20, example
Such as, realize that the data interaction, data processing and data of server 20 and other equipment store.
Network interface card 22 can support NCSI (Network Controller Sideband Interface, network controller side
With interface) network interface card of agreement, network interface card 22 is equipped with the Sharing Management mouth of server 20, and network interface card 22 can also be communicated with host 21
Connection.In addition, network interface card 22 can also be communicated to connect by way of NCSI with BMC23, so that BMC23 passes through 22 pairs of network interface card services
The host 21 of device 20 carries out intelligent monitoring and management.
BMC23 may include: processor 231, first port 232 and second port 233, and processor 231 can be center
Processor (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP)
Deng;Can also be digital signal processor (DSP), specific integrated circuit (ASIC), ready-made programmable gate array (FPGA) or
Other programmable logic device, discrete gate or transistor logic, discrete hardware components etc..
First port 232 can be connect with network interface card 22, and the processor 231 of such BMC23 passes through first port 232 and network interface card
22 just can be realized and carry out intelligent monitoring and management to host 21, in this present embodiment, can realize and carry out to host 21
Management.The second port 232 of BMC23 can be the dedicated management mouth of server 20.
In the present embodiment, the processor 231 of BMC23 is monitored by Sharing Management mouth and/or dedicated management mouth, can
The message that Sharing Management mouth and/or dedicated management mouth to each server 20 obtain is managed, and can execute following institute
The message forwarding method stated.
It should be noted that the processor 231 of BMC23 realizes the execution to message forwarding method, since BMC23 is integrated
In server 20, therefore can be understood as on the whole is that executing subject holds message forwarding method to realize with server 20
Row, in order to which those skilled in the art can be easier to understand this programme.
Second embodiment
Present embodiments provide a kind of message forwarding method, it should be noted that step shown in the flowchart of the accompanying drawings
It can execute in a computer system such as a set of computer executable instructions, although also, showing patrol in flow charts
Sequence is collected, but in some cases, it can be with the steps shown or described are performed in an order that is different from the one herein.Below to this
Embodiment describes in detail.
Referring to Fig. 3, the message forwarding method is forwarded applied to message in message forwarding method provided in this embodiment
Any server in system in multiple servers.The message forwarding method includes: step S110 and step S120.
Step S110: the server by the Sharing Management mouth obtain that the adjacent upper equipment sends to
It E-Packets.
Step S120: the message to be forwarded is forwarded to described adjacent by the server by the dedicated management mouth
Next equipment.
Below with reference to Fig. 3 and Fig. 4, each step of the application is described in detail.
BMC needs in server are powered on and can be just managed to server process message, therefore can be carried out to BMC
Electricity, so that BMC electrifying startup and bringing into operation.After BMC is powered on, server just can start to execute message forwarding on the whole
Method.
When not powering on, server position in a link or structure may change, but this change server by
It can not know in not powering on, therefore after powering on each time, server requires to redefine oneself position in a link,
To determine how to forward the message of acquisition by determining position in a link.
In the present embodiment, after the power-up, server is promiscuous mode to the processing mode of message, i.e., server is to acquisition
Any unicast or broadcast message can be carried out analysis processing.So by any unicast or broadcast message analysis to acquisition at
Reason, server then can be by within a preset time, judging whether that the dedicated management mouth from server obtains forwarding device transmission
Equipment notification packet determine the position of server in a link.
As a kind of mode optionally, the equipment notification packet that forwarding device is sent can be STP BPDUs (Spanning
Tree Protocol, Spanning-Tree Protocol) and/or LLDP message (Link Layer Discovery Protocol, link layer hair
Existing agreement).STP BPDUs can be the message generated and sent by the forwarding device, and if the device type of LLDP message expression
For forwarding device, then the LLDP message can be the message generated and sent by the forwarding device.
For forwarding device, forwarding device, can be by certain continual generation of duration simultaneously according to preset rules
Send the STP BPDUs and/or LLDP message, wherein certain duration can be 5-7 seconds.If therefore setting big for preset time
In certain duration, for example, set preset time to 30 seconds, then after power-up, positioned at the clothes of the first end of link
It is engaged in server and position of the server due to being connect with forwarding device, positioned at the first end of link of device and the second end positioned at link
STP BPDUs and/or LLDP message can be then received in preset duration in the server of the second end of link.In this way, service
Device passes through the STP BPDUs and/or LLDP for judging whether that equipment transmission is obtained from the dedicated management mouth of server within a preset time
Message, and judge whether STP BPDUs and/or LLDP message that forwarding device transmission is obtained from the Sharing Management mouth of server,
Server is assured that the first end for oneself being located at link, the second end of link or the first end and link that are located at link
Second end between.
If server determines the Sharing Management from server within a preset time by analyzing the message of acquisition
Mouth obtains STP BPDUs and/or obtains the LLDP message in message comprising device type for forwarding device, then server can
To determine that server is located at the first end of link, that is, the first port of the Sharing Management mouth and forwarding device that determine server connects
It connects.
If server determines not within a preset time by analyzing the message of acquisition from the shared of server
Any management mouth in management mouth and dedicated management mouth obtains STP BPDUs and/or obtains in message is comprising device type
The LLDP message of forwarding device, then server can determine server be located at link first end and link second end it
Between, that is, determine that the Sharing Management mouth of server and dedicated management mouth are not connect with forwarding device.
If server determines the dedicated management from server within a preset time by analyzing the message of acquisition
Mouth obtains STP BPDUs and/or obtains the LLDP message in message comprising device type for forwarding device, then server can
To determine that server is located at the second end of link, that is, the second port of the dedicated management mouth and forwarding device that determine server connects
It connects.
In the present embodiment, server can determine that the processing to message is advised by determining oneself position in a link
Then, so that server after powering on to message mix tupe change by processing rule handle.
In the present embodiment, if the first port of Sharing Management mouth and forwarding device that server is determined as server connects,
Or it is determined as the Sharing Management mouth of server and after dedicated management mouth do not connect with forwarding device, server is determined to report
Text processing rule may include:
Server analyzes the message of acquisition, however, it is determined that is the unicast message for being sent to server, then server
The unicast message can be performed corresponding processing, without being forwarded;If it is determined that be sent in other servers or network
The unicast message of other equipment, then server can not then handle and forward the unicast message;If it is determined that for STP BPDUs and/
Or the broadcasting packet of LLDP message, then server can also perform corresponding processing the STP BPDUs and/or LLDP message, and
Without forwarding;If it is determined that being other types of broadcasting packet, for example, if clothes are included in common ARP request and the request
The IP address of oneself and MAC Address of business device, then arp response, which can be generated, in server carrys out the response ARP request;Alternatively, if
For common ARP request and the request does not include the IP address of oneself and MAC Address of server, then server can forward
The ARP request, if but the ARP request is special ARP request, server can handle the special ARP request, should with basis
ARP request generates another corresponding ARP request, and another ARP request is connect together with ARP request to be forwarded from non-
Receiving end mouth is sent.
In addition, the processing rule that server is determined can also include:
Server is before any kind of message of forwarding, it can be determined that whether the message needs from the dedicated of server
Manage mouth forwarding.It, can be from corresponding ports other in addition to dedicated management mouth if not forwarded from the dedicated management mouth of server
The message is forwarded, it, can be based on the Sharing Management mouth and forwarding device of server if being forwarded from the dedicated management mouth of server
First port connection or the Sharing Management mouth based on server and dedicated management mouth do not connect with forwarding device, can should
Message is forwarded from the dedicated management mouth of server.
It should be noted that first port connection or server due to the Sharing Management mouth and forwarding device of server
Sharing Management mouth and dedicated management mouth are not connect with forwarding device, thus the dedicated management mouth of the server then can in link
Adjacent next server connection.In this way, can be forwarded to from the message that the dedicated management mouth of server forwards
Adjacent next server causes message storm in link without being forwarded to forwarding device.
In the present embodiment, if the second port of dedicated management mouth and forwarding device that server is determined as server connects,
Server determines that the processing rule to message may include:
Server analyzes the message of acquisition, however, it is determined that is the unicast message for being sent to server, then server
The unicast message can be performed corresponding processing, without being forwarded;If it is determined that be sent in other servers or network
The unicast message of other equipment, then server can not then handle and forward the unicast message;If it is determined that for STP BPDUs and/
Or the broadcasting packet of LLDP message, then server can also perform corresponding processing the STP BPDUs and/or LLDP message, and
Without forwarding;If it is determined that being other types of broadcasting packet, for example, ARP request, server can handle ARP request, with
Another corresponding ARP request is generated according to the ARP request, and by another ARP request together with ARP request to be forwarded
It is sent from non-reception port.
In addition, the processing rule that server is determined can also include:
Server is before any kind of message of forwarding, it can be determined that whether the message needs from the dedicated of server
Manage mouth forwarding.If it is not, then the message can be forwarded from corresponding port, if so, can be based on the dedicated management of server
Mouth is connect with the second port of forwarding device, can be by the packet loss without forwarding.
It should be noted that since the dedicated management mouth of server and the second port of forwarding device connect, if from service
The dedicated management mouth of device E-Packets, which may be forwarded to forwarding device and cause message wind in link
Cruelly.
It is powering on and is determining oneself position in a link, and determining after handling rule accordingly, server is just
The message of acquisition can be handled according to the processing rule determined, i.e., server can execute step S110.
Step S110: the server by the Sharing Management mouth obtain that the adjacent upper equipment sends to
It E-Packets.
It is that message to be forwarded can be forwarded in link by first port based on forwarding device default conditions, takes in this way
The Sharing Management mouth of business device can obtain adjacent upper one by connecting with an adjacent upper equipment by Sharing Management mouth
The message to be forwarded that a equipment is sent.Position based on server in a link, if server determines that server is located at link
First end, then an adjacent upper equipment can be forwarding device, and server can obtain forwarding by Sharing Management mouth and set
The message to be forwarded that standby first port is sent;And if server determines the second end for being located at link or is located at first end and second
Between end, then an adjacent upper equipment can be other servers, then server can be obtained by Sharing Management mouth
Obtain the message to be forwarded that the dedicated management mouth of an adjacent upper server is sent.
Step S120: the message to be forwarded is forwarded to described adjacent by the server by the dedicated management mouth
Next equipment.
After server obtains the message to be forwarded, server can be based on processing rule come to the message to be forwarded
Reason.
Optionally, if server determines server and is located at first end or between first end and second end, server
First end or the processing rule determined between first end and second end can be located at based on server to determine this
Message to be forwarded is handled, to judge whether to need to forward by the dedicated management mouth of server.If it is determined that the report to be forwarded
Text can be forwarded by the non-dedicated management mouth of server, then server can be somebody's turn to do by corresponding non-dedicated management mouth forwarding
Message to be forwarded.And if it is determined that the message to be forwarded can be forwarded by the dedicated management mouth of server, then server can also
The message to be forwarded is forwarded to adjacent next equipment by the dedicated management mouth of server to determine with processing rule, i.e.,
It is forwarded to the Sharing Management mouth of adjacent next server.
If server determines that server is located at second end, server can be located at second end based on server and determine
Rule is handled to determine that the message to be forwarded is handled, to judge whether to need to forward by the dedicated management mouth of server.
If it is determined that the message to be forwarded can be forwarded by the non-dedicated management mouth of server, then server can be by corresponding non-
Dedicated management mouth forwards the message to be forwarded.And if it is determined that the message to be forwarded can be turned by the dedicated management mouth of server
Hair, then server can handle rule also to determine and not forward the packet loss to be forwarded.
It is assumed that the dedicated management mouth A2 of server A and the Sharing Management mouth B1 connection of server B, the dedicated pipe of server B
Reason mouth B2 is connect with the Sharing Management mouth C1 of server C, the Sharing Management mouth of the dedicated management mouth C2 and server D of server C
The port E1 of D1 connection, the Sharing Management mouth A1 and interchanger E of server A is connect, the dedicated management mouth D2 of server D with exchange
The port E2 connection of machine E.
After the power-up, server A obtains the STP BPDUs and/or LLDP message that interchanger E is sent by Sharing Management mouth A1
And it determines Sharing Management mouth A1 and is connect with interchanger E.Server D obtains the STP report that interchanger E is sent by dedicated management mouth D2
Text and/or LLDP message and determine dedicated management mouth D2 and connect with interchanger E.And server B and server C are then due to default
STP BPDUs and/or LLDP message are not obtained in duration and determines and is not connect with interchanger E.
After obtaining message, server A can will be needed from the message that dedicated management mouth A2 is forwarded from dedicated management mouth A2
It is forwarded to the Sharing Management mouth B1 of server B;Server B can will be needed from the message that dedicated management mouth B2 is forwarded from dedicated pipe
Reason mouth B2 is forwarded to the Sharing Management mouth C1 of server C;Server C can will need from the message that dedicated management mouth C2 is forwarded from
Dedicated management mouth C2 is forwarded to the Sharing Management mouth D1 of server D;What server D can forward needs from dedicated management mouth D2
Packet loss does not forward.
It is understood that server can be right based on the above-mentioned processing rule determined in the case where forming link
The message of acquisition is correctly handled.
In the present embodiment, if the link in link at a certain Sharing Management mouth disconnects, then connecting with the Sharing Management mouth
The link of dedicated management mouth of server also disconnect, and link is made to be divided into two the first sublinks and the second subchain
Road.The first port of the server to the forwarding device that disconnect from the dedicated management mouth is then the first sublink.Due to dedicated management
The disconnection of mouth has no effect on each server in the first sublink and handles message, i.e. each service in the first sublink
Device normally can be handled or be abandoned to the message of acquisition, therefore each server in the first sublink can continue base
It continues to run, and can not be performed corresponding processing for the dedicated management mouth disconnected in the processing rule currently to message.
But for the second sublink at the server to the second port of forwarding device that Sharing Management mouth disconnects, altogether
It enjoys management mouth and disconnects the message that the server meaned in second sublink can not obtain the first port forwarding of forwarding device,
It also can not just be worked normally where the server disconnected to Sharing Management mouth.Therefore, the service in second sublink
Device can perform corresponding processing, so that forwarding device carries out ARP entry study to the server in second sublink, in turn
So that second sublink also can normally carry out message forwarding.
It is illustrated below in conjunction with Fig. 5, when the link at a certain Sharing Management mouth disconnects in a link, is set to forwarding
How server in second sublink of standby second port connection, which carries out relevant treatment, is described in detail, Yi Jiye
It is described in detail to how about forwarding device carries out ARP entry study to the server in second sublink.
As a kind of mode that the link at the Sharing Management mouth of the server disconnects, which is able to detect that certainly
Link at own Sharing Management mouth disconnects, that is, detects that the state of oneself Sharing Management mouth is Down.In this case, server
A special ARP request can be generated according to preset rules.
Optionally, the special ARP request that server generates can be the first ARP request, in first ARP request
Source address can be the MAC Address of the management mouth of the server, and the destination address in first ARP request is special first wide
Broadcast address, for example, 127.0.0.1.
In addition, server is based on the link detected at oneself Sharing Management mouth while generating first ARP request
Disconnect, then server can also the processing rule to message be adjusted, i.e., will " the dedicated management mouth for determining server not
Connecting with forwarding device will just need to forward from the message that the dedicated management mouth of server forwards from the dedicated management mouth of server,
Connecting in the dedicated management mouth for determining server with forwarding device then will can need to forward from the dedicated management mouth of server
Packet loss " adjustment are as follows: " no matter whether the dedicated management mouth of server connect with forwarding device, server can be passed through
Dedicated management mouth sends and receivees message ".
Furthermore after server generates the first ARP request, server is by the dedicated management mouth of server by the first ARP
Request is sent to adjacent next equipment.
If the second sublink illustrates that adjacent next equipment can be service there are also the server in addition to the server
Device, the 2nd ARP which then can generate the MAC Address comprising itself based on the first ARP request are asked
It asks, and forwards the first ARP request and the second ARP request downwards.Each service in such second sublink in addition to the server
Device can execute the next server identical operation adjacent with this.Then in second sublink each of in addition to the server
The Sharing Management mouth of server can obtain first ARP request, and the dedicated management mouth of each server can should
First ARP request forwards.And second each server in sublink in addition to the server based on acquisition this first
The second ARP request of each of the MAC Address of management mouth comprising each server that ARP request can be generated, each server
Dedicated management mouth the second ARP request of each of generation can also be sent.In this way, the Sharing Management mouth of each server
Obtain the second ARP request that other each servers are sent, then by the dedicated management mouth of each server by other each clothes
The second ARP request that business device is sent forwards.Thus, each server successively forwards the second port so that forwarding device
Obtain the second ARP request that first ARP request and each server generate.Certainly, each clothes of first ARP request are obtained
The processing rule adjustment of message is also the processing of the server disconnected with the Sharing Management mouth based on first ARP request by business device
Rule is identical.
If the not no server in addition to the server in the second sublink, illustrates that adjacent next equipment can be service
Device, then the second port of forwarding device can obtain first ARP request of server transmission.
It is other as a kind of mode that the link at the Sharing Management mouth of other servers before the server disconnects
Server can generate and send the first ARP request of the MAC Address of the management mouth comprising other servers, and adjust this its
Processing rule of its server to message.Correspondingly, the Sharing Management mouth for the server being located in second sublink can
To obtain first ARP request to the forwarding of the acquisition first ARP request by each server before the server,
Alternatively, the dedicated management mouth for other servers that the Sharing Management mouth of the server and the Sharing Management mouth disconnect connect this
First ARP request that other servers that Sharing Management mouth disconnects are sent.
For server based on the first broadcast address special in the first ARP request, server can know other servers
Sharing Management mouth disconnect and server can also be known the processing rule to message is needed to be adjusted.Therefore server
It can be by " not connecting with forwarding device in the dedicated management mouth for determining server will just need to turn from the dedicated management mouth of server
The message of hair is forwarded from the dedicated management mouth of server, and connecting in the dedicated management mouth for determining server with forwarding device then can be with
By the packet loss that needs are forwarded from the dedicated management mouth of server " it is adjusted to the other servers disconnected with the Sharing Management mouth
It is identical: " no matter whether the dedicated management mouth of server connect with forwarding device, the dedicated management mouth of server can be passed through
Send and receive message ".
Furthermore server is based on first ARP request, it can also obtain and need to generate second comprising own MAC address
ARP request, therefore the MAC Address of the management mouth of servers other in the first ARP request can be replaced with the server by server
Management mouth MAC Address, thus obtain the second ARP request.Server can be by the first ARP request and the 2nd ARP generated
Request is sent to adjacent next equipment by the dedicated management mouth of server.
If illustrating that adjacent next equipment can be with there are also other servers below the server in the second sublink
It is server, which, which obtains, then can generate the MAC Address comprising itself based on the first ARP request
Second ARP request, and the second ARP request for forwarding the first ARP request, other servers to send downwards and oneself generate second
ARP request.Each server in such second sublink in addition to the server can execute the next service adjacent with this
The identical operation of device, the second port for allowing for forwarding device obtain first ARP request and each server generate second
ARP request.
If illustrating that adjacent next equipment can be with without others servers below the server in the second sublink
Forwarding device, thus the second port of forwarding device can obtain that first ARP request and each server generate the
Two ARP requests.
Forwarding device is carried out based on the second ARP request that the first ARP request of acquisition and/or each server generate
ARP entry study, then be assured that can be by second port come to the server of the second end of link for forwarding device
Dedicated management mouth sends message.And since each server in the second sublink is after adjusting the processing rule to message, often
A server can handle the message of acquisition or each server is obtained by the dedicated management mouth of each server
What is obtained is forwarded to message to be forwarded in the Sharing Management mouth of adjacent server, turns to realize message to be forwarded in the second subchain
The processing and forwarding of road, and then the server realized in the case where link disconnects, in the second sublink also can continue to
It is worked normally.
Continue aforementioned it is assumed that if being disconnected at the Sharing Management mouth C1 of server C, then link is divided into including server
The first sublink of A and server B, and the second sublink including server C and server D.Wherein, in the first sublink
Server A and server B do not adjust, continue to handle message based on original processing is regular.
For the second sublink, server C it is adjustable itself to the processing of message rule, and by the first ARP of generation
Request is sent to server D by the dedicated management mouth C2 of server C.The Sharing Management mouth D1 of server D can obtain this
One ARP request, to be advised itself with the processing of server C to the processing rule adjustment of message according to first ARP request
It is then identical.Simultaneously, server D can generate the second ARP request based on first ARP request, and by the first ARP request and
The dedicated management mouth D2 that second ARP request passes through server D is sent to interchanger E.In this way, interchanger E can be based on first
ARP request and the second ARP request carry out ARP entry study and know that second sublink also can handle message, and then interchanger E
It can then determine while message is sent to the first sublink by port E1, message can also be sent to by port E2
Second sublink.In this way, the dedicated management mouth D2 of server D is obtained with the message that interchanger E is sent by port E2.If
The message is destined to server D oneself, then server D can be handled the message;If but the message is destined to
Server C, then server D can forward the packet to server C by the Sharing Management mouth D1 of server D.
In the present embodiment, if the link in link at a certain Sharing Management mouth reverts to connection from disconnection, then total with this
The link for enjoying the dedicated management mouth of the server of management mouth connection also reverts to connection from disconnection, and makes the first sublink and second
Sublink is again coupled to constitute the complete link.
For the first sublink, the recovery connection of dedicated management mouth means in first sublink no longer with independent
Sublink exist.Therefore, the server in first sublink can perform corresponding processing so that forwarding device to this
Server in one sublink carries out ARP entry study and knows first sublink and revert to complete link from disconnection.
For the second sublink, the recovery connection of Sharing Management mouth means in second sublink not also again with list
Only sublink exists.Therefore, the server in second sublink can perform corresponding processing, so that forwarding device is deleted
The ARP entry that the server in second sublink carries out is learnt before, so that second sublink is no longer individual
Carry out message forwarding.
It is illustrated below in conjunction with Fig. 4 and Fig. 5, the link at a certain Sharing Management mouth restores from disconnection in a link
For connection when, the server in second sublink that the second port with forwarding device is connect how to carry out relevant treatment into
Row explains in detail, and also how about deletes forwarding device the ARP entry of the server in second sublink of study
It is described in detail.
A kind of mode of connection, the server are reverted to from disconnection as the link at the Sharing Management mouth of the server
It is able to detect that the link at oneself Sharing Management mouth reverts to connection from disconnection, that is, detects the state of oneself Sharing Management mouth
Up is reverted to from Down.In this case, server can regenerate a special ARP request according to preset rules.
Optionally, the special ARP request that server generates can be third ARP request, in the third ARP request
Source address can be the MAC Address of the management mouth of the server, and the destination address in the third ARP request is special second wide
Broadcast address, for example, 127.0.0.2.And server, which can also generate source address, to be the MAC of the management mouth of the server
Address and destination address are the 4th ARP request of conventional broadcast address.
In addition, server is based on the link detected at oneself Sharing Management mouth while generating the third ARP request
Revert to connection from disconnection, then server can also the processing rule to message be adjusted again, i.e., will be " no matter server
Dedicated management mouth whether connect with forwarding device, message can be sended and received by the dedicated management mouth of server " it is extensive
It is multiple initial: " not connect the just dedicated management by needs from server with forwarding device in the dedicated management mouth for determining server
The message of mouth forwarding is forwarded from the dedicated management mouth of server, is connect then in the dedicated management mouth for determining server with forwarding device
The packet loss that needs can be forwarded from the dedicated management mouth of server ".
Furthermore after server generates third ARP request, server is by the dedicated management mouth of server by the 3rd ARP
Request is sent to adjacent next equipment.And server can also generate comprising server management mouth MAC Address and
Destination address is the 4th ARP request of conventional broadcast address, and the Sharing Management mouth of the server can also be by the generation
4th ARP request is sent to a upper equipment adjacent in the first sublink.
For third ARP request, if server determines that connecting with the dedicated management mouth of server is forwarding device, i.e. phase
Adjacent next equipment is forwarding device, is not forwarded then server can abandon the third ARP request.
Also for third ARP request, if server determines that connecting with the dedicated management mouth of server is server, i.e. phase
Adjacent next equipment is server, then server third ARP request can be sent to by dedicated management mouth it is adjacent
Next server generates adjacent next server comprising own MAC address based on the third ARP request
4th ARP request, and whether connect forwarding device downwards based on judgement and determine whether to forward the third ARP request downwards.This
Sample, which is obtained with the 4th ARP request that adjacent next server generates and sends, then server can
Pass through Sharing Management with the 4th ARP request that the 4th ARP request for generating itself and adjacent next server are sent
Mouth is transmitted to an adjacent upper equipment.
Each server in such second sublink in addition to the server can execute the next service adjacent with this
The identical operation of device.The Sharing Management mouth of each server so in second sublink in addition to the server can obtain
The third ARP request, and the dedicated management mouth of each server can forward the third ARP request to next one
Adjacent server or each server are connect with forwarding device based on the dedicated management mouth of each server and can also be incited somebody to action
Third ARP request discarding does not forward, thus the successively forwarding of each server so that each server can obtain this
Three ARP requests.At the same time, each server of the third ARP request is obtained also based on the third ARP request by the place of message
It is identical from the processing rule of server for disconnecting recovery connection as the Sharing Management mouth for managing rule adjustment.
In addition, each server in the second sublink in addition to the server is based on executing the next service adjacent with this
The identical operation of device.Each server in second sublink in addition to the server may be used also based on the third ARP request of acquisition
It is each of conventional broadcast address the 4th with the MAC Address and destination address of the management mouth comprising each server of generation
The Sharing Management mouth of ARP request, each server can also send the 4th ARP request of each of generation to adjacent upper one
The dedicated management mouth of server.It is sent in this way, the dedicated management mouth of each server of chain road obtains other each servers
The 4th ARP request, then the 4th ARP request that other each servers are sent is turned by the Sharing Management mouth of each server
It sends out, so that each server transfers the 4th ARP request of acquisition from the Sharing Management mouth of each server in link
It goes, so that the first port of forwarding device obtains the 4th ARP request that each server generates.
In this way, the first port of forwarding device, which is obtained with the 4th ARP request that each server generates, obtains second
The MAC Address of the management mouth of each server in sublink, then forwarding device can be based on each service in the second sublink
The MAC Address of the management mouth of device carries out ARP entry study, thus by the MAC address learning of the management mouth of each server to the
On Single port, thus forwarding device can no longer by second end from second port to link server dedicated management mouth
Message is sent, and server of the first port into link can be continued through and E-Packeted.
Continue aforementioned it is assumed that if reverting to connection from disconnection at the Sharing Management mouth C1 of server C, then the first sublink
Complete link is then merged into again with the second sublink.
For the second sublink, the third ARP request of generation can be passed through the dedicated management mouth of server C by server C
C2 is sent to server D and server C and can send out the 4th ARP request of generation by the Sharing Management mouth C1 of server C
Give server B.The Sharing Management mouth D1 of server D can obtain the third ARP request, and server D can be based on the third
ARP request generates the 4th ARP request.The port E2 of the dedicated management mouth D2 and interchanger E of server D are connect, therefore server D can
Will generate the discarding of the 4th ARP request, and the Sharing Management mouth D1 of the 4th ARP request server D is also sent to by server D
Server C.In this way, by the Sharing Management mouth C1 of server C by the server B that is forwarded to of the 4th ARP request of server D
Dedicated management mouth B2, and by the Sharing Management mouth B1 of server B by the of the 4th ARP request of server D and server C
The dedicated management mouth A2 for being forwarded to server A of four ARP requests, then will be serviced by the Sharing Management mouth A1 of server A again
The port E1 for being forwarded to interchanger E of 4th ARP request of the 4th ARP request and server C of device D.Interchanger E can be serviced
The 4th ARP request of device D and the 4th ARP request of server C carry out ARP entry study, and then interchanger E is by server D's
On the MAC address learning of MAC Address and server C to port E1, so as to which the message for needing to forward is sent out by port E1
Give link.
Connection is reverted to from disconnection as the link at the Sharing Management mouth of other servers before the server
A kind of mode, the 3rd ARP that other servers can generate and send the MAC Address of the management mouth comprising other servers are asked
It asks, and adjusts other servers to the processing rule of message.Correspondingly, the server being located in second sublink is total to
The forwarding of the acquisition third ARP request can be somebody's turn to do by each server before the server by enjoying management mouth
Third ARP request, alternatively, the dedicated management for other servers that the Sharing Management mouth of the server and the Sharing Management mouth disconnect
Connection obtains the third ARP request that the Sharing Management mouth is sent from the other servers for disconnecting recovery connection.
For server based on the second broadcast address special in third ARP request, server can know other servers
Sharing Management mouth revert to connection and server from disconnection and can also know the processing rule to message is needed to adjust
It is whole.Therefore server " no matter whether the dedicated management mouth of server connect with forwarding device, can also will can pass through server
Dedicated management mouth send and receive message " revert to it is initial: " the dedicated management mouth for determining server not with forwarding device
Connection will just need to forward from the message that the dedicated management mouth of server forwards from the dedicated management mouth of server, service determining
The dedicated management mouth of device connect the packet loss that can then forward needs from the dedicated management mouth of server with forwarding device ".
Furthermore server is based on the third ARP request, it can also obtain and need to generate the 4th comprising own MAC address
ARP request, therefore the MAC Address of the management mouth of servers other in third ARP request can be replaced with the server by server
Management mouth MAC Address, to obtain the 4th ARP request, such server can pass through the Sharing Management mouth of server
4th ARP request is sent to an adjacent upper equipment.
If it is forwarding device that server, which is determined and connect with the dedicated management mouth of server, i.e., adjacent next equipment is
Forwarding device does not forward then server can also abandon the third ARP request.
If it is server that server, which is determined and connect with the dedicated management mouth of server, i.e., adjacent next equipment is clothes
Business device, then third ARP request can be sent to adjacent next server by dedicated management mouth by server.
3rd embodiment
Referring to Fig. 6, the embodiment of the present application provides a kind of apparatus for forwarding message 100, which can be with
Applied to any one server in multiple servers, which includes:
First message obtains module 110, is obtained for the server by the Sharing Management mouth described adjacent
The message to be forwarded that one equipment is sent.
The message to be forwarded is passed through the dedicated management mouth for the server by the first packet forwarding module 120
It is forwarded to adjacent next equipment.
Optionally, apparatus for forwarding message 100 further include:
First message generation module 130, if disconnecting for the link at the Sharing Management mouth, the server is generated
The first ARP request comprising the MAC Address of itself.
First ARP request is passed through the dedicated management mouth for the server by the first message sending module 140
It is sent to adjacent next equipment, so that the forwarding is set when adjacent next equipment is forwarding device
Standby first ARP request based on acquisition, determines to the Sharing Management mouth and sends message;It adjacent next is set described
Standby when being server, adjacent next equipment generates the of the MAC Address comprising itself based on first ARP request
Two ARP requests, and first ARP request and second ARP request are forwarded downwards.
Optionally, apparatus for forwarding message 100 further include:
Second message generation module 150, if the link at the Sharing Management mouth reverts to connection, institute from disconnection
It states server and generates third ARP request and the 4th ARP request comprising own MAC address.
Second message sending module 160, for adjacent next equipment be forwarding device when, the server
The third ARP request is abandoned;And the 4th ARP request is sent to by the dedicated management mouth described adjacent upper
One equipment.
The second message sending module 160 is also used to when adjacent next equipment is server, the clothes
The third ARP request is sent to adjacent next server by the dedicated management mouth by business device, so that described adjacent
Next server the 4th ARP request comprising own MAC address is generated based on the third ARP request and forwards institute downwards
State third ARP request;The server is also by the 4th ARP request itself generated and adjacent next service
The 4th ARP request that device is sent is transmitted to an adjacent upper equipment by the Sharing Management mouth.
Optionally, apparatus for forwarding message 100 further include:
Second message obtains module 101, if disconnecting for the link at the Sharing Management mouth of other servers, the clothes
Business device obtains the first of the MAC Address comprising other servers that other servers generate by the Sharing Management mouth
ARP request.
Third message generation module 102 is based on first ARP request for the server, and generating includes itself
Second ARP request of MAC Address.
Third message sending module 103 is used for the server for first ARP request and second ARP request
It is sent to adjacent next equipment by the dedicated management mouth, so that being forwarding in adjacent next equipment
When equipment, first ARP request and second ARP request of the forwarding device based on acquisition are determined to described shared
It manages mouth and sends message;When adjacent next equipment is server, adjacent next equipment is forwarded downwards
First ARP request.
Second packet forwarding module 104, will be from the received message to be forwarded of the dedicated management mouth for the server
An adjacent upper equipment is forwarded to from the Sharing Management mouth.
Optionally, apparatus for forwarding message 100 further include:
Third message obtains module 105, extensive from disconnecting for the link at the Sharing Management mouth of other servers
Multiple is when connecting, and the server obtains the third ARP request of the MAC Address comprising other servers.
4th message generation module 106, being generated for the server based on the third ARP request includes itself
4th ARP request of MAC Address, and the 4th ARP request is sent to by adjacent upper one by the Sharing Management mouth
Equipment.
4th message sending module 107, for when next equipment is forwarding device, the server will be described
Third ARP request is lost.
The 4th message sending module 107 is also used to when next equipment is server, and the server is logical
It crosses the dedicated management mouth and the third ARP request is forwarded to adjacent next equipment, so that under next equipment
Send the third ARP request.
It should be noted that due to it is apparent to those skilled in the art that, for the convenience and letter of description
Clean, system, the specific work process of device and unit of foregoing description can be with reference to corresponding in preceding method embodiment
Journey, details are not described herein.
It should be understood by those skilled in the art that, the embodiment of the present application can provide as the production of method, system or computer program
Product.Therefore, in terms of the embodiment of the present application can be used complete hardware embodiment, complete software embodiment or combine software and hardware
Embodiment form.Moreover, it wherein includes computer available programs generation that the embodiment of the present application, which can be used in one or more,
The meter implemented in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of code
The form of calculation machine program product.
It is situated between in conclusion the embodiment of the present application provides a kind of message forwarding method, device, server, system and storage
Matter.Method be applied to the message forwarding system comprising multiple servers in server, the Sharing Management mouth of server with it is adjacent
The connection of a upper equipment, the dedicated management mouth of server connect with adjacent next equipment, and method includes: that server passes through
Sharing Management mouth obtains the message to be forwarded that an adjacent upper equipment is sent;Message to be forwarded is passed through dedicated management by server
Mouth is forwarded to adjacent next equipment.
Sharing Management mouth based on server is connect with an adjacent upper equipment, is obtained by Sharing Management mouth adjacent
The message to be forwarded that a upper equipment is sent, but the dedicated management mouth based on server is connect with adjacent next equipment, and
Message to be forwarded is forwarded to adjacent next equipment by dedicated management mouth, realizes the normal forwarding to message.In this
Simultaneously as the Sharing Management mouth of server is connected with dedicated management mouth respectively at different equipment, so that message forwarding system
Port needed for the connection equipment of middle forwarding device can also be saved, thus solved BMC and be managed need to server
The technical issues of occupying forwarding device a large amount of port resource.
The above is only preferred embodiment of the present application, are not intended to limit this application, for those skilled in the art
For member, various changes and changes are possible in this application.Within the spirit and principles of this application, it is made it is any modification,
Equivalent replacement, improvement etc., should be included within the scope of protection of this application.It should also be noted that similar label and letter are under
Similar terms are indicated in the attached drawing in face, therefore, once being defined in a certain Xiang Yi attached drawing, are not then needed in subsequent attached drawing
It is further defined and explained.
More than, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, and it is any to be familiar with
Those skilled in the art within the technical scope of the present application, can easily think of the change or the replacement, and should all cover
Within the protection scope of the application.Therefore, the protection scope of the application should be subject to the protection scope in claims.
Claims (15)
1. a kind of message forwarding method, which is characterized in that applied to the service in the message forwarding system comprising multiple servers
Device, the Sharing Management mouth of the server are connect with an adjacent upper equipment, the dedicated management mouth of the server with it is adjacent
Next equipment connection, which comprises
The server obtains the message to be forwarded that an adjacent upper equipment is sent by the Sharing Management mouth;
The message to be forwarded is forwarded to adjacent next equipment by the dedicated management mouth by the server.
2. message forwarding method according to claim 1, which is characterized in that the method also includes:
If the link at the Sharing Management mouth disconnects, the first ARP that the server generates the MAC Address comprising itself is asked
It asks;
First ARP request is sent to adjacent next equipment by the dedicated management mouth by the server,
So that when adjacent next equipment is forwarding device, first ARP request of the forwarding device based on acquisition,
It determines to the Sharing Management mouth and sends message;It is described adjacent next when adjacent next equipment is server
A equipment generates the second ARP request of the MAC Address comprising itself based on first ARP request, and forwards described the downwards
One ARP request and second ARP request.
3. message forwarding method according to claim 1, which is characterized in that the method also includes:
If the link at the Sharing Management mouth reverts to connection from disconnection, it includes own MAC address that the server, which generates,
Third ARP request and the 4th ARP request;
When adjacent next equipment is forwarding device, the server abandons the third ARP request;And pass through
4th ARP request is sent to an adjacent upper equipment by the dedicated management mouth;
When adjacent next equipment is server, the server passes through the third ARP request described dedicated
Management mouth is sent to adjacent next server, so that adjacent next server is based on the third ARP request
It generates the 4th ARP request comprising own MAC address and forwards the third ARP request downwards;The server is also by itself
The 4th ARP request that the 4th ARP request and adjacent next server generated is sent passes through described shared
Management mouth is transmitted to an adjacent upper equipment.
4. message forwarding method according to claim 1, which is characterized in that the method also includes:
If the link at the Sharing Management mouth of other servers disconnects, the server obtains institute by the Sharing Management mouth
State the first ARP request of the MAC Address comprising other servers that other servers generate;
The server is based on first ARP request, generates the second ARP request of the MAC Address comprising itself;
First ARP request and second ARP request are sent to described by the server by the dedicated management mouth
Adjacent next equipment, so that the forwarding device is based on obtaining when adjacent next equipment is forwarding device
First ARP request and second ARP request, determine to the Sharing Management mouth send message;Described adjacent
When next equipment is server, adjacent next equipment forwards downwards first ARP request.
5. message forwarding method according to claim 4, which is characterized in that ask the first ARP in the server
After second ARP request of summing is sent to adjacent next equipment by the dedicated management mouth, the method
Further include:
The server will be forwarded to adjacent from the received message to be forwarded of the dedicated management mouth from the Sharing Management mouth
A upper equipment.
6. message forwarding method according to claim 1, which is characterized in that the method also includes:
When link at the Sharing Management mouth of other servers reverts to connection from disconnection, the server is included
The third ARP request of the MAC Address of other servers;
The server generates the 4th ARP request of the MAC Address comprising itself based on the third ARP request, and passes through institute
It states Sharing Management mouth and the 4th ARP request is sent to an adjacent upper equipment;
When next equipment is forwarding device, the server abandons the third ARP request;
When next equipment is server, the server is by the dedicated management mouth by the third ARP request
It is forwarded to adjacent next equipment, so that sending the third ARP request under next equipment.
7. a kind of apparatus for forwarding message, which is characterized in that applied to the service in the message forwarding system comprising multiple servers
Device, the Sharing Management mouth of the server are connect with an adjacent upper equipment, the dedicated management mouth of the server with it is adjacent
The connection of next equipment, described device includes:
First message obtains module, obtains an adjacent upper equipment by the Sharing Management mouth for the server
The message to be forwarded sent;
The message to be forwarded is forwarded to institute by the dedicated management mouth for the server by the first packet forwarding module
State adjacent next equipment.
8. apparatus for forwarding message according to claim 7, which is characterized in that described device further include:
First message generation module, if disconnecting for the link at the Sharing Management mouth, the server is generated comprising certainly
First ARP request of the MAC Address of body;
First ARP request is sent to by the first message sending module for the server by the dedicated management mouth
Adjacent next equipment, so that the forwarding device is based on when adjacent next equipment is forwarding device
First ARP request obtained determines to the Sharing Management mouth and sends message;It is clothes in adjacent next equipment
When business device, adjacent next equipment generates the 2nd ARP of the MAC Address comprising itself based on first ARP request
Request, and first ARP request and second ARP request are forwarded downwards.
9. apparatus for forwarding message according to claim 7, which is characterized in that described device further include:
Second message generation module, if reverting to connection, the service from disconnection for the link at the Sharing Management mouth
Device generates third ARP request and the 4th ARP request comprising own MAC address;
Second message sending module, for when adjacent next equipment is forwarding device, the server will be described
Third ARP request abandons;And the 4th ARP request is sent to described adjacent upper one by the dedicated management mouth and is set
It is standby;
The second message sending module is also used to when adjacent next equipment is server, and the server will
The third ARP request is sent to adjacent next server by the dedicated management mouth, so that described adjacent next
A server generates the 4th ARP request comprising own MAC address based on the third ARP request and forwards the third downwards
ARP request;The server also sends the 4th ARP request itself generated and adjacent next server
The 4th ARP request an adjacent upper equipment is transmitted to by the Sharing Management mouth.
10. apparatus for forwarding message according to claim 7, which is characterized in that described device further include:
Second message obtains module, if disconnecting for the link at the Sharing Management mouth of other servers, the server is logical
Cross the first ARP request that the Sharing Management mouth obtains the MAC Address comprising other servers that other servers generate;
Third message generation module is based on first ARP request for the server, generates the MAC Address comprising itself
The second ARP request;
Third message sending module, will be described in first ARP request and second ARP request pass through for the server
Dedicated management mouth is sent to adjacent next equipment, so that when adjacent next equipment is forwarding device,
First ARP request and second ARP request of the forwarding device based on acquisition are determined and are sent out to the Sharing Management mouth
It delivers newspaper text;When adjacent next equipment is server, adjacent next equipment forwards downwards described first
ARP request.
11. apparatus for forwarding message according to claim 10, which is characterized in that described device further include:
Second packet forwarding module, will be from the received message to be forwarded of the dedicated management mouth from described total for the server
It enjoys management mouth and is forwarded to an adjacent upper equipment.
12. apparatus for forwarding message according to claim 7, which is characterized in that described device further include:
Third message obtains module, reverts to connection from disconnection for the link at the Sharing Management mouth of other servers
When, the server obtains the third ARP request of the MAC Address comprising other servers;
4th message generation module generates the MAC Address comprising itself based on the third ARP request for the server
4th ARP request, and the 4th ARP request is sent to by the Sharing Management mouth by an adjacent upper equipment;
4th message sending module, for when next equipment is forwarding device, the server to be by the 3rd ARP
Request abandons;
The 4th message sending module is also used to when next equipment is server, and the server passes through described
The third ARP request is forwarded to adjacent next equipment by dedicated management mouth, so that sending under next equipment described
Third ARP request.
13. a kind of server, which is characterized in that the server includes: host, network interface card and BMC;The network interface card is separately connected institute
Host and the BMC are stated, the network interface card is equipped with the Sharing Management mouth of the server, and the BMC is equipped with the server
Dedicated management mouth;
The BMC, the dedicated management mouth for Sharing Management mouth and the server to the server is monitored, to hold
Message forwarding method of the row as described in any claim of claim 1-6.
14. a kind of message forwarding system, which is characterized in that the message forwarding system includes: multiple servers and forwarding device,
The dedicated management mouth of each server connect shape with the Sharing Management mouth of adjacent next server in the multiple server
At link, positioned at the Sharing Management mouth of the server of the first end of the link and the server of the second end positioned at the link
Dedicated management mouth connect with the forwarding device;
Any server in the multiple server, for executing the message forwarding as described in any claim of claim 1-6
Method.
15. a kind of computer-readable storage media for the non-volatile program code that can be performed with computer, which is characterized in that institute
Stating program code makes the computer execute the message forwarding method as described in any claim of claim 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811292902.1A CN109361781B (en) | 2018-10-31 | 2018-10-31 | Message forwarding method, device, server, system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811292902.1A CN109361781B (en) | 2018-10-31 | 2018-10-31 | Message forwarding method, device, server, system and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109361781A true CN109361781A (en) | 2019-02-19 |
CN109361781B CN109361781B (en) | 2021-07-06 |
Family
ID=65343616
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811292902.1A Active CN109361781B (en) | 2018-10-31 | 2018-10-31 | Message forwarding method, device, server, system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109361781B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114244787A (en) * | 2021-12-08 | 2022-03-25 | 四川安迪科技实业有限公司 | Method and device for realizing high-reliability management port |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060280195A1 (en) * | 2005-06-10 | 2006-12-14 | Dell Products L.P. | Systems and methods for providing dedicated or shared network interface functionality via a single MAC |
CN101227355A (en) * | 2006-08-16 | 2008-07-23 | 环达电脑(上海)有限公司 | Clustering system and system management architecture thereof |
US20090271655A1 (en) * | 2008-04-23 | 2009-10-29 | Hitachi, Ltd. | Failover method, program, failover apparatus and failover system |
CN105897623A (en) * | 2016-03-25 | 2016-08-24 | 杭州昆海信息技术有限公司 | Data transmission method and apparatus |
CN108259226A (en) * | 2016-12-28 | 2018-07-06 | 迈络思科技有限公司 | Security configuration and platform management are carried out using network is managed |
CN108521341A (en) * | 2018-03-23 | 2018-09-11 | 紫光华山信息技术有限公司 | Message transmitting method and device |
US20200133686A1 (en) * | 2018-10-30 | 2020-04-30 | Hewlett Packard Enterprise Development Lp | Remote deployment of operating systems |
-
2018
- 2018-10-31 CN CN201811292902.1A patent/CN109361781B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060280195A1 (en) * | 2005-06-10 | 2006-12-14 | Dell Products L.P. | Systems and methods for providing dedicated or shared network interface functionality via a single MAC |
CN101227355A (en) * | 2006-08-16 | 2008-07-23 | 环达电脑(上海)有限公司 | Clustering system and system management architecture thereof |
US20090271655A1 (en) * | 2008-04-23 | 2009-10-29 | Hitachi, Ltd. | Failover method, program, failover apparatus and failover system |
CN105897623A (en) * | 2016-03-25 | 2016-08-24 | 杭州昆海信息技术有限公司 | Data transmission method and apparatus |
CN108259226A (en) * | 2016-12-28 | 2018-07-06 | 迈络思科技有限公司 | Security configuration and platform management are carried out using network is managed |
CN108521341A (en) * | 2018-03-23 | 2018-09-11 | 紫光华山信息技术有限公司 | Message transmitting method and device |
US20200133686A1 (en) * | 2018-10-30 | 2020-04-30 | Hewlett Packard Enterprise Development Lp | Remote deployment of operating systems |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114244787A (en) * | 2021-12-08 | 2022-03-25 | 四川安迪科技实业有限公司 | Method and device for realizing high-reliability management port |
CN114244787B (en) * | 2021-12-08 | 2023-04-11 | 四川安迪科技实业有限公司 | Method and device for realizing high-reliability management port |
Also Published As
Publication number | Publication date |
---|---|
CN109361781B (en) | 2021-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3188409B1 (en) | Oam mechanisms for evpn active-active services | |
US7639605B2 (en) | System and method for detecting and recovering from virtual switch link failures | |
US7639614B2 (en) | Distribution-tuning mechanism for link aggregation group management | |
CN101842710B (en) | Scalable connectivity fault management in a bridged/virtual private LAN service environment | |
US8451713B2 (en) | Special marker message for link aggregation marker protocol | |
EP1919138B1 (en) | A method for implementing backup of the uplink | |
US7760695B2 (en) | Methods and systems for centralized cluster management in wireless switch architecture | |
EP3958509A1 (en) | Method, apparatus and system for communication between controllers in tsn | |
US20130046865A1 (en) | Zero configuration of a virtual distributed device | |
JP5764820B2 (en) | Transmission system and transmission system control method | |
EP2608459A2 (en) | Router, virtual cluster router system and establishion method thereof | |
EP2883123B1 (en) | Forwarding packet in stacking system | |
TW201703473A (en) | Method for constituting hybrid network spanning tree, method of redundancy, and control system thereof | |
CN101197733A (en) | Automatic detection method and device for network connectivity | |
WO2011123003A1 (en) | An operations, administrations and management proxy and a method for handling operations, administrations and management messages | |
AU2011229566A1 (en) | Load sharing method and apparatus | |
CN101404594B (en) | Hot backup performance test method and apparatus, communication equipment | |
CN104539539A (en) | Multi-service-board data forwarding method for AC device | |
CN109361781A (en) | Message forwarding method, device, server, system and storage medium | |
CN112003825A (en) | SDN-based virtual network isolation method and SDN controller | |
CN114268581B (en) | Method for realizing high availability and load sharing of network equipment | |
KR20200072941A (en) | Method and apparatus for handling VRRP(Virtual Router Redundancy Protocol)-based network failure using real-time fault detection | |
CN104754762B (en) | Automatically method, controller and the system of controller are found in the customized network of software | |
Cisco | Release Notes for Catalyst 4000 Family Software Release 4.x | |
Wang et al. | A SDN-based heterogeneous networking scheme for profinet and Modbus Networks |
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 |