WO2012163233A1 - Loopback detection method and apparatus - Google Patents

Loopback detection method and apparatus Download PDF

Info

Publication number
WO2012163233A1
WO2012163233A1 PCT/CN2012/075810 CN2012075810W WO2012163233A1 WO 2012163233 A1 WO2012163233 A1 WO 2012163233A1 CN 2012075810 W CN2012075810 W CN 2012075810W WO 2012163233 A1 WO2012163233 A1 WO 2012163233A1
Authority
WO
WIPO (PCT)
Prior art keywords
mac address
address table
service packet
loopback
port
Prior art date
Application number
PCT/CN2012/075810
Other languages
French (fr)
Chinese (zh)
Inventor
宋兴
钟磊
魏涛
蒋小忠
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2012163233A1 publication Critical patent/WO2012163233A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Definitions

  • the embodiments of the present invention relate to communication technologies, and in particular, to a loopback detection method and apparatus.
  • Ethernet there may be loopback on the port of the transport node.
  • the transit node can detect the loopback of the port by constructing a detection packet of a specific Media Access Control (MAC) address.
  • MAC Media Access Control
  • the detection message of the transmission node may be identified by other transmission nodes as a service message for extraction, or by the user equipment or other transmission node.
  • the service packet is identified by the transmission node as the detection packet, thereby reducing the accuracy and reliability of the loopback detection.
  • the above detection packets occupy a certain amount of network bandwidth, when the network is busy, the transmission of the detection packets may affect the normal operation of the service.
  • the embodiment of the invention provides a loopback detection method and device for improving the accuracy and reliability of the loopback detection and ensuring the normal operation of the service.
  • the embodiment of the invention provides a loopback detection method, including:
  • the text is the ring return text.
  • the embodiment of the invention further provides a loopback detection device, including:
  • a learning unit configured to write the source MAC address and the VLAN identification information included in the received first service packet, and the port identification information of the first port that receives the first service packet into the MAC address table. And setting a corresponding loopback indication identifier to the first state in the MAC address table;
  • a determining unit configured to: if the source MAC address and VLAN identifier information included in the received second service packet, and the source MAC address and the VLAN identifier included in the first service packet in the MAC address table Information phase And the port corresponding to the second service packet is different from the port corresponding to the port identifier information in the MAC address table, and the loopback indication identifier is the first state,
  • the second service message is a loop report.
  • the embodiment of the present invention sets the corresponding loopback indication identifier to the first state in the service packet learning process, so that the subsequent service packet processing process can be based on the received report.
  • the loopback indication identifier corresponding to the text accurately determines whether the packet is a loopback text, thereby improving the accuracy and reliability of the loopback detection.
  • the bandwidth of the network is not additionally occupied, and the normal operation of the service is not affected.
  • FIG. 1 is a schematic flowchart of a loopback detection method according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a loopback detecting apparatus according to another embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a loopback detection method according to an embodiment of the present invention. As shown in FIG. 1, the loopback detection method in this embodiment may include:
  • the source MAC address and VLAN identifier information included in the received second service packet are as follows.
  • the source MAC address and the VLAN identifier information included in the first service packet in the MAC address table are the same, and the port that receives the second service packet is different from the port corresponding to the port identifier information in the MAC address table.
  • the loopback indication identifier is the first state, and the second service packet is determined to be a loop report.
  • the loopback indication identifier in this embodiment does not directly indicate whether the packet is a loopback message, but needs to indicate whether the identifier is the first according to the loopback indication corresponding to the received packet in the MAC address table.
  • the status can be used to determine that the message is a ring report.
  • the execution bodies of 101 and 102 in this embodiment may be transit nodes. Determining the service packet at the transit node as After the loop returns the text, the user can be notified by means of an alarm. There is a loopback on the network to remind the user to check in time. Further, the transit node may further discard the ring report text to avoid the ring report text affecting the network.
  • the loopback indication flag may be set to the second state in the MAC address table in a predetermined preset time (for example, 100 ms).
  • the preset time may be set according to actual needs. For example, considering the migration of the host location, the specific value range of the preset time may be determined according to the experience time of the host migration.
  • the transit node sets the loopback indication identifier to the second state in the MAC address table, if the source MAC address and VLAN identifier information included in the second service packet received by the transit node and the MAC address are The source MAC address and the VLAN identification information included in the first service packet in the table are the same, and the port that receives the second service packet is different from the port corresponding to the port identifier information in the MAC address table, but If the loopback indication is set to the second state at this time, it can be stated that the host location is normally migrated, and the transit node re-executes 101 to perform the service packet learning process.
  • the transit node sets the corresponding loopback indication identifier to the first state in the MAC address table, and specifically, the transit node may set the value of the corresponding loopback indication identifier to 1 in the MAC address table, that is, The transit node sets the corresponding loopback indication identifier to the set state in the MAC address table.
  • the transport node sets the loopback indication identifier to the second state in the MAC address table, specifically, the transport node is The value of the loopback indication identifier in the MAC address table may be set to 0, that is, the transit node may set the corresponding loopback indication identifier to the unset state in the MAC address table. vice versa.
  • the loopback indication flag is set to the set state in the service packet learning process, so that the loopback corresponding to the received packet can be obtained in the subsequent service packet processing process.
  • the indication identifier accurately determines whether the message is a loop report, thereby improving the accuracy and reliability of the loopback detection.
  • the bandwidth of the network is not additionally occupied, so that the normal operation of the service is not affected.
  • FIG. 2 is a schematic structural diagram of a loopback detecting apparatus according to another embodiment of the present invention.
  • the loopback detecting apparatus of this embodiment may include a learning unit 21 and a determining unit 22.
  • the learning unit 21 is configured to write the source MAC address and the VLAN identification information included in the received first service packet, and the port identifier information of the first port that receives the first service packet, into the MAC address.
  • the determining unit 22 is configured to: if the received source MAC address and VLAN identifier information included in the second service packet, and the MAC address The source MAC address and the VLAN identifier information included in the first service packet in the address table are the same, and the port that receives the second service packet is different from the port corresponding to the port identifier information in the MAC address table. And the loopback indication identifier is the foregoing first state, and determining that the second service packet is a ring report text.
  • the method in the embodiment corresponding to the above FIG. 1 can be implemented by the loopback detecting device provided in this embodiment.
  • the learning unit 21 in this embodiment may be further configured to set the loopback indication identifier to the second state in the MAC address table in a preset preset time.
  • the learning unit 21 sets the corresponding loopback indication identifier to the first state in the MAC address table. Specifically, the learning unit 21 may set the value of the corresponding loopback indication identifier to 1 in the MAC address table. The learning unit 21 can set the corresponding loopback indication identifier to the set state in the MAC address table. Accordingly, the learning unit 21 sets the loopback indication identifier to the second state in the MAC address table, which may be specifically The learning unit 21 may set the value of the loopback indication identifier to 0 in the MAC address table, that is, the learning unit 21 may set the corresponding loopback indication identifier to the unset state in the MAC address table. vice versa.
  • the learning unit sets the corresponding loopback indication identifier to the set state in the service packet learning process, so that the determining unit can receive the received packet according to the received service packet processing process.
  • the corresponding loopback indication identifier accurately determines whether the packet is a loopback text, thereby improving the accuracy and reliability of the loopback detection.
  • the bandwidth of the network is not additionally occupied, so that the normal operation of the service is not affected.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interface, device Or an indirect coupling or communication connection of the unit, which may be in electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, i.e., may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or transit node, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a Read-Only Memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

