CN111385117B - Method, device and system for alarming - Google Patents
Method, device and system for alarming Download PDFInfo
- Publication number
- CN111385117B CN111385117B CN201811631692.4A CN201811631692A CN111385117B CN 111385117 B CN111385117 B CN 111385117B CN 201811631692 A CN201811631692 A CN 201811631692A CN 111385117 B CN111385117 B CN 111385117B
- Authority
- CN
- China
- Prior art keywords
- network element
- element device
- address
- mac address
- currently received
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000005540 biological transmission Effects 0.000 abstract description 2
- 230000001133 acceleration Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 4
- 238000005192 partition Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Images
Classifications
-
- 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/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
-
- 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/06—Management of faults, events, alarms or notifications
- H04L41/0695—Management of faults, events, alarms or notifications the faulty arrangement being the maintenance, administration or management system
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
本公开是关于一种进行告警的方法、装置和系统,属于数据传输技术领域。所述方法包括:第一网元设备获取本地的网元设备标识、IP地址和MAC地址;第一网元设备向第二网元设备发送网元设备标识、IP地址和MAC地址。采用本公开,可以借助于网元设备的MAC地址,来确定相同的网元设备标识或者IP地址是否对应着不同的网元设备,如果确定相同的网元设备标识或者IP地址对应着不同的网元设备,才发送冲突告警提示消息,这样可以避免发生误报。
The present disclosure relates to an alarm method, device and system, and belongs to the technical field of data transmission. The method includes: the first network element device obtains the local network element device identifier, IP address and MAC address; the first network element device sends the network element device identifier, IP address and MAC address to the second network element device. With the present disclosure, it is possible to determine whether the same network element device identifier or IP address corresponds to different network element devices by means of the MAC address of the network element device. If it is determined that the same network element device identifier or IP address corresponds to different network The conflict warning prompt message is sent only when the meta-device is used, so as to avoid false positives.
Description
技术领域technical field
本公开是关于数据传输技术领域,尤其是关于一种进行告警的方法、装置和系统。The present disclosure relates to the technical field of data transmission, in particular to a method, device and system for alarming.
背景技术Background technique
在数据通信网络(Data Communication Network,DCN)网络中,可以设置有多个网元设备,可以在多个网元设备中选取两个网元设备,分别作为主网元设备和备网元设备,可以通过主网元设备或者备网元设备对多个网元设备中的其他网元设备进行管理。接着,还可以对多个网元设备进行分区,主网元设备和备网元设备同时属于所有划分区域。例如,对多个网元设备进行分区,得到划分区域1和划分区域2,主网元设备和备网元设备既属于划分区域1,同时也属于划分区域2。In a data communication network (Data Communication Network, DCN) network, multiple network element devices can be set, and two network element devices can be selected from the multiple network element devices as the main network element device and the standby network element device, respectively. Other network element devices in multiple network element devices can be managed through the main network element device or the standby network element device. Then, multiple network element devices can also be partitioned, and the primary network element device and the standby network element device belong to all partitioned areas at the same time. For example, multiple network element devices are partitioned to obtain a partition area 1 and a partition area 2, and the primary network element device and the backup network element device belong to both the partition area 1 and the partition area 2.
DCN网络中的每一个网元设备都可以按照预设的报文发送周期,将本地的网元设备标识和互联网协议(Internet Protocol Address,IP)地址发送至邻居网元设备,邻居网元设备再将接收到的网元设备标识和IP地址发送至其他邻居网元设备,直到划分区域内的所有网元设备都接收到网元设备标识和IP地址。这样,划分区域内的网元设备可以基于接收到的不同网元设备发送的网元设备标识和IP地址,建立整个划分区域内的路由表。Each network element device in the DCN network can send the local network element device identifier and Internet Protocol (Internet Protocol Address, IP) address to the neighbor network element device according to the preset message sending cycle, and the neighbor network element device then Send the received network element device identifiers and IP addresses to other neighbor network element devices until all network element devices in the divided area receive the network element device identifiers and IP addresses. In this way, the network element devices in the divided area can establish a routing table in the entire divided area based on the received network element device identifiers and IP addresses sent by different network element devices.
对于主网元设备和备网元设备,除了需要基于接收到的不同网元设备发送的网元设备标识和IP地址,建立整个划分区域内的路由表之外,还需要在接收到的网元设备标识和IP地址中,查找是否存在相同的网元设备标识或者相同的IP地址。如果不同的网元设备设置了相同的网元设备标识或者相同的IP地址,则说明存在冲突的网元设备标识或者IP地址,进而需要向指定的终端发送携带有发生冲突的网元设备标识或者发生冲突的IP地址的冲突告警提示消息。网络管理员可以在终端中查看到冲突告警提示消息,并基于冲突告警提示消息,修改发生冲突的网元设备中的任一个网元设备的网元设备标识或者IP地址。For the main network element device and the backup network element device, in addition to establishing the routing table in the entire divided area based on the received network element device ID and IP address sent by different network element devices, it is also necessary to In the device ID and IP address, check whether the same network element device ID or the same IP address exists. If different network element devices are set with the same network element device ID or the same IP address, it means that there is a conflicting network element device ID or IP address, and then it is necessary to send a message carrying the conflicting network element device ID or IP address to the designated terminal. Conflict warning message for conflicting IP addresses. The network administrator can view the conflict warning prompt message in the terminal, and based on the conflict warning prompt message, modify the network element device identifier or IP address of any one of the conflicting network element devices.
在实现本公开的过程中,发明人发现至少存在以下问题:In the process of realizing the present disclosure, the inventors found at least the following problems:
主网元设备和备网元设备需要同时向所有划分区域中的邻居网元设备发送本地的网元设备标识和IP地址。进而,由于主网元设备和备网元设备同时属于所有划分区域,主网元设备可以接收到备网元设备发送的至少两个网元设备标识和至少两个IP地址,至少两个网元设备标识都是相同的,至少两个IP地址也都是相同的,因此主网元设备会进行告警处理,但是这属于产生了误报处理。同理,备网元设备也可以接收到主网元设备发送的至少两个网元设备标识和至少两个IP地址,也会产生误报处理。The active network element device and the standby network element device need to send local network element device identifiers and IP addresses to neighbor network element devices in all divided areas at the same time. Furthermore, since the primary network element device and the standby network element device belong to all divided areas at the same time, the primary network element device can receive at least two network element device identifiers and at least two IP addresses sent by the standby network element device, and at least two network element The device identifiers are the same, and at least two IP addresses are also the same, so the main network element device will perform alarm processing, but this belongs to false alarm processing. Similarly, the standby network element device may also receive at least two network element device identifiers and at least two IP addresses sent by the main network element device, and false positive processing will also occur.
发明内容Contents of the invention
为了克服相关技术中存在的问题,本公开提供了以下技术方案:In order to overcome the problems existing in related technologies, the present disclosure provides the following technical solutions:
第一方面,提供一种进行告警的方法,所述方法包括:In the first aspect, a method for alerting is provided, the method comprising:
第一网元设备获取本地的网元设备标识、IP地址和MAC地址;The first network element device acquires a local network element device identifier, IP address and MAC address;
所述第一网元设备向第二网元设备发送所述网元设备标识、所述IP地址和所述MAC地址。The first network element device sends the network element device identifier, the IP address, and the MAC address to the second network element device.
通过本公开实施例提供的方法,可以借助于网元设备的MAC地址,来确定相同的网元设备标识或者IP地址是否对应着不同的网元设备,如果确定相同的网元设备标识或者IP地址对应着不同的网元设备,才发送冲突告警提示消息,这样可以避免发生误报。Through the method provided by the embodiments of the present disclosure, it is possible to determine whether the same network element device identifier or IP address corresponds to a different network element device by means of the MAC address of the network element device. If the same network element device identifier or IP address is determined to be The conflict alarm message is sent only corresponding to different network element devices, so as to avoid false positives.
在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:
当所述第一网元设备获取本地的网元设备标识、IP地址和MAC地址时,所述第一网元设备获取当前的时间戳信息;When the first network element device obtains a local network element device identifier, IP address, and MAC address, the first network element device obtains current timestamp information;
所述第一网元设备向所述第二网元设备发送所述时间戳信息。The first network element device sends the timestamp information to the second network element device.
为了进一步确定相同的网元设备标识或者IP地址是否对应同一网元设备,第一网元设备除了可以将MAC地址发送至第二网元设备之外,当第一网元设备获取本地的网元设备标识、IP地址和MAC地址时,第一网元设备还可以获取当前的时间戳信息,向第二网元设备发送时间戳信息。In order to further determine whether the same network element device ID or IP address corresponds to the same network element device, the first network element device can send the MAC address to the second network element device, when the first network element device obtains the local network element device When the device identifier, IP address and MAC address are used, the first network element device can also obtain the current time stamp information, and send the time stamp information to the second network element device.
在一种可能的实现方式中,所述第一网元设备向第二网元设备发送所述网元设备标识、所述IP地址和所述MAC地址,包括:In a possible implementation manner, the first network element device sending the network element device identifier, the IP address, and the MAC address to the second network element device includes:
所述第一网元设备向第二网元设备发送携带有所述网元设备标识、所述IP地址和获取的路由标识的第一报文;The first network element device sends a first message carrying the network element device identifier, the IP address, and the obtained route identifier to the second network element device;
所述第一网元设备向所述第二网元设备发送携带有所述MAC地址和所述路由标识的第二报文。The first network element device sends the second packet carrying the MAC address and the routing identifier to the second network element device.
第一网元设备可以通过两个报文分别将网元设备标识、IP地址和MAC地址发送至第二网元设备。具体可以通过第一报文将网元设备标识和IP地址发送至第二网元设备,通过第二报文将MAC地址发送至第二网元设备。The first network element device may send the network element device identifier, the IP address, and the MAC address to the second network element device respectively through two messages. Specifically, the network element device identifier and IP address may be sent to the second network element device through the first message, and the MAC address may be sent to the second network element device through the second message.
第二方面,提供一种进行告警的方法,所述方法包括:In a second aspect, a method for alerting is provided, the method comprising:
第二网元设备接收第一网元设备的网元设备标识、IP地址和MAC地址;The second network element device receives the network element device identifier, IP address and MAC address of the first network element device;
如果所述第二网元设备当前接收到的网元设备标识与接收到的其他网元设备标识中的任一网元设备标识相同,所述第二网元设备则确定所述任一网元设备标识对应的MAC地址是否和当前接收到的MAC地址不相同;如果所述任一网元设备标识对应的MAC地址和当前接收到的MAC地址不相同,所述第二网元设备则发送携带有当前接收到的网元设备标识的冲突告警提示消息;If the network element device identifier currently received by the second network element device is the same as any network element device identifier in other received network element device identifiers, the second network element device determines that any network element device Whether the MAC address corresponding to the device identifier is different from the currently received MAC address; if the MAC address corresponding to any of the network element device identifiers is not the same as the currently received MAC address, the second network element device sends a message carrying There is a conflict warning prompt message of the currently received network element device identification;
如果所述第二网元设备当前接收到的IP地址与接收到的其他IP地址中的任一IP地址相同,所述第二网元设备则确定所述任一IP地址对应的MAC地址是否和当前接收到的MAC地址不相同;如果所述任一IP地址对应的MAC地址和当前接收到的MAC地址不相同,所述第二网元设备则发送携带有当前接收到的IP地址的冲突告警提示消息。If the IP address currently received by the second network element device is the same as any IP address in other received IP addresses, the second network element device determines whether the MAC address corresponding to the any IP address is the same as The currently received MAC addresses are different; if the MAC address corresponding to any of the IP addresses is not the same as the currently received MAC address, the second network element device sends a conflict alarm carrying the currently received IP address Prompt message.
通过本公开实施例提供的方法,可以借助于网元设备的MAC地址,来确定相同的网元设备标识或者IP地址是否对应着不同的网元设备,如果确定相同的网元设备标识或者IP地址对应着不同的网元设备,才发送冲突告警提示消息,这样可以避免发生误报。Through the method provided by the embodiments of the present disclosure, it is possible to determine whether the same network element device identifier or IP address corresponds to a different network element device by means of the MAC address of the network element device. If the same network element device identifier or IP address is determined to be The conflict alarm message is sent only corresponding to different network element devices, so as to avoid false positives.
在一种可能的实现方式中,所述第二网元设备接收第一网元设备的网元设备标识、IP地址和MAC地址,包括:In a possible implementation manner, the second network element device receives the network element device identifier, IP address and MAC address of the first network element device, including:
所述第二网元设备接收第一报文,获取所述第一报文中携带的网元设备标识、IP地址和第一路由标识;The second network element device receives the first message, and acquires the network element device identifier, IP address, and first routing identifier carried in the first message;
所述第二网元设备接收第二报文,获取所述第二报文中携带的MAC地址和第二路由标识;The second network element device receives a second message, and acquires a MAC address and a second routing identifier carried in the second message;
如果所述第一路由标识与所述第二路由标识相同,则将所述第一报文中携带的网元设备标识、IP地址和所述第二报文中携带的MAC地址,确定为第一网元设备的网元设备标识、IP地址和MAC地址。If the first routing identifier is the same as the second routing identifier, determine the network element device identifier, IP address and MAC address carried in the second packet as the first packet. A network element device identifier, IP address, and MAC address of the network element device.
第一网元设备可以通过两个报文分别将网元设备标识、IP地址和MAC地址发送至第二网元设备。具体可以通过第一报文将网元设备标识和IP地址发送至第二网元设备,通过第二报文将MAC地址发送至第二网元设备。The first network element device may send the network element device identifier, the IP address, and the MAC address to the second network element device respectively through two messages. Specifically, the network element device identifier and IP address may be sent to the second network element device through the first message, and the MAC address may be sent to the second network element device through the second message.
在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:
所述第二网元设备接收所述第一网元设备发送的时间戳信息;The second network element device receives the time stamp information sent by the first network element device;
如果所述第二网元设备当前接收到的网元设备标识与接收到的其他网元设备标识中的任一网元设备标识相同,所述方法还包括:If the network element device identifier currently received by the second network element device is the same as any network element device identifier in other received network element device identifiers, the method further includes:
所述第二网元设备则确定所述任一网元设备标识对应的时间戳信息是否和当前接收到的时间戳信息不相同;The second network element device determines whether the timestamp information corresponding to any network element device identifier is different from the currently received timestamp information;
所述如果所述任一网元设备标识对应的MAC地址和当前接收到的MAC地址不相同,所述第二网元设备则发送携带有当前接收到的网元设备标识的冲突告警提示消息,包括:If the MAC address corresponding to any of the network element device identifiers is different from the currently received MAC address, the second network element device sends a conflict warning prompt message carrying the currently received network element device identifier, include:
如果所述任一网元设备标识对应的MAC地址和当前接收到的MAC地址不相同,或者所述任一网元设备标识对应的时间戳信息和当前接收到的时间戳信息不相同,所述第二网元设备则发送携带有当前接收到的网元设备标识的冲突告警提示消息;If the MAC address corresponding to any network element device identifier is different from the currently received MAC address, or the timestamp information corresponding to any network element device identifier is different from the currently received timestamp information, the The second network element device sends a conflict warning prompt message carrying the identifier of the currently received network element device;
如果所述第二网元设备当前接收到的IP地址与接收到的其他IP地址中的任一IP地址相同,所述方法还包括:If the IP address currently received by the second network element device is the same as any IP address in other received IP addresses, the method further includes:
所述第二网元设备确定所述任一网元设备标识对应的时间戳信息是否和当前接收到的时间戳信息不相同;The second network element device determines whether the timestamp information corresponding to any network element device identifier is different from the currently received timestamp information;
所述如果所述任一IP地址对应的MAC地址和当前接收到的MAC地址不相同,所述第二网元设备则发送携带有当前接收到的IP地址的冲突告警提示消息,包括:If the MAC address corresponding to any of the IP addresses is different from the currently received MAC address, the second network element device sends a conflict warning prompt message carrying the currently received IP address, including:
如果所述任一IP地址对应的MAC地址和当前接收到的MAC地址不相同,或者所述任一网元设备标识对应的时间戳信息和当前接收到的时间戳信息不相同,所述第二网元设备则发送携带有当前接收到的IP地址的冲突告警提示消息。If the MAC address corresponding to any IP address is different from the currently received MAC address, or the timestamp information corresponding to any network element device identifier is different from the currently received timestamp information, the second The network element device then sends a conflict warning prompt message carrying the currently received IP address.
为了进一步确定相同的网元设备标识或者IP地址是否对应同一网元设备,第一网元设备除了可以将MAC地址发送至第二网元设备之外,当第一网元设备获取本地的网元设备标识、IP地址和MAC地址时,第一网元设备还可以获取当前的时间戳信息,向第二网元设备发送时间戳信息。In order to further determine whether the same network element device ID or IP address corresponds to the same network element device, the first network element device can send the MAC address to the second network element device, when the first network element device obtains the local network element device When the device identifier, IP address and MAC address are used, the first network element device can also obtain the current time stamp information, and send the time stamp information to the second network element device.
第三方面,提供了一种进行告警的装置,该装置包括至少一个模块,该至少一个模块用于实现上述第一方面所提供的进行告警的方法。In a third aspect, an alarming device is provided, and the device includes at least one module, and the at least one module is used to implement the alarming method provided in the first aspect above.
第四方面,提供了一种进行告警的装置,该装置包括至少一个模块,该至少一个模块用于实现上述第二方面所提供的进行告警的方法。In a fourth aspect, an alarming device is provided, and the device includes at least one module, and the at least one module is used to realize the alarming method provided in the second aspect above.
第五方面,提供了一种进行告警的系统,所述系统包括第一网元设备和第二网元设备,其中:In a fifth aspect, an alarm system is provided, the system includes a first network element device and a second network element device, wherein:
所述第一网元设备,用于获取本地的网元设备标识、IP地址和MAC地址;向所述第二网元设备发送所述网元设备标识、所述IP地址和所述MAC地址;The first network element device is configured to obtain a local network element device identifier, IP address, and MAC address; send the network element device identifier, the IP address, and the MAC address to the second network element device;
所述第二网元设备,用于接收所述第一网元设备的网元设备标识、IP地址和MAC地址;The second network element device is configured to receive the network element device identifier, IP address, and MAC address of the first network element device;
如果当前接收到的网元设备标识与接收到的其他网元设备标识中的任一网元设备标识相同,则确定所述任一网元设备标识对应的MAC地址是否和当前接收到的MAC地址不相同;如果所述任一网元设备标识对应的MAC地址和当前接收到的MAC地址不相同,则发送携带有当前接收到的网元设备标识的冲突告警提示消息;If the currently received network element equipment identification is the same as any network element equipment identification in other received network element equipment identifications, determine whether the MAC address corresponding to any network element equipment identification is the same as the currently received MAC address Not the same; if the MAC address corresponding to any of the network element device identifiers is not the same as the currently received MAC address, then send a conflict warning message carrying the currently received network element device identifier;
如果当前接收到的IP地址与接收到的其他IP地址中的任一IP地址相同,则确定所述任一IP地址对应的MAC地址是否和当前接收到的MAC地址不相同;如果所述任一IP地址对应的MAC地址和当前接收到的MAC地址不相同,则发送携带有当前接收到的IP地址的冲突告警提示消息。If the currently received IP address is identical to any IP address in other received IP addresses, then determine whether the MAC address corresponding to the any IP address is different from the currently received MAC address; if any If the MAC address corresponding to the IP address is different from the currently received MAC address, a conflict warning prompt message carrying the currently received IP address is sent.
第六方面,提供了一种第一网元设备,该第一网元设备包括处理器、存储器,处理器被配置为执行存储器中存储的指令;处理器通过执行指令来实现上述第一方面所提供的进行告警的方法。In a sixth aspect, a first network element device is provided, the first network element device includes a processor and a memory, the processor is configured to execute instructions stored in the memory; the processor implements the above-mentioned first aspect by executing the instructions Provided method for alerting.
第七方面,提供了一种第二网元设备,该第二网元设备包括处理器、存储器,处理器被配置为执行存储器中存储的指令;处理器通过执行指令来实现上述第二方面所提供的进行告警的方法。In a seventh aspect, a second network element device is provided, the second network element device includes a processor and a memory, the processor is configured to execute instructions stored in the memory; the processor implements the above-mentioned second aspect by executing the instructions Provided method for alerting.
第八方面,提供了计算机可读存储介质,包括指令,当所述计算机可读存储介质在第一网元设备上运行时,使得所述第一网元设备执行上述第一方面所述的方法。In an eighth aspect, a computer-readable storage medium is provided, including instructions. When the computer-readable storage medium runs on the first network element device, the first network element device executes the method described in the above-mentioned first aspect. .
第九方面,提供了一种包含指令的计算机程序产品,当所述计算机程序产品在第一网元设备上运行时,使得所述第一网元设备执行上述第一方面所述的方法。In a ninth aspect, a computer program product including instructions is provided, and when the computer program product is run on a first network element device, the first network element device is caused to execute the method described in the first aspect above.
第十方面,提供了一种计算机可读存储介质,其特征在于,包括指令,当所述计算机可读存储介质在第二网元设备上运行时,使得所述第二网元设备执行第二方面所述的方法。In a tenth aspect, there is provided a computer-readable storage medium, which is characterized by comprising an instruction, when the computer-readable storage medium runs on a second network element device, the second network element device executes the second method described in the aspect.
第十一方面,提供了一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在第二网元设备上运行时,使得所述第二网元设备执行第二方面所述的方法。In an eleventh aspect, a computer program product containing instructions is provided, wherein when the computer program product is run on a second network element device, the second network element device is made to execute the program described in the second aspect. Methods.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
通过本公开实施例提供的方法,可以借助于网元设备的MAC地址,来确定相同的网元设备标识或者IP地址是否对应着不同的网元设备,如果确定相同的网元设备标识或者IP地址对应着不同的网元设备,才发送冲突告警提示消息,这样可以避免发生误报。Through the method provided by the embodiments of the present disclosure, it is possible to determine whether the same network element device identifier or IP address corresponds to a different network element device by means of the MAC address of the network element device. If the same network element device identifier or IP address is determined to be The conflict alarm message is sent only corresponding to different network element devices, so as to avoid false positives.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。在附图中:The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure. In the attached picture:
图1是根据一示例性实施例示出的一种数据通信网络的结构示意图;Fig. 1 is a schematic structural diagram of a data communication network shown according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种进行告警的方法的流程示意图;Fig. 2 is a schematic flowchart of a method for giving an alarm according to an exemplary embodiment;
图3是根据一示例性实施例示出的一种进行告警的装置的结构示意图;Fig. 3 is a schematic structural diagram of an alarming device according to an exemplary embodiment;
图4是根据一示例性实施例示出的一种进行告警的装置的结构示意图;Fig. 4 is a schematic structural diagram of an alarming device according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种第一网元设备的结构示意图;Fig. 5 is a schematic structural diagram of a first network element device according to an exemplary embodiment;
图6是根据一示例性实施例示出的一种第二网元设备的结构示意图。Fig. 6 is a schematic structural diagram of a second network element device according to an exemplary embodiment.
通过上述附图,已示出本公开明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本领域技术人员说明本公开的概念。By means of the above-mentioned drawings, certain embodiments of the present disclosure have been shown and will be described in more detail hereinafter. These drawings and written description are not intended to limit the scope of the disclosed concept in any way, but to illustrate the disclosed concept for those skilled in the art by referring to specific embodiments.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
本公开一示例性实施例提供了一种进行告警的方法,该方法可以在DCN中执行。DCN包括单域类型的DCN和多域类型的DCN。其中,如图1所示,多域类型的DCN中包括多个区域网,不同区域网通过主网关网元设备(Gateway Network Element,GNE)和备GNE进行通信,不同区域网中的其他网元设备(Network Element,NE)不能进行通信。这样,每个区域网可以维护各自的路由表,路由表的规模较小。An exemplary embodiment of the present disclosure provides a method for alerting, which can be executed in a DCN. DCNs include single-domain DCNs and multi-domain DCNs. Among them, as shown in Figure 1, the DCN of the multi-domain type includes multiple regional networks, and different regional networks communicate through the main gateway network element device (Gateway Network Element, GNE) and the standby GNE, and other network elements in different regional networks The device (Network Element, NE) cannot communicate. In this way, each area network can maintain its own routing table, and the size of the routing table is small.
当运营商需要管理多个区域网中的设备时,如果需要管理的是主GNE和备GNE,则可以直接通过终端对主GNE和备GNE进行管理。如果需要管理的是其他NE,则首先课可以建立终端与主GNE和备GNE之间的连接,通过主GNE和备GNE对其他NE进行管理。When the operator needs to manage devices in multiple area networks, if the main GNE and the standby GNE need to be managed, the main GNE and the standby GNE can be managed directly through the terminal. If other NEs need to be managed, you can firstly establish a connection between the terminal and the main GNE and the standby GNE, and manage other NEs through the main GNE and the standby GNE.
本公开一示例性实施例提供了一种进行告警的方法,如图2所示,该方法的处理流程可以包括如下的步骤:An exemplary embodiment of the present disclosure provides a method for alerting, as shown in FIG. 2 , the processing flow of the method may include the following steps:
步骤S210,第一网元设备获取本地的网元设备标识、IP地址和媒体访问控制(Media Access Control Address,MAC)地址。In step S210, the first network element device acquires a local network element device identifier, an IP address, and a Media Access Control Address (MAC) address.
在实施中,网元设备标识也可称为NEID(Network Element Identifier),IP地址也可称为NEIP(Network Element IP),NEID和NEIP可以是运营商为每个网元设备配置的,可以存储在每个网元设备的存储器中。In implementation, the network element device identifier can also be called NEID (Network Element Identifier), and the IP address can also be called NEIP (Network Element IP). The NEID and NEIP can be configured by the operator for each network element device, and can be stored In the memory of each network element device.
本公开实施例中的第一网元设备可以是主GNE、可以是备GNE、也可以是其他NE。第二网元设备可以是主GNE或者备GNE。第一网元设备可以获取本地的网元设备标识和IP地址,第一网元设备还可以获取本地的MAC地址。The first network element device in the embodiment of the present disclosure may be the active GNE, the standby GNE, or other NEs. The second network element device may be the active GNE or the standby GNE. The first network element device can obtain a local network element device identifier and IP address, and the first network element device can also obtain a local MAC address.
步骤S220,第一网元设备向第二网元设备发送网元设备标识、IP地址和MAC地址。Step S220, the first network element device sends the network element device identifier, IP address and MAC address to the second network element device.
步骤S230,第二网元设备接收第一网元设备的网元设备标识、IP地址和MAC地址。Step S230, the second network element device receives the network element device identifier, IP address and MAC address of the first network element device.
在实施中,第一网元设备可以将获取的网元设备标识、IP地址和MAC地址发送至第二网元设备。In an implementation, the first network element device may send the obtained network element device identifier, IP address, and MAC address to the second network element device.
可选地,第一网元设备可以通过泛洪的方式,将获取的网元设备标识、IP地址和MAC地址发送至第二网元设备。Optionally, the first network element device may send the obtained network element device identifier, IP address, and MAC address to the second network element device in a flooding manner.
在实际应用中,如图1所示,第一网元设备可以是NE1,NE1属于区域网A,区域网A中还有NE2、NE3、主GNE和备GNE。区域网B中有NE4、NE5、NE6、主GNE和备GNE。In practical application, as shown in FIG. 1 , the first network element device may be NE1, and NE1 belongs to area network A, and there are NE2, NE3, primary GNE, and backup GNE in area network A. Area network B includes NE4, NE5, NE6, active GNE, and standby GNE.
在区域网A中,与NE1相邻的设备为NE2,与NE2相邻的设备为主GNE。因此,NE1可以获取NE1的NEID和NEIP,然后将NE1的NEID和NEIP发送至NE2。NE2可以接收到NE1发送的NE1的NEID和NEIP,存储接收到的NE1的NEID和NEIP,将接收到的NE1的NEID和NEIP转发至主GNE。主GNE可以接收到NE2转发的NE1的NEID和NEIP,存储接收到的NE1的NEID和NEIP。同理,NE2也向其他设备发送NE2的NEID和NEIP,区域网A中的所有设备都向区域网A中的其他设备发送各自的NEID和NEIP。进而,区域网A中的所有设备都可以接收到区域网A中的其他设备的NEID和NEIP。对于区域网A中的每个设备,都可以基于本地的NEID和NEIP、其他设备的NEID和NEIP,建立区域网A对应的路由表。In area network A, the device adjacent to NE1 is NE2, and the device adjacent to NE2 is the master GNE. Therefore, NE1 can obtain NE1's NEID and NEIP, and then send NE1's NEID and NEIP to NE2. NE2 can receive NE1's NEID and NEIP sent by NE1, store the received NE1's NEID and NEIP, and forward the received NE1's NEID and NEIP to the master GNE. The master GNE can receive the NEID and NEIP of NE1 forwarded by NE2, and store the received NEID and NEIP of NE1. Similarly, NE2 also sends NE2's NEID and NEIP to other devices, and all devices in area network A send their NEIDs and NEIPs to other devices in area network A. Furthermore, all devices in the area network A can receive the NEID and NEIP of other devices in the area network A. For each device in the area network A, a routing table corresponding to the area network A can be established based on the local NEID and NEIP, and the NEID and NEIP of other devices.
对于主GNE和备GNE,除了可以建立区域网A对应的路由表之外,还可以基于同样的方式,建立区域网B对应的路由表。For the active GNE and the standby GNE, in addition to establishing the routing table corresponding to the area network A, the routing table corresponding to the area network B can also be established based on the same method.
对于主GNE和备GNE,除了可以建立每个区域网对应的路由表之外,还可以检测每个区域网中的所有设备中是否设置了冲突的NEID、NEIP。For the active GNE and the standby GNE, in addition to establishing the routing table corresponding to each area network, it can also detect whether conflicting NEIDs and NEIPs are set in all devices in each area network.
可选地,步骤S220可以包括:第一网元设备向第二网元设备发送携带有网元设备标识和IP地址的第一报文;第一网元设备向第二网元设备发送携带有MAC地址的第二报文。相应地,步骤S230可以包括:第二网元设备接收第一报文,获取第一报文中携带的网元设备标识、IP地址和第一路由标识;第二网元设备接收第二报文,获取第二报文中携带的MAC地址和第二路由标识。Optionally, step S220 may include: the first network element device sends a first packet carrying the network element device identifier and IP address to the second network element device; the first network element device sends a packet carrying the The second packet of the MAC address. Correspondingly, step S230 may include: the second network element device receives the first message, and acquires the network element device identifier, IP address and first routing identifier carried in the first message; the second network element device receives the second message to acquire the MAC address and the second routing identifier carried in the second packet.
在实施中,第一网元设备可以通过两个报文分别将网元设备标识、IP地址和MAC地址发送至第二网元设备。具体可以通过第一报文将网元设备标识和IP地址发送至第二网元设备,通过第二报文将MAC地址发送至第二网元设备。其中,第一报文可以是数据通信网络不透明链路状态公告(Data Communication Network Opaque Link-StateAdvertisement,DCN Opaque LSA)中的一个类型的LSA。第二报文可以是DCN Opaque LSA中的第10类LSA。在实际应用中,可以对第10类LSA进行扩展,将MAC地址添加在第10类LSA中的扩展位置上,得到第二报文,第二报文也可以称为DCN SysMac Opaque LSA。MAC地址可以占用6字节的空间。In an implementation, the first network element device may send the network element device identifier, the IP address and the MAC address to the second network element device through two messages respectively. Specifically, the network element device identifier and IP address may be sent to the second network element device through the first message, and the MAC address may be sent to the second network element device through the second message. Wherein, the first message may be a type of LSA in Data Communication Network Opaque Link-State Advertisement (DCN Opaque LSA). The second packet may be a type 10 LSA in the DCN Opaque LSA. In practical applications, the Type 10 LSA can be extended, and the MAC address can be added to the extension position of the Type 10 LSA to obtain a second message, which can also be called a DCN SysMac Opaque LSA. A MAC address can take up 6 bytes of space.
第二网元设备可以从不同的进程接收到不同区域网中的网元设备发送的DCNOpaque LSA,第二网元设备可以通过不同的进程对不同区域网中的网元设备进行隔离。例如,有两个区域网,包括区域网A和区域网B,它们对应的进程分别为DCN OSPF(OpenShortest Path First,开放式最短路径优先协议)65534和DCN OSPF 65535。The second network element device may receive DCNOpaque LSAs sent by network element devices in different area networks from different processes, and the second network element device may isolate network element devices in different area networks through different processes. For example, there are two area networks, including area network A and area network B, and their corresponding processes are DCN OSPF (OpenShortest Path First, open shortest path first protocol) 65534 and DCN OSPF 65535 respectively.
由于网元设备标识、IP地址和MAC地址是通过两个报文分别发送至第二网元设备的,为了确定不同报文中携带的网元设备标识、IP地址和MAC地址是否对应于同一网元设备,可以通过报文中的路由标识进行判断。其中,路由标识也可以称为Router-ID(Router-Identifier)。Since the network element device identifier, IP address, and MAC address are sent to the second network element device through two packets respectively, in order to determine whether the network element device identifier, IP address, and MAC address carried in different packets correspond to the same network element The meta-device can be judged by the routing identifier in the packet. Wherein, the router identifier may also be referred to as a Router-ID (Router-Identifier).
可选地,如果第一路由标识与第二路由标识相同,则将第一报文中携带的网元设备标识、IP地址和第二报文中携带的MAC地址,确定为第一网元设备的网元设备标识、IP地址和MAC地址。Optionally, if the first routing identifier is the same as the second routing identifier, the network element device identifier, IP address and MAC address carried in the second message are determined as the first network element device The NE device ID, IP address, and MAC address of the network element.
在实施中,如果第一路由标识与第二路由标识相同,且第一路由标识或者第二路由标识对应于第一网元设备,则可以将第一报文中携带的网元设备标识、IP地址和第二报文中携带的MAC地址,确定为第一网元设备的网元设备标识、IP地址和MAC地址。或者,如果第一路由标识与第二路由标识相同,则可以将第一报文中携带的网元设备标识、IP地址和第二报文中携带的MAC地址,确定为同一网元设备的网元设备标识、IP地址和MAC地址。可以将同一网元设备的网元设备标识、IP地址和MAC地址,作为一个三元组。In implementation, if the first routing identifier is the same as the second routing identifier, and the first routing identifier or the second routing identifier corresponds to the first network element device, the network element device identifier, IP The address and the MAC address carried in the second message are determined as the network element device identifier, IP address and MAC address of the first network element device. Alternatively, if the first route identifier is the same as the second route identifier, the network element device identifier, IP address and MAC address carried in the second message may be determined as the same network element device. Meta-device ID, IP address and MAC address. The network element device identifier, IP address, and MAC address of the same network element device may be used as a triplet.
步骤S240,如果第二网元设备当前接收到的网元设备标识与接收到的其他网元设备标识中的任一网元设备标识相同,第二网元设备则确定任一网元设备标识对应的MAC地址是否和当前接收到的MAC地址不相同;如果任一网元设备标识对应的MAC地址和当前接收到的MAC地址不相同,第二网元设备则发送携带有当前接收到的网元设备标识的冲突告警提示消息。Step S240, if the network element device identifier currently received by the second network element device is the same as any network element device identifier in other received network element device identifiers, the second network element device determines that any network element device identifier corresponds to Whether the MAC address of the network element device is different from the currently received MAC address; if the MAC address corresponding to any network element device identifier is not the same as the currently received MAC address, the second network element device sends a A warning message for conflicting device IDs.
在实施中,在确定多个三元组之后,第二网元设备可以对比多个三元组中是否存在任意至少两个网元设备标识是相同的,如果多个三元组中存在任意至少两个网元设备标识是相同的,则可以进一步比对它们所属的三元组中的MAC地址是否相同。如果它们所属的三元组中的MAC地址相同,则说明这些相同的网元设备标识都对应着同一个网元设备,如主GNE或者备GNE,实际并未发生冲突,此时可以不上报冲突。如果它们所属的三元组中的MAC地址不同,则说明这些相同的网元设备标识对应着不同的网元设备,发生了冲突,此时第二网元设备可以发送携带有当前接收到的网元设备标识的冲突告警提示消息。具体可以向终端发送携带有当前接收到的网元设备标识的冲突告警提示消息,这样运营商可以在终端中查看到冲突告警提示消息,并针对冲突告警提示消息,一一排查哪些网元设备设置有相同的网元设备标识,进而可以修改排查到的网元设备的网元设备标识。In an implementation, after determining the multiple triplets, the second network element device can compare whether there are any at least two network element device identifiers in the multiple triplets that are the same, and if there are any at least two network element device identifiers in the multiple triplets. If the two network element device identifiers are the same, it may be further compared whether the MAC addresses in the triplets to which they belong are the same. If the MAC addresses in the triplets to which they belong are the same, it means that the same network element device identifiers correspond to the same network element device, such as the active GNE or the standby GNE, and there is no conflict in fact, and you do not need to report the conflict at this time . If the MAC addresses in the triplets they belong to are different, it means that these same network element device identifiers correspond to different network element devices, and a conflict occurs. At this time, the second network element device can send Conflict warning message of meta-device ID. Specifically, a conflict warning prompt message carrying the currently received network element device identifier can be sent to the terminal, so that the operator can view the conflict warning prompt message in the terminal, and check which network element device settings are made for the conflict warning prompt message one by one. have the same network element device ID, and then the network element device ID of the detected network element device can be modified.
步骤S250,如果第二网元设备当前接收到的IP地址与接收到的其他IP地址中的任一IP地址相同,第二网元设备则确定任一IP地址对应的MAC地址是否和当前接收到的MAC地址不相同;如果任一IP地址对应的MAC地址和当前接收到的MAC地址不相同,第二网元设备则发送携带有当前接收到的IP地址的冲突告警提示消息。Step S250, if the IP address currently received by the second network element device is the same as any IP address among other received IP addresses, the second network element device determines whether the MAC address corresponding to any IP address is the same as the currently received IP address If the MAC address corresponding to any IP address is different from the currently received MAC address, the second network element device sends a conflict warning message carrying the currently received IP address.
在实施中,基于和网元设备标识相同的方式,如果第二网元设备当前接收到的IP地址与接收到的其他IP地址中的任一IP地址相同,第二网元设备则确定任一IP地址对应的MAC地址是否和当前接收到的MAC地址不相同;如果任一IP地址对应的MAC地址和当前接收到的MAC地址不相同,第二网元设备则发送携带有当前接收到的IP地址的冲突告警提示消息。如果第二网元设备当前接收到的IP地址与接收到的其他IP地址中的任一IP地址相同,第二网元设备则确定任一IP地址对应的MAC地址是否和当前接收到的MAC地址不相同;如果任一IP地址对应的MAC地址和当前接收到的MAC地址相同,第二网元设备则禁止发送携带有当前接收到的IP地址的冲突告警提示消息。In the implementation, based on the same method as the identification of the network element device, if the IP address currently received by the second network element device is the same as any IP address among other received IP addresses, the second network element device determines that either Whether the MAC address corresponding to the IP address is different from the currently received MAC address; if the MAC address corresponding to any IP address is different from the currently received MAC address, the second network element device sends a Address conflict warning message. If the IP address currently received by the second network element device is the same as any IP address in other received IP addresses, the second network element device determines whether the MAC address corresponding to any IP address is the same as the currently received MAC address Not the same; if the MAC address corresponding to any IP address is the same as the currently received MAC address, the second network element device is prohibited from sending a conflict warning prompt message carrying the currently received IP address.
在实际应用中,如果同一网元设备的网元设备标识和IP地址同时和其他网元设备的网元设备标识和IP地址存在冲突,可以同时上报发生冲突的网元设备标识和IP地址。In practical applications, if the NE device ID and IP address of the same NE device conflict with those of other NE devices at the same time, the conflicting NE device ID and IP address can be reported at the same time.
可选地,为了进一步确定相同的网元设备标识或者IP地址是否对应同一网元设备,第一网元设备除了可以将MAC地址发送至第二网元设备之外,当第一网元设备获取本地的网元设备标识、IP地址和MAC地址时,第一网元设备还可以获取当前的时间戳信息,向第二网元设备发送时间戳信息。Optionally, in order to further determine whether the same network element device identifier or IP address corresponds to the same network element device, in addition to sending the MAC address to the second network element device, the first network element device, when the first network element device obtains When the local network element device identifier, IP address, and MAC address are used, the first network element device can also obtain the current time stamp information, and send the time stamp information to the second network element device.
相应地,第二网元设备接收第一网元设备发送的时间戳信息;如果第二网元设备当前接收到的网元设备标识与接收到的其他网元设备标识中的任一网元设备标识相同,第二网元设备则确定任一网元设备标识对应的时间戳信息是否和当前接收到的时间戳信息不相同;如果任一网元设备标识对应的MAC地址和当前接收到的MAC地址不相同,或者任一网元设备标识对应的时间戳信息和当前接收到的时间戳信息不相同,第二网元设备则发送携带有当前接收到的网元设备标识的冲突告警提示消息。Correspondingly, the second network element device receives the time stamp information sent by the first network element device; If the identifiers are the same, the second network element device determines whether the timestamp information corresponding to any network element device identifier is different from the currently received timestamp information; if the MAC address corresponding to any network element device identifier is the same as the currently received MAC address If the addresses are not the same, or the time stamp information corresponding to any network element device ID is different from the currently received time stamp information, the second network element device sends a conflict warning prompt message carrying the currently received network element device ID.
如果第二网元设备当前接收到的IP地址与接收到的其他IP地址中的任一IP地址相同,第二网元设备确定任一网元设备标识对应的时间戳信息是否和当前接收到的时间戳信息不相同;如果任一IP地址对应的MAC地址和当前接收到的MAC地址不相同,或者任一网元设备标识对应的时间戳信息和当前接收到的时间戳信息不相同,第二网元设备则发送携带有当前接收到的IP地址的冲突告警提示消息。If the IP address currently received by the second network element device is the same as any IP address in the other received IP addresses, the second network element device determines whether the timestamp information corresponding to any network element device identifier is the same as the currently received The time stamp information is different; if the MAC address corresponding to any IP address is different from the currently received MAC address, or the time stamp information corresponding to any network element device identifier is different from the currently received time stamp information, the second The network element device then sends a conflict warning prompt message carrying the currently received IP address.
在实施中,第一网元设备可以获取本地的MAC地址和当前的时间戳信息,将MAC地址和当前的时间戳信息进行组合,得到一个12字节的标识符,将组合后的MAC地址和当前的时间戳信息发送至第二网元设备。In implementation, the first network element device can obtain the local MAC address and current timestamp information, combine the MAC address and current timestamp information to obtain a 12-byte identifier, and combine the combined MAC address and The current time stamp information is sent to the second network element device.
如果第二网元设备当前接收到的网元设备标识与接收到的其他网元设备标识中的任一网元设备标识相同,第二网元设备则可以确定当前接收到的组合后的MAC地址和当前的时间戳信息和任一网元设备标识对应的组合后的MAC地址和当前的时间戳信息是否相同。如果当前接收到的组合后的MAC地址和当前的时间戳信息和任一网元设备标识对应的组合后的MAC地址和当前的时间戳信息相同,则说明这些相同的网元设备标识都对应着同一个网元设备,如主GNE或者备GNE,实际并未发生冲突,此时可以不上报冲突。如果不同,则说明这些相同的网元设备标识对应着不同的网元设备,发生了冲突,此时第二网元设备可以发送携带有当前接收到的网元设备标识的冲突告警提示消息。If the network element device identifier currently received by the second network element device is the same as any network element device identifier in other received network element device identifiers, the second network element device can determine the currently received combined MAC address Whether the combined MAC address corresponding to the current time stamp information and any network element device identifier is the same as the current time stamp information. If the currently received combined MAC address and current timestamp information are the same as the combined MAC address and current timestamp information corresponding to any network element device identifier, it means that these same network element device identifiers correspond to The same network element device, such as the active GNE or the standby GNE, does not actually conflict, so it is not necessary to report the conflict at this time. If they are different, it means that the same network element device identifiers correspond to different network element devices, and a conflict occurs. At this time, the second network element device can send a conflict warning prompt message carrying the currently received network element device identifier.
同理,如果第二网元设备当前接收到的IP地址与接收到的其他IP地址中的任一IP地址相同,第二网元设备则可以确定当前接收到的组合后的MAC地址和当前的时间戳信息和任一IP地址对应的组合后的MAC地址和当前的时间戳信息是否相同。如果当前接收到的组合后的MAC地址和当前的时间戳信息和任一IP地址对应的组合后的MAC地址和当前的时间戳信息相同,则说明这些相同的IP地址都对应着同一个网元设备,如主GNE或者备GNE,实际并未发生冲突,此时可以不上报冲突。如果不同,则说明这些相同的IP地址对应着不同的网元设备,发生了冲突,此时第二网元设备可以发送携带有当前接收到的IP地址的冲突告警提示消息。Similarly, if the IP address currently received by the second network element device is the same as any one of the received other IP addresses, the second network element device can determine the currently received combined MAC address and the current IP address. Whether the combined MAC address corresponding to the time stamp information and any IP address is the same as the current time stamp information. If the currently received combined MAC address and current timestamp information are the same as the combined MAC address and current timestamp information corresponding to any IP address, it means that these same IP addresses correspond to the same network element The equipment, such as the active GNE or the standby GNE, does not actually have a conflict, so it is not necessary to report the conflict at this time. If they are different, it means that the same IP addresses correspond to different network element devices, and a conflict occurs. At this time, the second network element device may send a conflict warning prompt message carrying the currently received IP address.
通过本公开实施例提供的方法,可以借助于网元设备的MAC地址,来确定相同的网元设备标识或者IP地址是否对应着不同的网元设备,如果确定相同的网元设备标识或者IP地址对应着不同的网元设备,才发送冲突告警提示消息,这样可以避免发生误报。Through the method provided by the embodiments of the present disclosure, it is possible to determine whether the same network element device identifier or IP address corresponds to a different network element device by means of the MAC address of the network element device. If the same network element device identifier or IP address is determined to be The conflict alarm message is sent only corresponding to different network element devices, so as to avoid false positives.
本公开又一示例性实施例提供了一种进行告警的装置,如图3所示,该装置包括:Yet another exemplary embodiment of the present disclosure provides a device for alerting, as shown in FIG. 3 , the device includes:
获取模块310,用于获取本地的网元设备标识、IP地址和MAC地址,具体可以实现上述步骤S210中的获取功能,以及其他隐含步骤。The acquisition module 310 is configured to acquire the local network element device identifier, IP address and MAC address, specifically, the acquisition function in the above step S210 and other implicit steps can be realized.
发送模块320,用于向第二网元设备发送所述网元设备标识、所述IP地址和所述MAC地址,具体可以实现上述步骤S220中的发送功能,以及其他隐含步骤。The sending module 320 is configured to send the network element device identifier, the IP address, and the MAC address to the second network element device, and may specifically implement the sending function in the above step S220 and other implicit steps.
可选地,所述获取模块310,还用于当获取本地的网元设备标识、IP地址和MAC地址时,获取当前的时间戳信息;Optionally, the obtaining module 310 is also configured to obtain current timestamp information when obtaining the local network element device identifier, IP address and MAC address;
所述发送模块320,还用于向所述第二网元设备发送所述时间戳信息。The sending module 320 is further configured to send the time stamp information to the second network element device.
可选地,所述发送模块320,用于:Optionally, the sending module 320 is configured to:
向第二网元设备发送携带有所述网元设备标识、所述IP地址和获取的路由标识的第一报文;Sending the first message carrying the network element device identifier, the IP address and the obtained route identifier to the second network element device;
向所述第二网元设备发送携带有所述MAC地址和所述路由标识的第二报文。sending the second packet carrying the MAC address and the routing identifier to the second network element device.
需要说明的是,上述获取模块310和发送模块320可以由处理器实现,或者由处理器配合存储器、收发器来实现。It should be noted that the acquisition module 310 and the sending module 320 may be implemented by a processor, or by a processor in cooperation with a memory and a transceiver.
本公开又一示例性实施例提供了一种进行告警的装置,如图4所示,该装置包括:Yet another exemplary embodiment of the present disclosure provides a device for alerting, as shown in FIG. 4 , the device includes:
接收模块410,用于接收第一网元设备的网元设备标识、IP地址和MAC地址,具体可以实现上述步骤S230中的接收功能,以及其他隐含步骤。The receiving module 410 is configured to receive the network element device identifier, IP address and MAC address of the first network element device, and may specifically implement the receiving function in the above step S230 and other implicit steps.
发送模块420,用于当当前接收到的网元设备标识与接收到的其他网元设备标识中的任一网元设备标识相同时,确定所述任一网元设备标识对应的MAC地址是否和当前接收到的MAC地址不相同;当所述任一网元设备标识对应的MAC地址和当前接收到的MAC地址不相同时,发送携带有当前接收到的网元设备标识的冲突告警提示消息;The sending module 420 is configured to determine whether the MAC address corresponding to any network element device identifier is the same as the currently received network element device identifier when the currently received network element device identifier is the same as any network element device identifier in other received network element device identifiers. The currently received MAC addresses are different; when the MAC address corresponding to any of the network element device identifiers is different from the currently received MAC address, sending a conflict warning message carrying the currently received network element device identifier;
当当前接收到的IP地址与接收到的其他IP地址中的任一IP地址相同时,确定所述任一IP地址对应的MAC地址是否和当前接收到的MAC地址不相同;当所述任一IP地址对应的MAC地址和当前接收到的MAC地址不相同时,发送携带有当前接收到的IP地址的冲突告警提示消息。具体可以实现上述步骤S240中的发送功能,以及其他隐含步骤。When the currently received IP address is identical to any IP address in other received IP addresses, determine whether the MAC address corresponding to the any IP address is different from the currently received MAC address; When the MAC address corresponding to the IP address is different from the currently received MAC address, a conflict warning prompt message carrying the currently received IP address is sent. Specifically, the sending function in the above step S240 and other implicit steps can be realized.
可选地,所述接收模块410,用于:Optionally, the receiving module 410 is configured to:
接收第一报文,获取所述第一报文中携带的网元设备标识、IP地址和第一路由标识;Receive the first message, and acquire the network element device identifier, IP address, and first routing identifier carried in the first message;
接收第二报文,获取所述第二报文中携带的MAC地址和第二路由标识;receiving the second message, and obtaining the MAC address and the second routing identifier carried in the second message;
如果所述第一路由标识与所述第二路由标识相同,则将所述第一报文中携带的网元设备标识、IP地址和所述第二报文中携带的MAC地址,确定为第一网元设备的网元设备标识、IP地址和MAC地址。If the first routing identifier is the same as the second routing identifier, determine the network element device identifier, IP address and MAC address carried in the second packet as the first packet. A network element device identifier, IP address, and MAC address of the network element device.
可选地,所述接收模块410,还用于接收所述第一网元设备发送的时间戳信息;Optionally, the receiving module 410 is further configured to receive timestamp information sent by the first network element device;
所述装置还包括:The device also includes:
确定模块,用于确定所述任一网元设备标识对应的时间戳信息是否和当前接收到的时间戳信息不相同;A determining module, configured to determine whether the timestamp information corresponding to any network element device identifier is different from the currently received timestamp information;
所述发送模块420,还用于当当前接收到的网元设备标识与接收到的其他网元设备标识中的任一网元设备标识相同时,确定所述任一网元设备标识对应的时间戳信息是否和当前接收到的时间戳信息不相同;如果所述任一网元设备标识对应的MAC地址和当前接收到的MAC地址不相同,或者所述任一网元设备标识对应的时间戳信息和当前接收到的时间戳信息不相同,则发送携带有当前接收到的网元设备标识的冲突告警提示消息;The sending module 420 is further configured to determine the time corresponding to any network element device identifier when the currently received network element device identifier is the same as any network element device identifier in other received network element device identifiers Whether the stamp information is different from the currently received timestamp information; if the MAC address corresponding to any network element device identifier is different from the currently received MAC address, or the timestamp corresponding to any network element device identifier If the information is not the same as the currently received timestamp information, a conflict warning prompt message carrying the currently received network element device identifier is sent;
当当前接收到的IP地址与接收到的其他IP地址中的任一IP地址相同时,确定所述任一网元设备标识对应的时间戳信息是否和当前接收到的时间戳信息不相同;如果所述任一IP地址对应的MAC地址和当前接收到的MAC地址不相同,或者所述任一网元设备标识对应的时间戳信息和当前接收到的时间戳信息不相同,则发送携带有当前接收到的IP地址的冲突告警提示消息。When the currently received IP address is the same as any IP address received in other IP addresses, determine whether the timestamp information corresponding to any network element device identifier is different from the currently received timestamp information; if If the MAC address corresponding to any IP address is different from the currently received MAC address, or the time stamp information corresponding to any network element device identifier is different from the currently received time stamp information, then the sending contains the current The received IP address conflict warning prompt message.
需要说明的是,上述接收模块410和发送模块420可以由处理器实现,或者由处理器配合存储器、收发器来实现。It should be noted that, the above-mentioned receiving module 410 and sending module 420 may be implemented by a processor, or implemented by a processor in cooperation with a memory and a transceiver.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
通过本公开实施例提供的装置,可以借助于网元设备的MAC地址,来确定相同的网元设备标识或者IP地址是否对应着不同的网元设备,如果确定相同的网元设备标识或者IP地址对应着不同的网元设备,才发送冲突告警提示消息,这样可以避免发生误报。Through the device provided by the embodiment of the present disclosure, it is possible to determine whether the same network element device identifier or IP address corresponds to a different network element device by means of the MAC address of the network element device. If it is determined that the same network element device identifier or IP address The conflict alarm message is sent only corresponding to different network element devices, so as to avoid false positives.
需要说明的是:上述实施例提供的进行告警的装置在进行告警时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将第一网元设备或者第二网元设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的进行告警的装置与进行告警的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the alarming device provided in the above-mentioned embodiments is used for alarming, the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. That is, the internal structure of the first network element device or the second network element device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the alarming device and the alarming method embodiment provided by the above embodiment belong to the same idea, and the specific implementation process thereof is detailed in the method embodiment, and will not be repeated here.
本公开再一示例性实施例提供了一种进行告警的系统,所述系统包括第一网元设备和第二网元设备,其中:Yet another exemplary embodiment of the present disclosure provides an alarm system, the system includes a first network element device and a second network element device, where:
所述第一网元设备,用于获取本地的网元设备标识、IP地址和MAC地址;向所述第二网元设备发送所述网元设备标识、所述IP地址和所述MAC地址;The first network element device is configured to obtain a local network element device identifier, IP address, and MAC address; send the network element device identifier, the IP address, and the MAC address to the second network element device;
所述第二网元设备,用于接收所述第一网元设备的网元设备标识、IP地址和MAC地址;The second network element device is configured to receive the network element device identifier, IP address, and MAC address of the first network element device;
如果当前接收到的网元设备标识与接收到的其他网元设备标识中的任一网元设备标识相同,则确定所述任一网元设备标识对应的MAC地址是否和当前接收到的MAC地址不相同;如果所述任一网元设备标识对应的MAC地址和当前接收到的MAC地址不相同,则发送携带有当前接收到的网元设备标识的冲突告警提示消息;If the currently received network element equipment identification is the same as any network element equipment identification in other received network element equipment identifications, determine whether the MAC address corresponding to any network element equipment identification is the same as the currently received MAC address Not the same; if the MAC address corresponding to any of the network element device identifiers is not the same as the currently received MAC address, then send a conflict warning message carrying the currently received network element device identifier;
如果当前接收到的IP地址与接收到的其他IP地址中的任一IP地址相同,则确定所述任一IP地址对应的MAC地址是否和当前接收到的MAC地址不相同;如果所述任一IP地址对应的MAC地址和当前接收到的MAC地址不相同,则发送携带有当前接收到的IP地址的冲突告警提示消息。If the currently received IP address is identical to any IP address in other received IP addresses, then determine whether the MAC address corresponding to the any IP address is different from the currently received MAC address; if any If the MAC address corresponding to the IP address is different from the currently received MAC address, a conflict warning prompt message carrying the currently received IP address is sent.
关于上述实施例中的系统,其中第一网元设备和第二网元设备执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the system in the above embodiment, the specific manner in which the first network element device and the second network element device perform operations has been described in detail in the embodiment related to the method, and will not be described in detail here.
本公开再一示例性实施例提供了一种第一网元设备700和第二网元设备800。Still another exemplary embodiment of the present disclosure provides a first network element device 700 and a second network element device 800 .
第一网元设备700可以包括处理器710、收发器730,收发器730可以与处理器710连接,如图5所示。收发器730可以包括接收器和发送器,可以用于接收或者发送消息或数据,收发器730可以是网卡。第一网元设备700还可以包括加速部件(可称为加速器),当加速部件为网络加速部件时,加速部件可以为网卡。处理器710可以是第一网元设备700的控制中心,利用各种接口和线路连接整个第一网元设备700的各个部分,如收发器730等。在本发明中,处理器710可以是中央处理器(Central Processing Unit,CPU),可选的,处理器710可以包括一个或多个处理单元。处理器710还可以是数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件等。第一网元设备700还可以包括存储器740,存储器740可用于存储软件程序以及模块,处理器710通过读取存储在存储器的软件代码以及模块,从而执行第一网元设备700的各种功能应用以及数据处理。The first network element device 700 may include a
第二网元设备800可以包括处理器810、收发器830,收发器830可以与处理器810连接,如图6所示。收发器830可以包括接收器和发送器,可以用于接收或者发送消息或数据,收发器830可以是网卡。第二网元设备800还可以包括加速部件(可称为加速器),当加速部件为网络加速部件时,加速部件可以为网卡。处理器810可以是第二网元设备800的控制中心,利用各种接口和线路连接整个第二网元设备800的各个部分,如收发器830等。在本发明中,处理器810可以是CPU,可选的,处理器810可以包括一个或多个处理单元。处理器810还可以是数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件等。第二网元设备800还可以包括存储器840,存储器840可用于存储软件程序以及模块,处理器810通过读取存储在存储器的软件代码以及模块,从而执行第二网元设备800的各种功能应用以及数据处理。The second network element device 800 may include a
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with the true scope and spirit of the disclosure indicated by the appended claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811631692.4A CN111385117B (en) | 2018-12-29 | 2018-12-29 | Method, device and system for alarming |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811631692.4A CN111385117B (en) | 2018-12-29 | 2018-12-29 | Method, device and system for alarming |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111385117A CN111385117A (en) | 2020-07-07 |
CN111385117B true CN111385117B (en) | 2022-12-27 |
Family
ID=71217956
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811631692.4A Active CN111385117B (en) | 2018-12-29 | 2018-12-29 | Method, device and system for alarming |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111385117B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112738295B (en) * | 2021-01-07 | 2022-08-30 | 中国工商银行股份有限公司 | IP address exception handling method, device, computer system and storage medium |
US11843946B2 (en) * | 2021-04-01 | 2023-12-12 | Cujo LLC | Device-specific wireless access point password authentication |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101141325A (en) * | 2007-09-29 | 2008-03-12 | 华为技术有限公司 | Method and apparatus for detecting network element sign conflict |
CN102546849A (en) * | 2010-12-30 | 2012-07-04 | 华为技术有限公司 | Detection method for IP (Internet Protocol) address conflict and network equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI227614B (en) * | 2003-06-06 | 2005-02-01 | Hon Hai Prec Ind Co Ltd | Method for dynamically allocating IP addresses for hosts on a network |
-
2018
- 2018-12-29 CN CN201811631692.4A patent/CN111385117B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101141325A (en) * | 2007-09-29 | 2008-03-12 | 华为技术有限公司 | Method and apparatus for detecting network element sign conflict |
CN102546849A (en) * | 2010-12-30 | 2012-07-04 | 华为技术有限公司 | Detection method for IP (Internet Protocol) address conflict and network equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111385117A (en) | 2020-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10263808B2 (en) | Deployment of virtual extensible local area network | |
CN106412142B (en) | Resource equipment address obtaining method and device | |
US10404544B2 (en) | Network topology determining method and apparatus, and centralized network status information storage device | |
EP4046351B1 (en) | Rtps discovery in kubernetes | |
Azzouni et al. | sOFTDP: Secure and efficient topology discovery protocol for SDN | |
CN113055297B (en) | Network topology discovery method and device | |
CN107634842A (en) | Method for discovering network topology and device | |
US20110185047A1 (en) | System and method for a distributed fault tolerant network configuration repository | |
US11848853B2 (en) | System and method for handling IGP flooding topology inconsistency | |
CN113452561A (en) | Topology generation method, device and equipment and readable storage medium | |
EP3813306B1 (en) | Message processing method and communications system | |
CN109728988B (en) | Inter-intranet communication method and device | |
US20190215191A1 (en) | Deployment Of Virtual Extensible Local Area Network | |
CN111385117B (en) | Method, device and system for alarming | |
US20230254244A1 (en) | Path determining method and apparatus, and computer storage medium | |
EP3461079A1 (en) | Path establishment method and device, and network node | |
CN114268583A (en) | Dual-stack backbone network management method and device based on SDN, and electronic equipment | |
US11343153B2 (en) | BGP logical topology generation method, and device | |
WO2021224931A1 (en) | System and a method to efficiently exchange echo and stats messages between sdn controller and the open vswitches | |
CN116208542A (en) | Path announcement method, path calculation method, electronic device, and readable storage medium | |
WO2015120581A1 (en) | Traffic loop detection in a communication network | |
CN111865786B (en) | Method and apparatus for propagating link markers | |
CN110011820B (en) | Method and device for connecting systems and computer storage medium | |
CN118175092A (en) | Communication method and device | |
CN106452992A (en) | Remote multi-homing networking method and apparatus |
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 |