Method and apparatus for searching for maintenance end point (MEP), and storage medium
AssigneeSuzhou Centec Communications Co., Ltd.
InventorsZhichuan He, Wei Gu, Maocong Zhao, Jie Zhou, Haiqing Xu
Life of this patent
Estimating the term…
Abstract
Provided is a method and apparatus for searching for a Maintenance End Point (MEP), and a storage medium. The method includes that: a chip of the MEP parses an obtained packet; the chip of the MEP determines whether a field of the parsed packet matches a field in a combination of a port and a Virtual Local Area Network (VLAN); and in a case where the field of the parsed packet matches the field in the combination of the port and the VLAN, the chip of the MEP determines that the MEP is found successfully.
Claims14
A method for searching for a Maintenance End Point (MEP), the method comprising:
- parsing, by a chip of the MEP, an obtained packet;
- determining, by the chip of the MEP, whether a field of the parsed packet matches a field in a combination of a port and a Virtual Local Area Network (VLAN);
- in a case where the field of the parsed packet matches the field in the combination of the port and the VLAN, determining, by the chip of the MEP, that the MEP is found successfully;
- comparing, by the chip of the MEP after it is determined that the MEP is found successfully, a maintenance domain level value of the parsed packet, whose field matches the field in the combination of the port and the VLAN, with a preset maintenance domain level value;
- and
- performing, by the chip of the MEP, a corresponding packet processing operation according to the comparison result, wherein performing, by the chip of the MEP, the corresponding packet processing operation according to the comparison result comprises:
- in a case where the maintenance domain level value of the parsed packet, whose field matches the field in the combination of the port and the VLAN, is greater than the preset maintenance domain level value, transparently transmitting, by the chip of the MEP, the parsed packet whose field matches the field in the combination of the port and the VLAN;
- in a case where the maintenance domain level value of the parsed packet, whose field matches the field in the combination of the port and the VLAN, is equal to the preset maintenance domain level value, identifying, by the chip of the MEP, the parsed packet whose field matches the field in the combination of the port and the VLAN as an Operation Administration and Maintenance (OAM) packet;
- in a case where the maintenance domain level value of the parsed packet, whose field matches the field in the combination of the port and the VLAN, is less than the preset maintenance domain level value, interrupting, by the chip of the MEP, transmission of the parsed packet whose field matches the field in the combination of the port and the VLAN.
An apparatus for searching for a Maintenance End Point (MEP), applied to a chip of the MEP and comprising a memory storing instructions and a processor in communication with the memory, wherein the processor is configured to execute the instructions to:
- parse an obtained packet;
- determine whether a field of the parsed packet matches a field in a combination of a port and a Virtual Local Area Network (VLAN);
- determine, in a case where the field of the parsed packet matches the field in the combination of the port and the VLAN, that the MEP is found successfully;
- compare, after it is determined that the MEP is found successfully, a maintenance domain level value of the parsed packet, whose field matches the field in the combination of the port and the VLAN, with a preset maintenance domain level value;
- and
- perform a corresponding packet processing operation according to the comparison result, wherein the processor, when being configured to execute the instructions to perform the corresponding packet processing operation according to the comparison result, is configured to:
- in a case where the maintenance domain level value of the parsed packet, whose field matches the field in the combination of the port and the VLAN, is greater than the preset maintenance domain level value, transparently transmit the parsed packet whose field matches the field in the combination of the port and the VLAN;
- in a case where the maintenance domain level value of the parsed packet, whose field matches the field in the combination of the port and the VLAN, is equal to the preset maintenance domain level value, identify the parsed packet whose field matches the field in the combination of the port and the VLAN as an Operation Administration and Maintenance (OAM) packet;
- in a case where the maintenance domain level value of the parsed packet, whose field matches the field in the combination of the port and the VLAN, is less than the preset maintenance domain level value, interrupt transmission of the parsed packet whose field matches the field in the combination of the port and the VLAN.
A non-transitory computer-readable storage medium, storing a computer program, wherein the computer program is configured to execute, at runtime, the following operations:
- parsing, by a chip of the MEP, an obtained packet;
- determining, by the chip of the MEP, whether a field of the parsed packet matches a field in a combination of a port and a Virtual Local Area Network (VLAN;
- in a case where the field of the parsed packet matches the field in the combination of the port and the VLAN, determining, by the chip of the MEP, that the MEP is found successfully;
- comparing, by the chip of the MEP after it is determined that the MEP is found successfully, a maintenance domain level value of the parsed packet, whose field matches the field in the combination of the port and the VLAN, with a preset maintenance domain level value;
- and
- performing, by the chip of the MEP, a corresponding packet processing operation according to the comparison result, wherein performing, by the chip of the MEP, the corresponding packet processing operation according to the comparison result comprises:
- in a case where the maintenance domain level value of the parsed packet, whose field matches the field in the combination of the port and the VLAN, is greater than the preset maintenance domain level value, transparently transmitting, by the chip of the MEP, the parsed packet whose field matches the field in the combination of the port and the VLAN;
- in a case where the maintenance domain level value of the parsed packet, whose field matches the field in the combination of the port and the VLAN, is equal to the preset maintenance domain level value, identifying, by the chip of the MEP, the parsed packet whose field matches the field in the combination of the port and the VLAN as an Operation Administration and Maintenance (OAM) packet;
- in a case where the maintenance domain level value of the parsed packet, whose field matches the field in the combination of the port and the VLAN, is less than the preset maintenance domain level value, interrupting, by the chip of the MEP, transmission of the parsed packet whose field matches the field in the combination of the port and the VLAN.
Dependencies are inferred from the claim text.