Disclosed are a loopback detection method and apparatus. The method comprises: writing the source MAC address and VLAN ID information contained in a received first service packet, and the ID information of the port receiving the first service packet into a MAC address table, and setting the corresponding loopback indication ID to a first state in the MAC address table; and determining the second service packet as a loopback packet if the source MAC address and VLAN ID information contained in a received second service packet are the same as the source MAC address and VLAN ID information contained in the first service packet in the MAC address table, and the port receiving the second service packet is different from the port corresponding to the port ID information in the MAC address table, and the loopback indication ID indicates a first state. The present invention is capable of accurately determining the received service packet as a loopback packet, thereby improving the accuracy and reliability of loopback detection.

Description

环回检测方法及装置  Loopback detection method and device
技术领域 Technical field
本发明实施例涉及通信技术, 尤其涉及一种环回检测方法及装置。  The embodiments of the present invention relate to communication technologies, and in particular, to a loopback detection method and apparatus.
发明背景 Background of the invention
在以太网中, 传输节点的端口可能会存在环回。 现有技术中, 传输节点可以通过构 造一个特定媒体访问控制 (Media Access Control, 简称 MAC ) 地址的检测报文, 进行 端口的环回检测。  In Ethernet, there may be loopback on the port of the transport node. In the prior art, the transit node can detect the loopback of the port by constructing a detection packet of a specific Media Access Control (MAC) address.
然而, 由于上述特定 MAC地址还可能为用户设备或其他传输节点的地址, 因此, 可能会导致传输节点的检测报文被其他传输节点识别为业务报文进行提取, 或者用户设 备或其他传输节点的业务报文被该传输节点识别为检测报文进行提取, 从而降低了环回 检测的准确性和可靠性。 此外, 由于上述检测报文会占用一定的网络带宽, 所以在网络 繁忙时, 检测报文的传输可能会影响业务的正常进行。  However, since the specific MAC address may also be the address of the user equipment or other transmission node, the detection message of the transmission node may be identified by other transmission nodes as a service message for extraction, or by the user equipment or other transmission node. The service packet is identified by the transmission node as the detection packet, thereby reducing the accuracy and reliability of the loopback detection. In addition, because the above detection packets occupy a certain amount of network bandwidth, when the network is busy, the transmission of the detection packets may affect the normal operation of the service.
发明内容 Summary of the invention
本发明实施例提供一种环回检测方法及装置, 用以提高环回检测的准确性和可靠 性, 以及保证业务的正常进行。  The embodiment of the invention provides a loopback detection method and device for improving the accuracy and reliability of the loopback detection and ensuring the normal operation of the service.
本发明实施例提供了一种环回检测方法, 包括:  The embodiment of the invention provides a loopback detection method, including:
将接收到的第一业务报文中所包含的源 MAC地址和 VLAN标识信息, 以及接收到 所述第一业务报文的端口标识信息, 写入 MAC地址表, 并在所述 MAC地址表中将对 应的环回指示标识设置为第一状态;  And the source MAC address and the VLAN identification information included in the received first service packet, and the port identification information of the first service packet, are written into the MAC address table, and are in the MAC address table. Setting the corresponding loopback indication identifier to the first state;
若接收到的第二业务报文中所包含的源 MAC地址和 VLAN标识信息与所述 MAC地 址表中的所述第一业务报文中所包含的源 MAC地址和 VLAN标识信息相同, 以及接收到 所述第二业务报文的端口与所述 MAC地址表中的所述端口标识信息对应的端口不同,且 所述环回指示标识为所述第一状态, 则确定所述第二业务报文为环回报文。  And if the source MAC address and the VLAN identifier information included in the received second service packet are the same as the source MAC address and the VLAN identifier information included in the first service packet in the MAC address table, and received And determining, by the second service packet, that the port corresponding to the second service packet is different from the port corresponding to the port identifier information in the MAC address table, and the loopback indication identifier is the first state. The text is the ring return text.
本发明实施例还提供了一种环回检测装置, 包括:  The embodiment of the invention further provides a loopback detection device, including:
学习单元,用于将接收到的第一业务报文中所包含的源 MAC地址和 VLAN标识信 息, 以及接收到所述第一业务报文的第一端口的端口标识信息, 写入 MAC地址表, 并 在所述 MAC地址表中将对应的环回指示标识设置为第一状态;  a learning unit, configured to write the source MAC address and the VLAN identification information included in the received first service packet, and the port identification information of the first port that receives the first service packet into the MAC address table. And setting a corresponding loopback indication identifier to the first state in the MAC address table;
确定单元,用于若接收到的第二业务报文中所包含的源 MAC地址和 VLAN标识信息 与所述 MAC地址表中的所述第一业务报文中所包含的源 MAC地址和 VLAN标识信息相 同,以及接收到所述第二业务报文的端口与所述 MAC地址表中的所述端口标识信息对应 的端口不同, 且所述环回指示标识为所述第一状态, 则确定所述第二业务报文为环回报 文。 a determining unit, configured to: if the source MAC address and VLAN identifier information included in the received second service packet, and the source MAC address and the VLAN identifier included in the first service packet in the MAC address table Information phase And the port corresponding to the second service packet is different from the port corresponding to the port identifier information in the MAC address table, and the loopback indication identifier is the first state, The second service message is a loop report.
由上述技术方案可知, 本发明实施例通过在业务报文学习过程中, 将对应的环回指 示标识设置为第一状态, 从而使得在后续的业务报文处理过程中, 能够根据接收到的报 文对应的环回指示标识准确确定该报文是否为环回报文, 从而提高环回检测的准确性和 可靠性。 此外, 由于没有引入额外的检测报文, 所以不会额外占用网络的带宽, 从而不 会影响业务的正常进行。  According to the foregoing technical solution, the embodiment of the present invention sets the corresponding loopback indication identifier to the first state in the service packet learning process, so that the subsequent service packet processing process can be based on the received report. The loopback indication identifier corresponding to the text accurately determines whether the packet is a loopback text, thereby improving the accuracy and reliability of the loopback detection. In addition, since no additional detection packets are introduced, the bandwidth of the network is not additionally occupied, and the normal operation of the service is not affected.
附图简要说明 BRIEF DESCRIPTION OF THE DRAWINGS
图 1为本发明一实施例提供的环回检测方法的流程示意图;  1 is a schematic flowchart of a loopback detection method according to an embodiment of the present invention;
图 2为本发明另一实施例提供的环回检测装置的结构示意图。  FIG. 2 is a schematic structural diagram of a loopback detecting apparatus according to another embodiment of the present invention.
实鮮发明的方式 The way of the invention
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发明实施例中 的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例 是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技 术人员在没有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范 围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图 1为本发明一实施例提供的环回检测方法的流程示意图, 如图 1所示, 本实施例 的环回检测方法可以包括:  FIG. 1 is a schematic flowchart of a loopback detection method according to an embodiment of the present invention. As shown in FIG. 1, the loopback detection method in this embodiment may include:
101、 将接收到的第一业务报文中所包含的源 MAC地址和 VLAN标识信息, 以及 接收到上述第一业务报文的端口标识信息, 写入 MAC地址表, 并在上述 MAC地址表 中将对应的环回指示标识设置为第一状态;  101. Write the source MAC address and VLAN identification information included in the received first service packet, and the port identifier information of the first service packet, into the MAC address table, and in the MAC address table. Setting the corresponding loopback indication identifier to the first state;
102、 若接收到的第二业务报文中所包含的源 MAC地址和 VLAN标识信息与上述 102. The source MAC address and VLAN identifier information included in the received second service packet are as follows.
MAC地址表中的上述第一业务报文中所包含的源 MAC地址和 VLAN标识信息相同, 以及接收到上述第二业务报文的端口与上述 MAC地址表中的上述端口标识信息对应的 端口不同, 且上述环回指示标识为第一状态, 则确定上述第二业务报文为环回报文。 The source MAC address and the VLAN identifier information included in the first service packet in the MAC address table are the same, and the port that receives the second service packet is different from the port corresponding to the port identifier information in the MAC address table. And the loopback indication identifier is the first state, and the second service packet is determined to be a loop report.
可以理解的是: 本实施例中的环回指示标识并不能直接指示报文是否为环回报文, 而是需要根据接收到的报文在 MAC地址表中对应的环回指示标识是否为第一状态, 才 能够确定该报文为环回报文。  It can be understood that: the loopback indication identifier in this embodiment does not directly indicate whether the packet is a loopback message, but needs to indicate whether the identifier is the first according to the loopback indication corresponding to the received packet in the MAC address table. The status can be used to determine that the message is a ring report.
本实施例中的 101和 102的执行主体可以为传输节点。在传输节点确定业务报文为 环回报文之后, 可以通过告警的方式通知用户, 网络上存在环回, 用以提醒用户及时排 查。 进一步地, 传输节点还可以进一步丢弃环回报文, 用以避免该环回报文对网络造成 影响。 The execution bodies of 101 and 102 in this embodiment may be transit nodes. Determining the service packet at the transit node as After the loop returns the text, the user can be notified by means of an alarm. There is a loopback on the network to remind the user to check in time. Further, the transit node may further discard the ring report text to avoid the ring report text affecting the network.
进一步地, 101 之后, 还可以在预先设置的预设时间 (例如: 100ms ) 内, 在上述 MAC 地址表中将上述环回指示标识设置为第二状态。 具体地, 上述预设时间可以根据 实际需要进行设置,例如:考虑到主机位置的迁移情况,可以根据主机迁移的经验时间, 确定该预设时间具体的数值范围。 那么, 在传输节点在上述 MAC地址表中将上述环回 指示标识设置为第二状态之后, 如果传输节点接收到的第二业务报文中所包含的源 MAC地址和 VLAN标识信息与上述 MAC地址表中的上述第一业务报文中所包含的源 MAC地址和 VLAN标识信息相同, 以及接收到上述第二业务报文的端口与上述 MAC 地址表中的上述端口标识信息对应的端口不同, 但是, 由于此时上述环回指示标识为第 二状态, 那么则可以说明是主机位置进行了正常迁移, 传输节点重新执行 101, 进行业 务报文的学习过程。  Further, after 101, the loopback indication flag may be set to the second state in the MAC address table in a predetermined preset time (for example, 100 ms). Specifically, the preset time may be set according to actual needs. For example, considering the migration of the host location, the specific value range of the preset time may be determined according to the experience time of the host migration. Then, after the transit node sets the loopback indication identifier to the second state in the MAC address table, if the source MAC address and VLAN identifier information included in the second service packet received by the transit node and the MAC address are The source MAC address and the VLAN identification information included in the first service packet in the table are the same, and the port that receives the second service packet is different from the port corresponding to the port identifier information in the MAC address table, but If the loopback indication is set to the second state at this time, it can be stated that the host location is normally migrated, and the transit node re-executes 101 to perform the service packet learning process.
可选地, 传输节点在 MAC地址表中将对应的环回指示标识设置为第一状态, 具体 可以是, 传输节点在 MAC地址表中将对应的环回指示标识的值可以设置为 1, 即传输 节点在 MAC地址表中将对应的环回指示标识可以设置为置位状态; 相应地, 传输节点 在 MAC地址表中将上述环回指示标识设置为第二状态,具体可以是,传输节点在 MAC 地址表中将上述环回指示标识的值可以设置为 0, 即传输节点在 MAC地址表中将对应 的环回指示标识可以设置为未置位状态。 反之亦然。  Optionally, the transit node sets the corresponding loopback indication identifier to the first state in the MAC address table, and specifically, the transit node may set the value of the corresponding loopback indication identifier to 1 in the MAC address table, that is, The transit node sets the corresponding loopback indication identifier to the set state in the MAC address table. Correspondingly, the transport node sets the loopback indication identifier to the second state in the MAC address table, specifically, the transport node is The value of the loopback indication identifier in the MAC address table may be set to 0, that is, the transit node may set the corresponding loopback indication identifier to the unset state in the MAC address table. vice versa.
本实施例中,通过在业务报文学习过程中,将对应的环回指示标识设置为置位状态, 从而使得在后续的业务报文处理过程中, 能够根据接收到的报文对应的环回指示标识准 确确定该报文是否为环回报文, 从而提高环回检测的准确性和可靠性。 此外, 由于没有 引入额外的检测报文, 所以不会额外占用网络的带宽, 从而不会影响业务的正常进行。  In this embodiment, the loopback indication flag is set to the set state in the service packet learning process, so that the loopback corresponding to the received packet can be obtained in the subsequent service packet processing process. The indication identifier accurately determines whether the message is a loop report, thereby improving the accuracy and reliability of the loopback detection. In addition, since no additional detection packets are introduced, the bandwidth of the network is not additionally occupied, so that the normal operation of the service is not affected.
需要说明的是: 对于前述的各方法实施例, 为了简单描述, 故将其都表述为一系列 的动作组合, 但是本领域技术人员应该知悉, 本发明并不受所描述的动作顺序的限制, 因为依据本发明, 某些步骤可以采用其他顺序或者同时进行。 其次, 本领域技术人员也 应该知悉, 说明书中所描述的实施例均属于优选实施例, 所涉及的动作和模块并不一定 是本发明所必须的。  It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分, 可以参见其他实施例的相关描述。 图 2为本发明另一实施例提供的环回检测装置的结构示意图, 如图 2所示, 本实施 例的环回检测装置可以包括学习单元 21和确定单元 22。其中,学习单元 21用于将接收 到的第一业务报文中所包含的源 MAC地址和 VLAN标识信息, 以及接收到上述第一业 务报文的第一端口的端口标识信息, 写入 MAC地址表, 并在上述 MAC地址表中将对 应的环回指示标识设置为第一状态; 确定单元 22用于若接收到的第二业务报文中所包 含的源 MAC地址和 VLAN标识信息与上述 MAC地址表中的上述第一业务报文中所包 含的源 MAC地址和 VLAN标识信息相同, 以及接收到上述第二业务报文的端口与上述 MAC 地址表中的上述端口标识信息对应的端口不同, 且上述环回指示标识为上述第一 状态, 则确定上述第二业务报文为环回报文。 In the above embodiments, the descriptions of the various embodiments are different, and the parts that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments. FIG. 2 is a schematic structural diagram of a loopback detecting apparatus according to another embodiment of the present invention. As shown in FIG. 2, the loopback detecting apparatus of this embodiment may include a learning unit 21 and a determining unit 22. The learning unit 21 is configured to write the source MAC address and the VLAN identification information included in the received first service packet, and the port identifier information of the first port that receives the first service packet, into the MAC address. a table, and setting a corresponding loopback indication identifier to the first state in the foregoing MAC address table; the determining unit 22 is configured to: if the received source MAC address and VLAN identifier information included in the second service packet, and the MAC address The source MAC address and the VLAN identifier information included in the first service packet in the address table are the same, and the port that receives the second service packet is different from the port corresponding to the port identifier information in the MAC address table. And the loopback indication identifier is the foregoing first state, and determining that the second service packet is a ring report text.
上述图 1对应的实施例中的方法可以由本实施例提供的环回检测装置实现。  The method in the embodiment corresponding to the above FIG. 1 can be implemented by the loopback detecting device provided in this embodiment.
进一步地,本实施例中的学习单元 21还可以进一步用于在预先设置的预设时间内, 在上述 MAC地址表中将上述环回指示标识设置为第二状态。  Further, the learning unit 21 in this embodiment may be further configured to set the loopback indication identifier to the second state in the MAC address table in a preset preset time.
可选地,学习单元 21在 MAC地址表中将对应的环回指示标识设置为第一状态,具 体可以是, 学习单元 21在 MAC地址表中将对应的环回指示标识的值可以设置为 1, 即 学习单元 21在 MAC地址表中将对应的环回指示标识可以设置为置位状态;相应地,学 习单元 21在 MAC地址表中将上述环回指示标识设置为第二状态,具体可以是,学习单 元 21在 MAC地址表中将上述环回指示标识的值可以设置为 0, 即学习单元 21在 MAC 地址表中将对应的环回指示标识可以设置为未置位状态。 反之亦然。  Optionally, the learning unit 21 sets the corresponding loopback indication identifier to the first state in the MAC address table. Specifically, the learning unit 21 may set the value of the corresponding loopback indication identifier to 1 in the MAC address table. The learning unit 21 can set the corresponding loopback indication identifier to the set state in the MAC address table. Accordingly, the learning unit 21 sets the loopback indication identifier to the second state in the MAC address table, which may be specifically The learning unit 21 may set the value of the loopback indication identifier to 0 in the MAC address table, that is, the learning unit 21 may set the corresponding loopback indication identifier to the unset state in the MAC address table. vice versa.
本实施例中, 通过学习单元在业务报文学习过程中, 将对应的环回指示标识设置为 置位状态, 从而使得确定单元在后续的业务报文处理过程中, 能够根据接收到的报文对 应的环回指示标识准确确定该报文是否为环回报文, 从而提高环回检测的准确性和可靠 性。 此外, 由于没有引入额外的检测报文, 所以不会额外占用网络的带宽, 从而不会影 响业务的正常进行。  In this embodiment, the learning unit sets the corresponding loopback indication identifier to the set state in the service packet learning process, so that the determining unit can receive the received packet according to the received service packet processing process. The corresponding loopback indication identifier accurately determines whether the packet is a loopback text, thereby improving the accuracy and reliability of the loopback detection. In addition, since no additional detection packets are introduced, the bandwidth of the network is not additionally occupied, so that the normal operation of the service is not affected.
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描述的系统, 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应过程, 在此不再赘述。  A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统, 装置和方法, 可以 通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性的, 例如, 所述单 元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外的划分方式, 例如多个单 元或组件可以结合或者可以集成到另一个系统, 或一些特征可以忽略, 或不执行。 另一 点, 所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口, 装置 或单元的间接耦合或通信连接, 可以是电性, 机械或其它的形式。 In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. Alternatively, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interface, device Or an indirect coupling or communication connection of the unit, which may be in electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作为单元显示 的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个 网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的 目的。  The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, i.e., may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是 各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元中。 上述集成的单 元既可以采用硬件的形式实现, 也可以采用软件功能单元的形式实现。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的技术方案本质上 或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形 式体现出来, 该计算机软件产品存储在一个存储介质中, 包括若干指令用以使得一台计 算机设备 (可以是个人计算机, 服务器, 或者传输节点等)执行本发明各个实施例所述 方法的全部或部分步骤。而前述的存储介质包括: U盘、移动硬盘、只读存储器(ROM, Read-Only Memory ) 随机存取存储器 (RAM, Random Access Memory)、 磁碟或者光 盘等各种可以存储程序代码的介质。  The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or transit node, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a Read-Only Memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其限制; 尽管 参照前述实施例对本发明进行了详细的说明, 本领域的普通技术人员应当理解: 其依然 可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分技术特征进行等同替 换; 而这些修改或者替换, 并不使相应技术方案的本质脱离本发明各实施例技术方案的 精神和范围。  It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

