CN104683130A - Method for configuring stacking port and equipment - Google Patents

Method for configuring stacking port and equipment Download PDF

Info

Publication number
CN104683130A
CN104683130A CN201310625084.3A CN201310625084A CN104683130A CN 104683130 A CN104683130 A CN 104683130A CN 201310625084 A CN201310625084 A CN 201310625084A CN 104683130 A CN104683130 A CN 104683130A
Authority
CN
China
Prior art keywords
stack
port
stacking
member apparatus
stack port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310625084.3A
Other languages
Chinese (zh)
Other versions
CN104683130B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310625084.3A priority Critical patent/CN104683130B/en
Publication of CN104683130A publication Critical patent/CN104683130A/en
Application granted granted Critical
Publication of CN104683130B publication Critical patent/CN104683130B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention provides a method for configuring a stacking port and equipment, relates to the field of stacking, and aims to reduce the workload of user configuration and avoid possible errors caused by manual configuration. The method comprises the following steps that: first stacking member equipment receives a stacking detection message sent by second stacking member equipment via a member physical port in a first stacking port through a physical port; when a stacking port corresponding to the first stacking port does not exist on the first stacking member equipment, the first stacking member equipment establishes a second stacking port corresponding to the first stacking port; and the first stacking member equipment sets the physical port as a member physical port of the second stacking port, and sends a stacking response message to the second stacking member equipment through the physical port. The embodiment of the invention is used for configuring the stacking port.

Description

