WO2009059476A1 - A method for distributing the device number in a stacking system - Google Patents

A method for distributing the device number in a stacking system Download PDF

Info

Publication number
WO2009059476A1
WO2009059476A1 PCT/CN2007/003914 CN2007003914W WO2009059476A1 WO 2009059476 A1 WO2009059476 A1 WO 2009059476A1 CN 2007003914 W CN2007003914 W CN 2007003914W WO 2009059476 A1 WO2009059476 A1 WO 2009059476A1
Authority
WO
WIPO (PCT)
Prior art keywords
device number
assigned
master
stack system
stack
Prior art date
Application number
PCT/CN2007/003914
Other languages
French (fr)
Chinese (zh)
Inventor
Zheng Zhang
Original Assignee
Zte Corporation
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 Zte Corporation filed Critical Zte Corporation
Publication of WO2009059476A1 publication Critical patent/WO2009059476A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]

Definitions

  • the present invention relates to the field of data communications, and in particular, to a method for allocating device numbers of a stacking system.
  • the routing switching device is the most important and core component of the Internet. It is responsible for the route propagation and traffic forwarding of the Internet.
  • the routing and switching equipment includes routers and switches.
  • the administrator determines the deployment of routers and switches according to the network planning. As the network scales larger and larger, there are more and more routing and switching devices, and its management complexity increases exponentially.
  • the overhead of the device, such as memory and processor, can be reduced to the most ⁇ .
  • This method is stacking.
  • the entire stacking system is a device from the outside world. Generally, a stack system includes a master device, a standby device, and other common devices (also called member devices).
  • the most important point of stack system management is that after the entire stacking system is established, the stacking device number must be assigned to the devices in the stacking system.
  • This device number can be used not only as a simplified code for each device, but also for For the purpose of generating internal communication addresses and other important uses, the device number is a vital part of the implementation of the stacking system and is generally assigned by the master device. Therefore, the rationality and reliability of the assignment of device numbers in a stacking system is the most important part of the implementation of the stacking system.
  • this allocation method is a direct sequential allocation method.
  • the master device in the stacking system performs device number assignment to all devices in turn, and the assigned device number is from small to large.
  • This allocation method is the device number. It does not have special meaning. It is only the device identification in the stacking system. The manager can not see other characteristics of the device from the surface of the device number, such as whether it is a better device.
  • this method of allocation is a distance representation. It is a geographical location-based allocation method.
  • the master device in the stack system allocates device numbers to all devices in turn, and the device with the smaller device number indicates that the distance from the master device is closer.
  • This method of distribution makes The device number has a certain meaning, and it is more suitable for a very stable stacking system. However, if a stacking system is expanded and a new device is added, the order of assigning the device number will be disrupted, and the identification distance will also be lost. The meaning. For example, the device number in the stacking system has been allocated, and the device number shows the distance from the master device with device number 1. However, when the stack system is expanded, for example, when a new device is added between the device number 2 and the device number 4, the device number can only be assigned to 9, and the device number 9 has been lost between the master device and the master device. The meaning of distance.
  • this is a stacking system that has been assigned a device number, but one of the devices is unstable. It is always repeatedly removed and added to the stacking system, showing an oscillating state. Each time the primary device rejoins the stacking system, the primary device assigns a new device number to the device. For example, in the figure, the device with the initial device number 4 is added to the stacking system because it is unstable. The device number went through 9, 10 to 11. Because of the instability of the device, the number of the assigned stack is variable. As a result, other devices in the stack system need to update the information about the unstable device with the master device. As a result, the information of the stack system is turbulent, which is not conducive to the stability of the stack system. .
  • the device number of the stacking system should reflect the priority of the device, etc., and it is easy to adapt to the expansion of the stacking system, and it is easy to keep the information of the stacking system stable. Therefore, the device number allocation mode of the stacking system is more reasonable and reliable, and the stability of the stacking system is enhanced. Summary of the invention
  • the technical problem to be solved by the present invention is to provide a method for allocating device numbers of a stacking system, which can improve the controllability of the stacking system, easily adapt to the expansion of the stacking system, and maintain the information stability of the stacking system.
  • the present invention provides a method for allocating a device number of a stacking system, including:
  • the device When the device leaves the stack system, it retains the device number assigned to the device; when the device joins the stack system again, it uses the device number reserved for it.
  • the stacking system includes a master device, a standby device, and a member device, and the method includes:
  • the master device of the stack system is reserved for the member device.
  • the device number of the device is allocated to the member device when the member device is added to the stack system.
  • the standby device When the primary device leaves the stacking system, the standby device retains its device number; when the primary device joins again, it assigns the reserved device number to it.
  • the method for allocating further includes:
  • the master device When no device number is assigned to a newly joined member device, the master device assigns the device number of the member device that leaves the system to the newly joined member device.
  • the method for allocating further includes:
  • the information that the master device assigns the device number to each device in the stack system includes the priority and media access control address, or any one of them.
  • the method for allocating further includes:
  • the master device of the stack system reserves the number when performing device number assignment.
  • the method for allocating further includes:
  • the device number used for the allocation is divided into a plurality of number segments, and each number segment corresponds to a different priority; each device is assigned a device number in a number segment corresponding to its priority; and a number of reserved in each number segment The device number is assigned to the member device that is newly added to the stacking system.
  • the method for allocating further includes:
  • Assigning the device number in the number segment corresponding to the priority of each stack device means that the device numbers in the number segment are randomly or randomly assigned to devices with corresponding priorities.
  • the method for allocating further includes:
  • the master device records the device number of the member device in the order of leaving the stack system. When the member device joins, the device number is deleted from the device record. When no device number is assigned to the newly added member device, the device records the most. The device number of the member device that leaves the system first is assigned to the new member device.
  • the method for allocating further includes:
  • the master device starts timing.
  • the member device joins again, it stops timing and restores the timer to 0.
  • the timer restores the timer to 0.
  • the method for allocating further includes:
  • the master device starts timing from 0.
  • the member device joins again, it stops timing and restores the timer to 0.
  • the threshold is set, the corresponding device number is added to the candidate device number queue. If the member device is added, the device number is deleted from the candidate queue; when no device number is assigned to the newly added member device. , Select one of the alternate device numbers to assign.
  • the method for allocating further includes:
  • the master device and the standby device store the correspondence between the device number of the member device and the media access control address
  • the master device of the stack system retains the device number assigned to the member device.
  • the master device accesses the control address and the device according to the member device.
  • the saved relationship is assigned to the reserved device number.
  • the standby device retains the device number of the primary device as the current primary device of the stack system.
  • the current master device allocates the reserved device number according to its media access control address and the saved correspondence.
  • the device number allocation method of the stacking system described above implements the routing switching device to form a stacking system.
  • attention is paid to the rationality and reliability of the device number allocation, so that the information represented by the device number is more and can be manually controlled. , to make the controllability stronger; and to have sufficient reservation, so that the allocation of the device number can be easily adapted to the expansion of the stacking system; and also has a retention feature, which is easy to keep the information of the stack system stable, thereby enhancing the stacking system. Reliability and stability.
  • the method for assigning the device number of the stacking system makes the allocation of the device number more reasonable and reliable, and the device number can identify the priority of the device and the like; and can be artificially controlled to make the controllability stronger;
  • the number is fully reserved and can be applied to the expansion of the stacking system. It also has a retention feature that keeps the device number unchanged when the stack system is oscillating, ensuring the stability of the stack system. The stability and stability are greatly enhanced, making the management of the stacking system more compact and controllable.
  • FIG. 1 is a device number diagram of a stacking system in a conventional sequential manner in the prior art
  • FIG. 2 is a schematic diagram of a stacking system device number in a prior art according to a distance from a master device
  • FIG. 3 is a stacking method in the prior art.
  • FIG. 4 is a flow chart in an application example of the present invention
  • the main idea of the method for allocating the device number of the stacking system of the present invention is to enable the device number to identify information such as the priority of the device, and to perform artificial control to make the controllability stronger; the sufficient reserved number segment function is very good. Applicable to the expansion of the stack system.
  • the number segment function is used to keep the information of the stack system stable when the stack system is turbulent. Therefore, the allocation of the device number is more rational and reliable, and the controllability and stability of the stacking system are enhanced.
  • the method for allocating the device number of the stacking system of the present invention includes:
  • the device number retention scheme is used to ensure the stability of the stack information.
  • the specific steps are as follows: The master device and the standby device save the mapping between the device number of the member device and the MAC (Media Access Control) address.
  • the master device of the stack system retains the device number assigned to the member device.
  • the master device saves the MAC address of the member device according to the member device.
  • the corresponding relationship is assigned to the member device whose reserved device number.
  • the standby device retains its device number as the current primary device of the stacking system; when the outgoing primary device joins again, although it does not necessarily become the primary device, it is still reserved for its allocation.
  • the device number that is, the device number of the master device is the same as the original one.
  • the assigned device number is temporarily reserved. If the member device leaves the stacking system, if there is a new device. Joining the stack system, you cannot use the device number of the leaving member; based on this mechanism, when the leaving member device returns to the stack system, the previous device can still be used.
  • the assigned stacking device number is temporarily reserved.
  • the master device will leave the device number assignment of the member device with a long system time.
  • the specific implementation method can be any of the following:
  • the master device records the device number of the member device in the order of leaving the stacking system. When the member device joins, the device number is deleted from the device record. When no device number is assigned to the newly added member device, the device is removed. The device number of the member device that leaves the system first in the record is assigned to the new member device.
  • the master device starts timing.
  • the member device joins again it stops timing and restores the timer to 0.
  • no device number is assigned to the newly joined member device, it will leave the longest time.
  • the device number of the member device is assigned to the new member device.
  • the master device starts timing from 0.
  • the member device joins again it stops timing and restores the timing to 0.
  • the corresponding device number is added to the candidate device number queue. If the member device joins, the device number is deleted from the candidate queue; when no device number is assigned to the new join
  • the time threshold can be artificially selected according to the actual situation, such as the maximum time that the device may leave the stack system when it is in an oscillating state.
  • the stability of the device number ensures that the information of the stack system is stable and the management of the stack system is simpler.
  • the method for allocating the device number of the stacking system of the present invention may further include: the master device assigns the device number according to the priority and/or the MAC address of each device in the stacking system; and may, but is not limited to, assign the device with the higher priority to a smaller device.
  • the priority of the stack system device can be determined automatically by the system or manually. This can affect the device priority by affecting the device priority.
  • the device priority of the stacking system can be automatically set by the system. That is, all devices have the same priority according to the default. However, the importance of the devices in the stacking system is generally different, so the priority is also different, which can affect the election of the master device and the allocation of the device number. For example, a device that is important to certain locations or has a very stable stability can be manually configured to give priority to other devices, so that the device can be elected as the master device and facilitate the management of the stacking system.
  • the method for allocating the device number of the stacking system of the present invention may further include: when the device of the stacking system allocates the device number, the number is reserved; that is, after each number is assigned, some numbers are reserved and are not allocated, When a new member device joins, the reserved number is assigned to the new member device.
  • the scheme of the reserved number and the foregoing scheme for assigning numbers according to the priority and/or the MAC address may be used alone or in combination; the combined use is: dividing the device number for allocation into several number segments, each The number segment corresponds to a different priority, or a MAC address, or a combination thereof; each device is assigned a device number in a number segment corresponding thereto; and a number of device numbers are reserved in each number segment without being allocated; The device ID of the stack system in the future is not disturbed.
  • the device number in the number segment corresponding to each stack device is: When the device number is assigned according to the priority, the specific steps include:
  • the device number assigned to the highest priority device is located in an optimal number segment.
  • the master device itself is the device with the highest priority, so its own device number is 1, and other priorities are given.
  • Devices of the same high level are assigned in the optimal number segment between 2 and 10.
  • the reserved allocation of the sub-optimal number segment can be performed between 11 and 20; also for the device with the same priority, the allocation method is similar, and can be set to 21 after that.
  • the optimal device number segment can be set from 1 to 30; meaning that 30 device numbers are reserved.
  • the device with the highest priority; the device with the lower priority is between 31 and 70, which means that 40 device numbers are reserved for the second-priority device;
  • the device number of the stack system can reflect the device priority of the stack system, etc., so that the device number is not only the device number, but has other meanings such as priority; A sufficient reservation is obtained. Even after the stacking system is expanded, the stacking device number information is not disturbed, so that the stacked device numbers have a stable and long-term meaning.
  • the stacking device number can fully reflect the device priority of the stacking system, and fully cope with the expansion of the stacking system. Moreover, the stacking system can still maintain the stacking system information when the stacking device is turbulent. stable.
  • Step 401 The stacking system is stable. After the topology is established, the master device of the stacking system first assigns the device number to the device with the highest priority, and sets the number segment for the device with the highest priority to be 2 to 10; The device number is 1; the result of the distribution is shown in Figure 5 (a).
  • Step 402 The master device of the stacking system allocates the device number to the stacking device with the lower priority, and the reserved number segment of the device with the lower priority is set to 11 to 20; the allocation result is shown in Figure 5 (b).
  • Step 403 The master device allocates the device number to the stacking device with the lowest priority, and the reserved segment number of the device with the lowest priority is 21 or later; the allocation result is shown in Figure 5 (c).
  • Step 404 After the stacking number is allocated, when the stacking system adds a certain device to the device with the device number 2 and the device number 3, the priority of the newly added device is the lowest, so according to the device number allocation principle, the priority is used.
  • the device numbers in the lowest reserved number segment are sequentially or randomly assigned; the allocation result is shown in Figure 5 (d).
  • Step 405 If the device whose initial device number is assigned to 21 oscillates due to device upgrade or other reasons, the reserved device number 21 is still used each time the device is rejoined to the stacking system, and the allocation result is as shown in FIG. 5(e).
  • the device number allocation method of the routing switching device stacking system described in this document can be used to identify the priority of the device and other information. The control can be performed manually to make the controllability stronger. The method of reserving the device number can be very good. Applicable to the expansion of the stacking system; the function of retaining the device number enables the information of the stacking system to remain stable while the device is oscillating. Thereby, the reliability and stability of the stacking system are greatly enhanced, and the management of the stacking system is simplified, and the controllability of the stacking system is improved.
  • the device number allocation method of the stacking system of the present invention is used for the allocation of the device number of the stacking system formed by the routing switching device, so that the allocation of the device number is more rational and reliable.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A method for distributing the device number in a stacking system includes: when the device leaves the stacking system, the device number of the device is preserved; when the device is joined the stacking system, the preserved device number is used. By using the above method for distributing the device number in a stacking system, the rationalisation and reliability for distributing the device number are improved, and the device number could indicate the priority information and so on. It could be controlled by a person, so the controllability is improved. The enough device numbers are preserved, so it is applied to extend the stacking systemwell. And it has preserving performance, the device number consistency could be maintained and the information stability of the stacking system could be ensured when the stacking device is oscillating. Thus the reliability and stability of the stacking system are improved greatly, then the management of the stacking system is easier, and the controllability is higher.