权利要求 Rights request
1、 一种环回检测方法, 其特征在于, 包括: A loopback detection method, comprising:
将接收到的第一业务报文中所包含的源 MAC地址和 VLAN标识信息, 以及接收到 所述第一业务报文的端口标识信息, 写入 MAC地址表, 并在所述 MAC地址表中将对 应的环回指示标识设置为第一状态;  And the source MAC address and the VLAN identification information included in the received first service packet, and the port identification information of the first service packet, are written into the MAC address table, and are in the MAC address table. Setting the corresponding loopback indication identifier to the first state;
若接收到的第二业务报文中所包含的源 MAC地址和 VLAN标识信息与所述 MAC 地址表中的所述第一业务报文中所包含的源 MAC地址和 VLAN标识信息相同, 以及接 收到所述第二业务报文的端口与所述 MAC地址表中的所述端口标识信息对应的端口不 同, 且所述环回指示标识为所述第一状态, 则确定所述第二业务报文为环回报文。  And if the source MAC address and the VLAN identifier information included in the received second service packet are the same as the source MAC address and the VLAN identifier information included in the first service packet in the MAC address table, and received And the second service packet is determined to be different from the port corresponding to the port identifier information in the MAC address table, and the loopback indication identifier is the first state. The text is the ring return text.
2、根据权利要求 1所述的方法, 其特征在于, 所述在所述 MAC地址表中将对应的 环回指示标识设置为第一状态, 包括:  The method according to claim 1, wherein the setting the corresponding loopback indication identifier to the first state in the MAC address table includes:
在所述 MAC地址表中将对应的环回指示标识的值设置为 1 ; 或者  Setting a value of the corresponding loopback indication identifier to 1 in the MAC address table; or
在所述 MAC地址表中将对应的环回指示标识的值设置为 0。  The value of the corresponding loopback indication identifier is set to 0 in the MAC address table.
3、根据权利要求 1或 2所述的方法, 其特征在于, 所述在所述 MAC地址表中将对 应的环回指示标识设置为第一状态, 之后还包括:  The method according to claim 1 or 2, wherein the setting of the corresponding loopback indication identifier in the MAC address table is set to a first state, and further comprising:
在预先设置的预设时间内, 在所述 MAC地址表中将所述环回指示标识设置为第二 状态。  The loopback indication flag is set to the second state in the MAC address table within a preset preset time.
4、根据权利要求 3所述的方法, 其特征在于, 所述在所述 MAC地址表中将所述环 回指示标识设置为第二状态, 包括:  The method according to claim 3, wherein the setting the loopback indication identifier to the second state in the MAC address table includes:
在所述 MAC地址表中将所述环回指示标识的值设置为 0; 或者  Setting the value of the loopback indication identifier to 0 in the MAC address table; or
在所述 MAC地址表中将所述环回指示标识的值设置为 1。  The value of the loopback indication identifier is set to 1 in the MAC address table.
5、 一种环回检测装置, 其特征在于, 包括:  5. A loopback detecting device, comprising:
学习单元,用于将接收到的第一业务报文中所包含的源 MAC地址和 VLAN标识信 息, 以及接收到所述第一业务报文的第一端口的端口标识信息, 写入 MAC地址表, 并 在所述 MAC地址表中将对应的环回指示标识设置为第一状态;  a learning unit, configured to write the source MAC address and the VLAN identification information included in the received first service packet, and the port identification information of the first port that receives the first service packet into the MAC address table. And setting a corresponding loopback indication identifier to the first state in the MAC address table;
确定单元,用于若接收到的第二业务报文中所包含的源 MAC地址和 VLAN标识信 息与所述 MAC地址表中的所述第一业务报文中所包含的源 MAC地址和 VLAN标识信 息相同, 以及接收到所述第二业务报文的端口与所述 MAC地址表中的所述端口标识信 息对应的端口不同, 且所述环回指示标识为所述第一状态, 则确定所述第二业务报文为 环回报文。 a determining unit, configured to: if the source MAC address and VLAN identifier information included in the received second service packet, and the source MAC address and the VLAN identifier included in the first service packet in the MAC address table If the information is the same, and the port that receives the second service packet is different from the port corresponding to the port identification information in the MAC address table, and the loopback indication identifier is the first state, The second service message is a loop report text.
6、 根据权利要求 5所述的装置, 其特征在于, 所述学习单元具体用于 将接收到的第一业务报文中所包含的源 MAC地址和 VLAN标识信息, 以及接收到 所述第一业务报文的第一端口的端口标识信息, 写入 MAC地址表, 并在所述 MAC地 址表中将对应的环回指示标识的值设置为 1 ; 或者 The apparatus according to claim 5, wherein the learning unit is specifically configured to: receive source MAC address and VLAN identification information included in the received first service packet, and receive the first The port identification information of the first port of the service packet is written into the MAC address table, and the value of the corresponding loopback indication identifier is set to 1 in the MAC address table; or
将接收到的第一业务报文中所包含的源 MAC地址和 VLAN标识信息, 以及接收到 所述第一业务报文的第一端口的端口标识信息, 写入 MAC地址表, 并在所述 MAC地 址表中将对应的环回指示标识的值设置为 0。  And the source MAC address and the VLAN identification information included in the received first service packet, and the port identification information of the first port that receives the first service packet are written into the MAC address table, and The value of the corresponding loopback indication identifier is set to 0 in the MAC address table.
7、 根据权利要求 5或 6所述的装置, 其特征在于, 所述学习单元还用于 在预先设置的预设时间内, 在所述 MAC地址表中将所述环回指示标识设置为第二 状态。  The device according to claim 5 or 6, wherein the learning unit is further configured to set the loopback indication identifier to be in the MAC address table in a preset preset time. Two states.
8、 根据权利要求 7所述的装置, 其特征在于, 所述学习单元具体还用于 在预先设置的预设时间内, 在所述 MAC地址表中将所述环回指示标识的值设置为 0; 或者  The device according to claim 7, wherein the learning unit is further configured to set the value of the loopback indication identifier in the MAC address table to a predetermined preset time. 0; or
在预先设置的预设时间内, 在所述 MAC地址表中将所述环回指示标识的值设置为 1。  The value of the loopback indication identifier is set to 1 in the MAC address table within a preset preset time.
PCT/CN2012/075810 2011-05-27 2012-05-21 Loopback detection method and apparatus WO2012163233A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110140691.1 2011-05-27
CN201110140691.1A CN102801575B (en) 2011-05-27 2011-05-27 Loopback detecting method and device