A kind of method and apparatus of configuring stacking port
Technical field
The present invention relates to stacking field, particularly relate to a kind of method and apparatus of configuring stacking port.
Background technology
Pile system refers to and multiple stage stack member apparatus is stacked into a stack equipment, along with the development of Stack Technology, the scale of pile system is increasing, therefore, in the process of establishing of pile system, need to set up more stack member apparatus, wherein, connected by stacking link between each stack member apparatus in pile system, this stacking link can be the stacking aggregated links that a physical link or many physical links are polymerized, usually the stacking aggregated links of employing improves the band width in physical between each stack member apparatus in actual applications, this just needs multiple physical ports corresponding for this stacking aggregated links to be configured to a stack port, that is, this stack port is the logic port be made up of multiple member's physical port.
In prior art, the method of the stack port of configuring stacking member device is: user sets up the stack port of the first stack member apparatus, and physical port is determined from the service port of this first stack member apparatus, this physical port joins in this stack port by user, and by cable, this physical port is connected with the member's physical port in the stack port of the second stack member apparatus in pile system, complete the configuration of this stack member apparatus stack port, make stack member apparatus can carry out transfer of data by the stacking aggregated links that this stack port is corresponding with this first stack member apparatus.
As from the foregoing, in prior art, the stack port of stack member apparatus is configured by user and realizes, because a stack port of this first stack member apparatus can only be connected with of this second stack member apparatus stack port, if then a stack port of this first stack member apparatus is connected with multiple stack ports of this second stack member apparatus, the link failure of this first stack member apparatus can be caused, like this, along with the increase of stack member apparatus number, add user configured workload, and user is when configuring stacking port, this stack port may be connected with the plurality of stack port, cause link failure.
Summary of the invention
The invention provides a kind of method and apparatus of configuring stacking port, to reduce the workload of user's configuring stacking port and to avoid artificially configuring the mistake that may occur.
First aspect present invention provides a kind of method of configuring stacking port, comprising:
First stack member apparatus receives the stacking probe messages of the second stack member apparatus by the member's physical port transmission in the first stack port by physical port, and wherein, described stacking probe messages carries the identification information of described first stack port;
When determining described first stack member apparatus not to exist the stack port corresponding with described first stack port according to the identification information of described first stack port, set up the second stack port, and described physical port is set to member's physical port of described second stack port; Wherein, described second stack port is corresponding with described first stack port;
Send stacking response message by described physical port to described second stack member apparatus, wherein, described stacking response message carries the identification information of described second stack port.
In the first possible implementation of first aspect, described second stack port of setting up comprises:
When the number of the stack port determining described first stack member apparatus does not reach the first preset maximum value, set up described second stack port.
In conjunction with first aspect, in the implementation that the second is possible, when determining described first stack member apparatus to exist second stack port corresponding with described first stack port according to the identification information of described first stack port, described method also comprises:
Described physical port is set to member's physical port of described second stack port.
In conjunction with the implementation that the second is possible, in the implementation that the third is possible, the described member's physical port described physical port being set to described second stack port comprises:
When determining that the number of member's physical port that described second stack port comprises does not reach the second preset maximum value, described physical port is set to member's physical port of described second stack port.
In conjunction with first aspect to the possible implementation of any one in the third possible implementation, in the 4th kind of possible implementation, before described first stack member apparatus receives the stacking probe messages of the second stack member apparatus by the member's physical port transmission in the first stack port by physical port, described method also comprises:
Receive the conversion command that configuration AutoConfig equipment automatically sends;
According to described conversion command, described physical port is converted to stacking pattern.
Second aspect present invention provides the method for another kind of configuring stacking port, comprising:
The first stack member apparatus in pile system sends stacking probe messages by the member's physical port in the first stack port to the second stack member apparatus, and wherein, described stacking probe messages carries the identification information of described first stack port;
Received the stacking response message of described second stack member apparatus transmission by described member's physical port, wherein, described stacking response message carries the identification information of the second stack port; Described second stack port is the stack port of described first stack port of correspondence that described second stack member apparatus is set up according to the identification information of described first stack port;
The corresponding relation of described second stack port and described first stack port is set up according to the identification information of described second stack port.
In the first possible implementation of second aspect, the corresponding relation that the described identification information according to described second stack port sets up described second stack port and described first stack port comprises:
After determining that described first stack member apparatus does not exist the stack port corresponding with described first stack port, set up the corresponding relation of described second stack port and described first stack port according to the identification information of described second stack port.
Third aspect present invention provides a kind of stack member apparatus, comprising:
Receiving element, for being received the stacking probe messages that the second stack member apparatus is sent by the member's physical port in the first stack port by physical port, wherein, described stacking probe messages carries the identification information of described first stack port;
Processing unit, during for determining the first stack member apparatus not to exist the stack port corresponding with described first stack port at the identification information of this first stack port received according to described receiving element, set up the second stack port, and described physical port is set to member's physical port of described second stack port; Wherein, described second stack port is corresponding with described first stack port;
Transmitting element, for at described processing unit described physical port is set to described second stack port member's physical port after, send stacking response message by described physical port to described second stack member apparatus, wherein said stacking response message carries the identification information of described second stack port.
In the first possible implementation of the third aspect, described processing unit specifically for, when the number of the stack port determining described stack member apparatus does not reach the first preset maximum value, set up described second stack port.
In conjunction with the third aspect, in the implementation that the second is possible, described processing unit specifically for, when determining described first stack member apparatus to exist second stack port corresponding with described first stack port according to the identification information of described first stack port, described physical port is set to member's physical port of described second stack port.
In conjunction with the implementation that the second is possible, in the implementation that the third is possible, described processing unit specifically for:
When determining that the number of member's physical port that described second stack port comprises does not reach the second preset maximum value, described physical port is set to member's physical port of described second stack port.
In conjunction with the third aspect to the possible implementation of any one in the third possible implementation, in the 4th kind of possible implementation, described receiving element is also for, the conversion command that the configuration AutoConfig equipment automatically that receives sends;
Described processing unit also for, according to described conversion command, described physical port is converted to stacking pattern.
Fourth aspect present invention provides another kind of stack member apparatus, comprising:
Transmitting element, for sending stacking probe messages by the member's physical port in the first stack port to the second stack member apparatus, wherein, described stacking probe messages carries the identification information of described first stack port;
Receiving element, for being received the stacking response message that described second stack member apparatus sends by described member's physical port, wherein, described stacking response message carries the identification information of the second stack port; Described second stack port is the stack port of described first stack port of correspondence that described second stack member apparatus is set up according to the identification information of described first stack port;
Processing unit, for setting up the corresponding relation of described second stack port and described first stack port according to the identification information of described second stack port.
In the first possible implementation of fourth aspect, described processing unit specifically for:
After determining described stack member apparatus not to exist the stack port corresponding with described first stack port, set up the corresponding relation of described second stack port and described first stack port according to the identification information of described second stack port.
Adopt such scheme, first stack member apparatus receives the stacking probe messages of the second stack member apparatus by the member's physical port transmission in the first stack port by physical port, and set up should the second stack port of the first stack port according to the identification information of this first stack port in this stacking probe messages, this first stack member apparatus is after the member's physical port this physical port being set to this second stack port, stacking response message is sent to this second stack member apparatus by this physical port, so that this second stack member apparatus sets up the corresponding relation of this first stack port and this second stack port according to the identification information of this second stack port in this stacking response message, like this, owing to configuring this second stack port without the need to user, thus avoid the mistake that artificially configures and may occur and reduce user configured workload.
Accompanying drawing explanation
The method flow schematic diagram of a kind of configuring stacking port that Fig. 1 provides for the embodiment of the present invention;
The method flow schematic diagram of the another kind of configuring stacking port that Fig. 2 provides for the embodiment of the present invention;
The method flow schematic diagram of the another kind of configuring stacking port that Fig. 3 provides for the embodiment of the present invention;
The structural representation of the equipment of a kind of configuring stacking port that Fig. 4 provides for the embodiment of the present invention;
The structural representation of the equipment of the another kind of configuring stacking port that Fig. 5 provides for the embodiment of the present invention;
The structural representation of the equipment of the another kind of configuring stacking port that Fig. 6 provides for the embodiment of the present invention;
The structural representation of the equipment of the another kind of configuring stacking port that Fig. 7 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of method of configuring stacking port, as shown in Figure 1, comprising:
S101, the first stack member apparatus receive the stacking probe messages of the second stack member apparatus by the member's physical port transmission in the first stack port by physical port.
Wherein, this stacking probe messages carries the identification information of this first stack port.
It should be noted that, stack member apparatus in pile system can send stacking probe messages by the member's physical port in stack port to other stack member apparatus be connected with this stack member apparatus according to predetermined period, then before the first stack member apparatus receives the stacking probe messages of the second stack member apparatus by the member's physical port transmission in the first stack port by physical port, user needs to be connected by the member's physical port in this physical port of this first stack member apparatus and the first stack port of this second stack member apparatus by cable, so that this second stack member apparatus sends this stacking probe messages by the member's physical port in this first stack port, this first stack member apparatus can receive this stacking probe messages by this physical port.
S102, this first stack member apparatus are when determining that according to the identification information of this first stack port described first stack member apparatus does not exist the stack port corresponding with this first stack port, set up the second stack port, and this physical port is set to member's physical port of this second stack port.
Wherein, this second stack port is the stack port corresponding with this first stack port, and namely described second stack port can connect described first stack port by stacking link.
Particularly, this first stack member apparatus is after the identification information obtaining this first stack port, determine the identification information that there is not the stack port corresponding with the identification information of this first stack port in the stack port of this first stack member apparatus, namely determine that this first stack member apparatus does not exist the stack port corresponding with this first stack port, then this first stack member apparatus sets up second stack port corresponding with this first stack port, wherein, this first stack member apparatus can by the corresponding relation of the identification information of the identification information and this second stack member apparatus of setting up this first stack member apparatus of corresponding relation table record.
Further, this first stack member apparatus, when the number of the stack port determining this first stack member apparatus does not reach the first preset maximum value, sets up this second stack port.
It should be noted that, each stack member apparatus in pile system is configured with the preset maximum value of stack port number, then before this first stack member apparatus sets up this second stack port, the number of the stack port determining this first stack member apparatus is also needed not reach this first preset maximum value, if the number of the stack port of this first stack member apparatus has reached this preset maximum value, then this first stack member apparatus cannot set up this second stack port.
In the another kind of possible implementation of the present invention, this first stack member apparatus is when determining to there is second stack port corresponding with this first stack port according to the identification information of this first stack port, this physical port is set to member's physical port of this second stack port by this first stack member apparatus.
It should be noted that, when this first stack member apparatus receives the stacking probe messages that this second stack member apparatus sent by this first stack port first, there is not this second stack port in this first stack member apparatus, needs to set up this second stack port.When this first stack member apparatus receives by physical port the stacking probe messages that this second stack member apparatus sent by this first stack port again, there is this second stack port in this first stack member apparatus, now, if when member's physical port of this second stack port comprises this physical port, this the first stack member apparatus upgrades the Link State of physical link corresponding to this physical port, as upgraded the heart beat cycle of this physical link; If do not comprise this physical port in member's physical port of this second stack port, then this physical port is set to member's physical port of this second stack port by this first stack member apparatus.
Further, when the number of member's physical port of this second stack port does not reach the second preset maximum value, this physical port is set to member's physical port of this second stack port.
It should be noted that, this second stack port is provided with the preset maximum value of member's physical port number, if the number of member's physical port that then this second stack port comprises has reached this preset maximum value, this physical port cannot add this second stack port.
S103, this first stack member apparatus send stacking response message by this physical port to this second stack member apparatus.
Wherein, this stacking response message carries the identification information of this second stack port.Described stacking response message sets up the corresponding relation of this second stack port and this first stack port for making this second stack member apparatus according to the identification information of this second stack port.
Particularly, this second stack member apparatus receives by this first stack port the stacking response message that this first stack member apparatus sent by this physical port, then this second stack member apparatus is after determining to there is not the stack port corresponding with this first stack port, sets up the corresponding relation of this second stack port and this first stack port according to the identification information of this second stack port in this stacking response message.
In addition, before this first stack member apparatus receives the stacking probe messages of this second stack member apparatus by the member's physical port transmission in this first stack port by this physical port, if the physical port of this first stack member apparatus is the port not supporting stacking pattern, namely stacking probe messages can not be received, then this first stack member apparatus needs this physical port to be converted to stacking pattern, after this physical port is converted into stacking pattern, may be used for the message interaction between this first stack member apparatus and other stack member apparatus.
Further, before this first stack member apparatus receives the stacking probe messages of the second stack member apparatus by the member's physical port transmission in the first stack port by physical port, this first stack member apparatus receives the conversion command that configuration AutoConfig equipment automatically sends, and according to this conversion command, physical port is converted to stacking pattern.
It should be noted that, the physical port of stack member apparatus is different in the procotol for carrying out when service message forwards and for needs support during stacking message repeating, this AutoConfig equipment is when determining the stack arrangement information not getting this first stack member apparatus, conversion command is sent to this first stack member apparatus, this first stack member apparatus is converted to procotol for stacking message repeating according to this conversion command by being used for the procotol that service message forwards, thus this physical port is converted to stacking pattern, so that this first stack member apparatus receives this stacking probe messages by this physical port.
Wherein, this stack arrangement information can be the identification information of this pile system, as medium access control (English: Media Access Control, the abbreviation: MAC) address of this pile system.
Adopt said method, first stack member apparatus receives the stacking probe messages of the second stack member apparatus by the member's physical port transmission in the first stack port by physical port, and set up should the second stack port of the first stack port according to the identification information of this first stack port in this stacking probe messages, this first stack member apparatus is after the member's physical port this physical port being set to this second stack port, stacking response message is sent to this second stack member apparatus by this physical port, so that this second stack member apparatus sets up the corresponding relation of this first stack port and this second stack port according to the identification information of this second stack port in this stacking response message, like this, owing to configuring this second stack port without the need to user, thus avoid the mistake that artificially configures and may occur and reduce user configured workload.
The embodiment of the present invention provides a kind of method of configuring stacking port, as shown in Figure 2, comprising:
The first stack member apparatus in S201, pile system sends stacking probe messages by the member's physical port in the first stack port to the second stack member apparatus.
Wherein, this stacking probe messages carries the identification information of this first stack port.
It should be noted that, stack member apparatus in pile system can send stacking probe messages by stack port to other stack member apparatus be connected with this stack member apparatus according to predetermined period, then before the first stack member apparatus sends stacking probe messages by the member's physical port in the first stack port to the second stack member apparatus, user needs to be connected with the physical port of this second stack member apparatus by the member's physical port in this first stack port of this first stack member apparatus by cable, so that this first stack member apparatus sends this stacking probe messages by the member's physical port in this first stack port, this second stack member apparatus can receive this stacking probe messages by this physical port.
S202, this first stack member apparatus receive the stacking response message of described second stack member apparatus transmission by described member's physical port; This second stack port be this second stack member apparatus according to the identification information of this first stack port set up to should the stack port of the first stack port.
Wherein, this stacking response message carries the identification information of this second stack port.
Particularly, this second stack member apparatus is after the identification information obtaining this first stack port, if there is not the identification information of the stack port corresponding with the identification information of this first stack port in this second stack member apparatus, then this second stack member apparatus sets up second stack port corresponding with this first stack port, and after the member's physical port this physical port being set to this second stack port, this second stack member apparatus sends this stacking response message by this physical port to this first stack member apparatus.
S203, this first stack member apparatus set up the corresponding relation of this second stack port and this first stack port according to the identification information of this second stack port.
Particularly, this first stack member apparatus is after determining that described first stack member apparatus does not exist the stack port corresponding with this first stack port, the corresponding relation of this second stack port and this first stack port is set up according to the identification information of this stack port, wherein, this first stack member apparatus can by the corresponding relation of the identification information of the identification information and this first stack port of setting up this second stack port of corresponding relation table record.
It should be noted that, this first stack port can only a corresponding stack port, that is, if when this first stack port has existed corresponding stack port, this first stack member apparatus cannot set up the corresponding relation of this first stack port and this second stack port.
Adopt said method, first stack member apparatus sends stacking probe messages by the member's physical port in the first stack port to the second stack member apparatus, so that this second stack member apparatus sets up the second stack port according to the identification information of this first stack port in this stacking probe messages, and send stacking response message by this physical port to this first stack member apparatus at the member's physical port this physical port being set to this second stack port, then this first stack member apparatus sets up the corresponding relation of this second stack port and this first stack port according to the identification information of this second stack port in this stacking response message, like this, due to without the need to user's configuration to should this second stack port of the first stack port, thus avoid the mistake that artificially configures and may occur and reduce the workload of user.
Composition graphs 1 and the embodiment shown in Fig. 2, the embodiment of the present invention provides a kind of method of configuring stacking port, below describes not exhaustive part, can with reference to the above-mentioned description to Fig. 1 and Fig. 2.As shown in Figure 3, described method comprises:
The first stack member apparatus in S301, pile system sends stacking probe messages by the member's physical port in the first stack port to the second stack member apparatus.
Wherein, this stacking probe messages carries the identification information of this first stack port.
It should be noted that, stack member apparatus in pile system can send stacking probe messages by stack port to other stack member apparatus be connected with this stack member apparatus according to predetermined period, then before the first stack member apparatus sends stacking probe messages by the member's physical port in the first stack port to the second stack member apparatus, user needs to be connected with the physical port of this second stack member apparatus by the member's physical port in this first stack port of this first stack member apparatus by cable, so that this first stack member apparatus sends this stacking probe messages by the member's physical port in this first stack port, this second stack member apparatus can receive this stacking probe messages by this physical port.
According to the identification information of this first stack port in this stacking probe messages, S302, this second stack member apparatus determine whether this second stack member apparatus exists second stack port corresponding with this first stack port.
Illustratively, this second stack member apparatus is after the identification information obtaining this first stack port, judge the identification information that whether there is the stack port corresponding with the identification information of this first stack port in the stack port of this second stack member apparatus, namely judge whether this second stack member apparatus exists the stack port corresponding with this first stack port.
If so, perform step S303, if not, perform step S304 to step S306
S303, when the number of member's physical port of this second stack port does not reach the second preset maximum value, this physical port is set to member's physical port of this second stack port.
It should be noted that, this second stack port is provided with the second preset maximum value of member's physical port number, if the number of member's physical port that then this second stack port comprises has reached this second preset maximum value, this physical port cannot add this second stack port, process ends; If the number of member's physical port of this second stack port does not reach this preset maximum value, then this physical port is set to member's physical port of this second stack port, process ends.
S304, when the number of the stack port of this second stack member apparatus does not reach the first preset maximum value, this second stack member apparatus sets up second stack port corresponding with this first stack port, and this physical port is set to member's physical port of this second stack port.
It should be noted that, each stack member apparatus in pile system is configured with the first preset maximum value of stack port number, then before this second stack member apparatus sets up this second stack port, the number of the stack port determining this second stack member apparatus is also needed not reach this first preset maximum value, if the number of the stack port of this first stack member apparatus has reached this preset maximum value, then this first stack member apparatus cannot set up this second stack port.
Illustratively, when the number of the stack port of this second stack member apparatus does not reach the first preset maximum value, this second stack member apparatus sets up this second stack port, by the corresponding relation of the identification information of this second stack port of corresponding relation table record and the identification information of this first stack port, and this physical port is set to member's physical port of this second stack port, make this first stack port corresponding with this second stack port.
S305, this second stack member apparatus send stacking response message by this physical port to this first stack member apparatus.
Wherein, this stacking response message carries the identification information of this second stack port.
S306, this first stack member apparatus, after determining to there is not the stack port corresponding with this first stack port, set up the corresponding relation of this first stack port and this second stack port according to the identification information of this second stack port in this stacking response message.
It should be noted that, this first stack port can only a corresponding stack port, that is, if when this first stack port has existed corresponding stack port, this first stack member apparatus cannot set up the corresponding relation of this first stack port and this second stack port, process ends.
Adopt said method, owing to configuring this second stack port without the need to user, thus avoid the mistake that artificially configures and may occur and decrease the workload of user.
It should be noted that, for said method embodiment, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
Corresponding to the method shown in Fig. 1, the embodiment of the present invention provides a kind of stack member apparatus 40, and as shown in Figure 4, this stack member apparatus 40 comprises:
Receiving element 41, for receiving the stacking probe messages that the second stack member apparatus is sent by the member's physical port in the first stack port by physical port.
Wherein, this stacking probe messages carries the identification information of this first stack port.
Processing unit 42, during for determining the first stack member apparatus not to exist the stack port corresponding with this first stack port at the identification information of the first stack port received according to this receiving element 41, set up the second stack port, and this physical port is set to member's physical port of this second stack port.
Wherein, this second stack port is corresponding with this first stack port.
Transmitting element 43, at this processing unit 42 this physical port is set to this second stack port member's physical port after, send stacking response message by this physical port to this second stack member apparatus.Described stacking response message sets up the corresponding relation of this second stack port and this first stack port for making the second stack member apparatus according to the identification information of this second stack port.
Wherein, this stacking response message carries the identification information of this second stack port.
It should be noted that, stack member apparatus in pile system can send stacking probe messages by the member's physical port in stack port to other stack member apparatus be connected with this stack member apparatus according to predetermined period, then before stack member apparatus receives the stacking probe messages of the second stack member apparatus by the member's physical port transmission in the first stack port by physical port, user needs to be connected by the member's physical port in this physical port of this stack member apparatus and the first stack port of this second stack member apparatus by cable, so that this second stack member apparatus sends this stacking probe messages by the member's physical port in this first stack port, this stack member apparatus can receive this stacking probe messages by this physical port.
Particularly, this stack member apparatus is after the identification information obtaining this first stack port, determine the identification information that there is not the stack port corresponding with the identification information of this first stack port in the stack port of this stack member apparatus, namely determine that this stack member apparatus does not exist the stack port corresponding with this first stack port, then this stack member apparatus sets up second stack port corresponding with this first stack port, wherein, this stack member apparatus can by the corresponding relation of the identification information of the identification information and this second stack member apparatus of setting up this stack member apparatus of corresponding relation table record.
Further, this processing unit 42 also for, when the number of the stack port determining this stack member apparatus does not reach the first preset maximum value, set up this second stack port.
It should be noted that, each stack member apparatus in pile system is configured with the first preset maximum value of stack port number, then before this stack member apparatus sets up this second stack port, the number of the stack port determining this stack member apparatus is also needed not reach this first preset maximum value, if the number of the stack port of this stack member apparatus has reached this first preset maximum value, then this stack member apparatus cannot set up this second stack port.
Alternatively, this processing unit 42 specifically for, when determining to there is corresponding with this first stack port the second stack port according to the identification information of this first stack port, this physical port is set to member's physical port of this second stack port.
It should be noted that, when this stack member apparatus receives the stacking probe messages that this second stack member apparatus sent by this first stack port first, this stack member apparatus does not exist this second stack port, therefore need correspondingly to set up this second stack port.When this stack member apparatus receives by physical port the stacking probe messages that this second stack member apparatus sent by this first stack port again, there is this second stack port in this stack member apparatus, now, if when member's physical port of this second stack port comprises this physical port, this stack member apparatus upgrades the Link State of the corresponding physical link of this physical port, as upgraded the heart beat cycle of this physical link; If do not comprise this physical port in member's physical port of this second stack port, then this physical port is set to member's physical port of this second stack port by this stack member apparatus.
Further, this processing unit 42 also for, when determining that the number of member's physical port that this second stack port comprises does not reach the second preset maximum value, this physical port is set to member's physical port of this second stack port.
It should be noted that, this second stack port is provided with the second preset maximum value of member's physical port number, if the number of member's physical port that then this second stack port comprises has reached this second preset maximum value, this physical port cannot add this second stack port.
Alternatively, this receiving element 41 tool is also for, the conversion command that the automatically configuration AutoConfig equipment that receives sends; This processing unit 42 also for, according to described conversion command, described physical port is converted to stacking pattern.
It should be noted that, the physical port of stack member apparatus is different in the procotol for carrying out when service message forwards and for needs support during stacking message repeating, this AutoConfig equipment is when determining the stack arrangement information not getting this first stack member apparatus, conversion command is sent to this first stack member apparatus, this first stack member apparatus is converted to procotol for stacking message repeating according to this conversion command by being used for the procotol that service message forwards, thus this physical port is converted to stacking pattern, so that this first stack member apparatus receives this stacking probe messages by this physical port.
Wherein, this stack arrangement information can be the identification information of this pile system, as the MAC Address of this pile system.
Adopt above-mentioned stack member apparatus, this stack member apparatus receives the stacking probe messages of the second stack member apparatus by the member's physical port transmission in the first stack port by physical port, and set up should the second stack port of the first stack port according to the identification information of this first stack port in this stacking probe messages, this stack member apparatus is after the member's physical port this physical port being set to this second stack port, stacking response message is sent to this second stack member apparatus by this physical port, so that this second stack member apparatus sets up the corresponding relation of this first stack port and this second stack port according to the identification information of this second stack port in this stacking response message, like this, owing to configuring this second stack port without the need to user, thus avoid the mistake that artificially configures and may occur and reduce user configured workload.
Affiliated those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the stack member apparatus of foregoing description and description, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
The embodiment of the present invention provides a kind of stack member apparatus 50, and as shown in Figure 5, this stack member apparatus 50 comprises:
Transmitting element 51, for sending stacking probe messages by the member's physical port in the first stack port to the second stack member apparatus.
Wherein, this stacking probe messages carries the identification information of this first stack port.
Receiving element 52, for receiving the stacking response message that described second stack member apparatus sends by described member's physical port; Described second stack port is the stack port of described first stack port of correspondence that described second stack member apparatus is set up according to the identification information of described first stack port.
Wherein, this stacking response message carries the identification information of this second stack port.
Processing unit 53, the identification information for this second stack port received according to this receiving element 52 sets up the corresponding relation of described second stack port and described first stack port.
It should be noted that, stack member apparatus in pile system can send stacking probe messages by stack port to other stack member apparatus be connected with this stack member apparatus according to predetermined period, then before stack member apparatus sends stacking probe messages by the member's physical port in the first stack port to the second stack member apparatus, user needs to be connected with the physical port of this second stack member apparatus by the member's physical port in this first stack port of this stack member apparatus by cable, so that this stack member apparatus sends this stacking probe messages by the member's physical port in this first stack port, this second stack member apparatus can receive this stacking probe messages by this physical port.
Particularly, this second stack member apparatus is after the identification information obtaining this first stack port, if there is not the identification information of the stack port corresponding with the identification information of this first stack port in this second stack member apparatus, then this second stack member apparatus sets up second stack port corresponding with this first stack port, and after the member's physical port this physical port being set to this second stack port, this second stack member apparatus sends this stacking response message by this physical port to this stack member apparatus.
Further, this processing unit 53 for, after determining that described stack member apparatus does not exist the stack port corresponding with this first stack port, set up the corresponding relation of this second stack port and this first stack port according to the identification information of this second stack port.
Particularly, this stack member apparatus is after determining that described stack member apparatus does not exist the stack port corresponding with this first stack port, the corresponding relation of this second stack port and this first stack port is set up according to the identification information of this stack port, wherein, this stack member apparatus can by the corresponding relation of the identification information of the identification information and this first stack port of setting up this second stack port of corresponding relation table record.
It should be noted that, this first stack port can only a corresponding stack port, that is, if when this first stack port has existed corresponding stack port, this stack member apparatus cannot set up the corresponding relation of this first stack port and this second stack port.
Adopt above-mentioned stack member apparatus, this stack member apparatus sends stacking probe messages by the member's physical port in the first stack port to the second stack member apparatus, so that this second stack member apparatus sets up the second stack port according to the identification information of this first stack port in this stacking probe messages, and send stacking response message by this physical port to this stack member apparatus at the member's physical port this physical port being set to this second stack port, then this stack member apparatus sets up the corresponding relation of this second stack port and this first stack port according to the identification information of this second stack port in this stacking response message, like this, due to without the need to user's configuration to should this second stack port of the first stack port, thus avoid the mistake that artificially configures and may occur and reduce the workload of user.
Affiliated those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the stack member apparatus of foregoing description and description, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
The embodiment of the present invention provides a kind of stack member apparatus 60, and as shown in Figure 6, this stack member apparatus 60 comprises:
Processor (processor) 61, communication interface (Communications Interface) 62, memory (memory) 63 and communication bus 64; Wherein, described processor 61, described communication interface 62 complete mutual communicating with described memory 63 by described communication bus 64.
Processor 61 may be a multi-core central processing unit CPU, or specific integrated circuit ASIC(Application Specific Integrated Circuit), or be configured to the one or more integrated circuits implementing the embodiment of the present invention.
Memory 63 is for depositing program code, and described program code comprises computer-managed instruction and network flow graph.Memory 63 may comprise high-speed RAM memory, still may comprise nonvolatile memory (non-volatile memory), such as at least one magnetic disc store.
Described communication interface 62, for realizing the connection communication between these devices.
Described processor 61 for performing the program code in described memory 63, to realize following operation:
The stacking probe messages of the second stack member apparatus by the member's physical port transmission in the first stack port is received by physical port, and when determining to there is not the stack port corresponding with this first stack port according to the identification information of this first stack port, set up should the second stack port of the first stack port, and after the member's physical port this physical port being set to this second stack port, stacking response message is sent to this second stack member apparatus by this physical port, so that this second stack member apparatus sets up the corresponding relation of this second stack port and this first stack port according to the identification information of this second stack port.
Wherein, this stacking probe messages carries the identification information of this first stack port; This stacking response message carries the identification information of this second stack port.
Alternatively, described operation also comprises, and when the number of the stack port determining this stack member apparatus does not reach the first preset maximum value, sets up this second stack port.
Alternatively, described operation also comprises, and when determining to there is second stack port corresponding with this first stack port according to the identification information of this first stack port, this physical port is set to member's physical port of this second stack port.
Alternatively, described operation also comprises, and when determining that the number of member's physical port that this second stack port comprises does not reach the second preset maximum value, this physical port is set to member's physical port of this second stack port.
Alternatively, described operation also comprises, the conversion command that the configuration AutoConfig equipment automatically that receives sends, and according to described conversion command, described physical port is converted to stacking pattern.
The embodiment of the present invention provides a kind of stack member apparatus 70, and as shown in Figure 7, this stack member apparatus 70 comprises:
Processor (processor) 71, communication interface (Communications Interface) 72, memory (memory) 73 and communication bus 74; Wherein, described processor 71, described communication interface 72 complete mutual communicating with described memory 73 by described communication bus 74.
Processor 71 may be a multi-core central processing unit CPU, or specific integrated circuit ASIC(Application Specific Integrated Circuit), or be configured to the one or more integrated circuits implementing the embodiment of the present invention.
Memory 73 is for depositing program code, and described program code comprises computer-managed instruction and network flow graph.Memory 73 may comprise high-speed RAM memory, still may comprise nonvolatile memory (non-volatile memory), such as at least one magnetic disc store.
Described communication interface 72, for realizing the connection communication between these devices.
Described processor 71 for calling the program code in described memory 73, to perform following operation:
Stacking probe messages is sent to the second stack member apparatus by the member's physical port in the first stack port, the stacking response message of described second stack member apparatus transmission is received by described member's physical port, wherein, described stacking response message carries the identification information of the second stack port; Described second stack port is the stack port of described first stack port of correspondence that described second stack member apparatus is set up according to the identification information of described first stack port, and sets up the corresponding relation of this second stack port and this first stack port according to the identification information of this second stack port.
Wherein, this stacking probe messages carries the identification information of this first stack port; This stacking response message carries the identification information of this second stack port.
Alternatively, described operation also comprises, and after determining that described stack member apparatus does not exist the stack port corresponding with this first stack port, sets up the corresponding relation of this second stack port and this first stack port according to the identification information of this second stack port.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (14)