Description

一种堆叠系统设备号的分配方法  Method for allocating stacking device number
技术领域 Technical field
本发明涉及数据通讯领域, 尤其涉及一种堆叠系统设备号的分配方法。  The present invention relates to the field of data communications, and in particular, to a method for allocating device numbers of a stacking system.
背景技术 Background technique
路由交换设备是现在因特网上的最重要和核心的组成部分,承担着因特 网的路由传播以及流量转发工作,路由交换设备包括路由器和交换机, 管理 者根据网络的规划决定路由器和交换机的部署。 随着网络规模的越来越大, 路由交换设备越来越多,其管理复杂度呈指数级上升。现在已经有一种手段, 对于组网中比较相关的一组设备, 可以将其当成一台设备来进行配置管理, 这些设备之间无需进行动态路由协议、设备互连等相关配置,使得这一组设 备的开销, 例如内存和处理器可以降低到最 <。 这个方法就是堆叠。 整个堆 叠系统在外界看来就是一台设备。一般堆叠系统都包含主设备、备设备和其 他普通设备(也称为成员设备) 。  The routing switching device is the most important and core component of the Internet. It is responsible for the route propagation and traffic forwarding of the Internet. The routing and switching equipment includes routers and switches. The administrator determines the deployment of routers and switches according to the network planning. As the network scales larger and larger, there are more and more routing and switching devices, and its management complexity increases exponentially. There is already a means for configuring a group of devices that are related to a network. You can use it as a device for configuration management. There is no need to configure dynamic routing protocols, device interconnections, etc. between these devices. The overhead of the device, such as memory and processor, can be reduced to the most <. This method is stacking. The entire stacking system is a device from the outside world. Generally, a stack system includes a master device, a standby device, and other common devices (also called member devices).
堆叠系统管理最重要的一点, 就是在整个堆叠系统拓朴建立后, 对该堆 叠系统中的设备, 都要分配堆叠设备号, 这个设备号不仅仅可以作为每个设 备的简化代号, 还可以用于生成内部通讯地址等重要用途,设备号是堆叠系 统实现中至关重要的内容, 一般由主设备进行分配。 因此, 堆叠系统中设备 号的分配合理性、 可靠性就成为堆叠系统实现时最重要的部分。  The most important point of stack system management is that after the entire stacking system is established, the stacking device number must be assigned to the devices in the stacking system. This device number can be used not only as a simplified code for each device, but also for For the purpose of generating internal communication addresses and other important uses, the device number is a vital part of the implementation of the stacking system and is generally assigned by the master device. Therefore, the rationality and reliability of the assignment of device numbers in a stacking system is the most important part of the implementation of the stacking system.
传统的堆叠系统设备号分配有这两种方法:  Traditional stacking system device numbers are assigned in two ways:
如图 1所示, 这种分配方法是直接的顺序分配法, 由堆叠系统中的主设 备对所有设备, 依次进行设备号的分配, 分配的设备号从小到大, 这种分配 方法就是设备号不具有特别意义,仅仅是堆叠系统中的设备标识, 管理者从 设备号表面看不出设备的其他特性, 比如是否为更优的设备等。  As shown in Figure 1, this allocation method is a direct sequential allocation method. The master device in the stacking system performs device number assignment to all devices in turn, and the assigned device number is from small to large. This allocation method is the device number. It does not have special meaning. It is only the device identification in the stacking system. The manager can not see other characteristics of the device from the surface of the device number, such as whether it is a better device.
如图 2所示,这种分配方法是距离表示法。是基于地理位置的分配方法, 由堆叠系统中的主设备对所有设备,距离自己的远近来依次进行设备号的分 配, 设备号越小的设备, 表明其距离主设备的距离就越近。 这种分配方法使 得设备号具有了一定的意义, 比较适用于非常稳定的堆叠系统, 但是如果碰 到堆叠系统扩展, 有新的设备添加时, 设备号的分配次序就会被打乱, 同样 失去了标识距离远近的意义。 比如该堆叠系统中设备号本来已经分配完毕, 设备号都表现出与设备号为 1的主设备之间的距离。但是当堆叠系统进行扩 展, 比如在设备号为 2和设备号为 4中的设备之间加入一台新设备时, 设备 号只能分配成 9, 这时的设备号 9已经失去与主设备之间距离的意义。 As shown in Figure 2, this method of allocation is a distance representation. It is a geographical location-based allocation method. The master device in the stack system allocates device numbers to all devices in turn, and the device with the smaller device number indicates that the distance from the master device is closer. This method of distribution makes The device number has a certain meaning, and it is more suitable for a very stable stacking system. However, if a stacking system is expanded and a new device is added, the order of assigning the device number will be disrupted, and the identification distance will also be lost. The meaning. For example, the device number in the stacking system has been allocated, and the device number shows the distance from the master device with device number 1. However, when the stack system is expanded, for example, when a new device is added between the device number 2 and the device number 4, the device number can only be assigned to 9, and the device number 9 has been lost between the master device and the master device. The meaning of distance.
如图 3所示, 这是一个已经分配好设备号的堆叠系统,但是其中某台设 备比较不稳定, 总是重复的离开又加入堆叠系统, 呈现振荡状态。 主设备每 次在该设备重新加入堆叠系统时, 都会分配一个新设备号给该设备, 例如在 该图中, 最初设备号为 4的设备由于不稳定, 多次离开又加入了堆叠系统, 其设备号经历了 9、 10到了 11。 因为该设备的不稳定性, 造成所分配堆叠 号多变,从而造成堆叠系统其他设备也需要不断跟着主设备更新该不稳定设 备的相关信息, 造成堆叠系统的信息动荡, 不利于堆叠系统的稳定。  As shown in Figure 3, this is a stacking system that has been assigned a device number, but one of the devices is unstable. It is always repeatedly removed and added to the stacking system, showing an oscillating state. Each time the primary device rejoins the stacking system, the primary device assigns a new device number to the device. For example, in the figure, the device with the initial device number 4 is added to the stacking system because it is unstable. The device number went through 9, 10 to 11. Because of the instability of the device, the number of the assigned stack is variable. As a result, other devices in the stack system need to update the information about the unstable device with the master device. As a result, the information of the stack system is turbulent, which is not conducive to the stability of the stack system. .
综上所述, 堆叠系统的设备号应该可以反映设备的优先级等情况, 易于 适应堆叠系统的扩展, 易于保持堆叠系统的信息稳定。从而使堆叠系统的设 备号分配方式更加具有合理性、 可靠性, 并增强堆叠系统的稳定性。 发明内容  In summary, the device number of the stacking system should reflect the priority of the device, etc., and it is easy to adapt to the expansion of the stacking system, and it is easy to keep the information of the stacking system stable. Therefore, the device number allocation mode of the stacking system is more reasonable and reliable, and the stability of the stacking system is enhanced. Summary of the invention
本发明要解决的技术问题是提供一种堆叠系统设备号的分配方法,能够 提高堆叠系统的可控性,易于适应堆叠系统的扩展及保持堆叠系统的信息稳 定。  The technical problem to be solved by the present invention is to provide a method for allocating device numbers of a stacking system, which can improve the controllability of the stacking system, easily adapt to the expansion of the stacking system, and maintain the information stability of the stacking system.
为了解决上述问题, 本发明提供了一种堆叠系统设备号的分配方法, 包 括:  In order to solve the above problems, the present invention provides a method for allocating a device number of a stacking system, including:
当设备离开堆叠系統时, 保留分配给该设备的设备号; 当该设备又加入 该堆叠系统时, 使用为其所保留的设备号。  When the device leaves the stack system, it retains the device number assigned to the device; when the device joins the stack system again, it uses the device number reserved for it.
进一步地, 所述堆叠系统包括主设备、 备设备和成员设备, 所述方法具 体包括:  Further, the stacking system includes a master device, a standby device, and a member device, and the method includes:
当成员设备离开堆叠系统时,该堆叠系统的主设备保留分配给该成员设 备的设备号; 当该成员设备又加入该堆叠系统时, 所述主设备分配为其保留 的设备号给该成员设备; When a member device leaves the stack system, the master device of the stack system is reserved for the member device. The device number of the device is allocated to the member device when the member device is added to the stack system.
当主设备离开堆叠系统时, 备设备保留其设备号; 当所述主设备又加入 时, 为其分配所保留的设备号。  When the primary device leaves the stacking system, the standby device retains its device number; when the primary device joins again, it assigns the reserved device number to it.
进一步地, 所述的分配方法还包括:  Further, the method for allocating further includes:
当没有设备号分配给新加入的成员设备时,主设备将离开系统的成员设 备的设备号分配给该新加入的成员设备。  When no device number is assigned to a newly joined member device, the master device assigns the device number of the member device that leaves the system to the newly joined member device.
进一步地, 所述的分配方法还包括:  Further, the method for allocating further includes:
主设备为堆叠系统中各设备分配设备号依据的信息包括优先级和介质 访问控制地址, 或其中任一个。  The information that the master device assigns the device number to each device in the stack system includes the priority and media access control address, or any one of them.
进一步地, 所述的分配方法还包括:  Further, the method for allocating further includes:
堆叠系统的主设备在进行设备号分配时, 对号码进行预留。  The master device of the stack system reserves the number when performing device number assignment.
进一步地, 所述的分配方法还包括:  Further, the method for allocating further includes:
将用于分配的设备号划分为若干号码段, 各号码段对应于不同的优先 级; 为各堆叠设备分配与其优先级对应的号码段中的设备号; 并在每一号码 段中预留若干设备号, 以分配给新加入该堆叠系统的成员设备。  The device number used for the allocation is divided into a plurality of number segments, and each number segment corresponds to a different priority; each device is assigned a device number in a number segment corresponding to its priority; and a number of reserved in each number segment The device number is assigned to the member device that is newly added to the stacking system.
进一步地, 所述的分配方法还包括:  Further, the method for allocating further includes:
为各堆叠设备分配与其优先级对应的号码段中的设备号是指:将号码段 中的设备号顺序或随机分配给具备对应优先级的设备。  Assigning the device number in the number segment corresponding to the priority of each stack device means that the device numbers in the number segment are randomly or randomly assigned to devices with corresponding priorities.
进一步地, 所述的分配方法还包括:  Further, the method for allocating further includes:
主设备按离开堆叠系统的顺序记录成员设备的设备号,当成员设备又加 入时在离开设备记录中删除其设备号; 当没有设备号分配给新加入的成员设 备时,将离开设备记录中最先离开系统的成员设备的设备号分配给新成员设 备。  The master device records the device number of the member device in the order of leaving the stack system. When the member device joins, the device number is deleted from the device record. When no device number is assigned to the newly added member device, the device records the most. The device number of the member device that leaves the system first is assigned to the new member device.
进一步地, 所述的分配方法还包括:  Further, the method for allocating further includes:
当成员设备离开本堆叠系统时, 主设备开始计时, 当成员设备又加入时 停止计时并将计时恢复为 0; 当没有设备号分配给新加入的成员设备时, 将 离开时间最长的成员设备的设备号分配给新成员设备。 When a member device leaves the stack system, the master device starts timing. When the member device joins again, it stops timing and restores the timer to 0. When no device number is assigned to the newly added member device, The device number of the member device that has left the longest time is assigned to the new member device.
进一步地, 所述的分配方法还包括:  Further, the method for allocating further includes:
设置一个时间阈值并保存在主设备中; 当成员设备离开本堆叠系统时, 主设备从 0开始计时, 当成员设备又加入时停止计时并将计时恢复为 0; 当 一个成员设备对应的计时超过所述阈值时,将其对应的设备号加入备选设备 号队列, 如果该成员设备又加入则将其设备号从备选号队列中删去; 当没有 设备号分配给新加入的成员设备时, 从备选设备号中选择一个进行分配。  Set a time threshold and save it in the master device. When the member device leaves the stack system, the master device starts timing from 0. When the member device joins again, it stops timing and restores the timer to 0. When a member device corresponds to more than one timer. When the threshold is set, the corresponding device number is added to the candidate device number queue. If the member device is added, the device number is deleted from the candidate queue; when no device number is assigned to the newly added member device. , Select one of the alternate device numbers to assign.
进一步地, 所述的分配方法还包括:  Further, the method for allocating further includes:
主设备及备设备保存成员设备的设备号与介质访问控制地址的对应关 系;  The master device and the standby device store the correspondence between the device number of the member device and the media access control address;
当成员设备离开堆叠系统时,该堆叠系统的主设备保留分配给该成员设 备的设备号, 当该成员设备又加入该堆叠系统时, 所述主设备根据该成员设 备的介质访问控制地址与所保存的对应关系为其分配所保留的设备号; 当主 设备离开堆叠系统时,由备设备作为该堆叠系统的当前主设备保留该离开主 设备的设备号, 当其又加入该堆叠系统时, 所述当前主设备根据其介质访问 控制地址与所保存的对应关系为其分配所保留的设备号。  When the member device leaves the stack system, the master device of the stack system retains the device number assigned to the member device. When the member device joins the stack system, the master device accesses the control address and the device according to the member device. The saved relationship is assigned to the reserved device number. When the primary device leaves the stack system, the standby device retains the device number of the primary device as the current primary device of the stack system. When it joins the stack system, The current master device allocates the reserved device number according to its media access control address and the saved correspondence.
上面所述的堆叠系统设备号分配方法实现了路由交换设备形成堆叠系 统, 进行设备号的分配时, 注重设备号分配的合理性和可靠性, 使设备号表 示的信息更多并可进行人为控制, 使可控性更强; 并能有充分的预留, 使设 备号的分配能非常容易的适应于堆叠系统的扩展; 并且还具有保留特性, 易 于保持堆叠系统的信息稳定, 从而增强堆叠系统的可靠性和稳定性。  The device number allocation method of the stacking system described above implements the routing switching device to form a stacking system. When assigning the device number, attention is paid to the rationality and reliability of the device number allocation, so that the information represented by the device number is more and can be manually controlled. , to make the controllability stronger; and to have sufficient reservation, so that the allocation of the device number can be easily adapted to the expansion of the stacking system; and also has a retention feature, which is easy to keep the information of the stack system stable, thereby enhancing the stacking system. Reliability and stability.
采用本发明提供的堆叠系统设备号分配方法,使得设备号的分配合理性 和可靠性更强,设备号可以标识设备的优先級等信息;并可以进行人为控制, 使可控性更强; 设备号预留充分, 能很好的适用于堆叠系统的扩展; 并且还 具有保留特性,使堆叠系统设备动荡时仍然能保持设备号不变, 保证堆叠系 统的信息稳定; 从而使堆叠系统的可靠性和稳定性大大增强,使堆叠系统的 管理更为筒单、 可控性高。 附图概述 The method for assigning the device number of the stacking system provided by the present invention makes the allocation of the device number more reasonable and reliable, and the device number can identify the priority of the device and the like; and can be artificially controlled to make the controllability stronger; The number is fully reserved and can be applied to the expansion of the stacking system. It also has a retention feature that keeps the device number unchanged when the stack system is oscillating, ensuring the stability of the stack system. The stability and stability are greatly enhanced, making the management of the stacking system more compact and controllable. BRIEF abstract
图 1是现有技术中按传统顺序方式分配后的堆叠系统设备号图; 图 2是现有技术中按距离主设备远近情况分配后的堆叠系统设备号图; 图 3是现有技术中堆叠设备多次离开又加入系统时的设备号分配图; 图 4是本发明应用实例中的流程图;  1 is a device number diagram of a stacking system in a conventional sequential manner in the prior art; FIG. 2 is a schematic diagram of a stacking system device number in a prior art according to a distance from a master device; FIG. 3 is a stacking method in the prior art. FIG. 4 is a flow chart in an application example of the present invention;
图 5 ( a )到 (e )是本发明应用实例中各步骤设备号分配结果示意图。  5(a) to (e) are schematic diagrams showing the result of the assignment of the device numbers of the respective steps in the application example of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
下面将结合附图及实施例对本发明的技术方案进行更详细的说明。  The technical solution of the present invention will be described in more detail below with reference to the accompanying drawings and embodiments.
本发明的堆叠系统设备号的分配方法的主要思想是:使设备号可以标识 设备的优先级等信息; 并且可以进行人为控制, 使可控性更强; 充分的预留 号码段功能很好的适用于堆叠系统的扩展;保留号码段功能使堆叠系统设备 动荡时仍然能保持堆叠系统的信息稳定。从而使设备号的分配合理性和可靠 性更强, 增强了堆叠系统的可控性和稳定性。  The main idea of the method for allocating the device number of the stacking system of the present invention is to enable the device number to identify information such as the priority of the device, and to perform artificial control to make the controllability stronger; the sufficient reserved number segment function is very good. Applicable to the expansion of the stack system. The number segment function is used to keep the information of the stack system stable when the stack system is turbulent. Therefore, the allocation of the device number is more rational and reliable, and the controllability and stability of the stacking system are enhanced.
本发明的堆叠系统设备号的分配方法包括:  The method for allocating the device number of the stacking system of the present invention includes:
当堆叠系统设备出现动荡时,使用设备号保留方案保证堆叠信息的稳定 性; 具体步骤为: 主设备及备设备保存成员设备的设备号与 MAC (介质访 问控制)地址的对应关系; 当成员设备由于某些原因离开堆叠系统时, 该堆 叠系统的主设备保留分配给该成员设备的设备号; 当该成员设备又加入该堆 叠系统时, 所述主设备根据该成员设备的 MAC地址和所保存的对应关系分 配为其保留的设备号给该成员设备。 当主设备离开堆叠系统时, 由备设备作 为该堆叠系统的当前主设备保留其设备号; 当所述离开的主设备又加入时, 虽然不一定还成为主设备,但仍为其分配所保留的设备号, 即所述主设备的 设备号还是和原先一样的。  The device number retention scheme is used to ensure the stability of the stack information. The specific steps are as follows: The master device and the standby device save the mapping between the device number of the member device and the MAC (Media Access Control) address. When the system is removed from the stack system for some reason, the master device of the stack system retains the device number assigned to the member device. When the member device joins the stack system, the master device saves the MAC address of the member device according to the member device. The corresponding relationship is assigned to the member device whose reserved device number. When the primary device leaves the stacking system, the standby device retains its device number as the current primary device of the stacking system; when the outgoing primary device joins again, although it does not necessarily become the primary device, it is still reserved for its allocation. The device number, that is, the device number of the master device is the same as the original one.
由上可知,当堆叠系统成员需要离开又加入堆叠系统一一比如设备升级 等情况, 呈现振荡状态时, 其被分配的设备号暂时保留, 在该成员设备离开 堆叠系统期间, 如果有新的设备加入堆叠系统, 也不能使用离开成员的设备 号; 基于这种机制, 当离开的成员设备重返堆叠系统时, 仍然可以使用先前 被分配的堆叠设备号。 It can be seen that when a member of the stack system needs to leave and join the stack system, such as a device upgrade, and the device is in an oscillating state, the assigned device number is temporarily reserved. If the member device leaves the stacking system, if there is a new device. Joining the stack system, you cannot use the device number of the leaving member; based on this mechanism, when the leaving member device returns to the stack system, the previous device can still be used. The assigned stacking device number.
当然,如果可被分配的号码不充分,因为系统的扩展而全部被使用完毕, 则当没有设备号分配给新加入的成员设备时,主设备将离开系统时间较长的 成员设备的设备号分配给该新加入的成员设备;具体实现方法可以是以下几 种中的任一种:  Of course, if the number that can be assigned is insufficient, and all the system extensions are used, when the device number is not assigned to the newly joined member device, the master device will leave the device number assignment of the member device with a long system time. Give the newly added member device; the specific implementation method can be any of the following:
( 1 ) 主设备按离开堆叠系统的顺序记录成员设备的设备号, 当成员设 备又加入时在离开设备记录中删除其设备号;当没有设备号分配给新加入的 成员设备时,将离开设备记录中最先离开系统的成员设备的设备号分配给新 成员设备。  (1) The master device records the device number of the member device in the order of leaving the stacking system. When the member device joins, the device number is deleted from the device record. When no device number is assigned to the newly added member device, the device is removed. The device number of the member device that leaves the system first in the record is assigned to the new member device.
( 2 ) 当成员设备离开本堆叠系统时, 主设备开始计时, 当成员设备又 加入时停止计时并将计时恢复为 0; 当没有设备号分配给新加入的成员设备 时, 将离开时间最长的成员设备的设备号分配给新成员设备。  (2) When the member device leaves the stacking system, the master device starts timing. When the member device joins again, it stops timing and restores the timer to 0. When no device number is assigned to the newly joined member device, it will leave the longest time. The device number of the member device is assigned to the new member device.
( 3 )设置一个时间阔值并保存在主设备中; 当成员设备离开本堆叠系 统时, 主设备从 0开始计时, 当成员设备又加入时停止计时并将计时恢复为 0; 当一个成员设备对应的计时超过所述阈值时, 将其对应的设备号加入备 选设备号队列, 如果该成员设备又加入则将其设备号从备选号队列中删去; 当没有设备号分配给新加入的成员设备时,从备选设备号中选择一个进行分 配。该时间阔值可根据实际情况人为选择, 比如大于设备处于振荡状态时可 能离开堆叠系统的最长时间。  (3) Set a time threshold and save it in the master device. When the member device leaves the stacking system, the master device starts timing from 0. When the member device joins again, it stops timing and restores the timing to 0. When a member device When the corresponding timing exceeds the threshold, the corresponding device number is added to the candidate device number queue. If the member device joins, the device number is deleted from the candidate queue; when no device number is assigned to the new join When you are a member device, select one of the alternate device numbers to assign. The time threshold can be artificially selected according to the actual situation, such as the maximum time that the device may leave the stack system when it is in an oscillating state.
实际应用中不限于以上实现方式, 这里仅 ^¾文参考。  The actual application is not limited to the above implementation manner, and only the reference is given here.
当然, 只要系统规划时可被分配的号码足够, 就不会出现堆叠设备号复 用的情况。  Of course, as long as the number that can be assigned when the system is planned is sufficient, there will be no reuse of the stacked device number.
设备号的稳定由此保证了堆叠系统的信息稳定,堆叠系统的管理也更为 简单。  The stability of the device number ensures that the information of the stack system is stable and the management of the stack system is simpler.
本发明的堆叠系统设备号的分配方法还可以包括:主设备根据堆叠系统 中各设备的优先級和 /或 MAC地址来分配设备号;可以但不限于对优先级越 高的设备分配越小的设备号。 堆叠系统设备优先级的确定可以由系统自动完成,也可以进行人为的指 定, 从而可以通过影响设备优先级来影响主设备的生成。 The method for allocating the device number of the stacking system of the present invention may further include: the master device assigns the device number according to the priority and/or the MAC address of each device in the stacking system; and may, but is not limited to, assign the device with the higher priority to a smaller device. Device No. The priority of the stack system device can be determined automatically by the system or manually. This can affect the device priority by affecting the device priority.
具体步驟为: 堆叠系统的设备优先级可以由系统自动完成设置, 即在默 认情况下, 所有设备优先级是一致的。 但是堆叠系统的设备重要性一般都是 有区别的, 所以其优先级最好也有区别, 从而可以影响到主设备的选举及设 备号的分配。 比如对某些位置重要, 或者稳定性非常好的设备, 可以对其优 先级进行人为配置, 使其优先级优于其他设备, 这样该设备可当选主设备, 便于堆叠系统的管理。  The specific steps are as follows: The device priority of the stacking system can be automatically set by the system. That is, all devices have the same priority according to the default. However, the importance of the devices in the stacking system is generally different, so the priority is also different, which can affect the election of the master device and the allocation of the device number. For example, a device that is important to certain locations or has a very stable stability can be manually configured to give priority to other devices, so that the device can be elected as the master device and facilitate the management of the stacking system.
本发明的堆叠系统设备号的分配方法还可以包括:堆叠系统的主设备在 进行设备号分配时, 对号码进行预留; 即每分配若干号码后, 就预留若干号 码不进行分配, 待有新成员设备加入时, 将预留的号码分配给新成员设备。  The method for allocating the device number of the stacking system of the present invention may further include: when the device of the stacking system allocates the device number, the number is reserved; that is, after each number is assigned, some numbers are reserved and are not allocated, When a new member device joins, the reserved number is assigned to the new member device.
上述预留号码的方案和上述根据优先权和 /或 MAC 地址分配号码的方 案既可以单独使用, 也可以结合起来使用; 结合起来使用就是: 将用于分配 的设备号划分为若干号码段,各号码段对应于不同的优先级、或 MAC地址、 或其结合; 为各堆叠设备分配与其对应的号码段中的设备号; 并在每一号码 段中预留若干设备号不进行分配;从而保证将来扩展后的堆叠系统设备号表 示信息不被打乱; 为各堆叠设备分配与其对应的号码段中的设备号是指: 将 当根据优先级分配设备号时, 具体步骤包括: The scheme of the reserved number and the foregoing scheme for assigning numbers according to the priority and/or the MAC address may be used alone or in combination; the combined use is: dividing the device number for allocation into several number segments, each The number segment corresponds to a different priority, or a MAC address, or a combination thereof; each device is assigned a device number in a number segment corresponding thereto; and a number of device numbers are reserved in each number segment without being allocated; The device ID of the stack system in the future is not disturbed. The device number in the number segment corresponding to each stack device is: When the device number is assigned according to the priority, the specific steps include:
根据所有堆叠设备的优先级信息,可以规定分配给优先级最高设备的设 备号位于某个最优号码段, 比如主设备自己就是优先级最高的设备, 所以其 自身的设备号是 1 ,其他优先级同样高的设备依次分配在最优号码段 2到 10 间。  According to the priority information of all the stacking devices, it can be specified that the device number assigned to the highest priority device is located in an optimal number segment. For example, the master device itself is the device with the highest priority, so its own device number is 1, and other priorities are given. Devices of the same high level are assigned in the optimal number segment between 2 and 10.
再对于次优的设备, 类似于优先级最高的设备, 可以进行次优号码段的 预留分配, 位于 11到 20之间; 同样对于优先级一般的设备, 分配方法同样 类似, 可以设置为 21之后。  For the sub-optimal device, similar to the device with the highest priority, the reserved allocation of the sub-optimal number segment can be performed between 11 and 20; also for the device with the same priority, the allocation method is similar, and can be set to 21 after that.
根据 MAC地址等分配设备号的情况类似, 不再赘述。 当然 , 这里面的号码段制定可以根据实际的堆叠系统情况来进行调整, 比如在规模比较大的堆叠系统中, 可以设置最优设备号码段在 1到 30; 意 思是预留了 30个设备号给优先级最高的设备; 优先级次优的设备号码段在 31到 70之间, 意思是预留了 40个设备号给优先级次优的设备等等; The case where the device number is assigned according to the MAC address or the like is similar and will not be described again. Of course, the number segment definition can be adjusted according to the actual stacking system. For example, in a large-scale stacking system, the optimal device number segment can be set from 1 to 30; meaning that 30 device numbers are reserved. The device with the highest priority; the device with the lower priority is between 31 and 70, which means that 40 device numbers are reserved for the second-priority device;
采用这种方式,堆叠系统的设备号可以反映堆叠系统的设备优先级等情 况, 使设备号不仅仅是设备号, 而是具有优先级等其他的意义; 该设备号预 留手段使设备号可以得到充分的预留, 即使堆叠系统扩展后, 堆叠设备号信 息仍然不被打乱, 使堆叠的设备号具有稳定和长远的意义。  In this way, the device number of the stack system can reflect the device priority of the stack system, etc., so that the device number is not only the device number, but has other meanings such as priority; A sufficient reservation is obtained. Even after the stacking system is expanded, the stacking device number information is not disturbed, so that the stacked device numbers have a stable and long-term meaning.
同前文的设备号保留方案结合使用后,不仅可以使堆叠设备号能充分反 应堆叠系统的设备优先级等情况, 充分应对堆叠系统扩展; 而且能使堆叠设 备出现动荡时仍然能保持堆叠系统信息的稳定。  When combined with the device number retention scheme in the previous section, the stacking device number can fully reflect the device priority of the stacking system, and fully cope with the expansion of the stacking system. Moreover, the stacking system can still maintain the stacking system information when the stacking device is turbulent. stable.
下面用本发明的一个应用实例进一步加以说明。 The following is further illustrated by an application example of the present invention.
在设备号分配阶段的步驟如图 4所示, 包括:  The steps in the device number assignment phase are shown in Figure 4, including:
步骤 401、 堆叠系统稳定, 拓朴建立后, 堆叠系统的主设备先为优先级 最高的设备分配设备号, 为优先级最高的设备预留号码段设置的是 2到 10; 其中, 主设备的设备号为 1 ; 分配结果如图 5 ( a )所示。  Step 401: The stacking system is stable. After the topology is established, the master device of the stacking system first assigns the device number to the device with the highest priority, and sets the number segment for the device with the highest priority to be 2 to 10; The device number is 1; the result of the distribution is shown in Figure 5 (a).
步驟 402、 堆叠系统的主设备再为优先级次之的堆叠设备分配设备号, 优先级次之的设备预留号码段设置为 11到 20; 分配结果如图 5 ( b ) 所示。  Step 402: The master device of the stacking system allocates the device number to the stacking device with the lower priority, and the reserved number segment of the device with the lower priority is set to 11 to 20; the allocation result is shown in Figure 5 (b).
步骤 403、 主设备再为优先级最低的堆叠设备分配设备号, 优先级最低 的设备预留号码段是 21以后; 分配结果如图 5 ( c )所示。  Step 403: The master device allocates the device number to the stacking device with the lowest priority, and the reserved segment number of the device with the lowest priority is 21 or later; the allocation result is shown in Figure 5 (c).
步驟 404、 当堆叠号码分配完毕后, 堆叠系统新加某台设备到设备号为 2和设备号为 3的设备中间时, 该新加设备优先级为最低, 因此根据设备号 分配原则,使用优先级最低的预留号码段中的设备号顺序或随机分配; 分配 结果如图 5 ( d )所示。  Step 404: After the stacking number is allocated, when the stacking system adds a certain device to the device with the device number 2 and the device number 3, the priority of the newly added device is the lowest, so according to the device number allocation principle, the priority is used. The device numbers in the lowest reserved number segment are sequentially or randomly assigned; the allocation result is shown in Figure 5 (d).
步骤 405、 如果最初设备号被分配为 21 的设备由于设备升级或者其他 原因出现振荡, 则每次重新加入堆叠系统时, 仍然使用保留的设备号 21 , 分配结果如图 5 ( e ) 所示。 采用本文所述的路由交换设备堆叠系统的设备号分配方法,堆叠设备号 可以标识设备的优先级等信息; 可以进行人为控制, 使可控性更强; 预留设 备号的方法能很好的适用于堆叠系统的扩展;保留设备号的功能使设备振荡 时仍然能保持堆叠系统的信息稳定。从而使堆叠系统的可靠性和稳定性大大 增强, 并简化堆叠系统的管理, 提高堆叠系统的可控性。 Step 405: If the device whose initial device number is assigned to 21 oscillates due to device upgrade or other reasons, the reserved device number 21 is still used each time the device is rejoined to the stacking system, and the allocation result is as shown in FIG. 5(e). The device number allocation method of the routing switching device stacking system described in this document can be used to identify the priority of the device and other information. The control can be performed manually to make the controllability stronger. The method of reserving the device number can be very good. Applicable to the expansion of the stacking system; the function of retaining the device number enables the information of the stacking system to remain stable while the device is oscillating. Thereby, the reliability and stability of the stacking system are greatly enhanced, and the management of the stacking system is simplified, and the controllability of the stacking system is improved.
当然, 本发明还可有其他多种实施例, 在不背离本发明精神及其实质的 形, 但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。 It is a matter of course that the invention may be embodied in various other forms without departing from the spirit and scope of the invention.
工业实用性 Industrial applicability
本发明的堆叠系统设备号分配方法,用于路由交换设备形成的堆叠系统 的设备号的分配, 使得设备号的分配合理性和可靠性更强。  The device number allocation method of the stacking system of the present invention is used for the allocation of the device number of the stacking system formed by the routing switching device, so that the allocation of the device number is more rational and reliable.