Publications (1)

Publication Number Publication Date
WO2012163233A1 true WO2012163233A1 (en) 2012-12-06

Family

ID=47200548

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/075810 WO2012163233A1 (en) 2011-05-27 2012-05-21 Loopback detection method and apparatus

Country Status (2)

Country Link
CN (1) CN102801575B (en)
WO (1) WO2012163233A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160072694A1 (en) * 2014-09-04 2016-03-10 Accedian Networks Inc. System and method for loopback and network loop detection and analysis

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103457797B (en) * 2013-08-29 2016-12-28 杭州华三通信技术有限公司 The detection method of a kind of RCPU port effectiveness and equipment
TWI514821B (en) * 2014-02-26 2015-12-21 Accton Technology Corp Network devices and loopback detection methods
CN106549821B (en) * 2015-09-23 2021-01-01 华为技术有限公司 Network loop detection method and controller
CN107800581B (en) * 2016-09-01 2022-03-18 中兴通讯股份有限公司 Two-layer network and loopback detection method thereof
CN107171952B (en) * 2017-04-06 2019-10-11 烽火通信科技股份有限公司 A kind of method and apparatus for realizing anti-ring in VPLS

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988476A (en) * 2006-12-19 2007-06-27 武汉烽火网络有限责任公司 Method and device for self adaptive quick loop detection and loop blocking
CN101102236A (en) * 2007-08-27 2008-01-09 杭州华三通信技术有限公司 Method and device for detecting loop
US20100020809A1 (en) * 2008-07-25 2010-01-28 Micrel, Inc. True Ring Networks Using Tag VLAN Filtering
CN101707538A (en) * 2009-11-25 2010-05-12 烽火通信科技股份有限公司 Method for detecting and automatically recovering Ethernet loopback

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7515530B2 (en) * 2004-03-25 2009-04-07 Alcatel-Lucent Usa Inc. Detecting loops between network devices by monitoring MAC moves
JP4297437B2 (en) * 2004-08-25 2009-07-15 日本電信電話株式会社 Method and program for detecting loop of bridge device, and bridge device
CN101179455A (en) * 2007-12-07 2008-05-14 中兴通讯股份有限公司 Method and system for implementing VLAN based port loop detection
CN101404599B (en) * 2008-11-12 2011-05-04 华为技术有限公司 Network fault detection method, primary device, slave device, control terminal and system
CN102045218B (en) * 2010-12-07 2012-11-07 成都市华为赛门铁克科技有限公司 Loop detection method and firewall device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988476A (en) * 2006-12-19 2007-06-27 武汉烽火网络有限责任公司 Method and device for self adaptive quick loop detection and loop blocking
CN101102236A (en) * 2007-08-27 2008-01-09 杭州华三通信技术有限公司 Method and device for detecting loop
US20100020809A1 (en) * 2008-07-25 2010-01-28 Micrel, Inc. True Ring Networks Using Tag VLAN Filtering
CN101707538A (en) * 2009-11-25 2010-05-12 烽火通信科技股份有限公司 Method for detecting and automatically recovering Ethernet loopback

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160072694A1 (en) * 2014-09-04 2016-03-10 Accedian Networks Inc. System and method for loopback and network loop detection and analysis
US9660896B2 (en) * 2014-09-04 2017-05-23 Accedian Networks Inc. System and method for loopback and network loop detection and analysis
US10038620B2 (en) 2014-09-04 2018-07-31 Accedian Networks Inc. System and method for loopback and network loop detection and analysis
US10419325B2 (en) 2014-09-04 2019-09-17 Accedian Networks Inc. System and method for loopback and network loop detection and analysis
US20210111983A1 (en) * 2014-09-04 2021-04-15 Accedian Networks Inc. System and method for loopback and network loop detection and analysis
US11516108B2 (en) * 2014-09-04 2022-11-29 Accedian Networks Inc. System and method for loopback and network loop detection and analysis