1. a method for configuring stacking port, is characterized in that, comprising:
First stack member apparatus receives the stacking probe messages of the second stack member apparatus by the member's physical port transmission in the first stack port by physical port, and wherein, described stacking probe messages carries the identification information of described first stack port;
When determining described first stack member apparatus not to exist the stack port corresponding with described first stack port according to the identification information of described first stack port, set up the second stack port, and described physical port is set to member's physical port of described second stack port; Wherein, described second stack port is corresponding with described first stack port;
Send stacking response message by described physical port to described second stack member apparatus, wherein, described stacking response message carries the identification information of described second stack port.
2. method according to claim 1, is characterized in that, described second stack port of setting up comprises:
When the number of the stack port determining described first stack member apparatus does not reach the first preset maximum value, set up described second stack port.
3. method according to claim 1, is characterized in that, when determining described first stack member apparatus to exist second stack port corresponding with described first stack port according to the identification information of described first stack port, described method also comprises:
Described physical port is set to member's physical port of described second stack port.
4. method according to claim 3, is characterized in that, the described member's physical port described physical port being set to described second stack port comprises:
When determining that the number of member's physical port that described second stack port comprises does not reach the second preset maximum value, described physical port is set to member's physical port of described second stack port.
5. the method according to any one of Claims 1-4, it is characterized in that, before described first stack member apparatus receives the stacking probe messages of the second stack member apparatus by the member's physical port transmission in the first stack port by physical port, described method also comprises:
Receive the conversion command that configuration AutoConfig equipment automatically sends;
According to described conversion command, described physical port is converted to stacking pattern.
6. a method for configuring stacking port, is characterized in that, comprising:
The first stack member apparatus in pile system sends stacking probe messages by the member's physical port in the first stack port to the second stack member apparatus, and wherein, described stacking probe messages carries the identification information of described first stack port;
Received the stacking response message of described second stack member apparatus transmission by described member's physical port, wherein, described stacking response message carries the identification information of the second stack port; Described second stack port is the stack port of described first stack port of correspondence that described second stack member apparatus is set up according to the identification information of described first stack port;
The corresponding relation of described second stack port and described first stack port is set up according to the identification information of described second stack port.
7. method according to claim 6, is characterized in that, the corresponding relation that the described identification information according to described second stack port sets up described second stack port and described first stack port comprises:
After determining that described first stack member apparatus does not exist the stack port corresponding with described first stack port, set up the corresponding relation of described second stack port and described first stack port according to the identification information of described second stack port.
8. a stack member apparatus, is characterized in that, comprising:
Receiving element, for being received the stacking probe messages that the second stack member apparatus is sent by the member's physical port in the first stack port by physical port, wherein, described stacking probe messages carries the identification information of described first stack port;
Processing unit, during for determining the first stack member apparatus not to exist the stack port corresponding with described first stack port at the identification information of this first stack port received according to described receiving element, set up the second stack port, and described physical port is set to member's physical port of described second stack port; Wherein, described second stack port is corresponding with described first stack port;
Transmitting element, for at described processing unit described physical port is set to described second stack port member's physical port after, stacking response message is sent to described second stack member apparatus by described physical port, wherein, described stacking response message carries the identification information of described second stack port.
9. stack member apparatus according to claim 8, is characterized in that, described processing unit specifically for:
When the number of the stack port determining described stack member apparatus does not reach the first preset maximum value, set up described second stack port.
10. stack member apparatus according to claim 8, it is characterized in that, described processing unit specifically for, when determining described first stack member apparatus to exist second stack port corresponding with described first stack port according to the identification information of described first stack port, described physical port is set to member's physical port of described second stack port.
11. stack member apparatus according to claim 10, is characterized in that, described processing unit specifically for:
When determining that the number of member's physical port that described second stack port comprises does not reach the second preset maximum value, described physical port is set to member's physical port of described second stack port.
Stack member apparatus described in 12. any one of according to Claim 8 to 11, is characterized in that, described receiving element is also for, the conversion command that the configuration AutoConfig equipment automatically that receives sends;
Described processing unit also for, according to described conversion command, described physical port is converted to stacking pattern.
13. 1 kinds of stack member apparatus, is characterized in that, comprising:
Transmitting element, for sending stacking probe messages by the member's physical port in the first stack port to the second stack member apparatus, wherein, described stacking probe messages carries the identification information of described first stack port;
Receiving element, for being received the stacking response message that described second stack member apparatus sends by described member's physical port, wherein, described stacking response message carries the identification information of the second stack port; Described second stack port is the stack port of described first stack port of correspondence that described second stack member apparatus is set up according to the identification information of described first stack port;
Processing unit, for setting up the corresponding relation of described second stack port and described first stack port according to the identification information of described second stack port.
14. stack member apparatus according to claim 13, is characterized in that, described processing unit specifically for:
After determining described stack member apparatus not to exist the stack port corresponding with described first stack port, set up the corresponding relation of described second stack port and described first stack port according to the identification information of described second stack port.
CN201310625084.3A 2013-11-28 2013-11-28 A kind of method and apparatus of configuring stacking port Active CN104683130B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310625084.3A CN104683130B (en) 2013-11-28 2013-11-28 A kind of method and apparatus of configuring stacking port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310625084.3A CN104683130B (en) 2013-11-28 2013-11-28 A kind of method and apparatus of configuring stacking port

