CN104683130B - A kind of method and apparatus of configuring stacking port - Google Patents
A kind of method and apparatus of configuring stacking port Download PDFInfo
- Publication number
- CN104683130B CN104683130B CN201310625084.3A CN201310625084A CN104683130B CN 104683130 B CN104683130 B CN 104683130B CN 201310625084 A CN201310625084 A CN 201310625084A CN 104683130 B CN104683130 B CN 104683130B
- Authority
- CN
- China
- Prior art keywords
- stack
- port
- physical
- stacking
- 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.)
- Active
Links
Landscapes
- Computer And Data Communications (AREA)
Abstract
The embodiment of the present invention provides a kind of method and apparatus of configuring stacking port.It is related to stacking field, to reduce the workload of user configuration and avoid artificially configuring the mistake being likely to occur.This method includes:First stack member apparatus receives stacking probe messages of second stack member apparatus by member's physical port transmission in the first stack port by physical port, and when stack port corresponding with first stack port is not present on determining first stack member apparatus, establish the second stack port of corresponding first stack port, the physical port is arranged to member's physical port of second stack port by first stack member apparatus, and is passed through the physical port and sent stacking response message to second stack member apparatus.The embodiment of the present invention is used for configuring stacking port.
Description
Technical field
The present invention relates to the field of stacking more particularly to a kind of methods and apparatus of configuring stacking port.
Background technology
Pile system refers to more stack member apparatus being stacked into a stack equipment, with the development of Stack Technology,
The scale of pile system is increasing, therefore, is set during the foundation of pile system, it is necessary to establish more stack members
It is standby, wherein, it is attached between each stack member apparatus in pile system by stacking link, which can be one
The stacking aggregated links that physical link or a plurality of physical link are polymerized, in practical applications generally use stack polymerization
Link improves the band width in physical between each stack member apparatus, this is just needed the corresponding multiple physics of the stacking aggregated links
Port is configured to a stack port, that is to say, that the stack port is the logic port being made of multiple member's physical ports.
In the prior art, the method for the stack port of configuring stacking member device is:User establishes the first stack member and sets
Standby stack port, and physical port is determined from the service port of first stack member apparatus, user is by the physical port
It is added in the stack port, and passes through cable by the stacking of the second stack member apparatus in the physical port and pile system
In port member's physical port connection, complete the configuration of the stack member apparatus stack port so that stack member apparatus with
First stack member apparatus can be carried out data transmission by the corresponding aggregated links that stacks of the stack port.
From the foregoing, it will be observed that the stack port of stack member apparatus is realized by user configuration in the prior art, due to
One stack port of first stack member apparatus can only be connected with a stack port of second stack member apparatus, then
If a stack port of first stack member apparatus is connected with multiple stack ports of second stack member apparatus, can lead
The link failure of first stack member apparatus is caused, in this way, with the increase of stack member apparatus number, adds user configuration
Workload, and the stack port with the plurality of stack port may be connected in configuring stacking port, cause chain by user
Road failure.
The content of the invention
The present invention provides a kind of method and apparatus of configuring stacking port, to reduce the workload of user configuration stack port
And it avoids artificially configuring the mistake being likely to occur.
First aspect present invention provides a kind of method of configuring stacking port, including:
First stack member apparatus receives the second stack member apparatus by physical port and passes through in the first stack port
The stacking probe messages that member's physical port is sent, wherein, the mark for stacking probe messages and carrying first stack port
Know information;
It is determining to be not present and institute on first stack member apparatus according to the identification information of first stack port
When stating the corresponding stack port of the first stack port, the second stack port is established, and the physical port is arranged to described
Member's physical port of two stack ports;Wherein, second stack port is corresponding with first stack port;
It is sent by the physical port to second stack member apparatus and stacks response message, wherein, the stacking
Response message carries the identification information of second stack port.
In the first possible realization method of first aspect, second stack port of establishing includes:
When determining that the number of stack port of first stack member apparatus is not up to the first preset maximum value, establish
Second stack port.
With reference to first aspect, in second of possible realization method, believe according to the mark of first stack port
When breath determines to have the second stack port corresponding with first stack port on first stack member apparatus, the side
Method further includes:
The physical port is arranged to member's physical port of second stack port.
It is described by the physical port in the third possible realization method with reference to second of possible realization method
Being arranged to member's physical port of second stack port includes:
When the number for member's physical port that definite second stack port includes is not up to the second preset maximum value,
The physical port is arranged to member's physical port of second stack port.
It, can at the 4th kind with reference to first aspect to the possible realization method of any one of the third possible realization method
In the realization method of energy, the second stack member apparatus is received by physical port in first stack member apparatus and passes through first
Before the stacking probe messages that member's physical port in stack port is sent, the method further includes:
Receive the conversion command for automatically configuring the transmission of AutoConfig equipment;
The physical port is converted to by stacking pattern according to the conversion command.
The method that second aspect of the present invention provides another configuring stacking port, including:
The first stack member apparatus in pile system is by member's physical port in the first stack port to the second heap
Folded member device, which is sent, stacks probe messages, wherein, the mark letter for stacking probe messages and carrying first stack port
Breath;
The stacking response message of the second stack member apparatus transmission is received by member's physical port, wherein,
The identification information for stacking response message and carrying the second stack port;Second stack port is second stack member
The stack port for correspondence first stack port that equipment is established according to the identification information of first stack port;
Second stack port and first stack port are established according to the identification information of second stack port
Correspondence.
In the first possible realization method of second aspect, the identification information according to second stack port
Establishing the correspondence of second stack port and first stack port includes:
After stack port corresponding with first stack port is not present on first stack member apparatus is determined,
Second stack port pass corresponding with first stack port is established according to the identification information of second stack port
System.
Third aspect present invention provides a kind of stack member apparatus, including:
Receiving unit passes through the member in the first stack port for receiving the second stack member apparatus by physical port
The stacking probe messages that physical port is sent, wherein, the mark letter for stacking probe messages and carrying first stack port
Breath;
Processing unit, for determining in the identification information of first stack port received according to the receiving unit
When stack port corresponding with first stack port being not present on one stack member apparatus, the second stack port is established, and
The physical port is arranged to member's physical port of second stack port;Wherein, second stack port and institute
State the first stack port correspondence;
Transmitting element, for the physical port to be arranged to the member of second stack port in the processing unit
After physical port, sent by the physical port to second stack member apparatus and stack response message, wherein the heap
Folded response message carries the identification information of second stack port.
In the first possible realization method of the third aspect, the processing unit is specifically used for, in the definite heap
When the number of the stack port of folded member device is not up to the first preset maximum value, second stack port is established.
With reference to the third aspect, in second of possible realization method, the processing unit is specifically used for, according to
The identification information of first stack port determines to exist on first stack member apparatus corresponding with first stack port
During the second stack port, the physical port is arranged to member's physical port of second stack port.
With reference to second of possible realization method, in the third possible realization method, the processing unit is specifically used
In:
When the number for member's physical port that definite second stack port includes is not up to the second preset maximum value,
The physical port is arranged to member's physical port of second stack port.
It, can at the 4th kind with reference to the third aspect to the possible realization method of any one of the third possible realization method
In the realization method of energy, the receiving unit is additionally operable to, and receives the conversion command for automatically configuring the transmission of AutoConfig equipment;
The processing unit is additionally operable to, and the physical port is converted to stacking pattern according to the conversion command.
Fourth aspect present invention provides another stack member apparatus, including:
Transmitting element sends heap for passing through member's physical port in the first stack port to the second stack member apparatus
Folded probe messages, wherein, the identification information for stacking probe messages and carrying first stack port;
Receiving unit, the stacking for receiving the second stack member apparatus transmission by member's physical port are rung
Message is answered, wherein, the identification information for stacking response message and carrying the second stack port;Second stack port is described
The heap for correspondence first stack port that second stack member apparatus is established according to the identification information of first stack port
Folded port;
Processing unit, for according to the identification information of second stack port establish second stack port with it is described
The correspondence of first stack port.
In the first possible realization method of fourth aspect, the processing unit is specifically used for:
After stack port corresponding with first stack port is not present on the stack member apparatus is determined, according to
The identification information of second stack port establishes the correspondence of second stack port and first stack port.
Using the above program, the first stack member apparatus passes through first by physical port the second stack member apparatus of reception
The stacking probe messages that member's physical port in stack port is sent, and first stacking in the stacking probe messages
The identification information of port establishes the second stack port of corresponding first stack port, and first stack member apparatus is by the object
After reason port is arranged to member's physical port of second stack port, by the physical port to second stack member apparatus
It sends and stacks response message, so as to second stack port of second stack member apparatus in the stacking response message
Identification information establishes the correspondence of first stack port and second stack port, in this way, due to being somebody's turn to do without user configuration
Second stack port, so as to avoid artificially configuring the mistake being likely to occur and reducing the workload of user configuration.
Description of the drawings
Fig. 1 is a kind of method flow schematic diagram of configuring stacking port provided in an embodiment of the present invention;
Fig. 2 is the method flow schematic diagram of another configuring stacking port provided in an embodiment of the present invention;
Fig. 3 is the method flow schematic diagram of another configuring stacking port provided in an embodiment of the present invention;
Fig. 4 is a kind of structure diagram of the equipment of configuring stacking port provided in an embodiment of the present invention;
Fig. 5 is the structure diagram of the equipment of another configuring stacking port provided in an embodiment of the present invention;
Fig. 6 is the structure diagram of the equipment of another configuring stacking port provided in an embodiment of the present invention;
Fig. 7 is the structure diagram of the equipment of another configuring stacking port provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work
Embodiment belongs 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, including:
S101, the first stack member apparatus receive the second stack member apparatus by physical port and pass through the first stack port
In member's physical port send stacking probe messages.
Wherein, which carries the identification information of first stack port.
It should be noted that stack member apparatus in pile system can according to predetermined period by stack port into
Member's physical port sends to other stack member apparatus being connected with the stack member apparatus and stacks probe messages, then in the first heap
Folded member device receives the second stack member apparatus by physical port and is sent out by member's physical port in the first stack port
Before the stacking probe messages sent, user need by cable by the physical port of first stack member apparatus and this second
Member's physical port in first stack port of stack member apparatus is connected, so as to second stack member apparatus by this
Member's physical port in one stack port sends the stacking probe messages, which can pass through the physics
Port receives the stacking probe messages.
S102, first stack member apparatus are determining that described first stacks according to the identification information of first stack port
When stack port corresponding with first stack port being not present on member device, the second stack port is established, and by the physics
Port is arranged to member's physical port of second stack port.
Wherein, which is stack port corresponding with first stack port, i.e., described second stacks end
Mouth can be by stacking the first stack port described in link connection.
Specifically, first stack member apparatus obtain first stack port identification information after, determine this first
There is no the marks with the corresponding stack port of identification information of first stack port in the stack port of stack member apparatus
Know information, that is, determine first stack member apparatus there is no stack port corresponding with first stack port, then this first
Stack member apparatus establishes the second stack port corresponding with first stack port, wherein, which can
To record the identification information of first stack member apparatus and the mark of second stack member apparatus by establishing mapping table
Know the correspondence of information.
Further, which is determining the number of the stack port of first stack member apparatus not
When reaching the first preset maximum value, second stack port is established.
It should be noted that each stack member apparatus in pile system is configured with the default maximum of stack port number
Value, then before first stack member apparatus establishes second stack port, also need to determine first stack member apparatus
The number of stack port is not up to first preset maximum value, if the number of the stack port of first stack member apparatus is
Reach the preset maximum value, then first stack member apparatus can not establish second stack port.
In the alternatively possible realization method of the present invention, first stack member apparatus is according to first stack port
Identification information determine exist the second stack port corresponding with first stack port when, which should
Physical port is arranged to member's physical port of second stack port.
It should be noted that first stack member apparatus receive for the first time second stack member apparatus by this first
During the stacking probe messages that stack port is sent, there is no second stack ports, it is necessary to establish for first stack member apparatus
Second stack port.Lead to when first stack member apparatus receives second stack member apparatus again by physical port
When crossing the stacking probe messages of first stack port transmission, first stack member apparatus there are second stack port, this
When, if member's physical port of second stack port includes the physical port, first stack member apparatus update should
The link state of the corresponding physical link of physical port such as updates the heart beat cycle of the physical link;If second stack port
Member's physical port in not include the physical port, then first stack member apparatus by the physical port be arranged to this second
Member's physical port of stack port.
Further, when the number of member's physical port of second stack port is not up to the second preset maximum value,
The physical port is arranged to member's physical port of second stack port.
It should be noted that second stack port is provided with the preset maximum value of member's physical port number, if then should
The number for member's physical port that second stack port includes has reached the preset maximum value, which can not add in this
Second stack port.
S103, first stack member apparatus are sent by the physical port to second stack member apparatus stacks response
Message.
Wherein, which carries the identification information of second stack port.The stacking response message is used for
Second stack member apparatus is made to establish second stack port and first heap according to the identification information of second stack port
The correspondence of folded port.
Specifically, which receives first stack member apparatus by first stack port and leads to
The stacking response message of physical port transmission is crossed, then second stack member apparatus is determining to be not present and the first stacking end
After the corresponding stack port of mouth, the identification information of second stack port in the stacking response message establishes second heap
Folded port and the correspondence of first stack port.
In addition, first stack member apparatus by the physical port receive second stack member apparatus by this
Before the stacking probe messages that member's physical port in one stack port is sent, if the physics end of first stack member apparatus
Mouth is the port for not supporting stacking pattern, i.e., cannot receive stacking probe messages, then first stack member apparatus needs should
Physical port is converted to stacking pattern, after which is converted into stacking pattern, can be used for first stack member and sets
The standby message interaction between other stack member apparatus.
Further, the second stack member apparatus is received by physical port in first stack member apparatus and passes through first
Before the stacking probe messages that member's physical port in stack port is sent, first stack member apparatus reception automatically configures
The conversion command that AutoConfig equipment is sent, and physical port is converted to by stacking pattern according to the conversion command.
It should be noted that the physical port of stack member apparatus is when for carrying out service message forwarding and for stacking
The procotol difference supported is needed when message forwards, which is determining that first stack member has not been obtained
During the stack arrangement information of equipment, to first stack member apparatus send conversion command, first stack member apparatus according to
The conversion command will be converted to stack the procotol of message forwarding for the procotol that service message forwards, so as to will
The physical port is converted to stacking pattern, so that first stack member apparatus receives stacking detection report by the physical port
Text.
Wherein, which can be the identification information of the pile system, such as the medium access of the pile system
Control(English:Media Access Control, abbreviation:MAC)Address.
Using the above method, the first stack member apparatus receives the second stack member apparatus by physical port and passes through first
The stacking probe messages that member's physical port in stack port is sent, and first stacking in the stacking probe messages
The identification information of port establishes the second stack port of corresponding first stack port, and first stack member apparatus is by the object
After reason port is arranged to member's physical port of second stack port, by the physical port to second stack member apparatus
It sends and stacks response message, so as to second stack port of second stack member apparatus in the stacking response message
Identification information establishes the correspondence of first stack port and second stack port, in this way, due to being somebody's turn to do without user configuration
Second stack port, so as to avoid artificially configuring the mistake being likely to occur and reducing the workload of user configuration.
The embodiment of the present invention provides a kind of method of configuring stacking port, as shown in Fig. 2, including:
The first stack member apparatus in S201, pile system is by member's physical port in the first stack port to
Two stack member apparatus, which are sent, stacks probe messages.
Wherein, which carries the identification information of first stack port.
It should be noted that stack member apparatus in pile system can according to predetermined period by stack port to this
Other stack member apparatus that stack member apparatus is connected, which are sent, stacks probe messages, then passes through the in the first stack member apparatus
Member's physical port in one stack port is sent to the second stack member apparatus before stacking probe messages, and user needs to pass through
Cable is by member's physical port in first stack port of first stack member apparatus and second stack member apparatus
Physical port be connected, so as to first stack member apparatus is sent by member's physical port in first stack port should
Probe messages are stacked, which can receive the stacking probe messages by the physical port.
S202, first stack member apparatus receive second stack member apparatus by member's physical port and send out
The stacking response message sent;Second stack port is believed for second stack member apparatus according to the mark of first stack port
Cease the stack port of the correspondence of foundation first stack port.
Wherein, which carries the identification information of second stack port.
Specifically, second stack member apparatus is after the identification information of first stack port is obtained, if second heap
The identification information of the stack port corresponding with the identification information of first stack port is not present in folded member device, then second heap
Folded member device establishes the second stack port corresponding with first stack port, and by the physical port be arranged to this second
After member's physical port of stack port, second stack member apparatus is by the physical port to first stack member apparatus
Send the stacking response message.
S203, first stack member apparatus establish second stack port according to the identification information of second stack port
With the correspondence of first stack port.
Specifically, which is not present and first heap on first stack member apparatus is determined
After the folded corresponding stack port in port, second stack port and first stacking are established according to the identification information of the stack port
The correspondence of port, wherein, which can record the second stacking end by establishing mapping table
The correspondence of the identification information of mouth and the identification information of first stack port.
It should be noted that first stack port can only correspond to a stack port, that is to say, that if first stacking
When port has existed corresponding stack port, first stack member apparatus can not establish first stack port with this second
The correspondence of stack port.
Using the above method, the first stack member apparatus is by member's physical port in the first stack port to the second heap
Folded member device, which is sent, stacks probe messages, so as to second stack member apparatus in the stacking probe messages this first
The identification information of stack port establishes the second stack port, and in the member that the physical port is arranged to second stack port
Physical port is sent to first stack member apparatus by the physical port and stacks response message, then first stack member is set
The identification information of standby second stack port in the stacking response message establishes second stack port and first heap
The correspondence of folded port, in this way, second stack port due to corresponding to first stack port without user configuration, so as to
It avoids and artificially configures the mistake being likely to occur and reduce the workload of user.
With reference to Fig. 1 and embodiment shown in Fig. 2, the embodiment of the present invention provides a kind of method of configuring stacking port, below
Not exhaustive part is described, can refer to the above-mentioned description to Fig. 1 and Fig. 2.As shown in figure 3, the described method includes:
The first stack member apparatus in S301, pile system is by member's physical port in the first stack port to
Two stack member apparatus, which are sent, stacks probe messages.
Wherein, which carries the identification information of first stack port.
It should be noted that stack member apparatus in pile system can according to predetermined period by stack port to this
Other stack member apparatus that stack member apparatus is connected, which are sent, stacks probe messages, then passes through the in the first stack member apparatus
Member's physical port in one stack port is sent to the second stack member apparatus before stacking probe messages, and user needs to pass through
Cable is by member's physical port in first stack port of first stack member apparatus and second stack member apparatus
Physical port be connected, so as to first stack member apparatus is sent by member's physical port in first stack port should
Probe messages are stacked, which can receive the stacking probe messages by the physical port.
The identification information of first stack port of S302, second stack member apparatus in the stacking probe messages
Determine that second stack member apparatus whether there is the second stack port corresponding with first stack port.
Illustratively, second stack member apparatus obtain first stack port identification information after, judge this second
It whether there is and the corresponding stack port of identification information of first stack port in the stack port of stack member apparatus
Identification information judges that second stack member apparatus whether there is stack port corresponding with first stack port.
If so, step S303 is performed, if it is not, performing step S304 to step S306
S303, when the number of member's physical port of second stack port is not up to the second preset maximum value, by this
Physical port is arranged to member's physical port of second stack port.
It should be noted that second stack port is provided with the second preset maximum value of member's physical port number, then
If the number for member's physical port that second stack port includes has reached second preset maximum value, the physical port without
Method adds in second stack port, terminates flow;If it is pre- that the number of member's physical port of second stack port is not up to this
If maximum, then the physical port is arranged to member's physical port of second stack port, terminates flow.
S304, when the number of the stack port of second stack member apparatus is not up to the first preset maximum value, this
Two stack member apparatus establish corresponding with first stack port the second stack port, and by the physical port be arranged to this
Member's physical port of two stack ports.
It should be noted that each stack member apparatus in pile system be configured with stack port number first it is default most
Big value, then before second stack member apparatus establishes second stack port, also need to determine second stack member apparatus
The number of stack port be not up to first preset maximum value, if the number of the stack port of first stack member apparatus is
Through reaching the preset maximum value, then first stack member apparatus can not establish second stack port.
It illustratively, should when the number of the stack port of second stack member apparatus is not up to the first preset maximum value
Second stack member apparatus establishes second stack port, and the identification information of second stack port is recorded by mapping table
With the correspondence of the identification information of first stack port, and the physical port is arranged to the member of second stack port
Physical port so that first stack port is corresponding with second stack port.
S305, second stack member apparatus are sent by the physical port to first stack member apparatus stacks response
Message.
Wherein, which carries the identification information of second stack port.
S306, first stack member apparatus determined there is no after stack port corresponding with first stack port,
The identification information of second stack port in the stacking response message establishes first stack port and second stacking
The correspondence of port.
It should be noted that first stack port can only correspond to a stack port, that is to say, that if first stacking
When port has existed corresponding stack port, first stack member apparatus can not establish first stack port with this second
The correspondence of stack port terminates flow.
Using the above method, due to that without user configuration second stack port, may go out so as to avoid artificial configuration
Existing mistake and reduce the workload of user.
It should be noted that for above method embodiment, in order to be briefly described, therefore it is all expressed as a series of dynamic
It combines, but those skilled in the art should know, the present invention and from the limitation of described sequence of movement, secondly, this
Field technology personnel should also know, embodiment described in this description belongs to preferred embodiment, involved action and
Module is not necessarily essential to the invention.
Corresponding to method shown in FIG. 1, the embodiment of the present invention provides a kind of stack member apparatus 40, as shown in figure 4, the heap
Folded member device 40 includes:
Receiving unit 41, for by physical port receive the second stack member apparatus by the first stack port into
The stacking probe messages that member's physical port is sent.
Wherein, which carries the identification information of first stack port.
Processing unit 42, for determining in the identification information of the first stack port received according to the receiving unit 41
When stack port corresponding with first stack port being not present on one stack member apparatus, the second stack port is established, and will
The physical port is arranged to member's physical port of second stack port.
Wherein, second stack port is corresponding with first stack port.
Transmitting element 43, for the physical port to be arranged to member's object of second stack port in the processing unit 42
After managing port, sent by the physical port to second stack member apparatus and stack response message.The stacking response message
For make the second stack member apparatus according to the identification information of second stack port establish second stack port with this first
The correspondence of stack port.
Wherein, which carries the identification information of second stack port.
It should be noted that stack member apparatus in pile system can according to predetermined period by stack port into
Member's physical port sends to other stack member apparatus being connected with the stack member apparatus and stacks probe messages, then is being stacked into
Member's equipment receives what the second stack member apparatus was sent by member's physical port in the first stack port by physical port
Before stacking probe messages, user is needed the physical port of the stack member apparatus and second stack member through cable
Member's physical port in first stack port of equipment is connected, so that second stack member apparatus passes through the first stacking end
Member's physical port in mouthful sends the stacking probe messages, which can receive this by the physical port
Stack probe messages.
Specifically, which determines the stack member after the identification information of first stack port is obtained
The identification information with the corresponding stack port of identification information of first stack port is not present in the stack port of equipment, i.e.,
The stack member apparatus is determined there is no stack port corresponding with first stack port, then the stack member apparatus establish with
Corresponding second stack port of first stack port, wherein, which can be marked by establishing correspondence
Record the correspondence of the identification information of the stack member apparatus and the identification information of second stack member apparatus.
Further, which is additionally operable to, and is not reached in the number for the stack port for determining the stack member apparatus
During to the first preset maximum value, second stack port is established.
It should be noted that each stack member apparatus in pile system be configured with stack port number first it is default most
Big value, then before the stack member apparatus establishes second stack port, also need to determine the stacking end of the stack member apparatus
Mouthful number be not up to first preset maximum value, if the number of the stack port of the stack member apparatus have reached this first
Preset maximum value, then the stack member apparatus can not establish second stack port.
Optionally, which is specifically used for, according to the identification information of first stack port determine exist with
During corresponding second stack port of first stack port, which is arranged to member's physics of second stack port
Port.
It first is stacked by this it should be noted that the stack member apparatus receives second stack member apparatus for the first time
During the stacking probe messages that port is sent, second stack port is not present on the stack member apparatus, it is therefore desirable to accordingly build
Found second stack port.The stack member apparatus receives second stack member apparatus again by physical port and passes through this
During the stacking probe messages that the first stack port is sent, the stack member apparatus there are second stack port, if at this point, this
When member's physical port of two stack ports includes the physical port, which updates the physical port counterpart
The link state of link is managed, such as updates the heart beat cycle of the physical link;If in member's physical port of second stack port
Do not include the physical port, then the physical port is arranged to member's physics end of second stack port by the stack member apparatus
Mouthful.
Further, which is additionally operable to, in member's physical port that definite second stack port includes
When number is not up to the second preset maximum value, which is arranged to member's physical port of second stack port.
It should be noted that second stack port is provided with the second preset maximum value of member's physical port number, then
If the number for member's physical port that second stack port includes has reached second preset maximum value, the physical port without
Method adds in second stack port.
Optionally, the receiving unit 41 tool is additionally operable to, and receives the conversion command for automatically configuring the transmission of AutoConfig equipment;
The processing unit 42 is additionally operable to, and the physical port is converted to stacking pattern according to the conversion command.
It should be noted that the physical port of stack member apparatus is when for carrying out service message forwarding and for stacking
The procotol difference supported is needed when message forwards, which is determining that first stack member has not been obtained
During the stack arrangement information of equipment, to first stack member apparatus send conversion command, first stack member apparatus according to
The conversion command will be converted to stack the procotol of message forwarding for the procotol that service message forwards, so as to will
The physical port is converted to stacking pattern, so that first stack member apparatus receives stacking detection report by the physical port
Text.
Wherein, which can be the identification information of the pile system, such as the MAC Address of the pile system.
Using above-mentioned stack member apparatus, which receives the second stack member apparatus by physical port and leads to
Cross the stacking probe messages that member's physical port in the first stack port is sent, and in the stacking probe messages this
The identification information of one stack port establishes the second stack port of corresponding first stack port, and the stack member apparatus was should
After physical port is arranged to member's physical port of second stack port, set by the physical port to second stack member
Preparation send stacking response message, so as to second stack port of second stack member apparatus in the stacking response message
Identification information establish the correspondence of first stack port and second stack port, in this way, due to without user configuration
Second stack port, so as to avoid artificially configuring the mistake being likely to occur and reducing the workload of user configuration.
Affiliated those skilled in the art can be understood that, for convenience and simplicity of description, the heap of foregoing description
The specific work process of folded member device and description, may be referred to the corresponding process in preceding method embodiment, no longer superfluous herein
It states.
The embodiment of the present invention provides a kind of stack member apparatus 50, as shown in figure 5, the stack member apparatus 50 includes:
Transmitting element 51, member's physical port for passing through in the first stack port are sent to the second stack member apparatus
Stack probe messages.
Wherein, which carries the identification information of first stack port.
Receiving unit 52, for receiving the stacking of the second stack member apparatus transmission by member's physical port
Response message;Second stack port is second stack member apparatus according to the identification information of first stack port
The stack port of correspondence first stack port of foundation.
Wherein, which carries the identification information of second stack port.
Processing unit 53, the identification information of second stack port for being received according to the receiving unit 52 establish institute
State the correspondence of the second stack port and first stack port.
It should be noted that stack member apparatus in pile system can according to predetermined period by stack port to this
Other stack member apparatus that stack member apparatus is connected, which are sent, stacks probe messages, then passes through the first heap in stack member apparatus
Member's physical port in folded port is sent to the second stack member apparatus before stacking probe messages, and user needs to pass through cable
By the physics end of member's physical port in first stack port of the stack member apparatus and second stack member apparatus
Mouth is connected, so that the stack member apparatus sends stacking detection report by member's physical port in first stack port
Text, second stack member apparatus can receive the stacking probe messages by the physical port.
Specifically, second stack member apparatus is after the identification information of first stack port is obtained, if second heap
The identification information of the stack port corresponding with the identification information of first stack port is not present in folded member device, then second heap
Folded member device establishes the second stack port corresponding with first stack port, and by the physical port be arranged to this second
After member's physical port of stack port, which is sent by the physical port to the stack member apparatus
The stacking response message.
Further, which is used for, and is not present on the stack member apparatus is determined and first stacking
After the corresponding stack port in port, second stack port and first heap are established according to the identification information of second stack port
The correspondence of folded port.
Specifically, which is not present and first stack port pair on the stack member apparatus is determined
After the stack port answered, pair of second stack port and first stack port is established according to the identification information of the stack port
It should be related to, wherein, which can record the identification information of second stack port by establishing mapping table
With the correspondence of the identification information of first stack port.
It should be noted that first stack port can only correspond to a stack port, that is to say, that if first stacking
When port has existed corresponding stack port, which can not establish first stack port and second stacking
The correspondence of port.
Using above-mentioned stack member apparatus, the stack member apparatus by member's physical port in the first stack port to
Second stack member apparatus, which is sent, stacks probe messages, so that second stack member apparatus is according in the stacking probe messages
The identification information of first stack port establishes the second stack port, and the physical port is being arranged to second stack port
Member's physical port sent by the physical port to the stack member apparatus and stack response message, the then stack member apparatus
The identification information of second stack port in the stacking response message establishes second stack port and first stacking
The correspondence of port, in this way, second stack port due to corresponding to first stack port without user configuration, so as to keep away
Exempt from the mistake that artificial configuration is likely to occur and reduce the workload of user.
Affiliated those skilled in the art can be understood that, for convenience and simplicity of description, the heap of foregoing description
The specific work process of folded member device and description, may be referred to the corresponding process in preceding method embodiment, no longer superfluous herein
It states.
The embodiment of the present invention provides a kind of stack member apparatus 60, as shown in fig. 6, the stack member apparatus 60 includes:
Processor(processor)61st, communication interface(Communications Interface)62nd, memory
(memory)63 and communication bus 64;Wherein, the processor 61, the communication interface 62 and the memory 63 are by described
Communication bus 64 completes mutual communication.
Processor 61 may be a multi-core central processing unit CPU or specific integrated circuit ASIC
(Application Specific Integrated Circuit)Or it is arranged to implement the one of the embodiment of the present invention
A or multiple integrated circuits.
For memory 63 for storing program code, said program code includes computer-managed instruction and network flow graph.It deposits
Reservoir 63 may include high-speed RAM memory, it is also possible to further include nonvolatile memory(non-volatile memory),
A for example, at least magnetic disk storage.
The communication interface 62, the connection communication being used to implement between these devices.
The processor 61 is used to perform the program code in the memory 63, to realize following operation:
The second stack member apparatus is received by physical port to send by member's physical port in the first stack port
Stacking probe messages, and determined according to the identification information of first stack port there is no corresponding with first stack port
Stack port when, establish the second stack port of corresponding first stack port, and by the physical port be arranged to this
After member's physical port of two stack ports, sent by the physical port to second stack member apparatus and stack response report
Text, so as to second stack member apparatus according to the identification information of second stack port establish second stack port with this
The correspondence of one stack port.
Wherein, which carries the identification information of first stack port;The stacking response message carries should
The identification information of second stack port.
Optionally, the operation further includes, and first is not up in the number for the stack port for determining the stack member apparatus
During preset maximum value, second stack port is established.
Optionally, it is described operation further include, according to the identification information of first stack port determine exist with this first
During corresponding second stack port of stack port, which is arranged to member's physical port of second stack port.
Optionally, the operation further includes, and is determining the number of member's physical port that second stack port includes not
When reaching the second preset maximum value, which is arranged to member's physical port of second stack port.
Optionally, the operation further includes, and the conversion command for automatically configuring the transmission of AutoConfig equipment is received, according to institute
It states conversion command and the physical port is converted into stacking pattern.
The embodiment of the present invention provides a kind of stack member apparatus 70, as shown in fig. 7, the stack member apparatus 70 includes:
Processor(processor)71st, communication interface(Communications Interface)72nd, memory
(memory)73 and communication bus 74;Wherein, the processor 71, the communication interface 72 and the memory 73 are by described
Communication bus 74 completes mutual communication.
Processor 71 may be a multi-core central processing unit CPU or specific integrated circuit ASIC
(Application Specific Integrated Circuit)Or it is arranged to implement the one of the embodiment of the present invention
A or multiple integrated circuits.
For memory 73 for storing program code, said program code includes computer-managed instruction and network flow graph.It deposits
Reservoir 73 may include high-speed RAM memory, it is also possible to further include nonvolatile memory(non-volatile memory),
A for example, at least magnetic disk storage.
The communication interface 72, the connection communication being used to implement between these devices.
The processor 71 is used to call the program code in the memory 73, to perform following operation:
It is sent by member's physical port in the first stack port to the second stack member apparatus and stacks probe messages, led to
It crosses member's physical port and receives the stacking response message that second stack member apparatus is sent, wherein, described stack is rung
Message is answered to carry the identification information of the second stack port;Second stack port is second stack member apparatus according to institute
The stack port of correspondence first stack port of the identification information foundation of the first stack port is stated, and according to second stacking
The identification information of port establishes the correspondence of second stack port and first stack port.
Wherein, which carries the identification information of first stack port;The stacking response message carries should
The identification information of second stack port.
Optionally, the operation further includes, and is not present and first stack port on the stack member apparatus is determined
After corresponding stack port, second stack port and the first stacking end are established according to the identification information of second stack port
The correspondence of mouth.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, all should by the change or replacement that can be readily occurred in
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (14)
- A kind of 1. method of configuring stacking port, which is characterized in that including:First stack member apparatus receives the second stack member apparatus by physical port and passes through the member in the first stack port The stacking probe messages that physical port is sent, wherein, the mark letter for stacking probe messages and carrying first stack port Breath;It is determining to be not present on first stack member apparatus and described the according to the identification information of first stack port During the corresponding stack port of one stack port, the second stack port is established, and the physical port is arranged to second heap Member's physical port of folded port;Wherein, second stack port is corresponding with first stack port;It is sent by the physical port to second stack member apparatus and stacks response message, wherein, it is described to stack response Message carries the identification information of second stack port.
- 2. according to the method described in claim 1, it is characterized in that, second stack port of establishing includes:When determining that the number of stack port of first stack member apparatus is not up to the first preset maximum value, described in foundation Second stack port.
- 3. it according to the method described in claim 1, it is characterized in that, is determined according to the identification information of first stack port When there is the second stack port corresponding with first stack port on first stack member apparatus, the method is also wrapped It includes:The physical port is arranged to member's physical port of second stack port.
- 4. according to the method described in claim 3, it is characterized in that, described be arranged to second stacking by the physical port Member's physical port of port includes:When the number for member's physical port that definite second stack port includes is not up to the second preset maximum value, by institute State member's physical port that physical port is arranged to second stack port.
- 5. method according to any one of claims 1 to 4, which is characterized in that pass through in first stack member apparatus Physical port receives the stacking that the second stack member apparatus is sent by member's physical port in the first stack port and detects report Before text, the method further includes:Receive the conversion command for automatically configuring the transmission of AutoConfig equipment;The physical port is converted to by stacking pattern according to the conversion command.
- A kind of 6. method of configuring stacking port, which is characterized in that including:The first stack member apparatus in pile system is stacked by member's physical port in the first stack port to second Member's equipment, which is sent, stacks probe messages, wherein, the identification information for stacking probe messages and carrying first stack port;The stacking response message of the second stack member apparatus transmission is received by member's physical port, wherein, it is described Stack the identification information that response message carries the second stack port;Second stack port is second stack member apparatus According to the stack port for correspondence first stack port that the identification information of first stack port is established;Pair of second stack port and first stack port is established according to the identification information of second stack port It should be related to.
- 7. according to the method described in claim 6, it is characterized in that, the identification information according to second stack port is built The correspondence of vertical second stack port and first stack port includes:After stack port corresponding with first stack port is not present on first stack member apparatus is determined, according to The identification information of second stack port establishes the correspondence of second stack port and first stack port.
- 8. a kind of stack member apparatus, which is characterized in that including:Receiving unit passes through member's physics in the first stack port for receiving the second stack member apparatus by physical port The stacking probe messages that port is sent, wherein, the identification information for stacking probe messages and carrying first stack port;Processing unit, for determining the first heap in the identification information of first stack port received according to the receiving unit When stack port corresponding with first stack port being not present on folded member device, the second stack port is established, and by institute State member's physical port that physical port is arranged to second stack port;Wherein, second stack port and described the One stack port corresponds to;Transmitting element, for the physical port to be arranged to member's physics of second stack port in the processing unit Behind port, sent by the physical port to second stack member apparatus and stack response message, wherein, described stack is rung Message is answered to carry the identification information of second stack port.
- 9. stack member apparatus according to claim 8, which is characterized in that the processing unit is specifically used for:When determining that the number of stack port of the stack member apparatus is not up to the first preset maximum value, described second is established Stack port.
- 10. stack member apparatus according to claim 8, which is characterized in that the processing unit is specifically used for, in basis The identification information of first stack port determines exist and first stack port pair on first stack member apparatus During the second stack port answered, the physical port is arranged to member's physical port of second stack port.
- 11. stack member apparatus according to claim 10, which is characterized in that the processing unit is specifically used for:When the number for member's physical port that definite second stack port includes is not up to the second preset maximum value, by institute State member's physical port that physical port is arranged to second stack port.
- 12. according to claim 8 to 11 any one of them stack member apparatus, which is characterized in that the receiving unit is also used In reception automatically configures the conversion command of AutoConfig equipment transmission;The processing unit is additionally operable to, and the physical port is converted to stacking pattern according to the conversion command.
- 13. a kind of stack member apparatus, which is characterized in that including:Transmitting element sends stacking spy for passing through member's physical port in the first stack port to the second stack member apparatus Text is observed and predicted, wherein, the identification information for stacking probe messages and carrying first stack port;Receiving unit, the stacking for receiving the second stack member apparatus transmission by member's physical port respond report Text, wherein, the identification information for stacking response message and carrying the second stack port;Second stack port is described second The stacking end for correspondence first stack port that stack member apparatus is established according to the identification information of first stack port Mouthful;Processing unit, for establishing second stack port and described first according to the identification information of second stack port The correspondence of stack port.
- 14. stack member apparatus according to claim 13, which is characterized in that the processing unit is specifically used for:After stack port corresponding with first stack port is not present on the stack member apparatus is determined, according to described The identification information of second stack port establishes the correspondence of second stack port and first stack port.
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 CN104683130A (en) | 2015-06-03 |
CN104683130B true 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) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106789522B (en) * | 2016-02-05 | 2021-03-26 | 新华三技术有限公司 | Method and device for creating Virtual Network Function (VNF) equipment |
CN107483366B (en) * | 2016-06-07 | 2021-11-05 | 中兴通讯股份有限公司 | Automatic connection method and device for interface expansion equipment of longitudinal stacking environment |
CN112491705B (en) * | 2018-04-23 | 2021-12-21 | 华为技术有限公司 | Network equipment stacking method, network equipment and storage medium |
CN109672571B (en) * | 2019-01-16 | 2022-04-08 | 新华三技术有限公司 | Stacking method, device and storage medium |
CN118101556A (en) * | 2022-11-25 | 2024-05-28 | 中兴通讯股份有限公司 | Stacking system, main control replacement method, main control replacement equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (2)
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 |
US7756027B1 (en) * | 2007-06-13 | 2010-07-13 | Juniper Networks, Inc. | Automatic configuration of virtual network switches |
-
2013
- 2013-11-28 CN CN201310625084.3A patent/CN104683130B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104683130A (en) | 2015-06-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104683130B (en) | A kind of method and apparatus of configuring stacking port | |
CN104579727B (en) | A kind of method and apparatus for the network connection for managing network node | |
CN101984606A (en) | Device-level redundancy protection method and system based on LACP | |
CN108900384A (en) | Network flow monitoring method, apparatus and system, computer readable storage medium | |
CN105743801A (en) | Method and device of flow forwarding of stack system | |
CN105122737A (en) | Link aggregation method, apparatus, and system | |
CN104937896A (en) | Method for processing address resolution protocol message, forwarder and controller | |
CN108173691A (en) | A kind of method and device of cross-equipment aggregation | |
CN106452873A (en) | Control method, control device and processor in software defined network | |
CN105379201A (en) | Path switching method and device | |
CN104579809B (en) | The detection method and equipment of a kind of stacking splitting | |
CN103812769B (en) | TRILL network construction method, node and system | |
CN102938722B (en) | The method and device that a kind of network equipment periodic protocol is given out a contract for a project | |
CN202978988U (en) | Power failure alarm system and power failure alarm device | |
CN105765909A (en) | Link switching method and device | |
CN104468158B (en) | The method and apparatus of state advertisement between a kind of node | |
CN108092896A (en) | Pile system and aggregation group establish device | |
CN104618123A (en) | Power supply method and device | |
JPWO2018003597A1 (en) | Server, switch, communication system, communication method, and program | |
CN104507059B (en) | A kind of multimedia message transmitting administrative method and multimedia message send managing device | |
CN108667640A (en) | Communication means and equipment, network access system | |
CN107872331A (en) | A kind of port method to set up, apparatus and system | |
CN102857436A (en) | Flow transmission method and flow transmission equipment based on IRF (intelligent resilient framework) network | |
CN110308997A (en) | Method based on OpenStack platform management GPU equipment | |
CN109614354A (en) | Interface assignment method, board, equipment and storage medium |
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 |