Claims

权 利 要 求 书 Claim
1、 一种堆叠系统设备号的分配方法, 其特征在于, 包括: A method for allocating a device number of a stacking system, comprising:
当设备离开堆叠系统时, 保留分配给该设备的设备号; 当该设备又加入 该堆叠系统时, 使用为其所保留的设备号。  When the device leaves the stack system, it retains the device number assigned to the device; when the device joins the stack system again, it uses the device number reserved for it.
2、 如权利要求 1所述的分配方法, 其特征在于, 所述堆叠系统包括主 设备、 备设备和成员设备, 所述方法具体包括: The method according to claim 1, wherein the stacking system includes a master device, a standby device, and a member device, and the method specifically includes:
当成员设备离开堆叠系统时 ,该堆叠系统的主设备保留分配给该成员设 备的设备号; 当该成员设备又加入该堆叠系统时, 所述主设备分配为其保留 的设备号给该成员设备;  When the member device leaves the stack system, the master device of the stack system retains the device number assigned to the member device; when the member device joins the stack system, the master device allocates the device number reserved for the member device to the member device. ;
当主设备离开堆叠系统时,备设备保留其设备号; 当所述主设备又加入 时, 为其分配所保留的设备号。  When the primary device leaves the stacking system, the standby device retains its device number; when the primary device joins again, it assigns the reserved device number to it.
3、 如权利要求 1所述的分配方法, 其特征在于, 还包括: The distribution method according to claim 1, further comprising:
当没有设备号分配给新加入的成员设备时,主设备将离开系统的成员设 备的设备号分配给该新加入的成员设备。  When no device number is assigned to a newly joined member device, the master device assigns the device number of the member device that leaves the system to the newly joined member device.
4、 如权利要求 1所述的分配方法, 其特征在于, 还包括: The distribution method according to claim 1, further comprising:
主设备为堆叠系统中各设备分配设备号依据的信息包括优先级和介质 访问控制地址, 或其中任一个。  The information that the master device assigns the device number to each device in the stack system includes the priority and media access control address, or any one of them.
5、 如权利要求 1所述的分配方法, 其特征在于, 还包括: The distribution method according to claim 1, further comprising:
堆叠系统的主设备在进行设备号分配时, 对号码进行预留。  The master device of the stack system reserves the number when performing device number assignment.
6、 如权利要求 1、 或 4、 或 5所述的分配方法, 其特征在于: 将用于分配的设备号划分为若干号码段, 各号码段对应于不同的优先 级; 为各堆叠设备分配与其优先级对应的号码段中的设备号; 并在每一号码 段中预留若干设备号, 以分配给新加入该堆叠系统的成员设备。 The distribution method according to claim 1, or 4, or 5, wherein: the device number used for the allocation is divided into a plurality of number segments, each of the number segments corresponding to a different priority; The device number in the number segment corresponding to the priority; and a number of device numbers are reserved in each number segment to be allocated to the member devices newly joined to the stack system.
7、 如权利要求 6所述的分配方法, 其特征在于: 为各堆叠设备分配与其优先级对应的号码段中的设备号是指:将号码段 中的设备号顺序或随机分配给具备对应优先级的设备。: 7. The method of dispensing of claim 6 wherein: Assigning the device number in the number segment corresponding to the priority of each stack device means that the device numbers in the number segment are randomly or randomly assigned to devices with corresponding priorities. :
8、 如权利要求 3所述的分配方法, 其特征在于: 8. The method of dispensing according to claim 3, wherein:
主设备按离开堆叠系统的顺序记录成员设备的设备号,当成员设备又加 入时在离开设备记录中删除其设备号; 当没有设备号分配给新加入的成员设 备时,将离开设备记录中最先离开系统的成员设备的设备号分配给新成员设 备。  The master device records the device number of the member device in the order of leaving the stack system. When the member device joins, the device number is deleted from the device record. When no device number is assigned to the newly added member device, the device records the most. The device number of the member device that leaves the system first is assigned to the new member device.
9、 如权利要求 3所述的分配方法, 其特征在于: 9. The method of dispensing of claim 3, wherein:
当成员设备离开本堆叠系统时, 主设备开始计时, 当成员设备又加入时 停止计时并将计时恢复为 0; 当没有设备号分配给新加入的成员设备时, 将 离开时间最长的成员设备的设备号分配给新成员设备。  When the member device leaves the stack system, the master device starts timing. When the member device joins again, it stops timing and restores the timer to 0. When no device number is assigned to the newly added member device, the member device with the longest time is left. The device number is assigned to the new member device.
10、 如权利要求 3所述的分配方法, 其特征在于: 10. The method of dispensing of claim 3, wherein:
设置一个时间阈值并保存在主设备中; 当成员设备离开本堆叠系统时, 主设备从 0开始计时, 当成员设备又加入时停止计时并将计时恢复为 0; 当 一个成员设备对应的计时超过所述阔值时,将其对应的设备号加入备选设备 号队列, 如果该成员设备又加入则将其设备号从备选号队列中删去; 当没有 设备号分配给新加入的成员设备时, 从备选设备号中选择一个进行分配。  Set a time threshold and save it in the master device. When the member device leaves the stack system, the master device starts timing from 0. When the member device joins again, it stops timing and restores the timer to 0. When a member device corresponds to more than one timer. When the threshold value is added, the corresponding device number is added to the candidate device number queue. If the member device joins, the device number is deleted from the candidate queue; when no device number is assigned to the newly added member device When selecting one of the alternate device numbers for allocation.
11、 如权利要求 1或 2所述的分配方法, 其特征在于: 11. The method of dispensing according to claim 1 or 2, characterized by:
主设备及备设备保存成员设备的设备号与介质访问控制地址的对应关 系;  The master device and the standby device store the correspondence between the device number of the member device and the media access control address;
当成员设备离开堆叠系统时,该堆叠系统的主设备保留分配给该成员设 备的设备号, 当该成员设备又加入该堆叠系统时, 所述主设备根据该成员设 备的介质访问控制地址与所保存的对应关系为其分配所保留的设备号; 当主 设备离开堆叠系统时,由备设备作为该堆叠系统的当前主设备保留该离开主 设备的设备号, 当其又加入该堆叠系统时, 所述当前主设备根据其介 访问 控制地址与所保存的对应关系为其分配所保留的设备号。  When the member device leaves the stack system, the master device of the stack system retains the device number assigned to the member device. When the member device joins the stack system, the master device accesses the control address and the device according to the member device. The saved relationship is assigned to the reserved device number. When the primary device leaves the stack system, the standby device retains the device number of the primary device as the current primary device of the stack system. When it joins the stack system, The current master device allocates the reserved device number according to its associated access control address and the saved correspondence.
PCT/CN2007/003914 2007-11-09 2007-12-29 A method for distributing the device number in a stacking system WO2009059476A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710165966.0 2007-11-09
CN2007101659660A CN101159672B (en) 2007-11-09 2007-11-09 Method of distributing device number of stacked system