Publications (2)

Publication Number Publication Date
CN104683130A true CN104683130A (en) 2015-06-03
CN104683130B CN104683130B (en) 2018-05-18

Family

ID=53317763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310625084.3A Active CN104683130B (en) 2013-11-28 2013-11-28 A kind of method and apparatus of configuring stacking port

Country Status (1)

Country Link
CN (1) CN104683130B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789522A (en) * 2016-02-05 2017-05-31 新华三技术有限公司 A kind of creation method and device of virtual network function VNF equipment
WO2017211162A1 (en) * 2016-06-07 2017-12-14 中兴通讯股份有限公司 Automatic connection method and device for port extender apparatus in vertical stack environment
CN109672571A (en) * 2019-01-16 2019-04-23 新华三技术有限公司 Stacking method, device and storage medium
CN110391979A (en) * 2018-04-23 2019-10-29 华为技术有限公司 A kind of network equipment stacking method, the network equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070081463A1 (en) * 2005-10-11 2007-04-12 Subash Bohra System and Method for Negotiating Stack Link Speed in a Stackable Ethernet Switch System
CN101478434A (en) * 2009-01-19 2009-07-08 杭州华三通信技术有限公司 Method for configuring stacking port and exchange equipment
US20100278076A1 (en) * 2007-06-13 2010-11-04 Juniper Networks, Inc. Automatic configuration of virtual network switches
CN102006184A (en) * 2010-11-09 2011-04-06 福建星网锐捷网络有限公司 Management method, device and network device of stack link
CN102394824A (en) * 2011-11-04 2012-03-28 华为技术有限公司 Method and device for sending message in dual-machine annular stacking system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070081463A1 (en) * 2005-10-11 2007-04-12 Subash Bohra System and Method for Negotiating Stack Link Speed in a Stackable Ethernet Switch System
US20100278076A1 (en) * 2007-06-13 2010-11-04 Juniper Networks, Inc. Automatic configuration of virtual network switches
CN101478434A (en) * 2009-01-19 2009-07-08 杭州华三通信技术有限公司 Method for configuring stacking port and exchange equipment
CN102006184A (en) * 2010-11-09 2011-04-06 福建星网锐捷网络有限公司 Management method, device and network device of stack link
CN102394824A (en) * 2011-11-04 2012-03-28 华为技术有限公司 Method and device for sending message in dual-machine annular stacking system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789522A (en) * 2016-02-05 2017-05-31 新华三技术有限公司 A kind of creation method and device of virtual network function VNF equipment
CN106789522B (en) * 2016-02-05 2021-03-26 新华三技术有限公司 Method and device for creating Virtual Network Function (VNF) equipment
WO2017211162A1 (en) * 2016-06-07 2017-12-14 中兴通讯股份有限公司 Automatic connection method and device for port extender apparatus in vertical stack environment
CN110391979A (en) * 2018-04-23 2019-10-29 华为技术有限公司 A kind of network equipment stacking method, the network equipment and storage medium
CN109672571A (en) * 2019-01-16 2019-04-23 新华三技术有限公司 Stacking method, device and storage medium
CN109672571B (en) * 2019-01-16 2022-04-08 新华三技术有限公司 Stacking method, device and storage medium