Also Published As

Publication number Publication date
CN102801575A (en) 2012-11-28
CN102801575B (en) 2015-04-08

Similar Documents

Publication Publication Date Title
WO2012163233A1 (en) Loopback detection method and apparatus
US20210126830A1 (en) Collection of error packet information for network policy enforcement
CN108111432B (en) Message forwarding method and device
KR101770498B1 (en) Method and device for checking health of link
US10833952B2 (en) Introducing latency and delay for test or debug purposes in a SAN environment
US20170124231A1 (en) Introducing Latency and Delay in a SAN Environment
US20150358272A1 (en) Method and apparatus for message transmission
EP3451592B1 (en) Packet transmission between vxlan domains
US9432290B2 (en) Port negotiation between FCoE forwarders
CN106201769B (en) Server system, non-provisional computer-readable recording mediums and the method to enhance the memory fault-tolerant rate in server system
CN112367257B (en) Route notification method and device
CN109462515A (en) Loop circuit processing method, the network equipment, MLAG networking and storage medium
CN101834781B (en) Media access control address keep-alive device and method for convergence port
US10541874B2 (en) Method and system for spanning tree protocol role protection
US20120233245A1 (en) Voip communication system and method for registering client devices with same
US20140160952A1 (en) Detecting and isolating dropped or out-of-order packets in communication networks
US20170257313A1 (en) Methods, Routing Device and Further Routing Device for Managing Data Frames In Switched Networks
JP2018116677A (en) System recovery using WOL
US10659348B2 (en) Holding of a link in an optical interface by a lower level processor until authorization is received from an upper level processor
EP2840738B1 (en) Mep configuration method and network device
US20160149800A1 (en) Routing Loop Determining Method and Device
CN110912760B (en) Link state detection method and device
US9094341B2 (en) Method and device for updating port index, and multi-device system
WO2019007139A1 (en) Method, device, and system for implementing fault detection
US9444891B2 (en) Data migration in a storage network

Legal Events

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

Ref document number: 12793886

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12793886

Country of ref document: EP

Kind code of ref document: A1