WO2012174705A1 - Automatic configuration method and apparatus for static media access control address table items - Google Patents
Automatic configuration method and apparatus for static media access control address table items Download PDFInfo
- Publication number
- WO2012174705A1 WO2012174705A1 PCT/CN2011/075992 CN2011075992W WO2012174705A1 WO 2012174705 A1 WO2012174705 A1 WO 2012174705A1 CN 2011075992 W CN2011075992 W CN 2011075992W WO 2012174705 A1 WO2012174705 A1 WO 2012174705A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- port
- network element
- mac address
- peer
- vlan
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/40—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using virtualisation of network functions or resources, e.g. SDN or NFV entities
Definitions
- the present invention relates to the field of network communication technologies, and in particular, to a method and an apparatus for automatically configuring a static medium access control address table. Background technique
- the NE In the process of Layer 2 switching, the NE needs to use the Medium Access Control (MAC) address table.
- the fields of the address table include the outgoing port, the destination MAC address, and so on.
- MAC Medium Access Control
- the VLAN ID field is also required in the MAC address table.
- a network element When a network element receives a data packet from a port, it first reads the source MAC address in the packet header of the data packet, so that the source MAC address of the device is connected to the port, and then reads the destination MAC address in the packet header, and The corresponding record is found in the MAC address table according to the MAC address, so that the data packet is copied to the destination port indicated by the record, and the layer 2 exchange is completed.
- a self-learning mode is implemented by the network element by using a flooding mechanism. Specifically, if the MAC address cannot be obtained in the foregoing process. If the record is found in the table, the network element broadcasts the data packet to all the ports. When the destination network element responds to the network element, it can learn the port corresponding to the destination MAC address and record the MAC address to the MAC address. In the address table, a MAC address entry is formed. In the static configuration mode, the user enters and configures the MAC address entry by using the network management system, and sends the MAC address entry to the network element by means of a command. The NEs are saved in the MAC address table. These entries are called static MAC address entries.
- the static configuration mode does not form a broadcast storm.
- the static configuration mode is mainly used to prohibit forwarding of unnecessary data packets, rapidly forming a MAC address table, and MAC address table. There are other scenarios with special requirements, as well as scenarios where non-destructive business switching needs to be completed.
- the user In the existing technology of configuring a static MAC address table of a network element, the user needs to know in advance: the port with the physical link in the network element, the port of the peer network element of each physical link, and the VLAN interface included in the port. And the peer network element MAC address. According to other constraints, the user determines the static MAC address entry set of the network element according to the mechanism of the Layer 2 switching, and then inputs the entries to the network element through the network management system, and the network element stores the MAC address into the MAC address. In the table. This process needs to be done manually, so the workload is large, and the configuration is inefficient and error-prone. Summary of the invention
- the main purpose of the present invention is to provide an automatic configuration method and device for a static medium access control address table, which can efficiently complete the configuration of a static MAC address table.
- the present invention provides a method for automatically configuring a static medium access control address table, including: the network management system queries the physical link data of the configured network element from the database, and obtains the physical link occupied by the configured network element according to the physical link data.
- the port and the peer port of each physical link form a set of configured network element ports and a set of peer ports;
- the network management system queries the database for the virtual local area network (VLAN) interface included in each peer port of the peer port set, and the media access control (MAC) address of the network element to which each peer port belongs, forming a VLAN port set and pair. End network element MAC address set;
- VLAN virtual local area network
- MAC media access control
- the network management system generates a static MAC address entry according to the configured network element port set, the VLAN port set, and the peer network element MAC address set.
- the database is a database of a network management system or a database for configuring a network element.
- the obtaining the port occupied by the physical link in the configuration network element and the peer port of each physical link form the configured network element port set and the peer port set as:
- the network management system obtains the source port of the configured network element that is occupied by the physical link.
- Configure the NE port set PI ⁇ SourcePort 1, SourcePort 2, SourcePort 3, ⁇ , SourcePort N ⁇ ;
- the network management system obtains the peer port SinkPort of each physical link according to the physical link data, forming a peer port.
- Set P2 ⁇ SinkPort 1, SinkPort 2, SinkPort 3, ⁇ . , SinkPortN ⁇ ; where N is an integer greater than or equal to 1.
- the network management system queries a VLAN interface included in each peer port of the peer port set from the database, and forms a VLAN port set as:
- V N ⁇ VI N1 , VI N2, VI Nm N ⁇ ; where m N is an integer greater than or equal to 1 and less than or equal to 4094.
- the network management system queries the database for the MAC address of the network element to which each peer port belongs, and forms a set of the peer network element MAC address as:
- the generated static MAC address entry is:
- the network management system configures the NE port i as the egress port and the MEMacAddr i as the destination MAC address.
- the VLAN ID of each interface in the V N is used as the VLAN ID list to generate a static MAC address entry. MAC address entry.
- the method further includes:
- the network management system constructs a command message according to the static MAC address entry, and sends the command message to the network element; the network element receives the command message, and saves the static MAC address entry in the command message to its own MAC address table.
- the invention also provides an automatic configuration device for static media access control address table, the device
- the application is applied to the network management system, including: a first query module, an acquisition module, a second query module, a generation module, and a database;
- the first query module is configured to query the physical link data of the configured network element from the database;
- the obtaining module is configured to obtain, according to the physical link data, a port that is occupied by the physical link in the configured network element and a peer port of each physical link, Forming a set of configured network element ports and a set of peer ports;
- the second query module is configured to query, from the database, the VLAN interface included in each peer port of the peer port set, and the MAC address of the network element to which each peer port belongs, to form a VLAN port set and a peer network element MAC address.
- a generating module configured to generate a static MAC address entry according to the configured network element port set, the VLAN port set, and the peer network element MAC address set;
- the database is used to store the physical link data of the configured NE, the VLAN interface included in each peer port in the peer port set, and the MAC address of the NE to which each peer port belongs.
- the device further comprises:
- the sending module is configured to construct a command packet according to the static MAC address entry, and send the command packet to the network element.
- the network management system queries the physical link data of the configured network element from the database, and obtains the physical link occupied by the configured network element according to the physical link data.
- the port and the peer port of each physical link form a configured network element port set and a peer port set;
- the network management system queries the database for the VLAN interface included in each peer port of the peer port set, and each peer end
- the MAC address of the network element to which the port belongs forming a VLAN port set and a peer network element MAC address set;
- the network management system generates a static MAC address entry according to the configured network element port set, the VLAN port set, and the peer network element MAC address set.
- the network management system automatically configures the static MAC address table by using the data in the database, so the configuration speed is fast, and the manual configuration is effectively reduced.
- the required workload increases the efficiency and accuracy of the configuration and ensures the correctness of the MAC address table of the NE.
- FIG. 1 is a schematic flow chart of an automatic configuration method for implementing a static medium access control address table according to the present invention
- FIG. 2 is a schematic diagram of a network system according to Embodiment 1 of an automatic configuration method for implementing a static medium access control address table according to the present invention
- FIG. 3 is a schematic structural diagram of an apparatus for automatically configuring a static medium access control address table according to the present invention.
- the basic idea of the present invention is: the network management system queries the physical link data of the configured network element from the database, and obtains the port occupied by the physical link and each physical link in the configured network element according to the physical link data.
- the peer port forms a set of configured network element ports and a set of peer ports.
- the network management system queries the database for the VLAN interfaces included in each peer port of the peer port set and the MAC address of the network element to which each peer port belongs. Forming a VLAN port set and a peer network element MAC address set; the network management system generates a static MAC address entry according to the configured network element port set, the VLAN port set, and the peer network element MAC address set.
- FIG. 1 is a schematic flowchart of a method for automatically configuring a static medium access control address table according to the present invention. As shown in FIG. 1, the method includes the following steps:
- Step 101 The network management system queries the physical link data of the configured network element from the database. Specifically, the user can select a network element to be configured for the static MAC address entry by using the network management system, and the network element is referred to as the network element in the present invention. Configure an NE to automatically match the configured NE. After the configuration of the network element is selected, the network management system queries the physical link data of the configured network element from the database, that is, queries the physical link that the configuration network element is using; wherein, the database in the embodiment of the present invention may be The database in the network management system can also be a database for configuring network elements.
- Step 102 The network management system obtains, according to the physical link data, the port that is occupied by the physical link in the configured network element and the peer port of each physical link, and forms a set of configured network element ports and a set of the opposite port;
- the network management system obtains the port SourcePort occupied by the physical link in the configured network element according to the physical link data, and forms a set of configured network element ports:
- the network management system obtains the peer port SinkPort of each physical link according to the physical link data, and forms a peer port set:
- P2 ⁇ SinkPort 1, SinkPort 2, SinkPort 3, ..., SinkPort ⁇ ;
- ⁇ is an integer greater than or equal to 1, which is equal to the total number of physical links on the configured network element.
- Step 103 The network management system queries, from the database, the VLAN interface included in each peer port of the peer port set and the MAC address of the network element to which each peer port belongs, forming a VLAN port set and a peer network element MAC address set;
- the network management system queries the database for the VLAN interface included in the port port SinkPort i to form a VLAN. Interface collection:
- V1 ⁇ VI 11, VI 12,..., VI lm ;
- V2 ⁇ VI 21, VI 22,..., VI 2m 2 ⁇ ;
- V N ⁇ VI N1,VI N2,...,VI Nm N ⁇ ;
- the value range of 13 ⁇ 4, m 2 13 ⁇ 4 is greater than or equal to 1 and less than or equal to 4094, and is an integer;
- Step 104 The network management system generates a static MAC address entry according to the configured network element port set, the VLAN port set, and the peer network element MAC address set.
- the static MAC address entry as shown in Table 1 is generated according to the configured network element port set P1, the VLAN port set ⁇ , and the peer network element MAC address set M:
- the method is as follows: Configure the NE port i as the egress port, set the MEMacAddr i as the destination MAC address, and use the VLAN ID of each interface in the Vi as the VLAN ID list to generate a static MAC address entry. A total of N entries can be generated. Static MAC address entry.
- Step 105 The network management system constructs a command message according to the static MAC address entry, and sends the command message to the network element.
- the network element may be an Ethernet switch or a packet transport network (PTN, Packet Translate Network). Equipment, etc.
- Step 106 The network element receives the command message, and saves the static MAC address table in the command message to its own MAC address table.
- FIG. 2 is a schematic diagram of a network system according to Embodiment 1 of the method for automatically configuring a static medium access control address table according to the present invention.
- the network element NE 1 , NE 2 , NE 3 , and NE 4 are included in this embodiment.
- NE 1 is connected to NE 2, NE 3 and NE 4, respectively.
- the connection between NE 1 and NE 2 is through the physical ports Gei_l/9 and NE 2 of NE 1.
- the physical port Gei_l/10 fiber connection is implemented;
- NE 2 Gei_l/10 includes VLAN interface VLAN 3, its VLAN ID is 3, and the MAC address of NE 2 is 44-87-FC-A2-58-E5;
- connection between the NE 1 and the NE 3 is implemented by the physical port Gei_l/10 of the NE 1 and the physical port Gei_l/10 of the NE 2; the Gei_l/10 of the NE 3 includes the VLAN interface VLAN 4, and the VLAN ID is 4.
- the MAC address of NE 3 is 44-87-FC-A2-58-E6;
- the connection between NE 1 and NE 4 is realized by the physical port Gei_l/1 of NE 1 and the physical port Gei_l/10 of NE 2; the Gei_l/10 of NE 4 contains two VLAN interfaces, namely VLAN 2 and VLAN 5.
- the corresponding VLAN IDs are 2 and 5, and the NE 4's MAC address is 44-87-FC-A2-58-E7.
- the selected NE 1 is a configured network element, and the physical link of the NE 1 is obtained from the database as three;
- V1 ⁇ VLAN 3 ⁇ ;
- V 2 ⁇ VLAN 4 ⁇ ;
- V3 ⁇ VLAN 2, VLAN 5 ⁇ ;
- the command packet is configured according to the static MAC address entry and sent to the network element.
- the network element obtains the static MAC address entry from the command packet and saves it to its own MAC address table.
- FIG. 3 is a schematic structural diagram of an automatic configuration device for implementing a static media access control address table according to the present invention.
- the device is applied to a network management system. As shown in FIG. 3, the device includes: a first query module 31, an obtaining module 32, a second query module 33, a generating module 34, and a database 35;
- the first query module 31 is configured to query the physical link data of the configured network element from the database 35.
- the obtaining module 32 is configured to obtain, according to the physical link data, a port that is occupied by the physical link in the configured network element and a pair of each physical link. End port, forming a set of configured network element ports and a set of peer ports;
- the second query module 33 is configured to query, from the database 35, the VLAN interface included in each peer port of the peer port set, and the MAC address of the network element to which each peer port belongs, to form a VLAN port set and a peer network element.
- the generating module 34 is configured to generate a static MAC address entry according to the configured network element port set, the VLAN port set, and the peer network element MAC address set.
- the database 35 is configured to save the physical link data of the configured network element, the VLAN interface included in each peer port in the peer port set, and the MAC address of the network element to which each peer port belongs.
- the device further includes: a sending module 36, configured to construct a command message according to the static MAC address entry, and send the command message to the network element.
- a sending module 36 configured to construct a command message according to the static MAC address entry, and send the command message to the network element.
- the database is a database of a network management system or a database configuring network elements.
- the obtaining a port that is occupied by the physical link and the peer port of each physical link, and forming the configured network element port set and the peer port set are:
- the network management system acquires the port occupied by the physical link in the configured network element.
- SourcePort, forming a set of configured network element ports P1 ⁇ SourcePort 1, SourcePort 2, SourcePort 3, ..., SourcePort N ⁇ ;
- the network management system queries the database for the MAC address of the network element to which each peer port belongs, and forms a set of the peer network element MAC address as: for each peer port SinkPort i in the peer port set P2, the network management system
- the generated static MAC address entry is:
- the network management system configures the network element port SourcePort i as the egress port, uses the MEMacAddr i as the destination MAC address, and uses the VLAN ID value of each interface in the V N as the VLAN ID list to generate a static
- the MAC address entry generates a total of N static MAC address entries.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
一种静态介质访问控制地址表目的自动配置方法及装置 技术领域 Automatic configuration method and device for static medium access control address table
本发明涉及网络通信技术领域, 尤其涉及一种静态介质访问控制地址 表目的自动配置方法及装置。 背景技术 The present invention relates to the field of network communication technologies, and in particular, to a method and an apparatus for automatically configuring a static medium access control address table. Background technique
网元在进行二层交换的过程中, 需要利用到介质访问控制 (MAC, Medium/Media Access Control )地址表, 该地址表的字段包括出端口、 目的 MAC地址等; 对于虚拟局域网 (VLAN, Virtual Local Area Network ) 的二 层交换, MAC地址表中还需有 VLAN ID字段。 In the process of Layer 2 switching, the NE needs to use the Medium Access Control (MAC) address table. The fields of the address table include the outgoing port, the destination MAC address, and so on. For the virtual local area network (VLAN, Virtual Layer 2 switching of the Local Area Network). The VLAN ID field is also required in the MAC address table.
网元从某个端口收到一个数据包, 会先读取数据包的包头中的源 MAC 地址, 这样就知道源 MAC地址的设备所连接的端口, 然后读取包头中的目 的 MAC地址, 并在 MAC地址表中按照此 MAC地址查找到对应的记录, 从而将数据包复制到该记录所指示的目的端口上, 完成二层交换。 When a network element receives a data packet from a port, it first reads the source MAC address in the packet header of the data packet, so that the source MAC address of the device is connected to the port, and then reads the destination MAC address in the packet header, and The corresponding record is found in the MAC address table according to the MAC address, so that the data packet is copied to the destination port indicated by the record, and the layer 2 exchange is completed.
现有技术中, 形成 MAC地址表有两种方式: 自学习方式和静态配置方 式; 其中, 自学习方式是利用泛洪机制由网元完成, 具体的, 若在上述过 程中若无法在 MAC地址表中找到记录,则该网元把数据包广播到所有端口 上, 当目的网元对该网元回应时, 即可以学习到此目的 MAC地址所对应的 端口,并将该 MAC地址记录到 MAC地址表中,形成一条 MAC地址表目; 静态配置方式是指由用户利用网络管理系统输入并配置出 MAC地址表目, 通过命令才艮文的方式将这些 MAC 地址表目下发给网元, 由网元保存入 MAC地址表中, 这些表目称为静态 MAC地址表目。 In the prior art, there are two ways to form a MAC address table: a self-learning mode and a static configuration mode. The self-learning mode is implemented by the network element by using a flooding mechanism. Specifically, if the MAC address cannot be obtained in the foregoing process. If the record is found in the table, the network element broadcasts the data packet to all the ports. When the destination network element responds to the network element, it can learn the port corresponding to the destination MAC address and record the MAC address to the MAC address. In the address table, a MAC address entry is formed. In the static configuration mode, the user enters and configures the MAC address entry by using the network management system, and sends the MAC address entry to the network element by means of a command. The NEs are saved in the MAC address table. These entries are called static MAC address entries.
静态配置方式相对自学习方式, 不会形成广播风暴, 静态配置方式主 要应用在禁止转发不需要的数据包、 快速形成 MAC地址表、 MAC地址表 目有其他特殊要求的情景, 以及需要完成无损业务倒换等场景中。 The static configuration mode does not form a broadcast storm. The static configuration mode is mainly used to prohibit forwarding of unnecessary data packets, rapidly forming a MAC address table, and MAC address table. There are other scenarios with special requirements, as well as scenarios where non-destructive business switching needs to be completed.
现有的配置一个网元的静态 MAC地址表目的技术中,需要用户事先获 知: 该网元中具有物理链接的端口、 每条物理链接的对端网元的端口、 该 端口所包含的 VLAN接口以及对端网元 MAC地址。 用户根据其他的约束 条件, 按照二层交换的机理, 确定该网元的静态 MAC地址表目集合, 将这 些表目通过网络管理系统输入, 并下发给网元, 由网元保存入 MAC地址表 中。 该过程需要人工完成, 因此工作量大, 且配置效率低, 容易出错。 发明内容 In the existing technology of configuring a static MAC address table of a network element, the user needs to know in advance: the port with the physical link in the network element, the port of the peer network element of each physical link, and the VLAN interface included in the port. And the peer network element MAC address. According to other constraints, the user determines the static MAC address entry set of the network element according to the mechanism of the Layer 2 switching, and then inputs the entries to the network element through the network management system, and the network element stores the MAC address into the MAC address. In the table. This process needs to be done manually, so the workload is large, and the configuration is inefficient and error-prone. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种静态介质访问控制地址表 目的自动配置方法及装置, 能高效的完成静态 MAC地址表目的配置。 In view of the above, the main purpose of the present invention is to provide an automatic configuration method and device for a static medium access control address table, which can efficiently complete the configuration of a static MAC address table.
为达到上述目的, 本发明的技术方案是这样实现的: In order to achieve the above object, the technical solution of the present invention is achieved as follows:
本发明提供一种静态介质访问控制地址表目的自动配置方法, 包括: 网络管理系统从数据库中查询配置网元的物理链接数据, 并根据所述 物理链接数据, 获取配置网元中被物理链接占用的端口以及每条物理链接 的对端端口, 形成配置网元端口集合和对端端口集合; The present invention provides a method for automatically configuring a static medium access control address table, including: the network management system queries the physical link data of the configured network element from the database, and obtains the physical link occupied by the configured network element according to the physical link data. The port and the peer port of each physical link form a set of configured network element ports and a set of peer ports;
网络管理系统从数据库中查询对端端口集合中每个对端端口包含的虚 拟局域网 (VLAN )接口、 以及每个对端端口所属网元的介质访问控制 ( MAC )地址, 形成 VLAN端口集合和对端网元 MAC地址集合; The network management system queries the database for the virtual local area network (VLAN) interface included in each peer port of the peer port set, and the media access control (MAC) address of the network element to which each peer port belongs, forming a VLAN port set and pair. End network element MAC address set;
网络管理系统根据配置网元端口集合、 VLAN 端口集合和对端网元 MAC地址集合, 生成静态 MAC地址表目。 The network management system generates a static MAC address entry according to the configured network element port set, the VLAN port set, and the peer network element MAC address set.
上述方法中, 所述数据库为网络管理系统的数据库、 或配置网元的数 据库。 In the above method, the database is a database of a network management system or a database for configuring a network element.
上述方法中, 所述获取配置网元中被物理链接占用的端口以及每条物 理链接的对端端口, 形成配置网元端口集合和对端端口集合为: In the above method, the obtaining the port occupied by the physical link in the configuration network element and the peer port of each physical link form the configured network element port set and the peer port set as:
网络管理系统获取配置网元中被物理链接占用的端口 SourcePort,形成 配置网元端口集合 PI = {SourcePort 1, SourcePort 2, SourcePort 3 , ··· , SourcePort N}; 网络管理系统根据所述物理链接数据,获取每条物理链接的 对端端口 SinkPort, 形成对端端口集合 P2= {SinkPort 1, SinkPort 2,SinkPort 3, ··. , SinkPortN}; 其中, N为大于等于 1的整数。 The network management system obtains the source port of the configured network element that is occupied by the physical link. Configure the NE port set PI = {SourcePort 1, SourcePort 2, SourcePort 3, ···, SourcePort N}; The network management system obtains the peer port SinkPort of each physical link according to the physical link data, forming a peer port. Set P2= {SinkPort 1, SinkPort 2, SinkPort 3, ··. , SinkPortN}; where N is an integer greater than or equal to 1.
上述方法中, 所述网络管理系统从数据库中查询对端端口集合中每个 对端端口包含的 VLAN接口, 形成 VLAN端口集合为: In the above method, the network management system queries a VLAN interface included in each peer port of the peer port set from the database, and forms a VLAN port set as:
针对对端端口集合 P2中每个对端端口 SinkPort i ( i=l、 2...N ), 网络 管理系统从数据库中查询该对端端口 SinkPort i( i=l、 2...N )所包含的 VLAN 接口, 形成 VLAN接口集合 VN={VI N1 , VI N2, VI NmN}; 其中, mN 的为大于等于 1且小于等于 4094的整数。 For each peer port SinkPort i ( i=l, 2...N ) in the peer port set P2, the network management system queries the peer port sinkPort i (i=l, 2...N) from the database. The included VLAN interface forms a VLAN interface set V N ={VI N1 , VI N2, VI Nm N }; where m N is an integer greater than or equal to 1 and less than or equal to 4094.
上述方法中, 所述网络管理系统从数据库中查询每个对端端口所属网 元的 MAC地址, 形成对端网元 MAC地址集合为: In the above method, the network management system queries the database for the MAC address of the network element to which each peer port belongs, and forms a set of the peer network element MAC address as:
针对对端端口集合 P2中每个对端端口 SinkPort i,网络管理系统从数据 库中查询该对端端口 SinkPort i所属网元的 MAC地址,形成对端网元 MAC 地址集合 M={MEMacAddr l,MEMacAddr 2, ... ,MEMacAddr N} ; 其中, MEMacAddr i ( i= 1、 2... N ) 为对端端口 SinkPort i所属网元的 MAC地址。 For each peer port SinkPort i in the peer port set P2, the network management system queries the database for the MAC address of the network element to which the peer port sinkPort i belongs, and forms a peer network element MAC address set M={MEMacAddr l, MEMacAddr 2, ..., MEMacAddr N}; where MEMacAddr i (i=1, 2...N) is the MAC address of the network element to which the peer port SinkPort i belongs.
上述方法中, 所述生成静态 MAC地址表目为: In the above method, the generated static MAC address entry is:
网络管理系统将配置网元端口 SourcePort i作为出端口,将 MEMacAddr i作为目的 MAC地址, 将 VN中各接口的 VLAN ID值作为 VLAN ID列表, 生成一条静态 MAC地址表目, 共生成 N条静态 MAC地址表目。 The network management system configures the NE port i as the egress port and the MEMacAddr i as the destination MAC address. The VLAN ID of each interface in the V N is used as the VLAN ID list to generate a static MAC address entry. MAC address entry.
上述方法中, 该方法还包括: In the above method, the method further includes:
网络管理系统根据静态 MAC地址表目构造命令报文,并将该命令报文 下发给网元; 网元接收命令报文, 并将该命令报文中的静态 MAC地址表目 保存到自身的 MAC地址表。 The network management system constructs a command message according to the static MAC address entry, and sends the command message to the network element; the network element receives the command message, and saves the static MAC address entry in the command message to its own MAC address table.
本发明还提供一种静态介质访问控制地址表目的自动配置装置, 该装 置应用于网络管理系统, 包括: 第一查询模块、 获取模块、 第二查询模块、 生成模块、 数据库; 其中, The invention also provides an automatic configuration device for static media access control address table, the device The application is applied to the network management system, including: a first query module, an acquisition module, a second query module, a generation module, and a database;
第一查询模块, 用于从数据库中查询配置网元的物理链接数据; 获取模块, 根据所述物理链接数据, 获取配置网元中被物理链接占用 的端口以及每条物理链接的对端端口, 形成配置网元端口集合和对端端口 集合; The first query module is configured to query the physical link data of the configured network element from the database; the obtaining module is configured to obtain, according to the physical link data, a port that is occupied by the physical link in the configured network element and a peer port of each physical link, Forming a set of configured network element ports and a set of peer ports;
第二查询模块, 用于从数据库中查询对端端口集合中每个对端端口包 含的 VLAN接口、 以及每个对端端口所属网元的 MAC地址, 形成 VLAN 端口集合和对端网元 MAC地址集合; The second query module is configured to query, from the database, the VLAN interface included in each peer port of the peer port set, and the MAC address of the network element to which each peer port belongs, to form a VLAN port set and a peer network element MAC address. Collection
生成模块, 用于根据配置网元端口集合、 VLAN端口集合和对端网元 MAC地址集合, 生成静态 MAC地址表目; a generating module, configured to generate a static MAC address entry according to the configured network element port set, the VLAN port set, and the peer network element MAC address set;
数据库, 用于保存配置网元的物理链接数据、 对端端口集合中每个对 端端口包含的 VLAN接口以及每个对端端口所属网元的 MAC地址。 The database is used to store the physical link data of the configured NE, the VLAN interface included in each peer port in the peer port set, and the MAC address of the NE to which each peer port belongs.
上述装置中, 该装置还包括: In the above device, the device further comprises:
发送模块, 用于根据静态 MAC地址表目构造命令报文, 并将该命令报 文下发给网元。 The sending module is configured to construct a command packet according to the static MAC address entry, and send the command packet to the network element.
本发明提供的静态介质访问控制地址表目的自动配置方法及装置, 网 络管理系统从数据库中查询配置网元的物理链接数据, 并根据所述物理链 接数据, 获取配置网元中被物理链接占用的端口以及每条物理链接的对端 端口, 形成配置网元端口集合和对端端口集合; 网络管理系统从数据库中 查询对端端口集合中每个对端端口包含的 VLAN接口、 以及每个对端端口 所属网元的 MAC地址, 形成 VLAN端口集合和对端网元 MAC地址集合; 网络管理系统根据配置网元端口集合、 VLAN端口集合和对端网元 MAC地 址集合, 生成静态 MAC地址表目, 由网络管理系统利用数据库中的数据自 动进行静态 MAC地址表目的配置, 因此配置速度快,有效降低人工配置所 需的工作量,提高配置的效率和准确度,确保了网元的 MAC地址表目的正 确性。 附图说明 The method and device for automatically configuring a static medium access control address table provided by the present invention, the network management system queries the physical link data of the configured network element from the database, and obtains the physical link occupied by the configured network element according to the physical link data. The port and the peer port of each physical link form a configured network element port set and a peer port set; the network management system queries the database for the VLAN interface included in each peer port of the peer port set, and each peer end The MAC address of the network element to which the port belongs, forming a VLAN port set and a peer network element MAC address set; the network management system generates a static MAC address entry according to the configured network element port set, the VLAN port set, and the peer network element MAC address set. The network management system automatically configures the static MAC address table by using the data in the database, so the configuration speed is fast, and the manual configuration is effectively reduced. The required workload increases the efficiency and accuracy of the configuration and ensures the correctness of the MAC address table of the NE. DRAWINGS
图 1 是本发明实现静态介质访问控制地址表目的自动配置方法的流程 示意图; 1 is a schematic flow chart of an automatic configuration method for implementing a static medium access control address table according to the present invention;
图 2是本发明实现静态介质访问控制地址表目的自动配置方法的实施 例一的网络系统示意图; 2 is a schematic diagram of a network system according to Embodiment 1 of an automatic configuration method for implementing a static medium access control address table according to the present invention;
图 3是本发明实现静态介质访问控制地址表目的自动配置装置的结构 示意图。 具体实施方式 本发明的基本思想是: 网络管理系统从数据库中查询配置网元的物理 链接数据, 并根据所述物理链接数据, 获取配置网元中被物理链接占用的 端口以及每条物理链接的对端端口, 形成配置网元端口集合和对端端口集 合; 网络管理系统从数据库中查询对端端口集合中每个对端端口包含的 VLAN接口、 以及每个对端端口所属网元的 MAC地址, 形成 VLAN端口 集合和对端网元 MAC地址集合; 网络管理系统根据配置网元端口集合、 VLAN端口集合和对端网元 MAC地址集合, 生成静态 MAC地址表目。 FIG. 3 is a schematic structural diagram of an apparatus for automatically configuring a static medium access control address table according to the present invention. The basic idea of the present invention is: the network management system queries the physical link data of the configured network element from the database, and obtains the port occupied by the physical link and each physical link in the configured network element according to the physical link data. The peer port forms a set of configured network element ports and a set of peer ports. The network management system queries the database for the VLAN interfaces included in each peer port of the peer port set and the MAC address of the network element to which each peer port belongs. Forming a VLAN port set and a peer network element MAC address set; the network management system generates a static MAC address entry according to the configured network element port set, the VLAN port set, and the peer network element MAC address set.
下面通过附图及具体实施例对本发明再做进一步的详细说明。 The invention will be further described in detail below with reference to the drawings and specific embodiments.
本发明提供一种静态介质访问控制地址表目的自动配置方法, 图 1 是 本发明实现静态介质访问控制地址表目的自动配置方法的流程示意图, 如 图 1所示, 该方法包括以下步骤: The present invention provides a method for automatically configuring a static medium access control address table. FIG. 1 is a schematic flowchart of a method for automatically configuring a static medium access control address table according to the present invention. As shown in FIG. 1, the method includes the following steps:
步骤 101 , 网络管理系统从数据库中查询配置网元的物理链接数据; 具体的,用户可以通过网络管理系统选出一个欲进行静态 MAC地址表 目配置的网元, 本发明中称该网元为配置网元, 对该配置网元进行自动配 置操作; 在选定配置网元后, 网络管理系统从数据库中查询该配置网元的 物理链接数据, 即查询该配置网元正在使用的物理链接; 其中, 本发明实 施例中的数据库可以是网络管理系统中的数据库, 也可以是配置网元的数 据库。 Step 101: The network management system queries the physical link data of the configured network element from the database. Specifically, the user can select a network element to be configured for the static MAC address entry by using the network management system, and the network element is referred to as the network element in the present invention. Configure an NE to automatically match the configured NE. After the configuration of the network element is selected, the network management system queries the physical link data of the configured network element from the database, that is, queries the physical link that the configuration network element is using; wherein, the database in the embodiment of the present invention may be The database in the network management system can also be a database for configuring network elements.
步骤 102, 网络管理系统根据物理链接数据, 获取配置网元中被物理链 接占用的端口以及每条物理链接的对端端口, 形成配置网元端口集合和对 端端口集合; Step 102: The network management system obtains, according to the physical link data, the port that is occupied by the physical link in the configured network element and the peer port of each physical link, and forms a set of configured network element ports and a set of the opposite port;
具体的, 网络管理系统根据所述物理链接数据, 获取配置网元中被物 理链接占用的端口 SourcePort, 形成配置网元端口集合: Specifically, the network management system obtains the port SourcePort occupied by the physical link in the configured network element according to the physical link data, and forms a set of configured network element ports:
PI = { SourcePort 1, SourcePort 2, SourcePort 3 , … , SourcePort N}; 网络管理系统根据所述物理链接数据, 获取每条物理链接的对端端口 SinkPort, 形成对端端口集合: PI = { SourcePort 1, SourcePort 2, SourcePort 3 , ... , SourcePort N}; The network management system obtains the peer port SinkPort of each physical link according to the physical link data, and forms a peer port set:
P2= {SinkPort 1, SinkPort 2,SinkPort 3, …, SinkPort Ν}; P2= {SinkPort 1, SinkPort 2, SinkPort 3, ..., SinkPort Ν};
其中, 本发明实施例中 Ν为大于等于 1的整数, 等于配置网元上物理 链接的总数。 In the embodiment of the present invention, Ν is an integer greater than or equal to 1, which is equal to the total number of physical links on the configured network element.
步骤 103 ,网络管理系统从数据库中查询对端端口集合中每个对端端口 包含的 VLAN接口以及每个对端端口所属网元的 MAC地址, 形成 VLAN 端口集合和对端网元 MAC地址集合; Step 103: The network management system queries, from the database, the VLAN interface included in each peer port of the peer port set and the MAC address of the network element to which each peer port belongs, forming a VLAN port set and a peer network element MAC address set;
具体的,针对对端端口集合 P2中每个对端端口 SinkPort i( i=l、 2...N ), 网络管理系统从数据库中查询该对端端口 SinkPort i所包含的 VLAN接口, 形成 VLAN接口集合: Specifically, for each peer port SinkPort i (i=l, 2...N) in the peer port set P2, the network management system queries the database for the VLAN interface included in the port port SinkPort i to form a VLAN. Interface collection:
V1={VI 11, VI 12,..., VI lm ; V1={VI 11, VI 12,..., VI lm ;
V2={VI 21, VI 22,..., VI 2m2}; VN={VI N1,VI N2,...,VI NmN}; 其中, 1¾、 m2 1¾的取值范围是大于等于 1且小于等于 4094, 且 为整数; Vi ( i=l、 2… N ) 为对端端口 SinkPort i对应的 VLAN端口集合; 针对对端端口集合 P2中每个对端端口 SinkPort i,网络管理系统从数据 库中查询该对端端口 SinkPort i所属网元的 MAC地址,形成对端网元 MAC 地址集合: M={MEMacAddr l,MEMacAddr 2, ... ,MEMacAddr N}; 其中, MEMacAddr i ( i= 1、 2... N ) 为对端端口 SinkPort i所属网元的 MAC地址。 V2={VI 21, VI 22,..., VI 2m 2 }; V N ={VI N1,VI N2,...,VI Nm N }; Wherein, the value range of 13⁄4, m 2 13⁄4 is greater than or equal to 1 and less than or equal to 4094, and is an integer; Vi (i=l, 2...N) is a set of VLAN ports corresponding to the opposite port SinkPort i; Each pair of port SinkPort i in the set P2, the network management system queries the database for the MAC address of the network element to which the peer port sinkPort i belongs, and forms a set of the peer network element MAC address: M={MEMacAddr l, MEMacAddr 2, . .. , MEMacAddr N}; where MEMacAddr i (i=1, 2...N) is the MAC address of the network element to which the peer port SinkPort i belongs.
步骤 104 , 网络管理系统根据配置网元端口集合、 VLAN端口集合和对 端网元 MAC地址集合, 生成静态 MAC地址表目; Step 104: The network management system generates a static MAC address entry according to the configured network element port set, the VLAN port set, and the peer network element MAC address set.
具体的,根据配置网元端口集合 Pl、 VLAN端口集合 ^^和对端网 元 MAC地址集合 M, 生成如表 1所示的静态 MAC地址表目: Specifically, the static MAC address entry as shown in Table 1 is generated according to the configured network element port set P1, the VLAN port set ^^, and the peer network element MAC address set M:
表 1 Table 1
生成方法是:将配置网元端口 SourcePort i作为出端口,将 MEMacAddr i作为目的 MAC地址, 将 Vi中各接口的 VLAN ID值作为 VLAN ID列表, 生成一条静态 MAC地址表目, 一共可以生成 N条静态 MAC地址表目。 The method is as follows: Configure the NE port i as the egress port, set the MEMacAddr i as the destination MAC address, and use the VLAN ID of each interface in the Vi as the VLAN ID list to generate a static MAC address entry. A total of N entries can be generated. Static MAC address entry.
步骤 105 , 网络管理系统根据静态 MAC地址表目构造命令报文, 并将 该命令报文下发给网元,例如,该网元可以是以太网交换机、包传送网( PTN, Packet Translate Network )设备等。 Step 105: The network management system constructs a command message according to the static MAC address entry, and sends the command message to the network element. For example, the network element may be an Ethernet switch or a packet transport network (PTN, Packet Translate Network). Equipment, etc.
步骤 106, 网元接收命令报文, 并将该命令报文中的静态 MAC地址表 目保存到自身的 MAC地址表。 Step 106: The network element receives the command message, and saves the static MAC address table in the command message to its own MAC address table.
实施例一 Embodiment 1
图 2是本发明实现静态介质访问控制地址表目的自动配置方法的实施 例一的网络系统示意图, 如图 2所示, 本实施例中包括网元 NE 1、 NE 2、 NE 3、 NE 4, NE 1分别与 NE 2、 NE 3和 NE 4连接。 2 is a schematic diagram of a network system according to Embodiment 1 of the method for automatically configuring a static medium access control address table according to the present invention. As shown in FIG. 2, the network element NE 1 , NE 2 , NE 3 , and NE 4 are included in this embodiment. NE 1 is connected to NE 2, NE 3 and NE 4, respectively.
其中, NE 1与 NE 2的连接, 是通过 NE 1的物理端口 Gei_l/9与 NE 2 的物理端口 Gei_l/10光纤连接实现; NE 2的 Gei_l/10包含有 VLAN接口 VLAN 3 , 其 VLAN ID为 3 , NE 2的 MAC地址为 44-87-FC-A2-58-E5; The connection between NE 1 and NE 2 is through the physical ports Gei_l/9 and NE 2 of NE 1. The physical port Gei_l/10 fiber connection is implemented; NE 2 Gei_l/10 includes VLAN interface VLAN 3, its VLAN ID is 3, and the MAC address of NE 2 is 44-87-FC-A2-58-E5;
NE 1与 NE 3的连接, 是通过 NE 1的物理端口 Gei_l/10与 NE 2的物 理端口 Gei_l/10光纤连接实现; NE 3的 Gei_l/10包含有 VLAN接口 VLAN 4, 其 VLAN ID为 4, NE 3的 MAC地址为 44-87-FC-A2-58-E6; The connection between the NE 1 and the NE 3 is implemented by the physical port Gei_l/10 of the NE 1 and the physical port Gei_l/10 of the NE 2; the Gei_l/10 of the NE 3 includes the VLAN interface VLAN 4, and the VLAN ID is 4. The MAC address of NE 3 is 44-87-FC-A2-58-E6;
NE 1与 NE 4的连接,是通过 NE 1的物理端口 Gei_l/1与 NE 2的物理 端口 Gei_l/10光纤连接实现; NE 4的 Gei_l/10包含有两个 VLAN接口, 即 VLAN 2和 VLAN 5 , 对应的 VLAN ID分别为 2和 5 , NE 4的 MAC地 址为 44-87-FC-A2-58-E7。 The connection between NE 1 and NE 4 is realized by the physical port Gei_l/1 of NE 1 and the physical port Gei_l/10 of NE 2; the Gei_l/10 of NE 4 contains two VLAN interfaces, namely VLAN 2 and VLAN 5. The corresponding VLAN IDs are 2 and 5, and the NE 4's MAC address is 44-87-FC-A2-58-E7.
本实施例中, 选定 NE 1为配置网元, 从数据库中获得 NE 1的物理链 接为 3条; In this embodiment, the selected NE 1 is a configured network element, and the physical link of the NE 1 is obtained from the database as three;
根据这 3条物理链接获取获取配置网元 NE 1 中被物理链接占用的端 口, 形成配置网元端口集合: Pl={Gei_l/9,Gei_l/10,Gei_l/l }; According to the three physical links, the port that is occupied by the physical link in the NE 1 is configured to form a set of configured network element ports: Pl={Gei_l/9, Gei_l/10, Gei_l/l };
根据这 3条物理链接获取每条物理链接的对端端口, 形成对端端口集 合: P2={NE 2的 Geil/ΙΟ,ΝΕ 3的 Geil/ΙΟ,ΝΕ 4的 Gei_l/10}; According to the three physical links, the peer port of each physical link is obtained, and a pair of peer ports is formed: P2={GE 2/ Geil/ΙΟ, ΝΕ 3 Geil/ΙΟ, ΝΕ 4 Gei_l/10};
对于 NE 2的 Geil/10端口, 从数据库中查询该 Geil/10端口所包含的 VLAN接口, 形成 VLAN接口集合: V1={VLAN 3}; For the Geil/10 port of the NE 2, query the VLAN interface included in the Geil/10 port from the database to form a VLAN interface set: V1={VLAN 3};
对于 NE 3的 Geil/10端口, 从数据库中查询该 Geil/10端口所包含的 VLAN接口, 形成 VLAN接口集合: V 2={VLAN 4} ; For the Geil/10 port of the NE 3, query the VLAN interface included in the Geil/10 port from the database to form a VLAN interface set: V 2={VLAN 4};
对于 NE 4的 Geil/10端口, 从数据库中查询该 Geil/10端口所包含的 For the Geil/10 port of NE 4, query the database for the included in the Geil/10 port.
VLAN接口为, 形成 VLAN接口集合: V3={VLAN 2,VLAN 5}; The VLAN interface is formed into a VLAN interface set: V3={VLAN 2, VLAN 5};
针对每一个对端端口, 从数据库中查询对端端口所属网元的 MAC 地 址, 形成对端网元 MAC地址集合: For each peer port, query the MAC address of the network element to which the peer port belongs from the database to form the peer network element MAC address set:
M={44-87-FC-A2-58-E5, 44-87-FC-A2-58-E6, 44-87-FC-A2-58-E7}; 基于二层交换原理, 如表 2所示, 共形成 3条静态 MAC地址表目; 出端口 目的 MAC地址 VLAN ID M={44-87-FC-A2-58-E5, 44-87-FC-A2-58-E6, 44-87-FC-A2-58-E7}; based on the principle of two-layer exchange, as shown in Table 2 Show that a total of three static MAC address entries are formed; Outbound destination MAC address VLAN ID
Gei_l/9 44-87-FC-A2-58-E5 3 Gei_l/9 44-87-FC-A2-58-E5 3
Gei_l/10 44-87-FC-A2-58-E6 4 Gei_l/10 44-87-FC-A2-58-E6 4
Gei_l/1 44-87-FC-A2-58-E7 2, 5 Gei_l/1 44-87-FC-A2-58-E7 2, 5
表 2 Table 2
根据上述静态 MAC地址表目构造命令报文, 并下发给网元; 网元从命 令报文中获取静态 MAC地址表目, 并保存到自身的 MAC地址表。 The command packet is configured according to the static MAC address entry and sent to the network element. The network element obtains the static MAC address entry from the command packet and saves it to its own MAC address table.
为实现上述方法, 本发明还提供一种静态介质访问控制地址表目的自 动配置装置, 图 3是本发明实现静态介质访问控制地址表目的自动配置装 置的结构示意图, 该装置应用于网络管理系统, 如图 3所示, 该装置包括: 第一查询模块 31、 获取模块 32、 第二查询模块 33、 生成模块 34、 数据库 35; 其中, In order to achieve the above method, the present invention further provides an automatic configuration device for static media access control address table, and FIG. 3 is a schematic structural diagram of an automatic configuration device for implementing a static media access control address table according to the present invention. The device is applied to a network management system. As shown in FIG. 3, the device includes: a first query module 31, an obtaining module 32, a second query module 33, a generating module 34, and a database 35;
第一查询模块 31 , 用于从数据库 35中查询配置网元的物理链接数据; 获取模块 32, 根据所述物理链接数据, 获取配置网元中被物理链接占 用的端口以及每条物理链接的对端端口, 形成配置网元端口集合和对端端 口集合; The first query module 31 is configured to query the physical link data of the configured network element from the database 35. The obtaining module 32 is configured to obtain, according to the physical link data, a port that is occupied by the physical link in the configured network element and a pair of each physical link. End port, forming a set of configured network element ports and a set of peer ports;
第二查询模块 33,用于从数据库 35中查询对端端口集合中每个对端端 口包含的 VLAN接口、 以及每个对端端口所属网元的 MAC 地址, 形成 VLAN端口集合和对端网元 MAC地址集合; The second query module 33 is configured to query, from the database 35, the VLAN interface included in each peer port of the peer port set, and the MAC address of the network element to which each peer port belongs, to form a VLAN port set and a peer network element. MAC address set;
生成模块 34, 用于根据配置网元端口集合、 VLAN端口集合和对端网 元 MAC地址集合, 生成静态 MAC地址表目; The generating module 34 is configured to generate a static MAC address entry according to the configured network element port set, the VLAN port set, and the peer network element MAC address set.
数据库 35, 用于保存配置网元的物理链接数据、 对端端口集合中每个 对端端口包含的 VLAN接口以及每个对端端口所属网元的 MAC地址。 The database 35 is configured to save the physical link data of the configured network element, the VLAN interface included in each peer port in the peer port set, and the MAC address of the network element to which each peer port belongs.
该装置还包括: 发送模块 36, 用于根据静态 MAC地址表目构造命令 报文, 并将该命令报文下发给网元。 The device further includes: a sending module 36, configured to construct a command message according to the static MAC address entry, and send the command message to the network element.
所述数据库为网络管理系统的数据库、 或配置网元的数据库。 所述获取配置网元中被物理链接占用的端口以及每条物理链接的对端 端口, 形成配置网元端口集合和对端端口集合为: 网络管理系统获取配置 网元中被物理链接占用的端口 SourcePort, 形成配置网元端口集合 P1 = {SourcePort 1, SourcePort 2, SourcePort 3 , …, SourcePort N}; 网络管理系 统根据所述物理链接数据, 获取每条物理链接的对端端口 SinkPort, 形成对 端端口集合 P2= {SinkPort 1, SinkPort 2,SinkPort 3 , ··. , SinkPortN}; 其中, N为大于等于 1的整数。 The database is a database of a network management system or a database configuring network elements. The obtaining a port that is occupied by the physical link and the peer port of each physical link, and forming the configured network element port set and the peer port set are: The network management system acquires the port occupied by the physical link in the configured network element. SourcePort, forming a set of configured network element ports P1 = {SourcePort 1, SourcePort 2, SourcePort 3, ..., SourcePort N}; The network management system acquires the opposite port SinkPort of each physical link according to the physical link data, forming a peer end Port set P2= {SinkPort 1, SinkPort 2, SinkPort 3 , ··. , SinkPortN}; where N is an integer greater than or equal to 1.
所述网络管理系统从数据库中查询对端端口集合中每个对端端口包含 的 VLAN接口, 形成 VLAN端口集合为: 针对对端端口集合 P2中每个对 端端口 SinkPort i ( i= 1、 2...N ), 网络管理系统从数据库中查询该对端端口 SinkPort i( i=l、 2...N )所包含的 VLAN接口,形成 VLAN接口集合 VN={VI Nl , VI N2, VI NmN}; 其中, mN的为大于等于 1且小于等于 4094的 整数。 The network management system queries the VLAN interface included in each peer port of the peer port set from the database, and forms a VLAN port set as: for each peer port in the peer port set P2, SinkPort i (i=1, 2) ...N), the network management system queries the VLAN interface included in the peer port SinkPort i (i=l, 2...N) from the database to form a VLAN interface set V N = {VI Nl , VI N2, VI Nm N }; wherein m N is an integer greater than or equal to 1 and less than or equal to 4094.
所述网络管理系统从数据库中查询每个对端端口所属网元的 MAC 地 址, 形成对端网元 MAC地址集合为: 针对对端端口集合 P2中每个对端端 口 SinkPort i ,网络管理系统从数据库中查询该对端端口 SinkPort i所属网元 的 MAC地址,形成对端网元 MAC地址集合 M={ MEMacAddr 1, MEMacAddr 2,...,MEMacAddr N};其中, MEMacAddr i( i=l、 2...N )为对端端口 SinkPort i所属网元的 MAC地址。 The network management system queries the database for the MAC address of the network element to which each peer port belongs, and forms a set of the peer network element MAC address as: for each peer port SinkPort i in the peer port set P2, the network management system The database queries the MAC address of the network element to which the peer port sinkPort i belongs, and forms the peer network element MAC address set M={ MEMacAddr 1, MEMacAddr 2,..., MEMacAddr N}; wherein, MEMacAddr i (i=l, 2...N) is the MAC address of the network element to which the peer port SinkPort i belongs.
所述生成静态 MAC 地址表目为: 网络管理系统将配置网元端口 SourcePort i作为出端口, 将 MEMacAddr i作为目的 MAC地址, 将 VN中 各接口的 VLAN ID值作为 VLAN ID列表, 生成一条静态 MAC地址表目, 共生成 N条静态 MAC地址表目。 The generated static MAC address entry is: The network management system configures the network element port SourcePort i as the egress port, uses the MEMacAddr i as the destination MAC address, and uses the VLAN ID value of each interface in the V N as the VLAN ID list to generate a static The MAC address entry generates a total of N static MAC address entries.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围, 凡在本发明的精神和原则之内所作的任何修改、 等同替换和改进 等, 均应包含在本发明的保护范围之内。 The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and any modifications, equivalents, and improvements made within the spirit and scope of the present invention. And so on, should be included in the scope of protection of the present invention.
Claims
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2011/075992 WO2012174705A1 (en) | 2011-06-20 | 2011-06-20 | Automatic configuration method and apparatus for static media access control address table items |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2011/075992 WO2012174705A1 (en) | 2011-06-20 | 2011-06-20 | Automatic configuration method and apparatus for static media access control address table items |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2012174705A1 true WO2012174705A1 (en) | 2012-12-27 |
Family
ID=47421971
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2011/075992 Ceased WO2012174705A1 (en) | 2011-06-20 | 2011-06-20 | Automatic configuration method and apparatus for static media access control address table items |
Country Status (1)
| Country | Link |
|---|---|
| WO (1) | WO2012174705A1 (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101030916A (en) * | 2007-03-29 | 2007-09-05 | 中兴通讯股份有限公司 | Method for binding medium access controlling address |
| CN101083622A (en) * | 2006-06-01 | 2007-12-05 | 富士通株式会社 | System and method for managing forwarding database resources in a switching environment |
| CN101262417A (en) * | 2007-03-05 | 2008-09-10 | 中兴通讯股份有限公司 | Device and method for saving switching chip MAC address space |
| CN101610171A (en) * | 2009-07-22 | 2009-12-23 | 天津市电力公司 | A method for automatic configuration of switches based on IEC61850 model |
-
2011
- 2011-06-20 WO PCT/CN2011/075992 patent/WO2012174705A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101083622A (en) * | 2006-06-01 | 2007-12-05 | 富士通株式会社 | System and method for managing forwarding database resources in a switching environment |
| CN101262417A (en) * | 2007-03-05 | 2008-09-10 | 中兴通讯股份有限公司 | Device and method for saving switching chip MAC address space |
| CN101030916A (en) * | 2007-03-29 | 2007-09-05 | 中兴通讯股份有限公司 | Method for binding medium access controlling address |
| CN101610171A (en) * | 2009-07-22 | 2009-12-23 | 天津市电力公司 | A method for automatic configuration of switches based on IEC61850 model |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3188409B1 (en) | Oam mechanisms for evpn active-active services | |
| CN103621025B (en) | There is the Ethernet tree using two kinds of pseudo-wires between edge router strengthening learning method and system | |
| CN101459536B (en) | Port configuration method and switching device | |
| US9504016B2 (en) | Optimized multicast routing in a Clos-like network | |
| CN107204867A (en) | A kind of information transferring method, device and system | |
| CN102821009B (en) | Method for monitoring ring network on basis of link layer discovery protocol and device | |
| WO2013123846A1 (en) | Distributed network control method and device | |
| CN104426756B (en) | A kind of acquisition method and control platform of service node capability information | |
| US20120294193A1 (en) | Method and System for Increasing Forwarding Efficiency of Virtual Private LAN Service Network | |
| WO2013139159A1 (en) | Method for forwarding packet in network and provider edge device | |
| CN104811393A (en) | Multicasting message duplicating handling method and device and open flow controller (OFC) | |
| WO2009082905A1 (en) | Method, system and switch device for dynamically establishing multicast virtual local area network | |
| CN108243123A (en) | Processing method, device, controller and the interchanger of broadcasting packet | |
| CN106059921A (en) | Content routing system of network layer based on software defined networking (SDN) technology and content-centric networking (CCN) frame and working mode thereof | |
| CN106375223A (en) | SDN-based data forwarding system and method | |
| JP6750612B2 (en) | Communication system, control device, control method, and program | |
| CN102347906B (en) | Multi-cast method and multi-cast network system | |
| CN101340445B (en) | Method and apparatus for providing service to MAC address duplicate customer | |
| WO2017143738A1 (en) | Method and apparatus for sending message | |
| EP3468286B1 (en) | Method, device and system for data transmission, physical residential gateway and access node | |
| US9654304B2 (en) | Method and apparatus for sending transparent interconnection of lots of links data frame | |
| WO2015070763A1 (en) | Self-establishing method and apparatus for x2 interface | |
| CN102868775A (en) | Method for expanding capacity of address resolution protocol table, and message forwarding method and device | |
| WO2012174705A1 (en) | Automatic configuration method and apparatus for static media access control address table items | |
| CN101873250A (en) | Data forwarding method and device |
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: 11868169 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: 11868169 Country of ref document: EP Kind code of ref document: A1 |