Also Published As

Publication number Publication date
CN104683130B (en) 2018-05-18

Similar Documents

Publication Publication Date Title
CN204404559U (en) A kind of cloud water-heater system based on Wi-Fi communication
CN104243616A (en) Wi-Fi (wireless fidelity) communication based cloud air conditioner system
CN104683130A (en) Method for configuring stacking port and equipment
CN113364638B (en) Method, electronic device and storage medium for EPA networking
CN103634417A (en) Method for allocating node addresses and computer network architecture
CN105357664A (en) Wireless control system and data communication method thereof
CN105515962A (en) Information processing method and smart home equipment
CN106301472A (en) Method and the website of relay is selected in power line network
CN105721235A (en) Method and apparatus for detecting connectivity
CN108023743B (en) Port auto-negotiation method and device
CN113778739B (en) System repair method, system, equipment and storage medium of all-in-one machine
CN108718287B (en) Data exchange system, establishment method and device thereof and communication system
CN102820986A (en) Self-adaptation method, device and network equipment for working mode of fiber channel interface
CN104243360A (en) Configuration method and device for forwarding link
CN102917370B (en) Method, device and system for determining corresponding near-end unit of far-end unit and far-end unit
CN108667640B (en) Communication method and device, and network access system
CN102857436B (en) Flow transmission method and flow transmission equipment based on IRF (intelligent resilient framework) network
CN105450432A (en) Method for positioning port connection error and associated equipment
CN103067053B (en) Method and device for Bluetooth node processing
CN109614354A (en) Interface assignment method, board, equipment and storage medium
CN104283739A (en) Detection method and device based on distributed ISSU
CN102609388A (en) Slave node circuit, communication method and communication device
CN102571443A (en) Abnormality handling method and device
KR20210045200A (en) Computer program for driving DDS data conversion and transmission device
CN109324994B (en) Chip interconnection method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant