[go: up one dir, main page]

CN114157587B - Network device and network configuration determination method - Google Patents

Network device and network configuration determination method Download PDF

Info

Publication number
CN114157587B
CN114157587B CN202110941411.0A CN202110941411A CN114157587B CN 114157587 B CN114157587 B CN 114157587B CN 202110941411 A CN202110941411 A CN 202110941411A CN 114157587 B CN114157587 B CN 114157587B
Authority
CN
China
Prior art keywords
switches
network
port
instruction
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110941411.0A
Other languages
Chinese (zh)
Other versions
CN114157587A (en
Inventor
太田贵彦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Azbil Corp
Original Assignee
Azbil Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Azbil Corp filed Critical Azbil Corp
Publication of CN114157587A publication Critical patent/CN114157587A/en
Application granted granted Critical
Publication of CN114157587B publication Critical patent/CN114157587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration
    • H04L41/0873Checking configuration conflicts between network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • H04L43/065Generation of reports related to network devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a network device for solving the blocking state of a redundant network. A first determination unit (105) determines a port in a blocked state based on the states of the ports of the switches acquired by the first acquisition unit (103). A second determination unit (106) determines the port in the forwarding state based on the state of each port of the plurality of switches acquired by the first acquisition unit (103). A third determination unit (107) determines, among the ports in the forwarding state determined by the second determination unit, ports that do not exist in the MAC address tables of the switches acquired by the second acquisition unit (104). A determination unit (108) determines that the port determined by the third determination unit (107) is connected to the port in the blocked state determined by the first determination unit (105).

Description

网络装置及网络构成判定方法Network device and network configuration determination method

技术领域Technical Field

本发明涉及一种判定与网络连接的交换机的构成的网络装置以及网络构成判定方法。The present invention relates to a network device for determining the configuration of a switch connected to a network and a network configuration determination method.

背景技术Background technique

网络的冗余化在大楼系统、工厂系统等中广泛普及(参照专利文献1)。其中,对于系 统管理者、网络管理者,为了在网络设定中将误设定防范于未然等,预先把握网络的冗余 化部位是较为重要的。Network redundancy is widely used in building systems, factory systems, etc. (see Patent Document 1). Among them, it is important for system managers and network managers to know the redundant parts of the network in advance in order to prevent erroneous settings in network settings.

现有技术文献Prior art literature

专利文献Patent Literature

专利文献1:日本专利第3635268号公报Patent Document 1: Japanese Patent No. 3635268

发明内容Summary of the invention

发明要解决的问题Problem that the invention aims to solve

但是,关于网络的冗余化部位的阻塞端口,可以通过使用SNMP来判别。但是,在SNMP 中,没有阻塞端口的连接目的地端口信息的定义。因此,在以往的技术中,认为难以判定 阻塞端口的连接目的地端口。在大楼系统、工厂系统等的管理中,从安全、故障解析的观点出发,确认网络的状态是重要的,关于与阻塞有关的信息,也要求掌握实际的状况。However, the blocked ports of the redundant parts of the network can be identified by using SNMP. However, in SNMP, there is no definition of the destination port information of the blocked port. Therefore, in the conventional technology, it is considered difficult to determine the destination port of the blocked port. In the management of building systems, factory systems, etc., it is important to confirm the status of the network from the perspective of safety and fault analysis, and it is also required to grasp the actual status of information related to the blockage.

本发明是为了解决上述问题而完成的,其目的在于能够掌握冗余化的网络的阻塞状 态。The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to be able to grasp the congestion state of a redundant network.

解决问题的技术手段Technical means of solving problems

本发明的网络装置具有:搜索部,其被构成为发送搜索与网络连接的设备的请求,所 述网络连接有具有阻塞状态的端口的交换机,所述搜索部将设备的MAC地址登记到与网络 连接的多个交换机中的每一个;指令部,其被构成为在搜索部送出请求之后,向多个交换机中的每一个发送指令,所述指令为对多个交换机中的每一个送出将不存在于网络上的IP 地址设定为发送源的、请求返回的请求消息;第一获取部,其被构成为在指令部发送了指 令后,从多个交换机中的每一个经由网络获取端口的状态信息;第二获取部,其被构成为 在指令部发送了指令后,从多个交换机中的每一个经由网络获取MAC地址表;第一确定部, 其被构成为根据第一获取部所获取的多个交换机各自的端口的状态,确定阻塞状态的端 口;第二确定部,其被构成为根据第一获取部所获取的多个交换机各自的端口的状态,确定转发状态的端口;第三确定部,其被构成为在第二确定部中所确定的转发状态的端口中, 确定在第二获取部所获取的多个交换机各自的MAC地址表中不存在的端口;以及判定部, 其被构成为判定在第一确定部所确定的阻塞状态的端口上连接有第三确定部所确定的端 口。The network device of the present invention comprises: a search unit configured to send a request for searching a device connected to a network, wherein the network is connected to a switch having a port in a blocked state, and wherein the search unit registers a MAC address of the device to each of a plurality of switches connected to the network; an instruction unit configured to send an instruction to each of a plurality of switches after the search unit sends a request, wherein the instruction is to send a request message for requesting a return by setting an IP address that does not exist on the network as a sending source to each of the plurality of switches; a first acquisition unit configured to acquire port status information from each of the plurality of switches via the network after the instruction unit sends the instruction; a second acquisition unit configured to acquire a MAC address table from each of the plurality of switches via the network after the instruction unit sends the instruction; a first determination unit configured to determine a port in a blocked state according to the states of the ports of each of the plurality of switches obtained by the first acquisition unit; a second determination unit configured to determine a port in a forwarding state according to the states of the ports of each of the plurality of switches obtained by the first acquisition unit; and a third determination unit configured to determine, among the ports in the forwarding state determined by the second determination unit, A method for determining a port that does not exist in the MAC address table of each of the plurality of switches acquired by the second acquisition unit; and a determination unit configured to determine that the port determined by the third determination unit is connected to the port in the blocked state determined by the first determination unit.

在上述网络装置的一个构成例中,搜索部送出的请求是ARP请求或IPv6的组播侦听 查询(Multicast Listener Query)。In one configuration example of the above-mentioned network device, the request sent by the search unit is an ARP request or an IPv6 multicast listener query (Multicast Listener Query).

在上述网络装置的一个构成例中,多个交换机通过SNMP协议连接。In one configuration example of the above-mentioned network device, a plurality of switches are connected via the SNMP protocol.

本发明的网络构成判定方法具有:第一步骤,发送搜索与网络连接的设备的请求,所 述网络连接有具有阻塞状态的端口的交换机,并且将设备的MAC地址登记到与网络连接的 多个交换机中的每一个;第二步骤,在第一步骤中送出请求之后,向多个交换机中的每一个发送指令,所述指令为对多个交换机中的每一个送出将不存在于网络上的IP地址设定为发送源的、请求返回的请求消息;第三步骤,在第二步骤中发送了指令后,从多个交换 机中的每一个经由网络获取端口的状态信息;第四步骤,在第二步骤中发送了指令后,从 多个交换机中的每一个经由网络获取MAC地址表;第五步骤,根据第三步骤中所获取的多个交换机各自的端口的状态,确定阻塞状态的端口;第六步骤,根据第三步骤中所获取的 多个交换机各自的每端口的状态,确定转发状态的端口;第七步骤,在第六步骤中所确定 的转发状态的端口中,确定在第四步骤中所获取的多个交换机各自的MAC地址表中不存在 的端口;以及第八步骤,其判定为由第五步骤中所确定的阻塞状态的端口上连接有在第七步骤中所确定的端口。The network configuration determination method of the present invention comprises: a first step of sending a request for searching a device connected to a network, wherein the network is connected to a switch having a port in a blocking state, and registering a MAC address of the device to each of a plurality of switches connected to the network; a second step of sending an instruction to each of a plurality of switches after sending the request in the first step, wherein the instruction is to send a request message for requesting a return by setting an IP address that does not exist on the network as a sending source to each of the plurality of switches; a third step of obtaining port status information from each of the plurality of switches via the network after sending the instruction in the second step; a fourth step of obtaining a MAC address table from each of the plurality of switches via the network after sending the instruction in the second step; a fifth step of determining a port in a blocking state according to the status of each port of the plurality of switches obtained in the third step; a sixth step of determining a port in a forwarding state according to the status of each port of the plurality of switches obtained in the third step; and a seventh step of determining, among the ports in the forwarding state determined in the sixth step, a port that does not exist in the MAC address table of each of the plurality of switches obtained in the fourth step. and an eighth step, which determines that the port in the blocked state determined in the fifth step is connected to the port determined in the seventh step.

在上述网络构成判定方法的一个构成例中,第一步骤搜索与网络连接的交换机,并向 搜索到的交换机送出请求。In one configuration example of the above-mentioned network configuration determination method, the first step is to search for a switch connected to the network and send a request to the searched switch.

在上述网络构成判定方法的一个构成例中,在第一步骤中送出的请求是ARP请求或 IPv6的组播侦听查询。In one configuration example of the above-mentioned network configuration determination method, the request sent in the first step is an ARP request or an IPv6 multicast snooping query.

在上述网络构成判定方法的一个构成例中,多个交换机通过SNMP协议连接。In one configuration example of the above-mentioned network configuration determination method, a plurality of switches are connected via the SNMP protocol.

发明的效果Effects of the Invention

如以上说明的那样,根据本发明,在转发状态的端口中,确定多个交换机各自的MAC 地址表中不存在的端口,因此能够判定与阻塞状态的端口连接的交换机的端口,能够掌握 冗余化网络的阻塞状态。As described above, according to the present invention, ports not included in the MAC address tables of the respective switches are identified among the ports in the forwarding state, so that the ports of the switches connected to the ports in the blocked state can be determined, and the blocked state of the redundant network can be understood.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是表示本发明的实施方式的网络装置100的构成的结构图。FIG. 1 is a block diagram showing the configuration of a network device 100 according to an embodiment of the present invention.

图2是说明本发明的实施方式的网络构成判定方法的流程图。FIG. 2 is a flowchart illustrating a network configuration determination method according to an embodiment of the present invention.

图3是表示实施方式的网络装置100的硬件构成的构成图。FIG. 3 is a block diagram showing the hardware configuration of network device 100 according to the embodiment.

具体实施方式Detailed ways

以下,参照图1说明本发明的实施方式的网络装置100。网络装置100具备搜索部101、 指令部102、第一获取部103、第二获取部104、第一确定部105、第二确定部106、第三确定部107、判定部108、显示部109、输入部110以及连接部112。1 , a network device 100 according to an embodiment of the present invention is described. The network device 100 includes a search unit 101, an instruction unit 102, a first acquisition unit 103, a second acquisition unit 104, a first determination unit 105, a second determination unit 106, a third determination unit 107, a determination unit 108, a display unit 109, an input unit 110, and a connection unit 112.

搜索部101送出搜索与冗余化的网络120连接的设备的请求,并将与网络120连接的 设备的MAC地址登记到与网络120连接的交换机中。与网络120连接的多个交换机中的某一个具有处于阻塞状态的端口。The search unit 101 sends a request to search for a device connected to the redundant network 120, and registers the MAC address of the device connected to the network 120 in a switch connected to the network 120. One of the plurality of switches connected to the network 120 has a port in a blocked state.

例如,通过送出ARP(Address Resolution Protocol地址解析协议)的轮询扫描(総当りスキ ャン)等,搜索与网络120连接的IPv4设备,其结果,将这些IPv4设备的MAC地址登记 到与网络120连接的交换机中。另外,通过送出MLQ(Multicast Listener Query组播侦 听查询),搜索与网络120连接的IPv6设备,其结果,将这些IPv6设备的MAC地址登记 到与网络120连接的交换机中。For example, by sending out an ARP (Address Resolution Protocol) polling scan, etc., IPv4 devices connected to the network 120 are searched, and as a result, the MAC addresses of these IPv4 devices are registered in the switch connected to the network 120. In addition, by sending out an MLQ (Multicast Listener Query), IPv6 devices connected to the network 120 are searched, and as a result, the MAC addresses of these IPv6 devices are registered in the switch connected to the network 120.

网络装置100通过具有网络连接功能的连接部112与网络120连接。在网络120上连接有例如构成大楼管理系统的管理服务器、监视服务器、终端设备等。The network device 100 is connected to a network 120 via a connection unit 112 having a network connection function. To the network 120, for example, a management server constituting a building management system, a monitoring server, terminal devices, and the like are connected.

另外,在图1所示的例子中,在网络120上连接有交换机A131、交换机B132、交换 机C133。在该例中,在交换机A131所具有的多个端口的某一个上,通过规定的LAN电缆 连接有交换机B132、交换机C133。另外,为了冗余化,交换机B132的阻塞端口132a和 交换机C133的转发端口133a通过规定的LAN电缆连接。In the example shown in FIG1 , a switch A131, a switch B132, and a switch C133 are connected to the network 120. In this example, a switch B132 and a switch C133 are connected to one of the multiple ports of the switch A131 via a predetermined LAN cable. In addition, for redundancy, a blocking port 132a of the switch B132 and a forwarding port 133a of the switch C133 are connected via a predetermined LAN cable.

在搜索部101送出了上述请求之后,指令部102对多个交换机中的每一个发送(送出) 指令,该指令为对多个交换机中的每一个送出将不存在于网络120上的IP地址(虚拟地址) 设定为发送源的、请求返回的请求消息(例如Ping)。接收到该Ping的各交换机广播发送虚拟地址的ARP请求,因此在所有交换机的MAC地址表中登记自身(本交换机)以外的交换机的MAC地址。After the search unit 101 sends the above request, the command unit 102 sends (sends) a command to each of the multiple switches, and the command is to send a request message (for example, Ping) requesting a return by setting an IP address (virtual address) that does not exist on the network 120 as the sending source. Each switch that receives the Ping broadcasts the ARP request for the virtual address, and thus registers the MAC address of the switch other than itself (the switch) in the MAC address table of all switches.

第一获取部103在指令部102发送了指令后,从多个交换机中的每一个,经由网络获 取端口的状态的信息。例如,如果多个交换机通过SNMP(Simple Network ManagementProtocol,简单网络管理协议)协议连接,则能够使用SNMP协议,通过“OID:1.3.6.1.2.1.17.2.15.1.3”,从各交换机获取端口的状态。After the instruction unit 102 sends the instruction, the first acquisition unit 103 acquires the information of the port status from each of the plurality of switches via the network. For example, if the plurality of switches are connected via the SNMP (Simple Network Management Protocol), the port status can be acquired from each switch via "OID: 1.3.6.1.2.1.17.2.15.1.3" using the SNMP protocol.

在指令部102发送了指令之后,第二获取部104从多个交换机中的每一个经由网络获 取MAC地址表。该获取在交换机的MAC地址表被刷新之前实施。将MAC地址表与对应的交换机的识别信息一起获取。例如,第二获取部104可以使用SNMP协议,通过 “OID:1.3.6.1.2.1.17.4.3.1.2”从多个交换机中的每一个获取MAC地址表。另外,事先 掌握在成为对象的交换机中设定的IP地址。After the instruction unit 102 sends the instruction, the second acquisition unit 104 acquires the MAC address table from each of the plurality of switches via the network. This acquisition is performed before the MAC address table of the switch is updated. The MAC address table is acquired together with the identification information of the corresponding switch. For example, the second acquisition unit 104 can acquire the MAC address table from each of the plurality of switches through "OID: 1.3.6.1.2.1.17.4.3.1.2" using the SNMP protocol. In addition, the IP address set in the target switch is known in advance.

第一确定部105根据第一获取部103所获取的多个交换机各自的端口的状态,确定阻 塞状态的端口。阻塞端口在冗余化的网络整体中只有一个。第二确定部106根据第一获取 部103所获取的多个交换机各自的端口的状态,确定转发状态的端口。The first determination unit 105 determines a port in a blocking state based on the states of the ports of the plurality of switches acquired by the first acquisition unit 103. There is only one blocked port in the entire redundant network. The second determination unit 106 determines a port in a forwarding state based on the states of the ports of the plurality of switches acquired by the first acquisition unit 103.

第三确定部107在第二确定部106所确定的转发状态的端口中,确定在第二获取部104 所获取的多个交换机各自的的MAC地址表中不存在的端口。判定部108判定第三确定部107 所确定的端口连接至第一确定部105所确定的阻塞状态的端口。判定部108在显示部109 上显示判定出的连接状态。The third determination unit 107 determines a port that does not exist in the MAC address table of each of the plurality of switches acquired by the second acquisition unit 104, among the ports in the forwarding state determined by the second determination unit 106. The determination unit 108 determines that the port determined by the third determination unit 107 is connected to the port in the blocking state determined by the first determination unit 105. The determination unit 108 displays the determined connection state on the display unit 109.

通常,如果交换机、设备连接,如果是转发状态的端口的话,在MAC地址表中存在该端口信息。但是,在冗余化构成中与阻塞端口连接的端口中,数据包不流动,不进行MAC 地址的学习,在MAC地址表中不登记端口信息,因此能够判定为该端口与阻塞端口连接。Normally, if a switch or device is connected, if it is a port in forwarding state, the port information will be in the MAC address table. However, in a redundant configuration, in a port connected to a blocked port, data packets do not flow, MAC address learning is not performed, and port information is not registered in the MAC address table, so it can be determined that the port is connected to a blocked port.

另外,网络装置100例如根据从输入部110输入的指令,开始搜索部101、指令部102、 第一获取部103、第二获取部104、第一确定部105、第二确定部106、第三确定部107、判定部108的动作。In addition, network device 100 starts the operations of search unit 101 , instruction unit 102 , first acquisition unit 103 , second acquisition unit 104 , first determination unit 105 , second determination unit 106 , third determination unit 107 , and determination unit 108 , for example, based on an instruction input from input unit 110 .

接着,参照图2的流程图说明实施方式的网络装置100的动作(网络构成判定方法)。Next, the operation of network device 100 (network configuration determination method) according to the embodiment will be described with reference to the flowchart of FIG. 2 .

首先,在第一步骤S101中,搜索部101送出搜索与网络120连接的设备的请求,该网络120连接有具备阻塞状态的端口的交换机。通过该请求的送出而搜索设备的结果为,在与网络连接的交换机中登记与网络120连接的设备的MAC地址。如上所述,多个交换机 中的某一个具有处于阻塞状态的端口。First, in the first step S101, the search unit 101 sends a request to search for a device connected to the network 120, to which a switch having a port in a blocked state is connected. As a result of searching for a device by sending the request, the MAC address of the device connected to the network 120 is registered in the switch connected to the network. As described above, one of the plurality of switches has a port in a blocked state.

在搜索部101送出了请求后,在第二步骤S102中,指令部102对多个交换机中的每一个发送指令,该指令为针对多个交换机中的每一个送出将不存在于网络120上的IP地 址设定为发送源的、请求返回的请求消息(例如Ping)。After the search unit 101 sends the request, in the second step S102, the instruction unit 102 sends an instruction to each of the multiple switches, and the instruction is to send a request message (for example, Ping) requesting a return by setting an IP address that does not exist on the network 120 as the sending source to each of the multiple switches.

接着,在第三步骤S103中,在第二步骤S102中由指令部102发送了指令之后,第一获取部103从多个交换机中的每一个经由网络获取端口的状态的信息。接着,在第四步骤S104中,第二获取部104从多个交换机中的每一个经由网络120获取MAC地址表。Next, in the third step S103, after the instruction unit 102 sends the instruction in the second step S102, the first acquisition unit 103 acquires the information of the port status from each of the plurality of switches via the network. Next, in the fourth step S104, the second acquisition unit 104 acquires the MAC address table from each of the plurality of switches via the network 120.

接着,在第五步骤S105中,第一确定部105根据在第三步骤S103中第一获取部103所获取的多个交换机各自的端口的状态,确定阻塞状态的端口。另外,在第六步骤S106 中,第二确定部106根据在第三步骤S103中第一获取部103所获取的多个交换机各自的端口的状态,确定转发状态的端口。Next, in the fifth step S105, the first determination unit 105 determines a port in a blocking state according to the states of the ports of the plurality of switches acquired by the first acquisition unit 103 in the third step S103. In addition, in the sixth step S106, the second determination unit 106 determines a port in a forwarding state according to the states of the ports of the plurality of switches acquired by the first acquisition unit 103 in the third step S103.

接着,在第七步骤S107中,第三确定部107在第六步骤S106中第二确定部106所确定的转发状态的端口中,确定在第四步骤S104中第二获取部104所获取的多个交换机各自的MAC地址表中不存在的端口。Next, in the seventh step S107 , the third determination unit 107 determines, among the ports in the forwarding state determined by the second determination unit 106 in the sixth step S106 , ports that do not exist in the MAC address tables of the plurality of switches acquired by the second acquisition unit 104 in the fourth step S104 .

接着,在第八步骤S108中,判定部108判定为在第五步骤S105中第一确定部105所确定的阻塞状态的端口上连接有在第七步骤S107中第三确定部107所确定的端口。此后,在第九步骤S109中,在显示部109上显示判定部108所判定的连接状态。Next, in the eighth step S108, the determination unit 108 determines that the port determined by the third determination unit 107 in the seventh step S107 is connected to the port in the blocked state determined by the first determination unit 105 in the fifth step S105. Thereafter, in the ninth step S109, the connection state determined by the determination unit 108 is displayed on the display unit 109.

通过上述处理,在图1所示的例子中,判定交换机C133的转发端口133a与交换机B132 的阻塞端口132a连接,在显示部109上显示该连接信息。Through the above-described processing, in the example shown in FIG. 1 , it is determined that the forwarding port 133 a of the switch C 133 is connected to the blocking port 132 a of the switch B 132 , and the connection information is displayed on the display unit 109 .

另外,如图3所示,上述实施方式的网络装置100也可以是具备CPU(CentralProcessing Unit:中央运算处理装置)301、主存储装置302、外部存储装置303和网络连 接装置304等的计算机设备,CPU301根据在主存储装置302中展开的程序进行动作(执行 程序),由此能够实现上述各功能(网络构成判定方法)。上述程序是用于计算机执行上述 实施方式所示的网络构成判定方法的程序。网络连接装置304与网络305连接。另外,各 功能也可以分散到多个计算机设备中。In addition, as shown in FIG3 , the network device 100 of the above embodiment may also be a computer device having a CPU (Central Processing Unit) 301, a main storage device 302, an external storage device 303, and a network connection device 304, etc. The CPU 301 operates (executes the program) according to the program expanded in the main storage device 302, thereby realizing the above functions (network configuration determination method). The above program is a program for a computer to execute the network configuration determination method shown in the above embodiment. The network connection device 304 is connected to a network 305. In addition, each function may also be distributed to a plurality of computer devices.

如以上说明的那样,根据本发明,在转发状态的端口中,确定在多个交换机各自的MAC 地址表中不存在的端口,因此能够判定与阻塞状态的端口相连接的交换机的端口,能够掌 握冗余化的网络的阻塞状态。As described above, according to the present invention, among the ports in the forwarding state, ports that do not exist in the MAC address tables of the plurality of switches are identified, so that the ports of the switches connected to the ports in the blocking state can be determined, and the blocking state of the redundant network can be understood.

另外,本发明并不限定于以上说明的实施方式,在本发明的技术思想内,本领域具有 通常知识的人能够实施多种变形和组合,这是显而易见的。In addition, the present invention is not limited to the above-described embodiments, and it is obvious that a person having ordinary knowledge in the art can implement various modifications and combinations within the technical concept of the present invention.

符号说明Symbol Description

100…网络装置、101…搜索部、102…指令部、103…第一获取部、104…第二获取部、 105…第一确定部、106…第二确定部、107…第三确定部、108…判定部、109…显示部、110…输入部、112…连接部、120…网络、131…交换机A、132…交换机B、132a…阻塞端 口、133…交换机C、133a…转发端口。100…network device, 101…search unit, 102…instruction unit, 103…first acquisition unit, 104…second acquisition unit, 105…first determination unit, 106…second determination unit, 107…third determination unit, 108…judgment unit, 109…display unit, 110…input unit, 112…connection unit, 120…network, 131…switch A, 132…switch B, 132a…blocking port, 133…switch C, 133a…forwarding port.

Claims (6)

1.一种网络装置,其特征在于,具有:1. A network device, characterized by having: 搜索部,其被构成为发送用于搜索与网络连接的设备的请求,所述网络连接有具有阻塞状态端口的交换机,并且所述搜索部将所述设备的MAC地址登记到与所述网络连接的多个交换机中的每一个;a search unit configured to send a request for searching for a device connected to a network to which a switch having a port in a blocked state is connected, and to register a MAC address of the device in each of a plurality of switches connected to the network; 指令部,其被构成为在所述搜索部送出请求之后,向所述多个交换机中的每一个发送指令,所述指令为对所述多个交换机中的每一个送出将不存在于所述网络上的IP地址设定为发送源的、请求返回的请求消息,接收到所述请求消息的所述多个交换机广播发送虚拟地址的ARP请求,在所有交换机的MAC地址表中登记本交换机以外的交换机的MAC地址;an instruction unit configured to send an instruction to each of the plurality of switches after the search unit sends the request, wherein the instruction is to send a request message for requesting a return by setting an IP address that does not exist on the network as a sending source to each of the plurality of switches, and the plurality of switches that receive the request message broadcast an ARP request for a virtual address and register the MAC addresses of switches other than the switch itself in the MAC address tables of all switches; 第一获取部,其被构成为在所述指令部发送了所述指令后,从所述多个交换机中的每一个经由所述网络获取端口的状态信息;a first acquisition unit configured to acquire port status information from each of the plurality of switches via the network after the instruction unit sends the instruction; 第二获取部,其被构成为在所述指令部发送了所述指令后,从所述多个交换机中的每一个经由所述网络获取MAC地址表;a second acquisition unit configured to acquire a MAC address table from each of the plurality of switches via the network after the instruction unit sends the instruction; 第一确定部,其被构成为根据所述第一获取部所获取的所述多个交换机各自的端口的状态,确定阻塞状态的端口;a first determination unit configured to determine a port in a blocked state based on the states of the ports of each of the plurality of switches acquired by the first acquisition unit; 第二确定部,其被构成为根据所述第一获取部所获取的所述多个交换机各自的端口的状态,确定转发状态的端口;a second determination unit configured to determine a port in a forwarding state according to states of the ports of each of the plurality of switches acquired by the first acquisition unit; 第三确定部,其被构成为在所述第二确定部中所确定的转发状态的端口中,确定在所述第二获取部所获取的所述多个交换机各自的MAC地址表中不存在的端口;以及a third determination unit configured to determine, among the ports in the forwarding state determined by the second determination unit, ports that do not exist in the MAC address table of each of the plurality of switches acquired by the second acquisition unit; and 判定部,其被构成为在所述第一确定部所确定的阻塞状态的端口上连接有所述第三确定部所确定的端口。The determination unit is configured such that the port determined by the third determination unit is connected to the port in the blocked state determined by the first determination unit. 2.根据权利要求1所述的网络装置,其特征在于,2. The network device according to claim 1, characterized in that: 所述搜索部送出的请求是ARP请求或IPv6的组播侦听查询。The request sent by the search unit is an ARP request or an IPv6 multicast snooping query. 3.根据权利要求1或2所述的网络装置,其特征在于,3. The network device according to claim 1 or 2, characterized in that: 所述多个交换机通过SNMP协议连接。The multiple switches are connected via SNMP protocol. 4.一种网络构成判定方法,其特征在于,具有:4. A network composition determination method, characterized by: 第一步骤,发送搜索与网络连接的设备的请求,所述网络连接有具有阻塞状态的端口的交换机,并且将所述设备的MAC地址登记到与所述网络连接的多个交换机中的每一个;A first step is to send a request to search for a device connected to a network, the network being connected to a switch having a port in a blocked state, and registering a MAC address of the device to each of a plurality of switches connected to the network; 第二步骤,在所述第一步骤中送出请求之后,向所述多个交换机中的每一个发送指令,所述指令为对所述多个交换机中的每一个送出将不存在于所述网络上的IP地址设定为发送源的、请求返回的请求消息,接收到所述请求消息的所述多个交换机广播发送虚拟地址的ARP请求,在所有交换机的MAC地址表中登记本交换机以外的交换机的MAC地址;The second step is to send an instruction to each of the plurality of switches after sending the request in the first step, wherein the instruction is to send a request message to each of the plurality of switches, in which an IP address not existing on the network is set as a sending source, and to request a return, and the plurality of switches receiving the request message broadcast an ARP request of a virtual address, and register the MAC addresses of switches other than the switch in the MAC address tables of all switches; 第三步骤,在所述第二步骤中发送了所述指令后,从所述多个交换机中的每一个经由所述网络获取端口的状态信息;A third step, after sending the instruction in the second step, obtaining port status information from each of the plurality of switches via the network; 第四步骤,在所述第二步骤中发送了所述指令后,从所述多个交换机中的每一个经由所述网络获取MAC地址表;A fourth step, after sending the instruction in the second step, obtaining a MAC address table from each of the plurality of switches via the network; 第五步骤,根据所述第三步骤中所获取的所述多个交换机各自的端口的状态,确定阻塞状态的端口;The fifth step is to determine the ports in the blocking state according to the states of the ports of the plurality of switches respectively acquired in the third step; 第六步骤,根据所述第三步骤中所获取的所述多个交换机各自的端口的状态,确定转发状态的端口;The sixth step is to determine a port in a forwarding state according to the states of the ports of the plurality of switches respectively obtained in the third step; 第七步骤,在所述第六步骤中所确定的转发状态的端口中,确定在所述第四步骤中所获取的所述多个交换机各自的MAC地址表中不存在的端口;以及In a seventh step, among the ports in the forwarding state determined in the sixth step, a port that does not exist in the MAC address table of each of the plurality of switches obtained in the fourth step is determined; and 第八步骤,判定为由所述第五步骤所确定的阻塞状态的端口上连接有由所述第七步骤所确定的端口。In an eighth step, it is determined that the port determined in the seventh step is connected to the port in the blocked state determined in the fifth step. 5.根据权利要求4所述的网络构成判定方法,其特征在于,5. The network composition determination method according to claim 4, characterized in that: 在所述第一步骤中送出的请求是ARP请求或IPv6的组播侦听查询。The request sent in the first step is an ARP request or an IPv6 multicast snooping query. 6.根据权利要求4或5所述的网络构成判定方法,其特征在于,6. The network configuration determination method according to claim 4 or 5, characterized in that: 所述多个交换机通过SNMP协议连接。The multiple switches are connected via SNMP protocol.
CN202110941411.0A 2020-08-19 2021-08-17 Network device and network configuration determination method Active CN114157587B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2020138499A JP7491772B2 (en) 2020-08-19 2020-08-19 NETWORK DEVICE AND NETWORK CONFIGURATION DETECTION METHOD
JP2020-138499 2020-08-19

Publications (2)

Publication Number Publication Date
CN114157587A CN114157587A (en) 2022-03-08
CN114157587B true CN114157587B (en) 2024-04-05

Family

ID=80443059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110941411.0A Active CN114157587B (en) 2020-08-19 2021-08-17 Network device and network configuration determination method

Country Status (3)

Country Link
JP (1) JP7491772B2 (en)
KR (1) KR102549279B1 (en)
CN (1) CN114157587B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20240109549A (en) * 2023-01-04 2024-07-11 주식회사 엘지에너지솔루션 Device for controlling battery system and operating method thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997735A (en) * 2009-08-25 2011-03-30 中兴通讯股份有限公司 Monocylic network topology reconstruction method and system thereof
CN103095540A (en) * 2013-01-18 2013-05-08 武汉迈威光电技术有限公司 Industrial Ethernet data distribution and link redundancy design
CN105429763A (en) * 2014-09-15 2016-03-23 意法半导体公司 Systems and methods for energy efficient network adapters with security provisions
CN105933162A (en) * 2016-06-24 2016-09-07 西安电子科技大学 Low latency Ethernet repeater and low latency Ethernet forwarding method based on T structure
CN107690777A (en) * 2015-03-30 2018-02-13 爱迪德技术有限公司 Monitor peer-to-peer network
CN108366013A (en) * 2018-02-26 2018-08-03 新华三技术有限公司 A kind of message forwarding method and device
JP2019103103A (en) * 2017-12-08 2019-06-24 アラクサラネットワークス株式会社 Network device and network system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56142027A (en) 1980-04-08 1981-11-06 Inoue Mtp Co Ltd Device for forming laminate into relief shape
JP3963728B2 (en) 2002-01-22 2007-08-22 富士通株式会社 Spanning tree bypass method and apparatus
JP5234544B2 (en) * 2008-10-14 2013-07-10 独立行政法人理化学研究所 Network configuration information acquisition method and apparatus
WO2011037004A1 (en) * 2009-09-25 2011-03-31 三菱電機株式会社 Network performance estimating apparatus, network performance estimating method, network structure recognizing method, communication managing apparatus, and data communication method
JP5626050B2 (en) 2011-03-15 2014-11-19 富士通株式会社 Order wire communication system and terminal
WO2014208538A1 (en) * 2013-06-25 2014-12-31 日本電気株式会社 Communication system, apparatus, method and program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997735A (en) * 2009-08-25 2011-03-30 中兴通讯股份有限公司 Monocylic network topology reconstruction method and system thereof
CN103095540A (en) * 2013-01-18 2013-05-08 武汉迈威光电技术有限公司 Industrial Ethernet data distribution and link redundancy design
CN105429763A (en) * 2014-09-15 2016-03-23 意法半导体公司 Systems and methods for energy efficient network adapters with security provisions
CN107690777A (en) * 2015-03-30 2018-02-13 爱迪德技术有限公司 Monitor peer-to-peer network
CN105933162A (en) * 2016-06-24 2016-09-07 西安电子科技大学 Low latency Ethernet repeater and low latency Ethernet forwarding method based on T structure
JP2019103103A (en) * 2017-12-08 2019-06-24 アラクサラネットワークス株式会社 Network device and network system
CN108366013A (en) * 2018-02-26 2018-08-03 新华三技术有限公司 A kind of message forwarding method and device

Also Published As

Publication number Publication date
KR102549279B1 (en) 2023-06-28
CN114157587A (en) 2022-03-08
KR20220022857A (en) 2022-02-28
JP2022034686A (en) 2022-03-04
JP7491772B2 (en) 2024-05-28

Similar Documents

Publication Publication Date Title
JP4722780B2 (en) Multicast network monitoring method and multicast network system to which the method is applied
US8605731B2 (en) Network system and server
US7936743B2 (en) Method and system for determining a path between two points of an IP network over which datagrams are transmitted
JP4486902B2 (en) Network system and gateway device
US20060176804A1 (en) Data transfer apparatus and multicast system
US20110182293A1 (en) Method for intercepting and searching host in ipv6 network
US7009974B1 (en) Method and apparatus for updating addresses in network processing device
CN114157587B (en) Network device and network configuration determination method
JP4619940B2 (en) Network fault location detection apparatus and network fault location detection method
CN110392090B (en) Communication system and communication transmission method
CN105191231B (en) Gateway apparatus
JP2017005662A (en) Monitoring device
US11283639B2 (en) Multicast flow anomaly identification
CN113452545B (en) Network device and network configuration identification method
US9306836B2 (en) Searching for multicast consumers in a network of interconnected nodes
JP5553425B2 (en) Multicast distribution system, distribution router, and multicast distribution method
JP2012085138A (en) Multicast distribution system, distribution router, multicast distribution method
JP4440752B2 (en) Packet response device, monitoring device, and program
US9537750B2 (en) Multicast router topology discovery
JP2020031321A (en) Communication device
JPH0851453A (en) Network device, network device detection method, and network configuration recognition method
CN108696444B (en) SDN network-based one-to-many data stream forwarding method
JP2025115103A (en) Monitoring system, monitored device, monitoring method, and monitoring program
WO2022254710A1 (en) Communication device, communication system, communication method, and communication program
CN119743463A (en) A method and system for monitoring IP addresses

Legal Events

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