WO2012034408A1 - Method and system for processing media access control address aging - Google Patents
Method and system for processing media access control address aging Download PDFInfo
- Publication number
- WO2012034408A1 WO2012034408A1 PCT/CN2011/074526 CN2011074526W WO2012034408A1 WO 2012034408 A1 WO2012034408 A1 WO 2012034408A1 CN 2011074526 W CN2011074526 W CN 2011074526W WO 2012034408 A1 WO2012034408 A1 WO 2012034408A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- mac address
- aging
- subsystem
- address entry
- subsystems
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/58—Caching of addresses or names
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Definitions
- the present invention relates to the field of communications, and in particular, to a method and system for aging processing of a Media Access Control (MAC) address.
- MAC Media Access Control
- the MAC address is an identifier of a local area network (LAN) node, and its interface with a device (for example, a network card) is globally unique.
- a device for example, a network card
- the MAC address is 48 bits and is represented by 12 hexadecimal numbers.
- the first 6 numbers are managed by the Institute for Electrical and Electronic Engineers (IEEE) to identify producers. Or the manufacturer, which constitutes the Organizational Unique Identifier (OUI), and the last six numbers generally include the network card serial number or the setting value of a specific hardware manufacturer.
- IEEE Institute for Electrical and Electronic Engineers
- UAI Organizational Unique Identifier
- MAC address learning The source MAC address of each received message is stored in the virtual LAN Local Area Network (VLAN) for subsequent delivery of the address. Forward to the interface where this address is located, not to all interfaces that are forwarded to the VLAN. It can be seen that the MAC address learning is to allow the message to be forwarded to the designated port after reaching the device, thereby reducing the amount of traffic in the LAN, which is helpful for ⁇ !
- the business volume of the LAN connected to it is the smallest ⁇
- (2) MAC address aging After a period of time (for example, a predetermined aging time), the MAC address is deleted. Because each MAC address needs to occupy actual hardware and software resources, when a MAC address does not exist, it is necessary to delete and release the hardware and software resources.
- MAC address keep-alive If the MAC address is received within a predetermined period of time (for example, aging time), then the MAC address should not be learned (already exist) and should not be aged. The predetermined time period can be reset and the timing can be restarted.
- a predetermined period of time for example, aging time
- the predetermined time period can be reset and the timing can be restarted.
- 1 is a schematic diagram of the relationship between subsystems and management systems in a distributed system according to the related art, as shown in FIG. 1, for a distributed network device learned on a subsystem (subsystem 1, port 12) After the MAC address, the MAC address needs to be synchronized to all other subsystems through the subsystem synchronization module, so that other subsystems can receive the 4 addresses of the MAC address.
- the MAC address is not kept live, and the MAC address table management module is notified.
- the MAC address table management module deletes the corresponding MAC address on all subsystems.
- This aggregation port is a logical concept. It is a collection of physical ports. The physical ports in an aggregation port can be on different subsystems. The aggregation port has no attribution information, or the home address of the aggregation port is all subsystems.
- the MAC address learned on the aggregation port, the corresponding egress port is an aggregation port, not a physical port, so that all The subsystems have the right to initiate aging. It can be seen that the principle of keeping the MAC address of the common port does not apply at this time, because the aggregation port does not belong to any subsystem (the physical port of a member of an aggregation port can be on multiple subsystems at the same time), if the subsystem belongs to the port. Keep alive, unless all of the aggregated ports have member ports on all subsystems, and all ports can receive the data stream for keep-alive, otherwise there must be a corresponding MAC address table on a certain subsystem. There is no way to keep the item alive.
- the normal port can not veto the "false aging" message by judging the subsystem to which the port belongs, as in the case of "false aging", so the MAC address table management module deletes the "this could not be deleted, (Other subsystems may have the keepalive traffic of the aggregated port).
- the data flow with the MAC address as the destination MAC address is flooded on the Layer 2 device, increasing the bandwidth occupancy.
- the main purpose of the present invention is to provide a MAC address aging processing scheme to solve at least the above-mentioned aggregation port in a Layer 2 network device, because the corresponding MAC address entry cannot be obtained on some subsystems.
- the aging processing method of the MAC address includes the following steps: The global system sequentially obtains a MAC address entry from a local MAC address table; determines an aging state of the MAC address entry in all subsystems; If the aging status of the MAC address entry is all aging, notify all subsystems to age the MAC address entry; otherwise, keep the MAC address entries in all subsystems.
- the method before determining the aging state of the MAC address entry in all subsystems, the method further includes: the global system receiving the aging message or the keep-alive message of the MAC address entry from the subsystem, acquiring and recording in the subsystem The aging status of the MAC address entry.
- the method before the global system receives the aging message or the keep-alive message from the MAC address entry of the subsystem, the method further includes: if the subsystem changes the aging state of the MAC address entry in the subsystem MAC address table thereof And sending an aging message or keep-alive message of the MAC address entry of the aging state change in the subsystem MAC address table to the global system.
- the method further includes: the MAC address entry in the subsystem MAC address table If the aging state is inconsistent before and after the update, the subsystem determines that the old state of the MAC address entry has changed.
- the method further includes: when the subsystem receives the keep-alive message of the MAC address entry in the subsystem MAC address table, the The aging status of the entry is updated to keep alive.
- an aging processing system for a MAC address includes a global system and a plurality of subsystems, wherein the global system includes: an obtaining module, configured to sequentially obtain a MAC address entry from the global system MAC address table; In order to determine the aging state of the MAC address entry in all subsystems, the aging module is configured to notify all subsystems to age when the determining module determines that all the aging states of the MAC address entries in the subsystem are aging.
- the global system further includes: a receiving module, configured to receive an aging message or a keep-alive message of the MAC address entry from the subsystem; and a recording module, configured to: according to the aging message of the MAC address entry received by the receiving module Or keep alive message, obtain and record the aging status of the MAC address entry in the subsystem.
- each of the plurality of subsystems comprises: a sending module configured to send to the global system in the subsystem MAC address table if the aging state of the MAC address entry in the subsystem MAC address table is changed The aging message or keep-alive message of the MAC address entry whose aging status is changed.
- each of the plurality of subsystems further comprises: a determining module, configured as a subsystem
- each of the plurality of subsystems further includes: an update module configured to: when receiving the keep-alive message of the MAC address entry in the subsystem MAC address table, the aging state of the MAC address entry Update to keep-alive; and update the aging status of the MAC address entry to aging when the aging time of the MAC address entry in the subsystem MAC address table arrives.
- an update module configured to: when receiving the keep-alive message of the MAC address entry in the subsystem MAC address table, the aging state of the MAC address entry Update to keep-alive; and update the aging status of the MAC address entry to aging when the aging time of the MAC address entry in the subsystem MAC address table arrives.
- FIG. 2 is a flowchart of a method for processing aging of MAC addresses according to an embodiment of the present invention
- 3 is a structural block diagram of an aging processing system for a MAC address according to an embodiment of the present invention
- FIG. 4 is a structural block diagram of an aging processing system for a MAC address according to a preferred embodiment of the present invention
- FIG. 5 is a preferred embodiment of the present invention.
- Fig. 6 is a flowchart of the processing of the subsystem of the preferred embodiment 2 of the present invention.
- FIG. 2 is a flowchart of a method for processing aging of a MAC address according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps: Step S202: The global system sequentially obtains a MAC address table from a local MAC address table.
- Step S204 determining the aging state of the MAC address entry in all the subsystems
- Step S206 informing all the aging MAC address entries of all the subsystems in the case that the aging states of the MAC address entries in all the subsystems are all aging ; Otherwise, keep the MAC address entries in all subsystems.
- the global system receives an aging message or keep-alive message from the MAC address entry of the subsystem, and obtains and records the aging status of the MAC address entry in the subsystem.
- the method can obtain the real-time status of the MAC address entries in the global system MAC address table in each subsystem, thereby improving the effectiveness and accuracy of the system.
- the subsystem may send an aging message or a keep-alive message of the MAC address entry of the subsystem to the global system, and the global system records the aging state record of the MAC address entry according to the received message.
- System MAC address table is a list of the MAC address entry of the subsystem.
- the subsystem may actively send an aging message or a keep-alive message of the MAC address entry of the subsystem, or may be a global system periodically scans the MAC address entries in the MAC address table of each subsystem, according to each subsystem MAC address table. The aging status of the MAC address entry in the global system is updated. The aging status of the corresponding MAC address entry in the global system MAC address table is updated. Preferably, before the global system receives the aging message or the keep-alive message from the MAC address entry of the subsystem, the subsystem sends the aging status of the MAC address entry in the subsystem MAC address table to the global system.
- An aging message or keep-alive message of the MAC address entry changed by the aging state in the subsystem MAC address table.
- the current state of the MAC address entry in the subsystem MAC address table can be notified to the global system, so that the global system performs corresponding processing, thereby improving the performance of the system.
- the aging status of the MAC address entry in the subsystem MAC address table is updated before the subsystem sends the aging message or the keep-alive message of the aging status changed MAC address entry in the subsystem MAC address table to the global system. In the case of inconsistency, the subsystem determines that the aging status of the MAC address entry has changed.
- the method can update the aging state of the MAC address entries in the subsystem MAC address table and update in real time, thereby improving the real-time and effectiveness of the system.
- the subsystem ages the MAC address entry when receiving the keep-alive message of the MAC address entry in the subsystem MAC address table.
- the state is updated to keep alive; when the aging time of the MAC address entry in the subsystem MAC address table is reached, the aging status of the MAC address entry is updated to aging.
- the method is simple to implement and has high operability.
- an aging processing system for a MAC address is also provided in this embodiment. FIG.
- the MAC address aging processing system includes a global system 32 and a plurality of subsystems 34, wherein the global system 32 includes The acquisition module 3202, the determination module 3204, the aging module 3206, and the keep-alive module 3208 are described in detail below.
- the obtaining module 3202 is configured to sequentially obtain the MAC address entry from the global system MAC address table.
- the determining module 3204 is coupled to the obtaining module 3202, and configured to determine the aging state of the MAC address entry in all the subsystems 34.
- the aging module 3206 The method is coupled to the determining module 3204, and configured to notify all subsystems 34 to age the MAC address entry when the determining module 3204 determines that the aging states of the MAC address entries in all the subsystems are all aging; and the keep-alive module 3208, Judgment mode Block 3204, configured to preserve the MAC address entries in all subsystems 34 in the event that the determining module 3204 determines that the aging states of the MAC address entries in all of the subsystems 34 are not all aging.
- the aging mode is used to solve the problem that the aggregation port exists in the Layer 2 network device.
- the global system 32 further includes: a receiving module 3210 configured to receive a MAC address entry from the subsystem 34.
- the aging message or the keep-alive message; the recording module 3212 is coupled to the receiving module 3210, configured to acquire and record the MAC address entry in the subsystem 34 according to the aging message or the keep-alive message of the MAC address entry received by the receiving module 3210. Aging state.
- each of the plurality of subsystems 34 includes: a transmitting module 3402 configured to transmit to the global system 32 the subsystem in the event that the aging state of the MAC address entry in the subsystem 34 MAC address table is changed. The aging message or keep-alive message of the MAC address entry changed by the aging state in the MAC address table.
- each of the plurality of subsystems 34 further includes: a determining module 3404 coupled to the sending module 3402, configured to set the aging state of the MAC address entries in the MAC address table of the subsystem 34 inconsistent before and after the update , determine that the aging status of the MAC address entry has changed.
- each of the plurality of subsystems 34 further includes: an update module 3406 coupled to the determination module 3404, configured to receive the keep-alive message of the MAC address entry in the subsystem 34 MAC address table Update the aging status of the MAC address entry to keep alive; and update the aging status of the MAC address entry to aging when the aging time of the MAC address entry in the MAC address table of the subsystem 34 arrives.
- an update module 3406 coupled to the determination module 3404, configured to receive the keep-alive message of the MAC address entry in the subsystem 34 MAC address table Update the aging status of the MAC address entry to keep alive; and update the aging status of the MAC address entry to aging when the aging time of the MAC address entry in the MAC address table of the subsystem 34 arrives.
- FIG. 5 is a process flow diagram of a global system in a preferred embodiment of the present invention. As shown in FIG. 5, the process flow in the global system may include the following steps: Step 4: S502, start global aggregation port MAC address management. Module. In a specific implementation process, the aging processing method of the MAC address in the global system may be implemented by the global aggregation port MAC address management module.
- Step S504 determining whether there is a MAC address entry in the global system MAC address table (that is, whether the global system MAC address table is not empty). If yes, go to step S506, otherwise, end the flow. Step S506, scanning a MAC address entry in the global system MAC address table (ie, some
- Step S508 extracting an aging message or a keep-alive message of the MAC address entry in all subsystems corresponding to the scanned MAC address entry.
- the global system may receive an aging message or a keep-alive message corresponding to the MAC address entry in the global system MAC address table sent by each subsystem.
- Step S510 recording an aging state of the MAC address entry in all subsystems according to the extraction result.
- step S512 it is determined whether the aging status of the MAC address entry in all subsystems is "aging". If yes, go to step S514, otherwise, go to step S516.
- Step S504 informing all subsystems to age the MAC address entry. For example, the MAC address entry is deleted from the respective subsystem MAC address table.
- Step 4 gathers S516 to keep the corresponding MAC address entries on all subsystems alive.
- Preferred embodiment two This embodiment describes the aging process of MAC address entries in each subsystem in detail.
- 6 is a processing flowchart of a subsystem in a preferred embodiment 2 of the present invention. As shown in FIG.
- Step S602 Scanning the MAC in the subsystem MAC address table An address entry (that is, a MAC address entry). For example, it may be a MAC address entry in the subsystem timing scan subsystem MAC address table.
- Step S604 determining whether the subsystem receives the keep-alive message of the MAC address entry. If yes, go to step S606. Otherwise, when the aging time of the MAC address entry arrives, the subsystem goes to step S608.
- Step S606 the aging status of the MAC address entry in the recording subsystem is "keep alive” (that is, the aging status of the MAC address in the update subsystem is "keep alive").
- Step S608 recording the MAC address in the subsystem
- the aging state of the entry is "aging.”
- Step S610 obtaining the last aging state of the MAC address entry in the subsystem.
- Step S612 determining the two states of the MAC address entry (that is, the MAC address before and after the update) Whether the aging state is consistent, if yes, the process is terminated, otherwise, the process goes to step S614.
- Step S614 the aging or keep-alive message of the MAC address entry is sent to the global system in the current state.
- the global system periodically scans the MAC address entries in the MAC address table of each subsystem to update the global system MAC address according to the aging status change of the MAC address entries in the MAC address table of each subsystem.
- the aging status of the corresponding MAC address entry in the table is a problem in the embodiment of the present invention.
- the embodiment of the present invention relates to learning and keeping alive of a MAC address of a Layer 2 network device, which is in a distributed system. In the case where the port MAC address attribution is difficult to confirm, a solution for the MAC address keep-alive is solved, and the performance and processing capability of the system are improved.
- the above modules or modules of the present invention are The steps may be implemented in a general-purpose computing device, which may be centralized on a single computing device or distributed across a network of multiple computing devices, which may alternatively be implemented by program code executable by the computing device. Thereby, they can be stored in the storage device by the computing device, and in some In this case, the steps shown or described may be performed in an order different from that herein, or they may be separately fabricated into individual integrated circuit modules, or a plurality of the modules or steps may be implemented as a single integrated circuit module.
- the invention is not limited to any specific combination of hardware and software.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a method and a system for processing media access control (MAC) address aging. The method includes following steps: sequentially obtaining MAC address entries from a local MAC address table by a global system; judging the aging states of the MAC address entries in all subsystems; notifying all the subsystems to age the MAC address entries when the MAC address entries in all the subsystems are in aging states; otherwise keeping the MAC address entries in all the subsystems alive. The invention improves the performance and the processing capability of the system.
Description
MAC地址的老化处理方法及系统 技术领域 本发明涉及通信领域, 尤其涉及一种介质访问控制(Media Access Control, 简称为 MAC ) 地址的老化处理方法及系统。 背景技术 The present invention relates to the field of communications, and in particular, to a method and system for aging processing of a Media Access Control (MAC) address. Background technique
MAC地址是识别局域网( Local Area Network, 简称为 LAN )节点的标识, 其与设备(例如, 网卡) 的接口是全球唯一的。 通常, MAC地址为 48位, 用 12个十六进制数表示, 其中, 前 6个数由电气和电子工程师学会( Institute for Electrical and Electronic Engineers, 简称为 IEEE ) 来管理, 用于识别生产者或 者厂商, 构成组织唯一识别符( Organizational Unique Identifier, 简称为 OUI ), 后 6个数一般包括网卡序列号、 或者特定硬件厂商的设定值。 下面介绍几个与 MAC地址相关的 4既念: The MAC address is an identifier of a local area network (LAN) node, and its interface with a device (for example, a network card) is globally unique. Typically, the MAC address is 48 bits and is represented by 12 hexadecimal numbers. The first 6 numbers are managed by the Institute for Electrical and Electronic Engineers (IEEE) to identify producers. Or the manufacturer, which constitutes the Organizational Unique Identifier (OUI), and the last six numbers generally include the network card serial number or the setting value of a specific hardware manufacturer. Here are a few of the four related to the MAC address:
( 1 ) MAC地址学习: 将每个所接收的 4艮文的源 MAC地址存储在这个学 习虚拟局域网 ( Virtual LAN Local Area Network , 简称为 VLAN ) 里, 以便后 续送达该地址的^艮文只转发到此地址所在接口,而不是转发到 VLAN的所有接 口。 可见, MAC 地址学习是为了让报文到达设备之后转发往指定的端口, 进 而减小局域网内的业务量, 有助于 ^!夺与其相连局域网的业务量最小^^ (1) MAC address learning: The source MAC address of each received message is stored in the virtual LAN Local Area Network (VLAN) for subsequent delivery of the address. Forward to the interface where this address is located, not to all interfaces that are forwarded to the VLAN. It can be seen that the MAC address learning is to allow the message to be forwarded to the designated port after reaching the device, thereby reducing the amount of traffic in the LAN, which is helpful for ^! The business volume of the LAN connected to it is the smallest ^^
( 2 ) MAC 地址老化: 经过一段时间 (例如, 预定的老化时间) 之后, MAC地址被删除。 因为每个 MAC地址都是需要占用实际软硬件资源, 当某个 MAC地址没有存在必要的时候, 就必须要删除掉并释放软硬件资源。 (2) MAC address aging: After a period of time (for example, a predetermined aging time), the MAC address is deleted. Because each MAC address needs to occupy actual hardware and software resources, when a MAC address does not exist, it is necessary to delete and release the hardware and software resources.
( 3 ) MAC地址保活: 如果在预定的时段(例如, 老化时间) 内, 又收到 该 MAC地址, 那么这个 MAC地址就不应该被学习 (已经存在), 也不应该被 老化, 此时可以将预定的时段复位, 重新开始计时。 图 1是根据相关技术的分布式系统中各子系统和各管理系统之间的关系示 意图, 如图 1所示, 对于分布式网络设备在一个子系统 (子系统 1 , 端口 12 ) 上学习到 MAC地址之后, 需要把这个 MAC地址通过子系统同步模块同步到 其他所有的子系统上去, 这样才能保证其他子系统收到这个 MAC地址的 4艮文
之后, 能转发到学习到的这个 MAC地址对应的端口上去 (子系统 1 端口 12 上)。 如果子系统 1端口 12上的这个 MAC地址一直有流存在, 则这个 MAC地 址在所有的子系统上都需要保留不能被删除, 由于只有在子系统 1端口 12上 收到源 MAC地址的数据流才能在子系统 1上保活, 所以, 无法收到这样的流 量的其他子系统会有一个"^ _老化"的过程。 例如, 软件在接收到这个"^ _老化" 消息后, 由于此时硬件 MAC地址表项还是存在的, 所以首先会判断一下 MAC 地址表中的端口是否在本子系统上, 如果不是, 则不理会这个消息。 所以, 在 其他子系统上的 MAC地址是不会被删除的, 这就是仅有归属地子系统才可以 发起老化的原则, 即, 其他子系统上的 MAC地址删除是需要等待子系统 1上 的 MAC地址没有被保活住,告知 MAC地址表管理模块, 由 MAC地址表管理 模块在所有子系统上删除相应的 MAC地址。 但是, 在二层网络设备中会存在一种聚合端口, 这种聚合端口是一个逻辑 概念, 是一系列物理端口的集合, 并且一个聚合端口中的物理口可以在不同的 子系统上, 也就是说, 聚合端口没有归属地信息, 或者说聚合端口的归属地是 所有子系统, 在聚合端口上学习到的 MAC地址, 对应的出端口就是一个聚合 端口, 而不是某个物理端口, 这样, 所有的子系统均有权利发起老化。 可见, 此时对于普通端口 MAC地址保活原则就不适用了, 因为聚合端口 不属于任何一个子系统 (一个聚合端口的成员物理口可以同时在多个子系统 上), 如果按照端口所属子系统进行保活的话, 除非所有这个聚合端口在所有 的子系统上均有成员端口,并且所有的端口都能收到用来保活的数据流,否则 , 必然有某个子系统上对应的这个 MAC地址表项没办法被保活。 并且, 在这种 情况下, 普通端口也不能像处理 "假老化"一样通过判断端口所属子系统来否决 "假老化"消息,所以 MAC地址表管理模块就会删除这个"本来可以不删除,,(其 他子系统可能有这个聚合端口的保活流量) 的 MAC地址, 在 MAC地址被删 除之后, 以该 MAC地址为目的 MAC地址的数据流就会在二层设备上洪泛, 增加带宽占有率。 发明内容 本发明的主要目的在于提供一种 MAC地址的老化处理方案, 以至少解决 上述的在二层网络设备中存在聚合端口的情况下, 由于某些子系统上对应的 MAC地址表项无法被保活而导致带宽占有率增加的问题。
为了实现上述目的, 根据本发明的一个方面, 提供了一种 MAC地址的老 4匕处理方法。 根据本发明的 MAC地址的老化处理方法, 包括以下步骤: 全局系统从本 地的 MAC地址表中依次获取 MAC地址表项;判断该 MAC地址表项在所有子 系统中的老化状态; 在所有子系统中该 MAC地址表项的老化状态全为老化的 情况下, 通知所有子系统老化该 MAC地址表项; 否则, 保活所有子系统中的 该 MAC地址表项。 优选地, 判断该 MAC地址表项在所有子系统中的老化状态之前, 该方法 还包括: 全局系统接收来自子系统的该 MAC地址表项的老化消息或者保活消 息, 获取并记录子系统中该 MAC地址表项的老化状态。 优选地, 全局系统接收来自子系统的 MAC地址表项的老化消息或者保活 消息之前, 该方法还包括: 子系统在其子系统 MAC地址表中的 MAC地址表 项的老化状态变更的情况下, 向全局系统发送在子系统 MAC地址表中的老化 状态变更的 MAC地址表项的老化消息或者保活消息。 优选地, 子系统向全局系统发送在子系统 MAC地址表中的老化状态变更 的 MAC地址表项的老化消息或者保活消息之前, 该方法还包括: 子系统 MAC 地址表中的 MAC地址表项的老化状态在更新前后不一致的情况下, 子系统确 定该 MAC地址表项的老 ^ l 态已变更。 优选地, 子系统确定该 MAC地址表项的老化状态已变更之前, 该方法还 包括: 子系统在接收到子系统 MAC地址表中的 MAC地址表项的保活报文时, 将该 MAC地址表项的老化状态更新为保活; 子系统在子系统 MAC地址表中 的 MAC地址表项的老化时间到达时, 将该 MAC地址表项的老化状态更新为 老化。 为了实现上述目的, 才艮据本发明的另一个方面, 提供了一种 MAC地址的 老化处理系统。 才艮据本发明的 MAC地址的老化处理系统, 包括全局系统和多个子系统, 其中, 全局系统包括: 获取模块, 设置为从全局系统 MAC地址表中依次获取 MAC地址表项; 判断模块,设置为判断该 MAC地址表项在所有子系统中的老 化状态; 老化模块, 设置为在判断模块判定所有子系统中该 MAC地址表项的 老化状态全为老化的情况下, 通知所有子系统老化该 MAC地址表项; 以及保
活模块, 设置为在判断模块判定所有子系统中该 MAC地址表项的老化状态不 全为老化的情况下, 保活所有子系统中的该 MAC地址表项。 优选地, 全局系统还包括: 接收模块, 设置为接收来自子系统的该 MAC 地址表项的老化消息或者保活消息; 记录模块, 设置为根据接收模块接收到的 该 MAC地址表项的老化消息或者保活消息, 获取并记录子系统中该 MAC地 址表项的老化状态。 优选地, 多个子系统中的每个子系统包括: 发送模块, 设置为在子系统 MAC地址表中的 MAC地址表项的老化状态变更的情况下,向全局系统发送在 子系统 MAC地址表中的老化状态变更的 MAC地址表项的老化消息或者保活 消息。 优选地, 多个子系统中的每个子系统还包括: 确定模块, 设置为子系统(3) MAC address keep-alive: If the MAC address is received within a predetermined period of time (for example, aging time), then the MAC address should not be learned (already exist) and should not be aged. The predetermined time period can be reset and the timing can be restarted. 1 is a schematic diagram of the relationship between subsystems and management systems in a distributed system according to the related art, as shown in FIG. 1, for a distributed network device learned on a subsystem (subsystem 1, port 12) After the MAC address, the MAC address needs to be synchronized to all other subsystems through the subsystem synchronization module, so that other subsystems can receive the 4 addresses of the MAC address. After that, it can be forwarded to the port corresponding to the learned MAC address (subsystem 1 on port 12). If there is always a flow in this MAC address on port 12 of subsystem 1, then this MAC address needs to be reserved on all subsystems and cannot be deleted, since only the data stream of the source MAC address is received on port 12 of subsystem 1. In order to be kept on subsystem 1, so other subsystems that cannot receive such traffic will have a "^ _ aging" process. For example, after receiving the "^ _ aging" message, the software still has a hardware MAC address entry. Therefore, it is first determined whether the port in the MAC address table is on the subsystem. If not, ignore it. This news. Therefore, the MAC address on other subsystems will not be deleted. This is the principle that only the home subsystem can initiate aging. That is, the MAC address deletion on other subsystems needs to wait on subsystem 1. The MAC address is not kept live, and the MAC address table management module is notified. The MAC address table management module deletes the corresponding MAC address on all subsystems. However, there is an aggregation port in a Layer 2 network device. This aggregation port is a logical concept. It is a collection of physical ports. The physical ports in an aggregation port can be on different subsystems. The aggregation port has no attribution information, or the home address of the aggregation port is all subsystems. The MAC address learned on the aggregation port, the corresponding egress port is an aggregation port, not a physical port, so that all The subsystems have the right to initiate aging. It can be seen that the principle of keeping the MAC address of the common port does not apply at this time, because the aggregation port does not belong to any subsystem (the physical port of a member of an aggregation port can be on multiple subsystems at the same time), if the subsystem belongs to the port. Keep alive, unless all of the aggregated ports have member ports on all subsystems, and all ports can receive the data stream for keep-alive, otherwise there must be a corresponding MAC address table on a certain subsystem. There is no way to keep the item alive. Moreover, in this case, the normal port can not veto the "false aging" message by judging the subsystem to which the port belongs, as in the case of "false aging", so the MAC address table management module deletes the "this could not be deleted, (Other subsystems may have the keepalive traffic of the aggregated port). After the MAC address is deleted, the data flow with the MAC address as the destination MAC address is flooded on the Layer 2 device, increasing the bandwidth occupancy. SUMMARY OF THE INVENTION The main purpose of the present invention is to provide a MAC address aging processing scheme to solve at least the above-mentioned aggregation port in a Layer 2 network device, because the corresponding MAC address entry cannot be obtained on some subsystems. The problem of increased bandwidth occupancy due to being kept alive. In order to achieve the above object, according to an aspect of the present invention, an old method of processing a MAC address is provided. The aging processing method of the MAC address according to the present invention includes the following steps: The global system sequentially obtains a MAC address entry from a local MAC address table; determines an aging state of the MAC address entry in all subsystems; If the aging status of the MAC address entry is all aging, notify all subsystems to age the MAC address entry; otherwise, keep the MAC address entries in all subsystems. Preferably, before determining the aging state of the MAC address entry in all subsystems, the method further includes: the global system receiving the aging message or the keep-alive message of the MAC address entry from the subsystem, acquiring and recording in the subsystem The aging status of the MAC address entry. Preferably, before the global system receives the aging message or the keep-alive message from the MAC address entry of the subsystem, the method further includes: if the subsystem changes the aging state of the MAC address entry in the subsystem MAC address table thereof And sending an aging message or keep-alive message of the MAC address entry of the aging state change in the subsystem MAC address table to the global system. Preferably, before the subsystem sends the aging message or the keep-alive message of the aging state changed MAC address entry in the subsystem MAC address table to the global system, the method further includes: the MAC address entry in the subsystem MAC address table If the aging state is inconsistent before and after the update, the subsystem determines that the old state of the MAC address entry has changed. Preferably, before the subsystem determines that the aging status of the MAC address entry has been changed, the method further includes: when the subsystem receives the keep-alive message of the MAC address entry in the subsystem MAC address table, the The aging status of the entry is updated to keep alive. When the aging time of the MAC address entry in the subsystem MAC address table is reached, the aging status of the MAC address entry is updated to aging. In order to achieve the above object, according to another aspect of the present invention, an aging processing system for a MAC address is provided. The aging processing system of the MAC address according to the present invention includes a global system and a plurality of subsystems, wherein the global system includes: an obtaining module, configured to sequentially obtain a MAC address entry from the global system MAC address table; In order to determine the aging state of the MAC address entry in all subsystems, the aging module is configured to notify all subsystems to age when the determining module determines that all the aging states of the MAC address entries in the subsystem are aging. MAC address entry; and The live module is configured to keep the MAC address entries in all subsystems in a case where the judging module determines that the aging states of the MAC address entries in all subsystems are not all aging. Preferably, the global system further includes: a receiving module, configured to receive an aging message or a keep-alive message of the MAC address entry from the subsystem; and a recording module, configured to: according to the aging message of the MAC address entry received by the receiving module Or keep alive message, obtain and record the aging status of the MAC address entry in the subsystem. Preferably, each of the plurality of subsystems comprises: a sending module configured to send to the global system in the subsystem MAC address table if the aging state of the MAC address entry in the subsystem MAC address table is changed The aging message or keep-alive message of the MAC address entry whose aging status is changed. Preferably, each of the plurality of subsystems further comprises: a determining module, configured as a subsystem
MAC地址表中的 MAC地址表项的老化状态在更新前后不一致的情况下,确定 该 MAC地址表项的老化状态已变更。 优选地, 多个子系统中的每个子系统还包括: 更新模块, 设置为在接收到 子系统 MAC地址表中的 MAC地址表项的保活 4艮文时,将该 MAC地址表项的 老化状态更新为保活; 以及在子系统 MAC地址表中的 MAC地址表项的老化 时间到达时, 将该 MAC地址表项的老化状态更新为老化。 通过本发明,釆用当所有子系统中同一 MAC地址的老化状态都为老化时, 再将其老化的方式, 解决了在二层网络设备中存在聚合端口的情况下, 由于某 些子系统上对应的 MAC地址表项无法被保活而导致带宽占有率增加的问题, 提高了系统的性能和处理能力。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不 当限定。 在附图中: 图 1是根据相关技术的分布式系统中各子系统和各管理系统之间的关系示 意图; 图 2是才艮据本发明实施例的 MAC地址的老化处理方法的流程图;
图 3是才艮据本发明实施例的 MAC地址的老化处理系统的结构框图; 图 4是才艮据本发明优选实施例的 MAC地址的老化处理系统的结构框图; 图 5是 居本发明优选实施例一的全局系统的处理流程图; 图 6是 居本发明优选实施例二的子系统的处理流程图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不 冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。 才艮据本发明的实施例, 提供了一种 MAC地址的老化处理方法。 图 2是根 据本发明实施例的 MAC地址的老化处理方法的流程图, 如图 2所示, 该方法 包括以下步 4聚: 步骤 S202 , 全局系统从本地的 MAC地址表中依次获取 MAC地址表项; 步骤 S204 , 判断 MAC地址表项在所有子系统中的老化状态; 步骤 S206,在所有子系统中 MAC地址表项的老化状态全为老化的情况下, 通知所有子系统老化 MAC地址表项; 否则, 保活所有子系统中的 MAC地址 表项。 通过上述步骤, 釆用当所有子系统中同一 MAC地址的老化状态都为老化 时, 再将其老化的方式, 解决了在二层网络设备中存在聚合端口的情况下, 由 于某些子系统上对应的 MAC地址表项无法被保活而导致带宽占有率增加的问 题, 提高了系统的性能和处理能力。 优选地, 在步骤 S204之前, 全局系统接收来自子系统的 MAC地址表项的 老化消息或者保活消息, 获取并记录子系统中 MAC地址表项的老化状态。 该 方法可以获取全局系统 MAC地址表中的 MAC地址表项在各子系统中的实时 状态, 提高了系统的有效性和准确性。 在实施过程中, 可以是子系统向全局系统发送该子系统的 MAC地址表项 的老化消息或者保活消息, 全局系统根据接收到的消息将该 MAC地址表项的 老化状态记录与其对应的全局系统 MAC地址表中。
例如, 子系统可以主动发送该子系统的 MAC地址表项的老化消息或者保 活消息, 也可以是全局系统定时扫描各子系统 MAC地址表中的 MAC地址表 项, 根据各子系统 MAC地址表中的 MAC地址表项的老化状态变更情况, 更 新全局系统 MAC地址表中相应的 MAC地址表项的老化状态。 优选地, 全局系统接收来自子系统的 MAC地址表项的老化消息或者保活 消息之前, 子系统在其子系统 MAC地址表中的 MAC地址表项的老化状态变 更的情况下,向全局系统发送在子系统 MAC地址表中的老化状态变更的 MAC 地址表项的老化消息或者保活消息。 这样可以通知全局系统在子系统 MAC地 址表中的 MAC地址表项的当前状态, 使得全局系统做相应的处理, 提高了系 统的性能。 优选地, 子系统向全局系统发送在子系统 MAC地址表中的老化状态变更 的 MAC 地址表项的老化消息或者保活消息之前, 子系统 MAC 地址表中的 MAC地址表项的老化状态在更新前后不一致的情况下,子系统确定该 MAC地 址表项的老化状态已变更。 该方法可以使得子系统 MAC地址表中的 MAC地 址表项的老化状态与实时得到更新, 提高了系统的实时性和有效性。 优选地, 子系统确定该 MAC地址表项的老化状态已变更之前, 子系统在 接收到子系统 MAC地址表中的 MAC地址表项的保活 4艮文时,将该 MAC地址 表项的老化状态更新为保活; 子系统在子系统 MAC地址表中的 MAC地址表 项的老化时间到达时, 将该 MAC地址表项的老化状态更新为老化。 该方法实 现简单、 可操作性强。 对应于上述的优选实施方式, 在本实施例中还提供了一种 MAC地址的老 化处理系统。 图 3是才艮据本发明实施例的 MAC地址的老化处理系统的结构框 图, 如图 3所示, 该 MAC地址的老化处理系统包括全局系统 32和多个子系统 34 , 其中, 全局系统 32包括: 获取模块 3202、 判断模块 3204、 老化模块 3206 和保活模块 3208 , 下面对各部分进行详细说明。 获取模块 3202 , 设置为从全局系统 MAC地址表中依次获取 MAC地址表 项; 判断模块 3204 , 耦合至获取模块 3202 , 设置为判断 MAC地址表项在所有 子系统 34中的老化状态; 老化模块 3206 , 耦合至判断模块 3204 , 设置为在判 断模块 3204判定所有子系统中 MAC地址表项的老化状态全为老化的情况下, 通知所有子系统 34老化 MAC地址表项; 以及保活模块 3208 , 合至判断模
块 3204 , 设置为在判断模块 3204判定所有子系统 34中 MAC地址表项的老化 状态不全为老化的情况下, 保活所有子系统 34中的 MAC地址表项。 通过本发明实施例, 釆用全局系统 32当所有子系统 34中同一 MAC地址 的老化状态都为老化时, 再将其老化的方式, 解决了在二层网络设备中存在聚 合端口的情况下, 由于某些子系统上对应的 MAC地址表项无法被保活而导致 带宽占有率增加的问题, 提高了系统的性能和处理能力。 图 4是才艮据本发明优选实施例的 MAC地址的老化处理系统的结构框图, 如图 4所示, 全局系统 32还包括: 接收模块 3210 , 设置为接收来自子系统 34 的 MAC地址表项的老化消息或者保活消息; 记录模块 3212 , 耦合至接收模块 3210,设置为根据接收模块 3210接收到的 MAC地址表项的老化消息或者保活 消息, 获取并记录子系统 34中 MAC地址表项的老化状态。 优选地, 多个子系统 34中的每个子系统 34包括: 发送模块 3402 , 设置为 在子系统 34 MAC地址表中的 MAC地址表项的老化状态变更的情况下, 向全 局系统 32发送在子系统 MAC地址表中的老化状态变更的 MAC地址表项的老 化消息或者保活消息。 优选地, 多个子系统 34中的每个子系统 34还包括: 确定模块 3404 , 耦合 至发送模块 3402 , 设置为子系统 34 MAC地址表中的 MAC地址表项的老化状 态在更新前后不一致的情况下, 确定该 MAC地址表项的老化状态已变更。 优选地, 多个子系统 34中的每个子系统 34还包括: 更新模块 3406 , 耦合 至确定模块 3404, 设置为在接收到子系统 34 MAC地址表中的 MAC地址表项 的保活 4艮文时, 将该 MAC地址表项的老化状态更新为保活; 以及在子系统 34 MAC地址表中的 MAC地址表项的老化时间到达时, 将该 MAC地址表项的老 化状态更新为老化。 下面将结合实例对本发明实施例的实现过程进行详细描述。 优选实施例一 本实施例针对分布式系统中聚合端口 MAC地址归属地难以确认的情况, 提供了一种正确老化 MAC地址的方法。 由于这种聚合端口 MAC地址的保活 和老化都是在各个子系统上实现的, 均会受制于无法知道其他子系统对应
MAC 地址是否被保活, 所以可以釆用在全局系统上管理仲裁所有子系统上 MAC地址是否需要老化的机制来实现。 图 5是 居本发明优选实施例一的全局系统的处理流程图, 如图 5所示, 在全局系统中的处理流程可以包括以下步 4聚: 步 4聚 S502, 启动全局聚合端口 MAC地址管理模块。 在具体实施过程中, 全局系统中的 MAC地址的老化处理方法可以由该全 局聚合端口 MAC地址管理模块来实现。 步骤 S504, 判断全局系统 MAC地址表中是否存在 MAC地址表项 (即, 全局系统 MAC地址表是否非空)。 若是, 则转到步骤 S506, 否则, 结束流程。 步骤 S506, 扫描该全局系统 MAC地址表中的 MAC地址表项 (即, 某个If the aging status of the MAC address entry in the MAC address table is inconsistent before and after the update, the aging status of the MAC address entry is changed. Preferably, each of the plurality of subsystems further includes: an update module configured to: when receiving the keep-alive message of the MAC address entry in the subsystem MAC address table, the aging state of the MAC address entry Update to keep-alive; and update the aging status of the MAC address entry to aging when the aging time of the MAC address entry in the subsystem MAC address table arrives. The invention solves the problem that when the aging state of the same MAC address in all subsystems is aging and then aging, the aggregation port exists in the layer 2 network device, due to some subsystems. The corresponding MAC address entry cannot be saved and the bandwidth occupancy rate increases, which improves the performance and processing capability of the system. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 1 is a schematic diagram of a relationship between subsystems and management systems in a distributed system according to the related art; FIG. 2 is a flowchart of a method for processing aging of MAC addresses according to an embodiment of the present invention; 3 is a structural block diagram of an aging processing system for a MAC address according to an embodiment of the present invention; FIG. 4 is a structural block diagram of an aging processing system for a MAC address according to a preferred embodiment of the present invention; FIG. 5 is a preferred embodiment of the present invention. Flowchart of the processing of the global system of the first embodiment; Fig. 6 is a flowchart of the processing of the subsystem of the preferred embodiment 2 of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. According to an embodiment of the present invention, a method for processing an aging of a MAC address is provided. FIG. 2 is a flowchart of a method for processing aging of a MAC address according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps: Step S202: The global system sequentially obtains a MAC address table from a local MAC address table. Step S204, determining the aging state of the MAC address entry in all the subsystems; Step S206, informing all the aging MAC address entries of all the subsystems in the case that the aging states of the MAC address entries in all the subsystems are all aging ; Otherwise, keep the MAC address entries in all subsystems. Through the above steps, when the aging status of the same MAC address in all subsystems is aging and then aging, the aggregation port is found in the Layer 2 network device, because some subsystems The corresponding MAC address entry cannot be saved and the bandwidth occupancy rate increases, which improves the performance and processing capability of the system. Preferably, before step S204, the global system receives an aging message or keep-alive message from the MAC address entry of the subsystem, and obtains and records the aging status of the MAC address entry in the subsystem. The method can obtain the real-time status of the MAC address entries in the global system MAC address table in each subsystem, thereby improving the effectiveness and accuracy of the system. In the implementation process, the subsystem may send an aging message or a keep-alive message of the MAC address entry of the subsystem to the global system, and the global system records the aging state record of the MAC address entry according to the received message. System MAC address table. For example, the subsystem may actively send an aging message or a keep-alive message of the MAC address entry of the subsystem, or may be a global system periodically scans the MAC address entries in the MAC address table of each subsystem, according to each subsystem MAC address table. The aging status of the MAC address entry in the global system is updated. The aging status of the corresponding MAC address entry in the global system MAC address table is updated. Preferably, before the global system receives the aging message or the keep-alive message from the MAC address entry of the subsystem, the subsystem sends the aging status of the MAC address entry in the subsystem MAC address table to the global system. An aging message or keep-alive message of the MAC address entry changed by the aging state in the subsystem MAC address table. In this way, the current state of the MAC address entry in the subsystem MAC address table can be notified to the global system, so that the global system performs corresponding processing, thereby improving the performance of the system. Preferably, the aging status of the MAC address entry in the subsystem MAC address table is updated before the subsystem sends the aging message or the keep-alive message of the aging status changed MAC address entry in the subsystem MAC address table to the global system. In the case of inconsistency, the subsystem determines that the aging status of the MAC address entry has changed. The method can update the aging state of the MAC address entries in the subsystem MAC address table and update in real time, thereby improving the real-time and effectiveness of the system. Preferably, before the subsystem determines that the aging status of the MAC address entry has been changed, the subsystem ages the MAC address entry when receiving the keep-alive message of the MAC address entry in the subsystem MAC address table. The state is updated to keep alive; when the aging time of the MAC address entry in the subsystem MAC address table is reached, the aging status of the MAC address entry is updated to aging. The method is simple to implement and has high operability. Corresponding to the above preferred embodiment, an aging processing system for a MAC address is also provided in this embodiment. FIG. 3 is a structural block diagram of an aging processing system for a MAC address according to an embodiment of the present invention. As shown in FIG. 3, the MAC address aging processing system includes a global system 32 and a plurality of subsystems 34, wherein the global system 32 includes The acquisition module 3202, the determination module 3204, the aging module 3206, and the keep-alive module 3208 are described in detail below. The obtaining module 3202 is configured to sequentially obtain the MAC address entry from the global system MAC address table. The determining module 3204 is coupled to the obtaining module 3202, and configured to determine the aging state of the MAC address entry in all the subsystems 34. The aging module 3206 The method is coupled to the determining module 3204, and configured to notify all subsystems 34 to age the MAC address entry when the determining module 3204 determines that the aging states of the MAC address entries in all the subsystems are all aging; and the keep-alive module 3208, Judgment mode Block 3204, configured to preserve the MAC address entries in all subsystems 34 in the event that the determining module 3204 determines that the aging states of the MAC address entries in all of the subsystems 34 are not all aging. In the embodiment of the present invention, when the aging state of the same MAC address in all the subsystems 34 is aging, the aging mode is used to solve the problem that the aggregation port exists in the Layer 2 network device. The performance of the system and the processing capability are improved because the corresponding MAC address entries on some subsystems cannot be kept alive and the bandwidth occupancy rate increases. 4 is a structural block diagram of an aging processing system for a MAC address according to a preferred embodiment of the present invention. As shown in FIG. 4, the global system 32 further includes: a receiving module 3210 configured to receive a MAC address entry from the subsystem 34. The aging message or the keep-alive message; the recording module 3212 is coupled to the receiving module 3210, configured to acquire and record the MAC address entry in the subsystem 34 according to the aging message or the keep-alive message of the MAC address entry received by the receiving module 3210. Aging state. Preferably, each of the plurality of subsystems 34 includes: a transmitting module 3402 configured to transmit to the global system 32 the subsystem in the event that the aging state of the MAC address entry in the subsystem 34 MAC address table is changed. The aging message or keep-alive message of the MAC address entry changed by the aging state in the MAC address table. Preferably, each of the plurality of subsystems 34 further includes: a determining module 3404 coupled to the sending module 3402, configured to set the aging state of the MAC address entries in the MAC address table of the subsystem 34 inconsistent before and after the update , determine that the aging status of the MAC address entry has changed. Preferably, each of the plurality of subsystems 34 further includes: an update module 3406 coupled to the determination module 3404, configured to receive the keep-alive message of the MAC address entry in the subsystem 34 MAC address table Update the aging status of the MAC address entry to keep alive; and update the aging status of the MAC address entry to aging when the aging time of the MAC address entry in the MAC address table of the subsystem 34 arrives. The implementation process of the embodiment of the present invention will be described in detail below with reference to examples. Preferred Embodiment 1 This embodiment provides a method for correctly aging a MAC address in a distributed system in which the aggregation port MAC address attribution is difficult to confirm. Since the keepalive and aging of the MAC address of this aggregation port are implemented on each subsystem, it is subject to the inability to know other subsystems. Whether the MAC address is kept live, so it can be implemented by a mechanism that manages whether the MAC address on all subsystems of the arbitration system needs to be aged on the global system. 5 is a process flow diagram of a global system in a preferred embodiment of the present invention. As shown in FIG. 5, the process flow in the global system may include the following steps: Step 4: S502, start global aggregation port MAC address management. Module. In a specific implementation process, the aging processing method of the MAC address in the global system may be implemented by the global aggregation port MAC address management module. Step S504, determining whether there is a MAC address entry in the global system MAC address table (that is, whether the global system MAC address table is not empty). If yes, go to step S506, otherwise, end the flow. Step S506, scanning a MAC address entry in the global system MAC address table (ie, some
MAC地址条目 ;)。 步骤 S508, 提取与扫描的 MAC地址表项对应的所有子系统中该 MAC地 址表项的老化消息或者保活消息。 在实施过程中, 可以是全局系统接收到各子系统发送的与全局系统 MAC 地址表中的 MAC地址表项对应的老化消息或者保活消息。 步骤 S510,根据提取结果记录所有子系统中该 MAC地址表项的老化状态。 步骤 S512, 判断是否所有子系统中该 MAC地址表项的老化状态都是"老 化"。 若是, 则转到步骤 S514, 否则, 转到步骤 S516。 需要说明的是, 在具体实施过程中, 对该 MAC地址表项处理完毕之后, 可以再回到步 4聚 S504, 判断全局系统 MAC地址表为空时, 扫描另一条该全局 系统 MAC地址表中的 MAC地址表项, 故类似处理。 步骤 S514, 通知所有子系统老化这个 MAC地址表项。 例如, 从各自的子 系统 MAC地址表中删除该 MAC地址表项。 步 4聚 S516, 让所有子系统上对应 MAC地址表项保活。 优选实施例二
本实施例对各子系统中 MAC地址表项的老化处理进行了详细描述。 图 6 是 居本发明优选实施例二的子系统的处理流程图, 如图 6所示, 在子系统中 的处理流程可以包括以下步 4聚: 步骤 S602, 扫描子系统 MAC地址表中的 MAC地址表项(即, 某个 MAC 地址条目 )。 例如, 可以是子系统定时扫描子系统 MAC地址表中的 MAC地址 表项。 步骤 S604, 判断子系统是否收到该 MAC地址表项的保活报文。 若是, 则 转到步骤 S606 , 否则, 子系统在该 MAC地址表项的老化时间到达时, 转到步 骤 S608。 步骤 S606 , 记录子系统中该 MAC地址表项的老化状态为 "保活"(即, 更 新子系统中该 MAC地址的老化状态为"保活" )„ 步骤 S608, 记录子系统中该 MAC地址表项的老化状态为"老化"。 步骤 S610, 获取子系统中该 MAC地址表项上次的老化状态。 步骤 S612, 判断该 MAC地址表项的两次状态 (即, 在更新前后该 MAC 地址的老化状态) 是否一致, 若是, 则结束该流程, 否则, 转到步骤 S614。 步骤 S614, 居当前状态发送该 MAC地址表项的老化或者保活消息给全 局系统。 需要说明的是, 在具体实施过程中, 也可以是全局系统定时扫描各子系统 MAC地址表中的 MAC地址表项, 才艮据各子系统 MAC地址表中的 MAC地址 表项的老化状态变更情况, 更新全局系统 MAC地址表中相应的 MAC地址表 项的老化状态。 综上所述, 本发明实施例涉及二层网络设备的 MAC地址的学习和保活, 是在分布式系统中对于聚合端口 MAC 地址归属地难以确认的情况下, 解决 MAC地址保活的一种方案, 提高了系统的性能和处理能力。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以 用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多 个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码 来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 并且在某些
情况下, 可以以不同于此处的顺序执行所示出或描述的步骤, 或者将它们分别 制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作成单个集成电 路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领 域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的 ^"神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之 内。
MAC address entry ;). Step S508, extracting an aging message or a keep-alive message of the MAC address entry in all subsystems corresponding to the scanned MAC address entry. In the implementation process, the global system may receive an aging message or a keep-alive message corresponding to the MAC address entry in the global system MAC address table sent by each subsystem. Step S510, recording an aging state of the MAC address entry in all subsystems according to the extraction result. In step S512, it is determined whether the aging status of the MAC address entry in all subsystems is "aging". If yes, go to step S514, otherwise, go to step S516. It should be noted that, in the specific implementation process, after processing the MAC address entry, you can go back to step 4 to gather S504, and when the global system MAC address table is empty, scan another global system MAC address table. The MAC address entry is similarly handled. Step S514, informing all subsystems to age the MAC address entry. For example, the MAC address entry is deleted from the respective subsystem MAC address table. Step 4 gathers S516 to keep the corresponding MAC address entries on all subsystems alive. Preferred embodiment two This embodiment describes the aging process of MAC address entries in each subsystem in detail. 6 is a processing flowchart of a subsystem in a preferred embodiment 2 of the present invention. As shown in FIG. 6, the processing flow in the subsystem may include the following steps: Step S602: Scanning the MAC in the subsystem MAC address table An address entry (that is, a MAC address entry). For example, it may be a MAC address entry in the subsystem timing scan subsystem MAC address table. Step S604, determining whether the subsystem receives the keep-alive message of the MAC address entry. If yes, go to step S606. Otherwise, when the aging time of the MAC address entry arrives, the subsystem goes to step S608. Step S606, the aging status of the MAC address entry in the recording subsystem is "keep alive" (that is, the aging status of the MAC address in the update subsystem is "keep alive"). Step S608, recording the MAC address in the subsystem The aging state of the entry is "aging." Step S610, obtaining the last aging state of the MAC address entry in the subsystem. Step S612, determining the two states of the MAC address entry (that is, the MAC address before and after the update) Whether the aging state is consistent, if yes, the process is terminated, otherwise, the process goes to step S614. Step S614, the aging or keep-alive message of the MAC address entry is sent to the global system in the current state. During the implementation process, the global system periodically scans the MAC address entries in the MAC address table of each subsystem to update the global system MAC address according to the aging status change of the MAC address entries in the MAC address table of each subsystem. The aging status of the corresponding MAC address entry in the table. In summary, the embodiment of the present invention relates to learning and keeping alive of a MAC address of a Layer 2 network device, which is in a distributed system. In the case where the port MAC address attribution is difficult to confirm, a solution for the MAC address keep-alive is solved, and the performance and processing capability of the system are improved. Obviously, those skilled in the art should understand that the above modules or modules of the present invention are The steps may be implemented in a general-purpose computing device, which may be centralized on a single computing device or distributed across a network of multiple computing devices, which may alternatively be implemented by program code executable by the computing device. Thereby, they can be stored in the storage device by the computing device, and in some In this case, the steps shown or described may be performed in an order different from that herein, or they may be separately fabricated into individual integrated circuit modules, or a plurality of the modules or steps may be implemented as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.
Claims
1. 一种 MAC地址的老^ ^处理方法, 包括以下步 4聚: 1. An old ^ ^ processing method for a MAC address, including the following steps:
全局系统从本地的 MAC地址表中依次获取 MAC地址表项; 判断所述 MAC地址表项在所有子系统中的老化状态; The global system obtains the MAC address entry from the local MAC address table in sequence; and determines the aging state of the MAC address entry in all subsystems;
在所有子系统中所述 MAC地址表项的老化状态全为老化的情况下 , 通知所有子系统老化所述 MAC地址表项; 否则, 保活所有子系统中的 所述 MAC地址表项。 In the case that all the aging states of the MAC address entries are aging in all subsystems, all subsystems are notified to age the MAC address entries; otherwise, the MAC address entries in all subsystems are guaranteed.
2. 根据权利要求 1所述的方法, 其中, 判断所述 MAC地址表项在所有子 系统中的老化状态之前, 还包括: The method according to claim 1, wherein before determining the aging state of the MAC address entry in all the sub-systems, the method further includes:
所述全局系统接收来自子系统的所述 MAC地址表项的老化消息或 者保活消息, 获取并记录所述子系统中所述 MAC地址表项的老化状态。 The global system receives an aging message or keep-alive message from the MAC address entry of the subsystem, and obtains and records an aging status of the MAC address entry in the subsystem.
3. 根据权利要求 2所述的方法, 其中, 所述全局系统接收来自所述子系统 的所述 MAC地址表项的老化消息或者保活消息之前, 还包括: The method according to claim 2, wherein before the global system receives the aging message or the keep-alive message of the MAC address entry from the subsystem, the method further includes:
所述子系统在其子系统 MAC地址表中的 MAC地址表项的老化状态 变更的情况下, 向所述全局系统发送在所述子系统 MAC地址表中的老 化状态变更的 MAC地址表项的老化消息或者保活消息。 The subsystem sends, to the global system, a MAC address entry of an aging state change in the subsystem MAC address table, when the aging state of the MAC address entry in the subsystem MAC address table is changed. Aging message or keep-alive message.
4. 根据权利要求 3所述的方法, 其中, 所述子系统向所述全局系统发送在 所述子系统 MAC地址表中的老化状态变更的 MAC地址表项的老化消息 或者保活消息之前, 还包括: The method according to claim 3, wherein the subsystem sends, to the global system, an aging message or a keep-alive message of an aging state changed MAC address entry in the subsystem MAC address table, Also includes:
所述子系统 MAC地址表中的 MAC地址表项的老化状态在更新前后 不一致的情况下, 所述子系统确定该 MAC地址表项的老化状态已变更。 If the aging status of the MAC address entry in the MAC address table of the subsystem is inconsistent before and after the update, the subsystem determines that the aging status of the MAC address entry has been changed.
5. 根据权利要求 4所述的方法, 其中, 所述子系统确定该 MAC地址表项 的老化状态已变更之前, 还包括: The method according to claim 4, wherein before the subsystem determines that the aging status of the MAC address entry has been changed, the method further includes:
所述子系统在接收到所述子系统 MAC地址表中的 MAC地址表项的 保活 4艮文时, 将该 MAC地址表项的老化状态更新为保活; When the subsystem receives the keep-alive message of the MAC address entry in the subsystem MAC address table, the subsystem updates the aging status of the MAC address entry to keep-alive;
所述子系统在所述子系统 MAC地址表中的 MAC地址表项的老化时 间到达时, 将该 MAC地址表项的老化状态更新为老化。 一种 MAC地址的老化处理系统, 包括全局系统和多个子系统, 其中, 所述全局系统包括: The subsystem updates the aging status of the MAC address entry to aging when the aging time of the MAC address entry in the subsystem MAC address table arrives. An aging processing system for a MAC address includes a global system and a plurality of subsystems, where the global system includes:
获取模块,设置为从全局系统 MAC地址表中依次获取 MAC地址表 项; The obtaining module is configured to obtain a MAC address entry in sequence from the global system MAC address table;
判断模块, 设置为判断所述 MAC地址表项在所有子系统中的老化 状态; a judging module, configured to determine an aging state of the MAC address entry in all subsystems;
老化模块, 设置为在所述判断模块判定所有子系统中所述 MAC地 址表项的老化状态全为老化的情况下, 通知所有子系统老化所述 MAC 地址表项; 以及 An aging module, configured to notify all subsystems to age the MAC address entry when the determining module determines that all the aging states of the MAC address entries in all subsystems are aging;
保活模块, 设置为在所述判断模块判定所有子系统中所述 MAC地 址表项的老化状态不全为老化的情况下,保活所有子系统中的所述 MAC 地址表项。 根据权利要求 6所述的系统, 其中, 所述全局系统还包括: The keep-alive module is configured to keep the MAC address entries in all subsystems in a case where the judging module determines that the aging states of the MAC address entries in all subsystems are not all aging. The system of claim 6, wherein the global system further comprises:
接收模块, 设置为接收来自子系统的所述 MAC地址表项的老化消 息或者保活消息; a receiving module, configured to receive an aging message or keep-alive message from the MAC address entry of the subsystem;
记录模块, 设置为根据所述接收模块接收到的所述 MAC地址表项 的老化消息或者保活消息, 获取并记录所述子系统中所述 MAC地址表 项的老化状态。 根据权利要求 7所述的系统, 其中, 所述多个子系统中的每个子系统包 括: The recording module is configured to obtain and record an aging state of the MAC address entry in the subsystem according to the aging message or keep-alive message of the MAC address entry received by the receiving module. The system of claim 7, wherein each of the plurality of subsystems comprises:
发送模块,设置为在子系统 MAC地址表中的 MAC地址表项的老化 状态变更的情况下, 向所述全局系统发送在所述子系统 MAC地址表中 的老化状态变更的 MAC地址表项的老化消息或者保活消息。 根据权利要求 8所述的系统, 其中, 所述多个子系统中的每个子系统还 包括: a sending module, configured to send, in the case that the aging state of the MAC address entry in the subsystem MAC address table is changed, to the global system, the MAC address entry of the aging state change in the subsystem MAC address table Aging message or keep-alive message. The system of claim 8, wherein each of the plurality of subsystems further comprises:
确定模块,设置为所述子系统 MAC地址表中的 MAC地址表项的老 化状态在更新前后不一致的情况下, 确定该 MAC地址表项的老化状态 已变更。 The determining module determines that the aging state of the MAC address entry in the subsystem MAC address table is inconsistent before and after the update, and determines that the aging state of the MAC address entry has changed.
0. 根据权利要求 9所述的系统, 其中, 所述多个子系统中的每个子系统还 包括: 0. The system of claim 9, wherein each of the plurality of subsystems further comprises:
更新模块,设置为在接收到所述子系统 MAC地址表中的 MAC地址 表项的保活 4艮文时, 将该 MAC地址表项的老化状态更新为保活; 以及 在所述子系统 MAC地址表中的 MAC地址表项的老化时间到达时,将该 MAC地址表项的老化状态更新为老化。 An update module, configured to: when receiving the keep-alive message of the MAC address entry in the subsystem MAC address table, update the aging status of the MAC address entry to keep-alive; and in the subsystem MAC When the aging time of the MAC address entry in the address table is reached, the aging status of the MAC address entry is updated to aging.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010287412.X | 2010-09-17 | ||
CN201010287412XA CN101969398A (en) | 2010-09-17 | 2010-09-17 | Aging method and system of MAC (Media Access Control) address |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2012034408A1 true WO2012034408A1 (en) | 2012-03-22 |
Family
ID=43548503
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2011/074526 WO2012034408A1 (en) | 2010-09-17 | 2011-05-23 | Method and system for processing media access control address aging |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101969398A (en) |
WO (1) | WO2012034408A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017219868A1 (en) * | 2016-06-21 | 2017-12-28 | 中兴通讯股份有限公司 | Arp entry processing method and apparatus |
CN113542130A (en) * | 2021-07-22 | 2021-10-22 | 新华三信息安全技术有限公司 | Method and device for processing address table items |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101969398A (en) * | 2010-09-17 | 2011-02-09 | 中兴通讯股份有限公司 | Aging method and system of MAC (Media Access Control) address |
CN104967579B (en) * | 2015-06-30 | 2018-04-06 | 上海斐讯数据通信技术有限公司 | Interchanger MAC address synchronizations method and system |
CN107666445B (en) * | 2016-07-29 | 2021-09-07 | 中兴通讯股份有限公司 | Distributed system MAC address processing method and device |
CN107332940B (en) * | 2017-06-06 | 2020-04-28 | 烽火通信科技股份有限公司 | Method and system for realizing MAC address synchronization of distributed IP RAN equipment |
CN108023974B (en) * | 2017-11-30 | 2021-01-26 | 新华三技术有限公司 | Address aging method and device |
CN111935337B (en) * | 2020-09-17 | 2021-01-08 | 南京中兴软件有限责任公司 | MAC address keep-alive method, equipment and storage medium of aggregation link |
CN115499409B (en) * | 2022-09-29 | 2024-07-26 | 阿里巴巴(中国)有限公司 | NAT gateway, server and network system |
CN116055455B (en) * | 2023-02-14 | 2024-08-23 | 迈普通信技术股份有限公司 | MAC address aging processing method and device, LPU card and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1691635A (en) * | 2004-04-23 | 2005-11-02 | 华为技术有限公司 | A routing method for convergence service |
CN101179514A (en) * | 2007-12-18 | 2008-05-14 | 杭州华三通信技术有限公司 | Method and device of maintaining MAC item of distributed network processing system |
CN101834781A (en) * | 2010-03-16 | 2010-09-15 | 中兴通讯股份有限公司 | Media access control address keep-alive device and method for convergence port |
CN101969398A (en) * | 2010-09-17 | 2011-02-09 | 中兴通讯股份有限公司 | Aging method and system of MAC (Media Access Control) address |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101170512B (en) * | 2007-11-21 | 2010-04-21 | 中兴通讯股份有限公司 | Message service processing method |
CN101656676B (en) * | 2009-09-18 | 2013-03-20 | 杭州华三通信技术有限公司 | Method and equipment for updating media access control (MAC) address list items |
-
2010
- 2010-09-17 CN CN201010287412XA patent/CN101969398A/en active Pending
-
2011
- 2011-05-23 WO PCT/CN2011/074526 patent/WO2012034408A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1691635A (en) * | 2004-04-23 | 2005-11-02 | 华为技术有限公司 | A routing method for convergence service |
CN101179514A (en) * | 2007-12-18 | 2008-05-14 | 杭州华三通信技术有限公司 | Method and device of maintaining MAC item of distributed network processing system |
CN101834781A (en) * | 2010-03-16 | 2010-09-15 | 中兴通讯股份有限公司 | Media access control address keep-alive device and method for convergence port |
CN101969398A (en) * | 2010-09-17 | 2011-02-09 | 中兴通讯股份有限公司 | Aging method and system of MAC (Media Access Control) address |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017219868A1 (en) * | 2016-06-21 | 2017-12-28 | 中兴通讯股份有限公司 | Arp entry processing method and apparatus |
CN107528929A (en) * | 2016-06-21 | 2017-12-29 | 中兴通讯股份有限公司 | The processing method and processing device of arp entry |
CN107528929B (en) * | 2016-06-21 | 2021-05-14 | 中兴通讯股份有限公司 | ARP (Address resolution protocol) entry processing method and device |
CN113542130A (en) * | 2021-07-22 | 2021-10-22 | 新华三信息安全技术有限公司 | Method and device for processing address table items |
Also Published As
Publication number | Publication date |
---|---|
CN101969398A (en) | 2011-02-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2012034408A1 (en) | Method and system for processing media access control address aging | |
US8929368B2 (en) | Control method of virtual link discovery and system for fibre channel over ethernet protocol | |
US20140089619A1 (en) | Object replication framework for a distributed computing environment | |
US20140344444A1 (en) | Recovery of Dynamic Host Configuration Protocol IP Addresses | |
CN107820043B (en) | Control method, device and system of video monitoring system | |
CN103248724A (en) | SDN (Software-Defined Networking) controller-based DHCP (Dynamic Host Configuration Protocol) broadcast processing method | |
WO2015003566A1 (en) | Method, device and system for transmitting packet in multicast domain name system | |
WO2021098425A1 (en) | Qos policy method, device, and computing device for service configuration | |
US10075395B2 (en) | Communication method, optical module, and network device | |
WO2021135419A1 (en) | Method and apparatus for updating routing information, computer device, and storage medium | |
CN101834781B (en) | Media access control address keep-alive device and method for convergence port | |
WO2016202016A1 (en) | Device management method, apparatus and system | |
WO2017054734A1 (en) | Locking file management method and device | |
WO2017032110A1 (en) | Application message processing system and method, and application device | |
JP2005252762A (en) | Method and system for controlling vpn connection | |
CN104660506B (en) | A kind of method, apparatus and system of data packet forwarding | |
TWI505675B (en) | Network switch and data updating method | |
CN110061922B (en) | Message forwarding method and device | |
CN106936900B (en) | Clustered node statistical method and device | |
CN110809033A (en) | Message forwarding method and device and switching server | |
CN114448942B (en) | DHCP message processing method and device, electronic equipment and storage medium | |
TWI646803B (en) | Heterogeneous software defined network controller and management device and method thereof | |
CN106878051A (en) | A kind of multi-computer back-up implementation method and device | |
US12015560B2 (en) | Data transmission method and network device | |
CN115277379B (en) | Distributed lock disaster recovery processing method and device, electronic equipment and storage medium |
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: 11824478 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: 11824478 Country of ref document: EP Kind code of ref document: A1 |