Publications (1)

Publication Number Publication Date
WO2009059476A1 true WO2009059476A1 (en) 2009-05-14

Family

ID=39307597

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/003914 WO2009059476A1 (en) 2007-11-09 2007-12-29 A method for distributing the device number in a stacking system

Country Status (2)

Country Link
CN (1) CN101159672B (en)
WO (1) WO2009059476A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113179228A (en) * 2021-04-15 2021-07-27 浪潮思科网络科技有限公司 Method, device, equipment and medium for improving switch stacking reliability

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159672B (en) * 2007-11-09 2012-04-18 中兴通讯股份有限公司 Method of distributing device number of stacked system
CN101621407B (en) * 2009-08-11 2012-04-25 杭州华三通信技术有限公司 Method for processing non-uniformity of software versions and member device of stack system
CN101674198B (en) * 2009-10-23 2011-09-28 杭州华三通信技术有限公司 Method and device for realizing stacking
CN104618271B (en) * 2013-11-05 2018-03-16 华为技术有限公司 Switch resource distribution method and interchanger
CN103916494B (en) * 2014-04-18 2017-08-25 福建星网锐捷网络有限公司 The processing method and equipment of numbering
CN108152628B (en) * 2017-12-25 2020-09-15 海鹰企业集团有限责任公司 Method for processing piezoelectric ceramic piece

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770739A (en) * 2004-10-28 2006-05-10 阿尔卡特公司 Stack manager protocol with automatic set up mechanism
CN101018180A (en) * 2007-03-12 2007-08-15 中兴通讯股份有限公司 A method for implementing the forward table in the stack system
CN101159672A (en) * 2007-11-09 2008-04-09 中兴通讯股份有限公司 Method of distributing device number of stacked system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100370740C (en) * 2004-03-06 2008-02-20 鸿富锦精密工业(深圳)有限公司 Management method of stacked switch

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770739A (en) * 2004-10-28 2006-05-10 阿尔卡特公司 Stack manager protocol with automatic set up mechanism
CN101018180A (en) * 2007-03-12 2007-08-15 中兴通讯股份有限公司 A method for implementing the forward table in the stack system
CN101159672A (en) * 2007-11-09 2008-04-09 中兴通讯股份有限公司 Method of distributing device number of stacked system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113179228A (en) * 2021-04-15 2021-07-27 浪潮思科网络科技有限公司 Method, device, equipment and medium for improving switch stacking reliability
CN113179228B (en) * 2021-04-15 2022-12-23 浪潮思科网络科技有限公司 Method, device, equipment and medium for improving switch stacking reliability

Also Published As

Publication number Publication date
CN101159672A (en) 2008-04-09
CN101159672B (en) 2012-04-18

Similar Documents

Publication Publication Date Title
CN103997414B (en) Generate method and the network control unit of configuration information
TW202026896A (en) Asynchronous object manager in a network routing environment
WO2009059476A1 (en) A method for distributing the device number in a stacking system
US7958209B2 (en) Methods and systems to generate and implement a changeover sequence to reconfigure a connection-oriented network
CN103139037A (en) Method and device used for achieving flexible virtual local area network
CN103607430A (en) Network processing method and system, and network control center
CN103607432B (en) A kind of method and system of network creation and the network control center
CN111464454B (en) Load sharing method and system for virtual BRAS (broadband remote Access Server) equipment in data center
CN103118148A (en) Method and device for updating ARP (address resolution protocol) cache
US11140091B2 (en) Openflow protocol-based resource control method and system, and apparatus
CN108347376A (en) A kind of method, apparatus and system of adjustment forward-path
WO2018214817A1 (en) Packet forwarding method, device and apparatus, and storage medium
CN112688814A (en) Equipment access method, device, equipment and machine readable storage medium
CN108259218A (en) A kind of IP address distribution method and device
CN110247787B (en) Method, network element and control equipment for establishing flexible Ethernet path
WO2018161795A1 (en) Routing priority configuration method, device, and controller
CN108400922B (en) Virtual local area network configuration system and method and computer readable storage medium thereof
JP4611319B2 (en) Network architecture
CN108512737B (en) Data center IP layer interconnection method and SDN controller
CN103684838B (en) A method, an apparatus, a system for configuring a network strategy of a virtual machine
CN114513447A (en) SD-WAN (secure digital-to-Wide area network) service issuing system, method, device and network equipment
CN114584504B (en) Network card communication method, device, equipment and medium for AI training platform
CN108199986B (en) Data transmission method, stacking equipment and stacking system
WO2016173196A1 (en) Method and apparatus for learning address mapping relationship
WO2019114827A1 (en) Method and device for establishing multi-domain multi-layer connection service

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07855914

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 07855914

Country of ref document: EP

Kind code of ref document: A1