CN108234241B - Channel detection method and access device - Google Patents
Channel detection method and access device Download PDFInfo
- Publication number
- CN108234241B CN108234241B CN201711484064.3A CN201711484064A CN108234241B CN 108234241 B CN108234241 B CN 108234241B CN 201711484064 A CN201711484064 A CN 201711484064A CN 108234241 B CN108234241 B CN 108234241B
- Authority
- CN
- China
- Prior art keywords
- protocol standard
- identifier
- protocol
- message
- channel detection
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- 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/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Communication Control (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a channel detection method and access equipment, through setting the channel detection method, the channel detection can be realized between two access equipments supporting different protocol standards without changing the hardware structure of the original access equipment, so that the channel detection method becomes simple and efficient, and the channel detection between different access equipments in a new network environment is effectively solved; in addition, the method provided by the embodiment of the invention does not need to understand the content of the first protocol standard channel detection message, and only needs to find the corresponding second protocol standard protocol conversion message in the mapping table according to the first identifier of the first protocol standard channel detection message, so that the conversion efficiency of the first protocol standard channel detection message can be greatly improved, and the channel detection capability can be favorably improved.
Description
Technical Field
The present invention relates to the field of channel detection technologies, and in particular, to a channel detection method and an access device.
Background
In order to ensure the reliability of the service between the clients, a redundant backup channel, i.e., a backup channel, is generally provided to avoid the problems of packet loss or service interruption when the main channel fails, and to improve the reliability of the service. As shown in the schematic diagram of the network structure of the private line service shown in fig. 1, an end-to-end private line service needs to pass through an access layer device 1, a convergence layer device 2, and a core layer device (not shown), and since multiple devices pass through the middle, there are more fault points in the network, and a backup channel must be provided for a high-level service to ensure normal communication between the devices; wherein, a1 represents the main channel, a2 represents the standby channel, and when the performance of the main channel a1 is difficult to meet the service requirement, the main channel is switched to the standby channel a2 to continue service transmission. In general, when a channel is switched, it is determined whether the channel needs to be switched according to whether the detected channel is clear or not, so that channel detection is particularly important.
However, the channel detection capabilities supported by the access device in different network environments are different due to the difference of the performance requirements of different packet networks on the access device; for example, the access device of the ethernet packet network usually only supports the channel detection capability under the 802.1AG protocol standard because of its simple hardware structure design and low processing capability; a Packet Transport Network (PTN) and an IP radio access Network (IPRAN) Packet Network have a high requirement for hardware configuration of an access device, the PTN implements channel Detection based on a Transport-Operation and Administration and Maintenance (TP-OAM) Protocol standard, and the IPRAN implements channel Detection based on a Bidirectional Forwarding Protocol Detection (BFD) Protocol standard; the fault management functions implemented under the conventional 802.1AG protocol standard are no longer applicable to PTN and IPRAN packet networks.
In practical application, considering the maintenance cost of the packet network, it is often desirable to migrate the existing low-performance access device suitable for the ethernet packet network to the PTN or ip ran packet network, so that the low-performance access device has the same processing capability as the access device in the PTN or ip ran packet network; however, when there are two access devices with channel detection capabilities under different protocol standards in a packet network, how to implement channel detection becomes a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the invention provides a channel detection method and access equipment, which are used for solving the problem of how to realize channel detection when two access equipment with channel detection capability under different protocol standards exist in a packet network in the prior art.
The embodiment of the invention provides a channel detection method, which is applied to a first access device supporting a first protocol standard and comprises the following steps:
after a channel for transmitting a channel detection message with a second access device supporting a second protocol standard is established, and a mapping table between a first protocol standard protocol conversion message, a serial number and a second protocol standard protocol conversion message is established, determining a first protocol standard channel detection message carrying first identifications for marking different channels according to a first preset period;
searching a second protocol standard protocol conversion message which corresponds to the first identifier carried in the first protocol standard channel detection message and carries a second identifier with the same meaning as the first identifier according to the first identifier carried in the first protocol standard channel detection message and an established mapping table among the first protocol standard protocol conversion message, the serial number and the second protocol standard conversion message; the first identification and the second identification at least comprise numbers; the second protocol standard protocol conversion message is a channel detection message in accordance with a second protocol standard;
and acquiring a found second protocol standard protocol coordination transfer message carrying the second identifier, and sending the acquired second protocol standard coordination transfer message to the second access equipment through the channel corresponding to the second identifier, so that the second access equipment determines whether the channel corresponding to the second identifier is in a smooth state.
In a possible implementation manner, in the channel detection method provided in an embodiment of the present invention, the searching, according to a first identifier carried in the first protocol standard channel detection message and an established mapping table between the first protocol standard protocol translation packet, the number, and the second protocol standard protocol translation packet, for the second protocol standard protocol translation packet that corresponds to the first identifier carried in the first protocol standard channel detection message and carries a second identifier having the same meaning as the first identifier specifically includes:
extracting a first identifier carried in the first protocol standard channel detection message;
determining the extracted number in the first identifier;
and searching a second protocol standard protocol conversion message which corresponds to the number which is the same as the number in the determined first identifier and carries the second identifier in a mapping table established among the first protocol standard conversion message, the number and the second protocol standard conversion message according to the number in the determined first identifier.
In a possible implementation manner, in the channel detection method provided in the embodiment of the present invention, the determining, according to a first preset period, a first protocol standard channel detection packet carrying a first identifier for marking different channels specifically includes:
determining a first protocol standard channel detection message carrying first identifications used for marking different channels according to a first preset period through a preset first protocol standard channel detection entity.
In a possible implementation manner, in the channel detection method provided in this embodiment of the present invention, after establishing a channel for performing channel detection packet transmission with a second access device supporting a second protocol standard, and establishing a mapping table between a first protocol standard negotiation packet, a number, and a second protocol standard negotiation packet, the method further includes:
when a second protocol standard channel detection message carrying a second identifier and sent by the second access equipment through a channel corresponding to the second identifier according to a second preset period is determined to be received, searching a first protocol standard protocol conversion message which corresponds to the second identifier carried in the second protocol standard channel detection message and carries a first identifier with the same meaning as the second identifier according to the second identifier carried in the second protocol standard channel detection message and a mapping table which is established in advance among the first protocol standard conversion message, the serial number and the second protocol standard conversion message; the first protocol standard protocol conversion message is a channel detection message in accordance with a first protocol standard;
and acquiring a found first protocol standard cooperation message carrying the first identifier and sending the first protocol standard cooperation message to the first protocol standard channel detection entity, so that the first protocol standard channel detection entity determines whether the state of a channel corresponding to the first identifier is in a smooth state.
In a possible implementation manner, in the channel detection method provided in an embodiment of the present invention, the searching, according to the second identifier carried in the second protocol standard channel detection message and a mapping table pre-established between the first protocol standard protocol translation packet, the number, and the second protocol standard protocol translation packet, the first protocol standard protocol translation packet that corresponds to the second identifier carried in the second protocol standard channel detection message and carries the first identifier having the same meaning as the second identifier specifically includes:
extracting a second identifier carried in the second protocol standard detection message;
determining the extracted number in the second identifier;
and searching a first protocol standard protocol conversion message which corresponds to the number which is the same as the number in the determined second identifier and carries the first identifier in a mapping table established among the first protocol standard protocol conversion message, the number and the second protocol standard protocol conversion message according to the number in the determined second identifier.
In a possible implementation manner, in the channel detection method provided in this embodiment of the present invention, before the establishing a mapping table between the first protocol standard protocol translation packet, the number, and the second protocol standard protocol translation packet, the method further includes:
respectively determining a first identifier and a second identifier for marking different channels according to the same determination rule;
and determining a third identifier used for marking different channels in the second access equipment.
In a possible implementation manner, in the channel detection method provided in an embodiment of the present invention, the establishing a mapping table between a first protocol standard protocol translation packet, a number, and a second protocol standard protocol translation packet specifically includes:
respectively determining the sending parameters of the first protocol standard channel detection message in the first access device and the sending parameters of the second protocol standard channel detection message in the second access device;
determining a second protocol standard channel detection message used for replacing the first protocol standard channel detection message according to the determined first identifier, the second identifier and the third identifier and the sending parameter of the second protocol standard channel detection message, wherein the first identifier carried by the first protocol standard channel detection message is the same as the second identifier carried by the second protocol standard channel detection message replacing the first protocol standard channel detection message;
determining a first protocol standard protocol conversion message for replacing the received second protocol standard detection message according to the determined first identifier and the second identifier and the sending parameter of the first protocol standard channel detection message, wherein the second identifier carried by the second protocol standard detection message is the same as the first identifier carried by the first protocol standard protocol conversion message for replacing the second protocol standard detection message;
and establishing a mapping table among the first protocol standard protocol conversion message, the serial number and the second protocol standard protocol conversion message according to the determined second protocol standard protocol conversion message, the first identifier and the second identifier.
In a possible implementation manner, in the above channel detection method provided in the embodiment of the present invention, the first protocol standard is an 802.1AG protocol standard; the second protocol standard is a bidirectional forwarding protocol detection (BFD) protocol standard or a TP-OAM protocol standard for operation management maintenance.
On the other hand, an embodiment of the present invention further provides a channel detection method, which is applied to a second access device supporting a second protocol standard, and includes:
after a channel used for carrying out channel detection message transmission with first access equipment supporting a first protocol standard is established, determining whether a second protocol standard protocol conversion message which is sent by the first access equipment through a channel corresponding to a second identifier used for marking different channels according to a first preset period and carries the second identifier is received; the second protocol standard protocol conversion message is a channel detection message in accordance with a second protocol standard;
when the second protocol standard coordination message sent through the channel corresponding to the second identifier is not received in three consecutive first preset periods, determining that the state of the channel corresponding to the second identifier is an interruption state;
and when the second protocol standard protocol conversion messages sent through the channel corresponding to the second identifier are received in three consecutive first preset periods, determining that the state of the channel corresponding to the second identifier is a smooth state.
In a possible implementation manner, in the channel detection method provided in this embodiment of the present invention, after a channel for performing channel detection packet transmission with a first access device supporting a first protocol standard is established, the method further includes:
and sending a second protocol standard detection message carrying the second identifier to the first access equipment through a channel corresponding to the second identifier according to a second preset period, so that the first access equipment determines whether the channel corresponding to the second identifier is in a smooth state.
In a possible implementation manner, in the channel detection method provided in the embodiment of the present invention, before determining whether to receive a second protocol standard protocol forwarding packet that is sent by the first access device through a channel corresponding to a second identifier for marking a different channel according to a first preset period and carries the second identifier, and before sending a second protocol standard detection packet that carries the second identifier to the first access device through a channel corresponding to the second identifier according to a second preset period, the method further includes:
and determining a second identifier used for marking different channels in the first access equipment.
On the other hand, an embodiment of the present invention further provides an access device, which supports a first protocol standard, and includes: the device comprises a mapping table establishing module, a message determining module, a searching module and a sending module;
the mapping table establishing module is used for establishing a mapping table among the first protocol standard protocol conversion message, the serial number and the second protocol standard protocol conversion message after establishing a channel for carrying out channel detection message transmission with the second access equipment supporting the second protocol standard;
the message determining module is used for determining a first protocol standard channel detection message carrying first identifications for marking different channels according to a first preset period; acquiring a searched second protocol standard protocol conversion message carrying the second identifier;
the searching module is used for searching a second protocol standard protocol conversion message which corresponds to a first identifier carried in the first protocol standard channel detection message and carries a second identifier with the same meaning as the first identifier according to the first identifier carried in the first protocol standard channel detection message and the established mapping table among the first protocol standard protocol conversion message, the serial number and the second protocol standard conversion message; the first identification and the second identification at least comprise numbers; the second protocol standard protocol conversion message is a channel detection message in accordance with a second protocol standard;
the sending module is configured to send the obtained second protocol standard protocol coordination message to the second access device through the channel corresponding to the second identifier, so that the second access device determines whether the channel corresponding to the second identifier is in an unobstructed state.
In a possible implementation manner, in the access device provided in the embodiment of the present invention, the search module is specifically configured to extract a first identifier carried in the first protocol standard channel detection message; determining the extracted number in the first identifier; and searching a second protocol standard protocol conversion message which corresponds to the number which is the same as the number in the determined first identifier and carries the second identifier in a mapping table established among the first protocol standard conversion message, the number and the second protocol standard conversion message according to the number in the determined first identifier.
In a possible implementation manner, in the access device provided in the embodiment of the present invention, the packet determining module is specifically configured to determine, according to a first preset period, a first protocol standard channel detection packet carrying a first identifier for marking different channels, through a preset first protocol standard channel detection entity.
In a possible implementation manner, in the access device provided in an embodiment of the present invention, the access device further includes: a channel determination module;
the searching module is further configured to, when it is determined that a second protocol standard channel detection packet carrying a second identifier and sent by the second access device through a channel corresponding to the second identifier according to a second preset period is received, search, according to the second identifier carried in the second protocol standard channel detection packet and a mapping table pre-established among the first protocol standard protocol translation packet, the number, and the second protocol standard protocol translation packet, the first protocol standard protocol translation packet which corresponds to the second identifier carried in the second protocol standard channel detection packet and carries the first identifier having the same meaning as the second identifier; the first protocol standard protocol conversion message is a channel detection message in accordance with a first protocol standard;
the message determining module is further configured to obtain the found first protocol standard protocol conversion message carrying the first identifier;
the sending module is further configured to send the obtained first protocol standard protocol conversion message carrying the first identifier to the channel determination module;
and the channel determining module is used for determining whether the state of the channel corresponding to the first identifier is a smooth state.
In a possible implementation manner, in the above access device provided in the embodiment of the present invention, the first protocol standard channel detection entity includes the channel determining module and the packet determining module.
In a possible implementation manner, in the access device provided in the embodiment of the present invention, the search module is specifically configured to extract a second identifier carried in the second protocol standard detection message; determining the extracted number in the second identifier; and searching a first protocol standard protocol conversion message which corresponds to the number which is the same as the number in the determined second identifier and carries the first identifier in a mapping table established among the first protocol standard protocol conversion message, the number and the second protocol standard protocol conversion message according to the number in the determined second identifier.
In a possible implementation manner, in the above access device provided in this embodiment of the present invention, before the establishing a mapping table between the first protocol standard protocol translation packet, the number, and the second protocol standard protocol translation packet, the method further includes: an identification determination module;
the identification determining module is used for respectively determining a first identification and a second identification which are used for marking different channels according to the same determining rule; and determining a third identifier used for marking different channels in the second access equipment.
In a possible implementation manner, in the access device provided in the embodiment of the present invention, the mapping table establishing module is specifically configured to respectively determine a sending parameter of the first protocol standard channel detection packet in the first access device and a sending parameter of the second protocol standard channel detection packet in the second access device; determining a second protocol standard channel detection message used for replacing the first protocol standard channel detection message according to the determined first identifier, the second identifier and the third identifier and the sending parameter of the second protocol standard channel detection message, wherein the first identifier carried by the first protocol standard channel detection message is the same as the second identifier carried by the second protocol standard channel detection message replacing the first protocol standard channel detection message; determining a first protocol standard protocol conversion message for replacing the received second protocol standard detection message according to the determined first identifier and the second identifier and the sending parameter of the first protocol standard channel detection message, wherein the second identifier carried by the second protocol standard detection message is the same as the first identifier carried by the first protocol standard protocol conversion message for replacing the second protocol standard detection message; and establishing a mapping table among the first protocol standard protocol conversion message, the serial number and the second protocol standard protocol conversion message according to the determined second protocol standard protocol conversion message, the first identifier and the second identifier.
In a possible implementation manner, in the access device provided in the embodiment of the present invention, the sending module forms a forwarding chip;
the first protocol standard channel detection entity is arranged in the forwarding chip;
the searching module forms a first processing chip;
the mapping table establishing module and the identification determining module form a second processing chip.
In a possible implementation manner, in the above access device provided in this embodiment of the present invention, before the establishing a mapping table between the first protocol standard protocol translation packet, the number, and the second protocol standard protocol translation packet, the method further includes: a path determination module;
when the first processing chip and the forwarding chip are set as bypasses, the path determining module is configured to set a transmission path of a first protocol standard channel detection packet, a second protocol standard channel detection packet, a first protocol standard protocol conversion packet, and a second protocol standard conversion packet between the first processing chip and the forwarding chip, respectively; or the like, or, alternatively,
and when the first processing chip and the forwarding chip are arranged in series, the path determining module is used for respectively intercepting the second protocol standard channel detection message received by the forwarding chip and the first protocol standard channel detection message determined by the first protocol standard channel detection entity.
In a possible implementation manner, in the access device provided in the embodiment of the present invention, the first protocol standard is an 802.1AG protocol standard; the second protocol standard is a bidirectional forwarding protocol detection (BFD) protocol standard or a TP-OAM protocol standard for operation management maintenance.
On the other hand, an embodiment of the present invention further provides an access device, which supports a second protocol standard, and includes: a channel determination module;
the channel determining module is configured to determine, after a channel for performing channel detection packet transmission with a first access device supporting a first protocol standard is established, whether a second protocol standard protocol co-rotation packet which is sent by the first access device through a channel corresponding to a second identifier for marking a different channel according to a first preset period and carries the second identifier is received; the second protocol standard protocol conversion message is a channel detection message in accordance with a second protocol standard; when the second protocol standard coordination message sent through the channel corresponding to the second identifier is not received in three consecutive first preset periods, determining that the state of the channel corresponding to the second identifier is an interruption state; and when the second protocol standard protocol conversion messages sent through the channel corresponding to the second identifier are received in three consecutive first preset periods, determining that the state of the channel corresponding to the second identifier is a smooth state.
In a possible implementation manner, in the access device provided in the embodiment of the present invention, after establishing a channel for performing channel detection packet transmission with a first access device supporting a first protocol standard, the method further includes: a sending module;
the sending module is configured to send a second protocol standard detection packet carrying the second identifier to the first access device through the channel corresponding to the second identifier according to a second preset period, so that the first access device determines whether the channel corresponding to the second identifier is in a clear state.
In a possible implementation manner, in the access device provided in an embodiment of the present invention, the access device further includes: an identification determination module;
the identifier determining module is configured to determine a second identifier used for marking a different channel in the first access device.
The invention has the following beneficial effects:
according to the channel detection method and the access device provided by the embodiment of the invention, the access device supporting the first protocol standard can send the second protocol standard protocol conversion message to the access device supporting the second protocol standard according to the established second protocol standard conversion message, the established mapping table between the serial number and the first protocol standard conversion message, so that the access device supporting the second protocol standard can realize the channel detection according to the second protocol standard conversion message, therefore, the method can realize the channel detection between two access devices supporting different protocol standards without changing the original hardware structure of the first access device, the channel detection method is simple and efficient, and the channel detection between different access devices under a new network environment is effectively solved; in addition, the method provided by the embodiment of the invention does not need to understand the content of the first protocol standard channel detection message, and only needs to find the corresponding second protocol standard protocol conversion message in the mapping table according to the first identifier of the first protocol standard channel detection message, so that the conversion efficiency of the first protocol standard channel detection message can be greatly improved, and the channel detection capability can be favorably improved.
Drawings
Fig. 1 is a schematic diagram of a network structure of a private line service in the prior art;
FIG. 2 is a flowchart of a channel detection method according to an embodiment of the present invention;
FIG. 3 is a second flowchart of a channel detection method according to an embodiment of the present invention;
fig. 4 to fig. 7 are schematic structural diagrams of an access device provided in an embodiment of the present invention;
FIG. 8 is a third flowchart of a channel detection method according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another access device provided in the embodiment of the present invention;
FIG. 10 is a flow chart of a method according to a first embodiment of the present invention;
FIG. 11 is a flowchart of an interaction of a first embodiment provided in an embodiment of the present invention;
FIG. 12 is a flow chart of a method of example two provided in an embodiment of the present invention;
FIG. 13 is an interaction flow diagram of embodiment two provided in an embodiment of the present invention;
FIG. 14 is a flow chart of a method of a third embodiment provided in an embodiment of the present invention;
FIG. 15 is an interaction flow diagram of a third embodiment provided in an embodiment of the present invention;
FIG. 16 is a flow chart of a method of a fourth embodiment provided in an embodiment of the present invention;
fig. 17 is an interaction flowchart of a fourth embodiment provided in the embodiments of the present invention.
Detailed Description
The following describes in detail a specific implementation of a channel detection method and an access device according to an embodiment of the present invention with reference to the accompanying drawings. It should be noted that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, in the embodiment of the present invention, the implementation is based on the characteristic that different channel detection protocols have locally the same characteristics; the 802.1AG protocol standard specifies: in one channel, CCM messages which are periodically sent and used for detecting whether the channel is unobstructed are the same; the BFD protocol standard and the TP-OAM protocol standard also stipulate that messages (the BFD protocol standard is corresponding to an UP message, and the TP-OAM protocol standard is corresponding to a CCM message) which are periodically sent in one channel and are used for detecting whether the channel is unobstructed are the same; according to the same characteristics of the three protocol standards in the message sending process, the channel detection capability of the BFD protocol standard or the TP-OAM protocol standard can be realized after the original channel detection method of the first access device supporting the 802.1AG protocol standard is simply improved, so that the access devices with different protocol standards can also realize channel detection. In the embodiment of the invention, the messages for detecting whether the channel is unobstructed are collectively called channel detection messages.
Therefore, an embodiment of the present invention provides a channel detection method, which is applied to a first access device supporting a first protocol standard, and as shown in fig. 2, the method may include:
s201, establishing a channel for carrying out channel detection message transmission with a second access device supporting a second protocol standard;
the channel established between the two access devices may be a Pseudo Wire (PW) layer channel, an IP channel, or other channels that can be used for channel detection by applying the method provided in the embodiment of the present invention, which is not limited herein.
It should be noted that, both the first protocol standard and the second protocol standard have a channel interrupt detection function, and there are consistent local features in the channel interrupt detection flows specified by the two protocol standards, where the local features specifically include a message sending feature: the channel interrupt detection message is sent periodically, and the contents of the channel interrupt detection message sent each time are the same.
Further, the local features may further include detection features: the detection mechanism for detecting the channel interruption according to the channel interruption detection message is the same. For example, the 802.1AG protocol standard specifies that CCM messages are lost for 3 consecutive periods, i.e., it is considered that a channel is interrupted or obstructed, and the BFD or TP-OAM protocol standard also performs such specification.
S202, establishing a mapping table among the first protocol standard protocol conversion message, the serial number and the second protocol standard protocol conversion message;
s203, according to a first preset period, determining a first protocol standard channel detection message carrying first identifications for marking different channels;
the channels correspond to the first identifiers one to one, that is, the first identifiers carried in the channel detection messages transmitted in one channel are the same, and the first identifiers carried in the channel detection messages transmitted in different channels are different.
S204, searching a second protocol standard cooperation message which corresponds to the first identifier carried in the first protocol standard channel detection message and carries a second identifier with the same meaning as the first identifier according to the first identifier carried in the first protocol standard channel detection message and the established mapping table among the first protocol standard cooperation message, the serial number and the second protocol standard cooperation message;
the first identification and the second identification at least comprise numbers; the second protocol standard protocol conversion message is a channel detection message in accordance with the second protocol standard; it should be noted that, for the first access device, the second protocol standard protocol translation packet is used to replace the determined first protocol standard channel detection packet, so that the second protocol standard protocol translation packet belongs to the channel detection packet conforming to the second protocol standard, so that the second access device can determine, after receiving the second protocol standard protocol translation packet, whether a channel used for transmitting the second protocol standard protocol translation packet (i.e., a channel corresponding to the second identifier carried in the second protocol standard protocol translation packet) is in a clear state through the second protocol standard protocol translation packet, and thus, channel detection can be implemented between two access devices with different protocol standards.
S205, acquiring the searched second protocol standard protocol conversion message carrying the second identifier;
and S206, sending the acquired second protocol standard coordination message to the second access device through the channel corresponding to the second identifier, so that the second access device determines whether the channel corresponding to the second identifier is in a smooth state.
In the channel detection method provided in the embodiment of the present invention, by setting the channel detection method, the access device supporting the first protocol standard can send the second protocol standard protocol conversion packet to the access device supporting the second protocol standard according to the established mapping table between the first protocol standard protocol conversion packet, the serial number, and the second protocol standard protocol conversion packet, so that the access device supporting the second protocol standard can implement channel detection according to the second protocol standard protocol conversion packet, and in the prior art, the first access device supporting the first protocol standard can only send the first protocol standard channel detection packet to the second access device supporting the second protocol standard, so that the second access device cannot perform channel detection according to the first protocol standard channel detection packet; therefore, the embodiment of the invention can realize the channel detection between two access devices supporting different protocol standards without changing the hardware structure of the original access device, so that the channel detection method becomes simple and efficient, and the channel detection between different access devices under a new network environment is effectively solved.
Moreover, although the first protocol standard channel detection message is determined according to the first preset period, and after the first protocol standard channel detection message is determined, the corresponding second protocol standard protocol conversion message needs to be found in the mapping table according to the first identifier carried in the first protocol standard channel detection message, because the mapping table is pre-established, and in the process of converting the first protocol standard channel detection message into the second protocol standard conversion message, the content of the first protocol standard channel detection message does not need to be understood, and each field in the first protocol standard channel detection message does not need to be converted and translated, but only the second protocol standard conversion message which corresponds to the first identifier carried in the first protocol standard channel detection message and has been generated is found, the conversion process or the replacement process is substantially simple message conversion or replacement based on a certain same characteristic, the traversal process is not needed, the requirement of HASH calculation is not needed, and no data packet is assembled, so that the conversion or replacement speed is extremely high, and therefore, the second protocol standard protocol conversion message sent by the first access device can also be considered to be sent according to the first preset period.
In addition, in the embodiment of the present invention, before step S202, a negotiation process between the first access device and the second access device may be further included, so that the first access device may determine, based on the negotiation process, related information required for generating a related negotiation message, so that the first access device establishes a mapping table, thereby facilitating to implement channel detection; therefore, after determining the first protocol standard channel detection message according to the first preset period, the first access device side can generally find the corresponding second protocol standard protocol conversion message in the mapping table according to the first identifier carried in the first protocol standard channel detection message, and the situation that the corresponding second protocol standard conversion message cannot be found does not occur, so that the finding efficiency can be effectively improved, and the channel detection efficiency can be further improved.
It should be noted that, because the hardware structure of the access device of the ethernet packet network is simple, it only supports the channel detection capability under the 802.1AG protocol standard, while the PTN and IPRAN packet networks have higher requirement for the hardware configuration of the access device, the PTN implements channel detection based on the TP-OAM protocol standard, and the IPRAN implements channel detection based on the BFD protocol standard; however, by using the channel detection method provided by the embodiment of the present invention, the access device based on the 802.1AG protocol standard can also implement the channel detection based on the BFD protocol standard or the channel detection based on the TP-OAM protocol standard; therefore, in the embodiment of the present invention, the first protocol standard may be an 802.1AG protocol standard, and the second protocol standard may be a BFD protocol standard or a TP-OAM protocol standard.
Of course, in the embodiment of the present invention, the first protocol standard is not limited to the 802.1AG protocol standard, and the second protocol standard is also not limited to the BFD protocol standard or the TP-OAM protocol standard; the first protocol standard may also be a BFD protocol standard, the second protocol standard may be a TP-OAM protocol standard, or the first protocol standard is a TP-OAM protocol standard, the second protocol standard is a BFD protocol standard, as long as the first protocol standard channel detection packet can be converted into the second protocol standard protocol conversion packet that the opposite-end access device can process through the established mapping table, which is not limited herein. Therefore, the following describes the above channel detection method provided in the embodiment of the present invention in detail, taking the first protocol standard as 802.1AG protocol standard, and the second protocol standard as BFD protocol standard or TP-OAM protocol standard as an example.
In specific implementation, before establishing a mapping table between a first protocol standard protocol translation message, a serial number and a second protocol standard protocol translation message, configuring first access equipment supporting an 802.1AG protocol standard so as to be beneficial to establishing the mapping table; therefore, before the step S202 of the channel detection method provided in the embodiment of the present invention establishes the mapping table between the first protocol standard protocol translation packet, the number, and the second protocol standard protocol translation packet, the method may further include:
respectively determining a first identifier and a second identifier for marking different channels according to the same determination rule;
a third identity in the second access device for marking a different channel is determined.
Specifically, when the second protocol standard is the BFD protocol standard, the second protocol standard channel detection message sent by the second access device to the first access device carries two different identifiers, where one identifier is a third identifier and may be represented by mydiscovery, and the other identifier is a second identifier determined by the first access device and notified to the second access device and may be represented by Your discovery.
Therefore, for the first access device, after the first identifier and the second identifier are determined, the determined second identifier needs to be notified to the second access device, that is, the first access device may be notified to the second access device by sending a ping message; moreover, when determining the third identifier used for marking different channels in the second access device, the first access device may determine the third identifier by sending a ping message after the second access device determines the third identifier, so that the first access device establishes the mapping table.
Of course, the determination method of the first identifier (or the second identifier) and the third identifier may be the same or different, and therefore, the determination method may be determined according to a specific actual situation, and is not limited herein.
In this embodiment of the present invention, when the second protocol standard is a TP-OAM protocol standard, because only one identifier is carried in a second protocol standard channel detection message sent by the second access device, and also only one identifier is carried in a first protocol standard channel detection message sent by the first access device, and the first identifier, the second identifier, and the third identifier are all used to mark different channels, in this embodiment, the first identifier, the second identifier, and the third identifier may be set to be the same, that is, the meanings indicated by the first identifier, the second identifier, and the third identifier are the same; therefore, the first access device and the second access device can be configured with the same identifier (i.e. the first identifier, the second identifier or the third identifier) by means of manual configuration according to the configuration of the user, and can be represented by the MA ID, so that the interaction process between the two access devices can be simplified. .
It should be noted that, in the embodiment of the present invention, each of the first access device and the second access device has a channel detection entity, which is used to detect whether a channel is in a clear state, and because protocol standards supported by the first access device and the second access device are different, configured channel detection entities are also different; because the first access device supports 802.1AG protocol standard, the first protocol standard channel detection entity in the first access device is generally an ethernet Maintenance Endpoint (MEP) entity, when the second access device supports BFD protocol standard, the second protocol standard channel detection entity in the second access device is generally a PW layer MEP entity, and if the second access device supports TP-OAM protocol standard, the second protocol standard channel detection entity in the second access device is generally a PW layer detection entity.
Of course, in the embodiment of the present invention, in order to enable the first identifier or the second identifier to accurately mark different channels and ensure the accuracy of channel detection, the first identifier (or the second identifier) may be composed of two parts, that is, a base number and a number, where the base number is the largest value plus 1 in the identifiers of all the entities allocated locally by querying, and if the largest value in the identifiers of all the entities allocated locally by querying is 0xF000, the base number is 0xF 001; of course, the base number is not limited to 0xF001, and is only for illustration and not limited herein.
The number is generally related to the number of channels, and the number of channels refers to the total number of channels that can establish a PW layer with other access devices and are supported by the first access device; for example, if the number of channels is 4 and the base number is a, then the number corresponding to channel 1 may be 1, and the corresponding first identifier (or second identifier) is 1+ a; the number corresponding to channel 2 may be 2, and the corresponding first identifier (or second identifier) is 2+ a; the number corresponding to channel 3 may be 3, and the corresponding first identifier (or second identifier) is 3+ a; the number corresponding to channel 4 may be 4, and the corresponding first identifier (or second identifier) is 4+ a; of course, the method for determining the first identifier is only illustrated here, but not limited thereto.
In specific implementation, in order to establish a mapping table, step S202 in the channel detection method provided in the embodiment of the present invention establishes a mapping table between a first protocol standard protocol translation packet, a serial number, and a second protocol standard protocol translation packet, which may specifically include:
respectively determining the sending parameters of a first protocol standard channel detection message in first access equipment and the sending parameters of a second protocol standard channel detection message in second access equipment;
determining a second protocol standard channel detection message used for replacing the first protocol standard channel detection message according to the determined first identifier, the second identifier and the third identifier and the sending parameter of the second protocol standard channel detection message, wherein the first identifier carried by the first protocol standard channel detection message is the same as the second identifier carried by the second protocol standard channel detection message used for replacing the first protocol standard channel detection message;
determining a first protocol standard protocol conversion message for replacing a received second protocol standard detection message according to the determined first identifier and second identifier and the sending parameter of the first protocol standard channel detection message, wherein the second identifier carried by the second protocol standard detection message is the same as the first identifier carried by the first protocol standard conversion message for replacing the second protocol standard detection message;
and establishing a mapping table between the first protocol standard protocol conversion message, the serial number and the second protocol standard protocol conversion message according to the determined second protocol standard protocol conversion message, the first identifier and the second identifier.
Specifically, the second protocol standard may be a BFD protocol standard or a TP-OAM protocol standard, so according to the specification of each protocol standard, when determining the sending parameters of the channel detection packet of the first protocol standard and the sending parameters of the channel detection packet of the second protocol standard, the dynamic negotiation may be implemented, or the manual configuration may be implemented according to the requirement of the user.
When a dynamic negotiation mode is adopted, the method specifically includes the following steps:
the first access equipment sends a down message to the second access equipment so that the second access equipment feeds back a down reply message to the first access equipment;
the first access equipment sends an init message to the second access equipment, so that the second access equipment feeds back an init reply message to the first access equipment.
Through the transmission of the down message and the init message, the first access device can determine the relevant information for generating the first protocol standard protocol conversion message and the second protocol standard protocol conversion message, so that the first access device can establish a mapping table, and the channel detection between the two access devices can be realized.
In this embodiment of the present invention, the sending parameters of the first protocol standard channel detection packet at least include: the sending period of the first protocol standard channel detection message, and the sending parameters of the second protocol standard channel detection message at least comprise: detecting the sending period of the message by a second protocol standard channel; of course, the sending parameters are not limited to this, and may also include other related information for generating the first protocol standard protocol conversion packet or the second protocol standard protocol conversion packet, which is not limited herein.
It should be noted that, when a sending period of a first protocol standard channel detection packet is determined through negotiation, the sending period is configured to a first protocol standard channel detection entity in the first access device, so that the first protocol standard channel detection entity periodically determines the first protocol standard channel detection packet according to the sending period; therefore, the transmission period may be understood as the first preset period mentioned above.
In addition, in the embodiment of the present invention, taking the second protocol standard as a BFD protocol standard as an example, the second protocol standard channel detection packet sent by the second access device is generally an UP packet, and the UP packet generally carries two identifiers, that is, a second identifier and a third identifier; when the first protocol standard is the 802.1AG protocol standard, the first protocol standard channel detection packet determined by the first access device is generally a CCM packet, and the CCM packet generally carries an identifier, that is, a first identifier.
In order to enable the first access device to have the channel detection capability of the BFD protocol standard, after determining the first protocol standard channel detection message (denoted by CCM), the first access device converts the first protocol standard channel detection message into the second protocol standard coordination message (denoted by UP0), so that the second access device can process the second protocol standard coordination message (UP0), thereby determining whether the channel is in a clear state; therefore, the second protocol standard protocol conversion packet (UP0) substantially belongs to the channel detection packet conforming to the second protocol standard, except that the second protocol standard conversion packet (UP0) is determined by the first access device, and the second protocol standard channel detection packet (denoted by UP) is determined by the second access device, since the second protocol standard conversion packet (UP0) is used to replace the first protocol standard channel detection packet (CCM), one identifier carried in the second protocol standard conversion packet (UP0) is a second identifier having the same meaning as the first identifier carried in the first protocol standard channel detection packet (CCM), and the second protocol standard conversion packet (UP0) also carries a third identifier, and the second protocol standard channel detection packet (denoted by UP) also carries the second identifier and the third identifier, and the second protocol standard conversion packet (0) and other relevant parameters carried by the second protocol standard channel detection packet (UP) also carry the second identifier and the third identifier The same; therefore, the second protocol standard coordination message (UP0) can be determined according to the determined first identifier, second identifier and third identifier, and the sending parameter of the second protocol standard channel detection message (UP), so as to replace the first protocol standard channel detection message (CCM).
It should be noted that, regardless of the second protocol standard coordination packet (UP0) or the second protocol standard channel detection packet (UP), the packet not only includes some parameters related to the first access device, but also includes some parameters related to the second access device; only because the second protocol standard coordination message (UP0) and the second protocol standard channel detection message (UP) are determined by different access devices, the information of the two access devices contained in the second protocol standard coordination message (UP0) is opposite to the information of the two access devices contained in the second protocol standard channel detection message (UP); taking the carried identifier as an example, the My dsicienamator in the identifier carried by the second protocol standard protocol translation message (UP0) corresponds to a second identifier, and the Your dsicienamator corresponds to a third identifier; and My Dsiceraminator in the identifier carried by the second protocol standard channel detection message (UP) corresponds to a third identifier, and Yourdsiaceminator corresponds to a second identifier.
In the same way, in order to enable the first access device to determine whether the channel is in a clear state when receiving the second protocol standard channel detection packet (UP), the received second protocol standard channel detection packet (UP) is converted into the first protocol standard coordination packet (denoted by CCM0), so that the first protocol standard channel detection entity in the first access device determines whether the channel is in a clear state, and therefore, the first protocol standard coordination packet (CCM0) substantially belongs to the channel detection packet conforming to the first protocol standard.
However, in the embodiment of the present invention, in step S203 of the channel detection method provided in the embodiment of the present invention, according to a first preset period, determining a first protocol standard channel detection packet carrying a first identifier for marking different channels may specifically include:
determining a first protocol standard channel detection message carrying first identifications used for marking different channels according to a first preset period through a preset first protocol standard channel detection entity.
Although the first protocol standard coordination message (CCM0) and the first protocol standard Channel Check Message (CCM) are both determined by the first access device, the first protocol standard coordination message (CCM0) is to be sent to the first protocol standard channel check entity, and the first protocol standard Channel Check Message (CCM) is determined by the first protocol standard channel check entity; moreover, since the first protocol standard coordination packet (CCM0) is used to replace the received second protocol standard channel detection packet (UP) sent by the second access device, the identifier carried in the first protocol standard coordination packet (CCM0) is a first identifier having the same meaning as the second identifier in the second protocol standard channel detection packet (UP), and the identifier carried in the first protocol standard channel detection packet (CCM) is also a first identifier, and in addition, since the first protocol standard coordination packet (CCM0) is also the same as other related parameters carried in the first protocol standard channel detection packet (CCM); therefore, the first protocol standard co-rotation message (CCM0) can be determined according to the determined first identifier and second identifier and the sending parameter of the first protocol standard channel detection message (CCM) to replace the second protocol standard channel detection message (UP).
Similarly, for the TP-OAM standard as the second protocol standard, the relationship between the second protocol standard protocol conversion packet and the second protocol standard channel detection packet, and the relationship between the first protocol conversion packet and the first protocol channel detection packet are the same as above, and the repeated parts are not repeated; only when the second protocol standard is the TP-OAM protocol standard, the channel detection packet of the second protocol standard only carries one identifier, that is, the second identifier.
In this embodiment of the present invention, since the first identifier (or the second identifier) is composed of a base number and a number, so as to search for the second protocol standard cooperation packet corresponding to the first identifier according to the first identifier and the established mapping table, step S204 in the channel detection method provided in this embodiment of the present invention may specifically include, according to the first protocol standard channel, detecting the first identifier carried in the packet and the established mapping table between the first protocol standard cooperation packet, the number, and the second protocol standard cooperation packet, and searching for the second protocol standard cooperation packet corresponding to the first identifier carried in the first protocol standard channel detection packet and carrying the second identifier having the same meaning as the first identifier:
extracting a first identifier carried in a first protocol standard channel detection message;
determining the number in the extracted first identifier;
and searching a second protocol standard protocol conversion message which corresponds to the serial number which is the same as the serial number in the determined first identifier and carries a second identifier in a mapping table established among the first protocol standard conversion message, the serial number and the second protocol standard conversion message according to the serial number in the determined first identifier.
Specifically, because the first identifier (or the second identifier) is composed of the number and the base number, the first identifier (or the second identifier) is larger, after the first identifier is extracted, the base number is removed to determine the number, and then the corresponding second protocol standard protocol conversion message is searched in the mapping table according to the number in the first identifier; and because the number is stored in the mapping table, the storage address of the corresponding second protocol standard protocol conversion message can be found in the mapping table according to the number, and then the corresponding second protocol standard protocol conversion message is obtained according to the storage address. Therefore, by the method for determining the second protocol standard protocol translation packet in the mapping table, the time delay caused by searching for the corresponding second protocol standard protocol translation packet is extremely short, and the occupation of the memory is extremely small when the searching process is realized by a Central Processing Unit (CPU), or the requirement on resources is also extremely low when the searching process is realized by a Field-Programmable Gate Array (FPGA), so that the corresponding second protocol standard protocol translation packet can be quickly determined, so as to ensure that the second protocol standard protocol translation packet can still be sent to the second access device according to the first preset period, and to be beneficial for the second access device to judge whether the channel is in a smooth state.
It should be noted that, after a channel for transmitting a channel detection message with a second access device supporting a second protocol standard is established, and a mapping table between a first protocol standard coordination message, a number and a second protocol standard coordination message is established, the first access device sends the second protocol standard coordination message to the second access device according to a first preset period, and the second access device also sends the second protocol standard channel detection message to the first access device according to a second preset period; therefore, after receiving the second protocol standard cooperation message, the second access device determines whether a channel corresponding to the second identifier carried in the second protocol standard cooperation message is unobstructed according to the second protocol standard cooperation message; meanwhile, after receiving the second protocol standard channel detection message, the first access device determines whether a channel corresponding to a second identifier carried in the second protocol standard channel detection message is smooth or not according to the second protocol standard channel detection message; therefore, the method provided by the embodiment of the invention can enable the access device based on the 802.1AG protocol standard to have the channel detection capability of the access device based on the BFD protocol standard or the channel detection capability of the access device based on the TP-OAM protocol standard, thereby realizing the channel detection when two access devices with the channel detection capabilities under different protocol standards exist in the packet network.
Therefore, after establishing a channel for performing channel detection message transmission with a second access device supporting a second protocol standard and establishing a mapping table between a first protocol standard protocol conversion message, a number and a second protocol standard protocol conversion message, in the channel detection method provided in the embodiment of the present invention, as shown in fig. 3, the method may further include:
s301, receiving a second protocol standard channel detection message carrying a second identifier, which is sent by a second access device through a channel corresponding to the second identifier according to a second preset period;
the second preset period for sending the second protocol standard channel detection message may be the same as, or certainly may be different from, the first preset period for sending the second protocol standard channel detection message, and is not limited herein.
S302, according to a second identification carried in a second protocol standard channel detection message and a mapping table which is established in advance among a first protocol standard protocol conversion message, a serial number and the second protocol standard conversion message, searching for the first protocol standard conversion message which corresponds to the second identification carried in the second protocol standard channel detection message and carries a first identification with the same meaning as the second identification;
the first protocol standard protocol conversion message is a channel detection message meeting the first protocol standard; in addition, since the first access device supports the first protocol standard, and the second protocol standard channel detection packet received by the first access device conforms to the second protocol standard, in order to enable the first access device to determine whether the channel is clear by using the received second protocol standard channel detection packet, the second protocol standard channel detection packet needs to be converted into the first protocol standard protocol conversion packet, so that the first access device performs corresponding processing and operation.
S303, acquiring the searched first protocol standard protocol conversion message carrying the first identifier;
s304, sending the searched first protocol standard protocol conversion message carrying the first identifier to a first protocol standard channel detection entity, so that the first protocol standard channel detection entity determines whether the state of a channel corresponding to the first identifier is a smooth state.
Specifically, in step S302 of the channel detection method provided in the embodiment of the present invention, according to the second identifier carried in the second protocol standard channel detection message and the pre-established mapping table between the first protocol standard protocol translation packet, the number, and the second protocol standard protocol translation packet, searching for the first protocol standard protocol translation packet corresponding to the second identifier carried in the second protocol standard channel detection message and carrying the first identifier having the same meaning as the second identifier may specifically include:
extracting a second identifier carried in a second protocol standard detection message;
determining the number in the extracted second identifier;
and searching a first protocol standard protocol conversion message which corresponds to the serial number which is the same as the serial number in the determined second identifier and carries the first identifier in a mapping table established among the first protocol standard protocol conversion message, the serial number and the second protocol standard protocol conversion message according to the serial number in the determined second identifier.
Similarly, when the first protocol standard protocol conversion message is searched in the mapping table, traversal is not needed, Hash calculation is not needed, and only the corresponding first protocol standard protocol conversion message needs to be found according to the number in the second identifier, so that the time delay caused by searching the corresponding first protocol standard protocol conversion message is extremely short, the occupation of a memory is extremely small when the searching process is realized by a CPU, or the requirement on resources is extremely low when the searching process is realized by an FPGA, and the corresponding first protocol standard protocol conversion message can be quickly searched, so that the searched first protocol standard protocol conversion message can be still sent to the first protocol standard channel detection entity according to the second preset period, and the first protocol standard channel detection entity can be favorable for judging whether the channel is in a smooth state or not.
In the embodiment of the present invention, of course, when the first access device receives the second protocol standard channel detection packet sent by the second access device, firstly, the received second protocol standard channel detection message is judged, whether the second protocol standard channel detection message is the expected message negotiated before is judged, if yes, checking the table according to the second identification carried by the second protocol standard channel detection message, if not, indicating that the second access device sends an unexpected message to the first access device, the unexpected message is found in the established mapping table without finding the corresponding first protocol standard protocol conversion message, the control layer in the first access device renegotiates with the second access device, and updates the mapping table, so that the second access device can process the unexpected message when receiving the unexpected message again.
It should be noted that the process of updating the mapping table and the process of receiving and sending the related messages may be synchronous, do not interfere with each other, or asynchronous, that is, the receiving and sending of the related messages are stopped when the mapping table is updated; the embodiment of the present invention is not limited, and may be set according to specific actual needs.
In addition, when the first protocol standard channel detection entity judges whether the channel is in a smooth state, whether the first protocol standard protocol conversion message is received in three continuous second preset periods is judged; if the first protocol standard channel detection entity receives the first protocol standard coordination message in three continuous second preset periods, the first protocol standard channel detection entity determines that a channel corresponding to a first identifier of the first protocol standard coordination message is in a smooth state, and if the first protocol standard coordination message is not received in three continuous second preset periods, the first protocol standard channel detection entity determines that the channel corresponding to the first identifier of the first protocol standard coordination message is interrupted, then generates an interruption notice meeting the first protocol standard, namely a CCM interruption notice, and reports the interruption notice to a service layer for channel protection switching or other actions.
Based on the same inventive concept, an embodiment of the present invention further provides an access device, which supports the first protocol standard, and since the operation principle of the access device is similar to that of the foregoing channel detection method applied to the side of the access device supporting the first protocol standard, the specific implementation manner of the access device may refer to the implementation manner of the foregoing channel detection method, and repeated details are omitted.
Specifically, as shown in fig. 4, the access device provided in the embodiment of the present invention may include: a mapping table establishing module 401, a message determining module 402, a searching module 403 and a sending module 404;
a mapping table establishing module 401, configured to establish a mapping table between a first protocol standard protocol conversion packet, a number, and a second protocol standard protocol conversion packet after establishing a channel for performing channel detection packet transmission with a second access device supporting a second protocol standard;
a packet determining module 402, configured to determine, according to a first preset period, a first protocol standard channel detection packet carrying a first identifier for marking different channels; acquiring a searched second protocol standard protocol conversion message carrying a second identifier;
a searching module 403, configured to search, according to a first identifier carried in a first protocol standard channel detection message and an established mapping table between a first protocol standard protocol coordination packet, a serial number, and a second protocol standard coordination packet, a second protocol standard coordination packet that corresponds to the first identifier carried in the first protocol standard channel detection message and carries a second identifier having the same meaning as the first identifier; the first identification and the second identification at least comprise numbers; the second protocol standard protocol conversion message is a channel detection message in accordance with the second protocol standard;
a sending module 404, configured to send the obtained second protocol standard coordination transfer message to the second access device through the channel corresponding to the second identifier, so that the second access device determines whether the channel corresponding to the second identifier is in an unobstructed state.
Specifically, in the access device provided in the embodiment of the present invention, the search module 403 is specifically configured to extract a first identifier carried in a first protocol standard channel detection message; determining the number in the extracted first identifier; and searching a second protocol standard protocol conversion message which corresponds to the serial number which is the same as the serial number in the determined first identifier and carries a second identifier in a mapping table established among the first protocol standard conversion message, the serial number and the second protocol standard conversion message according to the serial number in the determined first identifier.
Specifically, in the access device provided in the embodiment of the present invention, the packet determining module 402 is specifically configured to determine, according to a first preset period, a first protocol standard channel detection packet carrying a first identifier for marking different channels, through a preset first protocol standard channel detection entity.
In specific implementation, as shown in fig. 5, the access device provided in the embodiment of the present invention may further include: a channel determination module 405;
the searching module 403 is further configured to, when it is determined that a second protocol standard channel detection packet carrying a second identifier and sent by a second access device through a channel corresponding to the second identifier according to a second preset period is received, search, according to the second identifier carried in the second protocol standard channel detection packet and a mapping table pre-established among the first protocol standard protocol translation packet, the number, and the second protocol standard translation packet, the first protocol standard translation packet which corresponds to the second identifier carried in the second protocol standard channel detection packet and carries the first identifier having the same meaning as the second identifier; the first protocol standard protocol conversion message is a channel detection message in accordance with the first protocol standard;
the message determining module 402 is further configured to obtain the found first protocol standard protocol conversion message carrying the first identifier;
the sending module 404 is further configured to send the obtained first protocol standard protocol coordination message carrying the first identifier to the channel determination module;
a channel determining module 405, configured to determine whether a state of a channel corresponding to the first identifier is a clear state.
Specifically, in the access device provided in the embodiment of the present invention, the search module 403 is specifically configured to extract a second identifier carried in a second protocol standard detection message; determining the number in the extracted second identifier; and searching a first protocol standard protocol conversion message which corresponds to the serial number which is the same as the serial number in the determined second identifier and carries the first identifier in a mapping table established among the first protocol standard protocol conversion message, the serial number and the second protocol standard protocol conversion message according to the serial number in the determined second identifier.
In specific implementation, before establishing the mapping table between the first protocol standard protocol translation packet, the number, and the second protocol standard protocol translation packet in the access device provided in the embodiment of the present invention, as shown in fig. 5, the method may further include: an identity determination module 406;
an identifier determining module 406, configured to determine, according to the same determination rule, a first identifier and a second identifier for marking different channels, respectively; a third identity in the second access device for marking a different channel is determined.
Specifically, in the access device provided in the embodiment of the present invention, the mapping table establishing module 401 is specifically configured to respectively determine a sending parameter of a first protocol standard channel detection packet in the first access device and a sending parameter of a second protocol standard channel detection packet in the second access device; determining a second protocol standard channel detection message used for replacing the first protocol standard channel detection message according to the determined first identifier, the second identifier and the third identifier and the sending parameter of the second protocol standard channel detection message, wherein the first identifier carried by the first protocol standard channel detection message is the same as the second identifier carried by the second protocol standard channel detection message used for replacing the first protocol standard channel detection message; determining a first protocol standard protocol conversion message for replacing a received second protocol standard detection message according to the determined first identifier and second identifier and the sending parameter of the first protocol standard channel detection message, wherein the second identifier carried by the second protocol standard detection message is the same as the first identifier carried by the first protocol standard conversion message for replacing the second protocol standard detection message; and establishing a mapping table between the first protocol standard protocol conversion message, the serial number and the second protocol standard protocol conversion message according to the determined second protocol standard protocol conversion message, the first identifier and the second identifier.
In specific implementation, in the access device provided in the embodiment of the present invention, the first protocol standard may be an 802.1AG protocol standard; the second protocol standard may be a BFD protocol standard or a TP-OAM protocol standard.
It should be noted that, in the access device provided in the embodiment of the present invention, the first protocol standard channel detection entity may include a channel determination module 405 and a message determination module 402, and the sending module 404 forms a forwarding chip, where the first protocol standard channel detection entity is disposed in the forwarding chip; the lookup module 403 constitutes a first processing chip; the mapping table establishing module 401 and the identification determining module 406 constitute a second processing chip.
The first protocol standard channel detection entity may be an ethernet layer MEP entity, and the forwarding chip is mainly configured to perform channel detection by using the first protocol standard channel detection entity m (for example, a triangular structure filled with black dots in fig. 6 and 7), interrupt reporting, and forward data and related protocol packets; the second processing chip can be realized by a software subsystem of the CPU or by an FPGA, and is mainly responsible for carrying out related configuration on the forwarding chip and the first processing chip, negotiating with the second access device, binding the association relationship between the protocols and controlling the forwarding path of the related protocol message; the first processing chip can also be realized by a software subsystem of the CPU or an FPGA, and the first processing chip is mainly used for searching and converting related messages, so as to realize detection of the channel.
In addition, in this embodiment of the present invention, before establishing the mapping table between the first protocol standard protocol translation packet, the number, and the second protocol standard protocol translation packet, as shown in fig. 5, the method may further include: a path determination module 407;
when the first processing chip and the forwarding chip are set as a bypass, the path determining module 407 is configured to set a transmission path of the first protocol standard channel detection packet, the second protocol standard channel detection packet, the first protocol standard coordination packet, and the second protocol standard coordination packet between the first processing chip and the forwarding chip, respectively; or the like, or, alternatively,
when the first processing chip and the forwarding chip are arranged in series, the path determining module 407 is configured to intercept the second protocol standard channel detection message received by the forwarding chip and the first protocol standard channel detection message determined by the first protocol standard channel detection entity, respectively.
Specifically, the connection relationship among the forwarding chip 10, the first processing chip 20, and the second processing chip 30 may be implemented in two ways, as shown in fig. 6 and 7; in the connection relationship shown in fig. 6, the forwarding chip 10, the first processing chip 20, and the second processing chip 30 are connected in pairs, and the first processing chip 20 is disposed on the forwarding chip 10 by-pass, so that the second processing chip 30 is required to configure the forwarding chip 10, that is, configure the transmission path of the related message (such as the first protocol standard channel detection message, the second protocol standard channel detection message, the first protocol standard protocol translation message, and the second protocol standard translation message), so that the path determination module 407 also belongs to the second processing chip 30, so that the first protocol standard channel detection message generated by the forwarding chip 10 or the received second protocol standard detection message can reach the first processing chip 20, so that the first processing chip 20 searches for the corresponding translation message, and sends the searched related translation message to the forwarding chip 10, so that the forwarding chip 10 sends the found related cooperative packet out from the designated port, where the arrows in fig. 6 indicate the directions of sending and receiving the channel detection packet.
Of course, as shown in fig. 7, the first processing chip 20 may also be arranged in series on the forwarding chip 10, where arrows in fig. 7 indicate directions of sending and receiving the channel detection message of the channel detection message, so that the first processing chip 20 may intercept and intercept the related message sent from the port of the forwarding chip 10, and replace and convert the first protocol standard channel detection message or the second protocol standard detection message, so as to implement channel detection.
Based on the same inventive concept, an embodiment of the present invention further provides a channel detection method, which is applied to a second access device supporting a second protocol standard, as shown in fig. 8, and may include:
s801, establishing a channel for channel detection message transmission with a first access device supporting a first protocol standard;
s802, determining whether a second protocol standard protocol conversion message which is sent by a first access device through a channel corresponding to a second identifier for marking different channels according to a first preset period and carries the second identifier is received; if not, go to step S803; if yes, go to step S805;
the second protocol standard protocol translation message may be a channel detection message conforming to the second protocol standard, and specific reference may be made to the above contents regarding the relationship between the second protocol standard protocol translation message and the second protocol standard channel detection message, and repeated details are not repeated.
S803, determining whether a second protocol standard protocol conversion message carrying a second identifier is not received in three consecutive first preset periods; if yes, go to step S804; if not, go to step S805;
s804, determining that the state of the channel corresponding to the second identifier is an interruption state;
and S805, determining that the state of the channel corresponding to the second identifier is a smooth state.
It should be noted that the process of sending the relevant channel detection message between the two access devices and the process of receiving the relevant channel detection message may be regarded as being performed simultaneously, and no interference is generated between the two processes, so that the second protocol standard channel detection message is sent to the second access device while the second protocol standard protocol conversion message sent by the second access device is received; therefore, after the step S801 in the method for detecting a channel provided in the embodiment of the present invention establishes a channel for performing channel detection packet transmission with a first access device supporting a first protocol standard, the method may further include:
and sending a second protocol standard detection message carrying a second identifier to the first access equipment through a channel corresponding to the second identifier according to a second preset period, so that the first access equipment determines whether the channel corresponding to the second identifier is in a smooth state.
Specifically, since the process of sending the second protocol standard channel detection packet is in the prior art, the specific implementation process of sending the second protocol standard channel detection packet may refer to the sending process in the prior art, which is not described herein again.
In specific implementation, in the channel detection method provided in the embodiment of the present invention, before determining whether a second protocol standard protocol coordination packet that is sent by the first access device through a channel corresponding to the second identifier for marking a different channel according to the first preset period and carries the second identifier is received, and before sending the second protocol standard detection packet carrying the second identifier to the first access device through the channel corresponding to the second identifier according to the second preset period, the method may further include:
a second identity in the first access device for marking a different channel is determined.
Specifically, the second identifier here may be a second identifier for causing the second access device to determine to mark a different channel by sending a ping message between the first access device and the second access device after the first access device determines; of course, the second access device may determine the second identifier for marking a different channel by means of manual configuration, which is not limited herein.
Based on the same inventive concept, an embodiment of the present invention further provides an access device, which supports the second protocol standard, and since the working principle of the access device is the same as that of the foregoing channel detection method on the side of the second access device supporting the second protocol standard, the specific implementation manner of the access device may refer to the specific implementation manner of the foregoing channel detection method, and repeated details are omitted.
Specifically, as shown in fig. 9, the access device provided in the embodiment of the present invention may include: a channel determination module 901;
a channel determining module 901, configured to determine, after a channel for performing channel detection packet transmission with a first access device supporting a first protocol standard is established, whether a second protocol standard protocol conversion packet that is sent by the first access device through a channel corresponding to a second identifier for marking a different channel according to a first preset period and carries the second identifier is received; the second protocol standard protocol conversion message is a channel detection message in accordance with the second protocol standard; when a second protocol standard protocol conversion message sent through a channel corresponding to a second identifier is not received in three continuous first preset periods, determining that the state of the channel corresponding to the second identifier is an interruption state; and when receiving second protocol standard coordination messages sent through the channel corresponding to the second identifier in three continuous first preset periods, determining that the state of the channel corresponding to the second identifier is a smooth state.
In specific implementation, in the access device provided in the embodiment of the present invention, after establishing a channel for performing channel detection packet transmission with a first access device supporting a first protocol standard, as shown in fig. 9, the method may further include: a sending module 902;
a sending module 902, configured to send a second protocol standard detection packet carrying a second identifier to the first access device through a channel corresponding to the second identifier according to a second preset period, so that the first access device determines whether the channel corresponding to the second identifier is in a clear state.
In specific implementation, as shown in fig. 9, in the above access device provided in the embodiment of the present invention, the access device may further include: an identity determination module 903;
an identity determining module 903, configured to determine a second identity used for marking a different channel in the first access device.
Specifically, the identifier determining module 903 constitutes a processing chip, the channel determining module 901 and the sending module 902 constitute a forwarding chip (not shown), and the processing chip may be implemented by a software subsystem of a CPU or by an FPGA, and is mainly used for configuring the forwarding chip and performing negotiation with an opposite-end access device; a second protocol standard channel detection entity, such as a PW layer detection entity or a PW layer MEP entity, is configured on the forwarding chip, and is mainly used for performing channel detection, interrupting reporting, and forwarding data and packets by using the second protocol standard channel detection entity.
It should be noted that the sending module 404, the channel determining module 405, and the identification determining module 406 in the first access device supporting the 802.1AG protocol standard mentioned above are identical to the sending module 902, the channel determining module 901, and the identification determining module 903 in the second access device supporting the BFD protocol standard or the TP-OAM protocol standard, but the specific roles of the two modules having the same name are not exactly the same, so in the embodiment of the present invention, they are denoted by different numbers.
The following describes an interaction procedure between two access devices according to an embodiment of the present invention with reference to a specific embodiment.
The first embodiment is as follows: taking an example that the first access device supports the 802.1AG protocol standard, the second access device supports the BFD protocol standard, and channel detection under the BFD protocol standard is implemented, and taking an example that the second access device determines whether a channel is unobstructed, the method shown in fig. 10 and the interaction flowchart shown in fig. 11 are combined for explanation; the first access device is represented by a, the second access device is represented by B, the first identifier is used for MA ID representation, the second identifier carried in the second protocol standard cooperation message sent by a to B is represented by My distributor, the first protocol standard channel detection message is represented by CCM message, the second protocol standard cooperation message is represented by UP0 message, and the first protocol standard cooperation message is represented by CCM0 message.
Preparation work is performed in advance.
A and B establish a channel, and BFD detection of the channel is enabled.
A and B carry on mutual notice to the label (My distinguisher) of the channel each other through the interaction of ping message; wherein, the My descriptor of A is composed of base number and number, the specific distribution mode is detailed in the foregoing description, and the detailed description is omitted here; as for B, My distributor is assigned by B, and this embodiment does not limit it.
A and B negotiate BFD and establish session, the process includes:
a sends a BFD down message to B, and B feeds back a BFD down reply message to A;
a sends BFD init message to B, B feeds back BFD init reply message to A.
The negotiation includes parameters such as negotiation BFD UP message sending period and the like.
After the negotiation between A and B and the session establishment are successful, the A enters a BFD UP state, the A updates a mapping table, and a configuration message determining module configures the following information under the channel: the CCM message sending period is a negotiated BFDUP message sending period, and the MA ID is the My descriptor about A notified to B by A.
Wherein, A updates the mapping table, including:
generating a BFD protocol conversion message which is sent by a message determination module and is used for CCM messages of the channel according to the obtained My protocol of the A, the obtained My protocol of the B and the negotiated BFD UP message sending period; for the present embodiment, the cooperative transmission message is represented as a UP0 message and is a BFD UP message, where sender information in the message is information of a, and receiver information is information of B;
a generates a CCM message of a BFD UP message to the channel which is sent by the B and needs to be replaced, the CCM message is used as an 802.1AG cooperative transmission message of the A aiming at the channel and is expressed as a CCM0 message, the information of a sender in the cooperative transmission message is B, and the information of a receiver is A; the MA ID in the generated CCM message is the same as the MA ID in the CCM message configured to the message determining module under the channel, and other field values can be configured in advance by a user.
A establishes the number in the My descriptor of A, and a mapping table of the BFD protocol message and the 802.1AG protocol message generated by the A.
The method comprises the steps that a message determining module in S1001 and A determines a CCM message carrying an MA ID according to a first preset period;
s1002, a searching module in A extracts the MA ID carried in the CCM message;
s1003, a searching module in A determines the number in the MA ID;
s1004, in a mapping table between the built UP0 message, the number and the CCM0 message, a searching module in A searches a UP0 message which corresponds to the number with the same number in the MA ID and carries the My descriptor with the same meaning as the MA ID;
s1005, the message determining module in A obtains the determined UP0 message;
s1006, the sending module in A sends the determined UP0 message to B through a channel corresponding to My distributor;
s1007 and B determine whether a UP0 message sent by A through a channel corresponding to My distributor is received; if not, executing step S1008; if yes, go to step S1010;
s1008 and B determine whether UP0 messages sent by the A through a channel corresponding to the MyDiscreatitor are received in three continuous first preset periods; if not, go to step S1009; if yes, go to step S1010;
s1009 and B, determining that a channel corresponding to the My distributor is in an interrupt state;
s1010 and B determine that the channel corresponding to the My distributor is in an unobstructed state.
Example two: taking an example that the first access device supports the 802.1AG protocol standard, the second access device supports the BFD protocol standard, and channel detection under the BFD protocol standard is implemented, and taking an example that the first access device determines whether a channel is unobstructed, the method shown in fig. 12 and the interaction flowchart shown in fig. 13 are combined for explanation; the first access device is represented by a, the second access device is represented by B, the first identifier is used for MA ID representation, the second identifier carried in the second protocol channel detection message sent by B when a receives the second protocol channel detection message is represented by a Your distributor, the second protocol standard channel detection message is represented by an UP message, the second protocol standard protocol conversion message is represented by an UP0 message, and the first protocol standard conversion message is represented by a CCM0 message.
S1201 and B, according to a second preset period, sending an UP message carrying a Your dispatcher to A through a channel corresponding to the Your dispatcher;
s1202, when a searching module in A receives a UP message which is sent by a B through a channel corresponding to a Your distributor and carries a Your distributor, extracting the Your distributor carried in the UP message;
s1203, a searching module in A determines a number in a Your distributor;
the searching module in S1204 and A searches a CCM0 message which corresponds to the same number as the number in the Your discriminator and carries the MA ID with the same meaning as the Your discriminator in the established mapping table among the UP0 message, the number and the CCM0 message;
the message determining module in S1205 and A acquires the determined CCM0 message;
the sending module in the S1206 and A sends the obtained CCM0 message to the channel determining module;
s1207, the channel determining module in A determines whether CCM0 messages are received in three second continuous preset periods or not; if not, executing step S1208; if yes, go to step S1209;
the channel determining module in the S1208 and a determines that the channel corresponding to the Your distributor is in an interrupt state, and generates a CCM interrupt notification of the channel corresponding to the Your distributor;
the channel determining module in S1209 and a determines that a channel corresponding to the Your distributor is in a clear state. Example three: taking an example that the first access device supports 802.1AG protocol standard and the second access device supports TP-OAM protocol standard to implement channel detection under the TP-OAM protocol standard, and taking an example that the second access device determines whether a channel is unobstructed, the method shown in fig. 14 and the interaction flowchart shown in fig. 15 are combined for explanation; the first access device is represented by a, the second access device is represented by B, the first identifier is represented by MA ID1, the second identifier is represented by MA ID2, the first protocol standard channel detection message is represented by CCM1 message, the second protocol standard coordination message is represented by CCMt message, and the first protocol standard coordination message is represented by CCMa message.
And (5) preparing.
A and B establish a channel, and TP-OAM detection of the channel is enabled.
A and B execute the configuration of the user, wherein the configuration of the user is directly used by the A as the MA ID of the CCM message of TP-OAM under the channel and the MA ID of the CCM message of 802.1AG, and the MA ID of the CCM message of 802.1AG is the same as the MAID of the CCM message of TP-OAM. Preferably, in this embodiment, the MA ID is also composed of two parts: the specific allocation of base numbers and numbering will be described in detail in the foregoing description, and will not be described in detail herein.
And the A completes the assembly of the cooperative message of the channel established with the connected B, including the CCMt message and the CCMa message, and completes the serial number of the MA ID under the channel on the A and the mapping table of the cooperative message.
The message determining module in S1401 and A determines a CCM1 message carrying MA ID1 according to a first preset period;
s1402 and A, the searching module extracts MA ID1 carried in CCM1 message;
the searching module in S1403 and A determines the number in the MA ID 1;
the searching module in S1404 and A searches a CCMt message which corresponds to the same number as the number in the MA ID1 and carries the MA ID2 with the same meaning as the MA ID1 in the established mapping table among the CCMt message, the number and the CCMa message;
s1405 and the message determining module in A acquire the determined CCMt message;
s1406 and the sending module in A sends the determined CCMt message to B through a channel corresponding to the MA ID 2;
s1407 and B determine whether a CCMt message sent by the channel corresponding to the MA ID2 is received or not; if not, go to step S1408; if yes, go to step S1410;
s1408 and B determine whether CCMt messages sent by the A through a channel corresponding to the MA ID2 are received in three continuous first preset periods; if not, go to step S1409; if yes, go to step S1410;
s1409 and B determine that the channel corresponding to the MA ID2 is in an interruption state;
s1410, B determine that the path corresponding to MA ID2 is in the open state.
Example four: taking an example that the first access device supports 802.1AG protocol standard, the second access device supports TP-OAM protocol standard, and channel detection under the TP-OAM protocol standard is implemented, and taking an example that the first access device determines whether a channel is unobstructed, the method shown in fig. 16 and the interaction flowchart shown in fig. 17 are combined for explanation; the first access device is represented by a, the second access device is represented by B, the first identifier is represented by MA ID1, the second identifier is represented by MA ID2, the second protocol standard channel detection message is represented by CCM2 message, the second protocol standard coordination message is represented by CCMt message, and the first protocol standard coordination message is represented by CCMa message.
S1601, B sends CCM2 message carrying MAID2 to A through a channel corresponding to MA ID2 according to a second preset period;
when determining that a CCM2 message carrying the MAID2 and sent by a channel corresponding to the MA ID2 and sent by the B is received, a search module in the S1602 and the A extracts the MA ID2 carried in the CCM2 message;
the search module in S1603, a determines the number in MA ID 2;
s1604, the searching module in A searches a CCMa message which corresponds to the same number as the number in the MA ID2 and carries the MA ID1 with the same meaning as the MA ID2 in the established mapping table among the CCMt message, the number and the CCMa message;
s1605, the message determining module in A obtains the determined CCMa message;
s1606 and A, the sending module sends the acquired CCMa message to the channel determining module;
s1607, the channel determining module in A determines whether CCMa messages are received in three second preset periods continuously; if not, go to step S1608; if yes, go to step S1609;
s1608, the channel determining module in A determines that the channel corresponding to MA ID1 is in an interrupted state, and generates a CCM interruption notification of the channel corresponding to MA ID 1;
the path determination module in S1609, a determines that the path corresponding to MA ID1 is in the normal state.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
The embodiment of the invention provides a channel detection method and access equipment, by setting the channel detection method, the access equipment supporting a first protocol standard can send a second protocol standard protocol conversion message to the access equipment supporting a second protocol standard according to an established second protocol standard conversion message, a mapping table between a serial number and the first protocol standard conversion message, so that the access equipment supporting the second protocol standard can realize the channel detection according to the second protocol standard conversion message, therefore, the method can realize the channel detection between two access equipment supporting different protocol standards without changing the original hardware structure of the first access equipment, the channel detection method is simple and efficient, and the channel detection between different access equipment under a new network environment is effectively solved; in addition, the method provided by the embodiment of the invention does not need to understand the content of the first protocol standard channel detection message, and only needs to find the corresponding second protocol standard protocol conversion message in the mapping table according to the first identifier of the first protocol standard channel detection message, so that the conversion efficiency of the first protocol standard channel detection message can be greatly improved, and the channel detection capability can be favorably improved.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (25)
1. A channel detection method applied to a first access device supporting a first protocol standard, the method comprising:
after a channel for transmitting a channel detection message with a second access device supporting a second protocol standard is established, and a mapping table between a first protocol standard protocol conversion message, a serial number and a second protocol standard protocol conversion message is established, determining a first protocol standard channel detection message carrying first identifications for marking different channels according to a first preset period;
searching a second protocol standard protocol conversion message which corresponds to the first identifier carried in the first protocol standard channel detection message and carries a second identifier with the same meaning as the first identifier according to the first identifier carried in the first protocol standard channel detection message and an established mapping table among the first protocol standard protocol conversion message, the serial number and the second protocol standard conversion message; the first identification and the second identification at least comprise numbers; the second protocol standard protocol conversion message is a channel detection message in accordance with a second protocol standard;
and acquiring a found second protocol standard protocol coordination transfer message carrying the second identifier, and sending the acquired second protocol standard coordination transfer message to the second access equipment through the channel corresponding to the second identifier, so that the second access equipment determines whether the channel corresponding to the second identifier is in a smooth state.
2. The channel detection method according to claim 1, wherein the searching for the second protocol standard protocol conversion packet corresponding to the first identifier carried in the first protocol standard channel detection packet and carrying the second identifier having the same meaning as the first identifier according to the first identifier carried in the first protocol standard channel detection packet and the established mapping table between the first protocol standard conversion packet, the number, and the second protocol standard conversion packet specifically comprises:
extracting a first identifier carried in the first protocol standard channel detection message;
determining the extracted number in the first identifier;
and searching a second protocol standard protocol conversion message which corresponds to the number which is the same as the number in the determined first identifier and carries the second identifier in a mapping table established among the first protocol standard conversion message, the number and the second protocol standard conversion message according to the number in the determined first identifier.
3. The method according to claim 1, wherein the determining, according to a first preset period, a first protocol standard channel detection packet carrying a first identifier for marking different channels specifically includes:
determining a first protocol standard channel detection message carrying first identifications used for marking different channels according to a first preset period through a preset first protocol standard channel detection entity.
4. The channel detection method of claim 3, wherein after establishing a channel for channel detection message transmission with a second access device supporting a second protocol standard and establishing a mapping table between the first protocol standard protocol translation message, the number, and the second protocol standard protocol translation message, further comprising:
when a second protocol standard channel detection message carrying a second identifier and sent by the second access equipment through a channel corresponding to the second identifier according to a second preset period is determined to be received, searching a first protocol standard protocol conversion message which corresponds to the second identifier carried in the second protocol standard channel detection message and carries a first identifier with the same meaning as the second identifier according to the second identifier carried in the second protocol standard channel detection message and a mapping table which is established in advance among the first protocol standard conversion message, the serial number and the second protocol standard conversion message; the first protocol standard protocol conversion message is a channel detection message in accordance with a first protocol standard;
and acquiring a found first protocol standard cooperation message carrying the first identifier and sending the first protocol standard cooperation message to the first protocol standard channel detection entity, so that the first protocol standard channel detection entity determines whether the state of a channel corresponding to the first identifier is in a smooth state.
5. The channel detection method according to claim 4, wherein the searching for the first protocol standard protocol translation packet that corresponds to the second identifier carried in the second protocol standard channel detection packet and carries the first identifier having the same meaning as the second identifier according to the second identifier carried in the second protocol standard channel detection packet and a pre-established mapping table between the first protocol standard translation packet, the number, and the second protocol standard translation packet specifically comprises:
extracting a second identifier carried in the second protocol standard channel detection message;
determining the extracted number in the second identifier;
and searching a first protocol standard protocol conversion message which corresponds to the number which is the same as the number in the determined second identifier and carries the first identifier in a mapping table established among the first protocol standard protocol conversion message, the number and the second protocol standard protocol conversion message according to the number in the determined second identifier.
6. The channel detection method as claimed in claim 1, wherein before the establishing the mapping table between the first protocol standard protocol translation packet, the number and the second protocol standard protocol translation packet, the method further comprises:
respectively determining a first identifier and a second identifier for marking different channels according to the same determination rule;
and determining a third identifier used for marking different channels in the second access equipment.
7. The channel detection method according to claim 6, wherein the establishing of the mapping table between the protocol standard protocol translation packet, the number, and the second protocol standard protocol translation packet specifically comprises:
respectively determining the sending parameters of the first protocol standard channel detection message in the first access device and the sending parameters of the second protocol standard channel detection message in the second access device;
determining a second protocol standard channel detection message used for replacing the first protocol standard channel detection message according to the determined first identifier, the second identifier and the third identifier and the sending parameter of the second protocol standard channel detection message, wherein the first identifier carried by the first protocol standard channel detection message is the same as the second identifier carried by the second protocol standard channel detection message replacing the first protocol standard channel detection message;
determining a first protocol standard channel detection message used for replacing the received second protocol standard channel detection message according to the determined first identifier and the second identifier and the sending parameter of the first protocol standard channel detection message, wherein the second identifier carried by the second protocol standard channel detection message is the same as the first identifier carried by the first protocol standard channel detection message replacing the second protocol standard channel detection message;
and establishing a mapping table among the first protocol standard protocol conversion message, the serial number and the second protocol standard protocol conversion message according to the determined second protocol standard protocol conversion message, the first identifier and the second identifier.
8. The channel detection method according to any of claims 1-7, wherein the first protocol standard is an 802.1AG protocol standard; the second protocol standard is a bidirectional forwarding protocol detection (BFD) protocol standard or a TP-OAM protocol standard for operation management maintenance.
9. A channel detection method is applied to a second access device supporting a second protocol standard, and is characterized by comprising the following steps:
after a channel used for carrying out channel detection message transmission with first access equipment supporting a first protocol standard is established, determining whether a second protocol standard protocol conversion message which is sent by the first access equipment through a channel corresponding to a second identifier used for marking different channels according to a first preset period and carries the second identifier is received; the second protocol standard protocol conversion message is a channel detection message in accordance with a second protocol standard;
when the second protocol standard coordination message sent through the channel corresponding to the second identifier is not received in three consecutive first preset periods, determining that the state of the channel corresponding to the second identifier is an interruption state;
when the second protocol standard protocol conversion messages sent through the channel corresponding to the second identifier are received in three consecutive first preset periods, determining that the state of the channel corresponding to the second identifier is a smooth state;
wherein, the second protocol standard protocol conversion message is obtained by the following method: after the first access device establishes a mapping table between a first protocol standard protocol conversion message, a serial number and a second protocol standard conversion message, determining a first protocol standard channel detection message carrying first identifications for marking different channels according to a first preset period; searching a second protocol standard cooperation message which corresponds to the first identifier carried in the first protocol standard channel detection message and carries a second identifier with the same meaning as the first identifier according to the first identifier carried in the first protocol standard channel detection message and the established mapping table among the first protocol standard cooperation message, the serial number and the second protocol standard cooperation message;
the first identification and the second identification each comprise at least a number.
10. The channel detection method of claim 9, wherein after establishing the channel for channel detection packet transmission with the first access device supporting the first protocol standard, further comprising:
and sending a second protocol standard channel detection message carrying the second identifier to the first access equipment through a channel corresponding to the second identifier according to a second preset period, so that the first access equipment determines whether the channel corresponding to the first identifier is in a smooth state.
11. The channel detection method according to claim 10, wherein before the determining whether the second protocol standard protocol coordination packet which is sent by the first access device through the channel corresponding to the second identifier for marking a different channel according to the first preset period and carries the second identifier is received, and before the sending the second protocol standard channel detection packet carrying the second identifier to the first access device through the channel corresponding to the second identifier according to the second preset period, the method further comprises:
and determining a second identifier used for marking different channels in the first access equipment.
12. An access device supporting a first protocol standard, the access device acting as a first access device, comprising: the device comprises a mapping table establishing module, a message determining module, a searching module and a sending module;
the mapping table establishing module is used for establishing a mapping table among the first protocol standard protocol conversion message, the serial number and the second protocol standard protocol conversion message after establishing a channel for carrying out channel detection message transmission with the second access equipment supporting the second protocol standard;
the message determining module is used for determining a first protocol standard channel detection message carrying first identifications for marking different channels according to a first preset period;
the searching module is used for searching a second protocol standard protocol conversion message which corresponds to a first identifier carried in the first protocol standard channel detection message and carries a second identifier with the same meaning as the first identifier according to the first identifier carried in the first protocol standard channel detection message and the established mapping table among the first protocol standard protocol conversion message, the serial number and the second protocol standard conversion message; the first identification and the second identification at least comprise numbers; the second protocol standard protocol conversion message is a channel detection message in accordance with a second protocol standard;
the message determining module is further configured to obtain the found second protocol standard protocol conversion message carrying the second identifier;
the sending module is configured to send the obtained second protocol standard protocol coordination message to the second access device through the channel corresponding to the second identifier, so that the second access device determines whether the channel corresponding to the second identifier is in an unobstructed state.
13. The access device according to claim 12, wherein the search module is specifically configured to extract a first identifier carried in the first protocol standard channel detection message; determining the extracted number in the first identifier; and searching a second protocol standard protocol conversion message which corresponds to the number which is the same as the number in the determined first identifier and carries the second identifier in a mapping table established among the first protocol standard conversion message, the number and the second protocol standard conversion message according to the number in the determined first identifier.
14. The access device according to claim 12, wherein the packet determining module is specifically configured to determine, according to a first preset period, a first protocol standard channel detection packet carrying a first identifier for marking different channels, through a preset first protocol standard channel detection entity.
15. The access device of claim 14, further comprising: a channel determination module;
the searching module is further configured to, when it is determined that a second protocol standard channel detection packet carrying a second identifier and sent by the second access device through a channel corresponding to the second identifier according to a second preset period is received, search, according to the second identifier carried in the second protocol standard channel detection packet and a mapping table pre-established among the first protocol standard protocol translation packet, the number, and the second protocol standard protocol translation packet, the first protocol standard protocol translation packet which corresponds to the second identifier carried in the second protocol standard channel detection packet and carries the first identifier having the same meaning as the second identifier; the first protocol standard protocol conversion message is a channel detection message in accordance with a first protocol standard;
the message determining module is further configured to obtain the found first protocol standard protocol conversion message carrying the first identifier;
the sending module is further configured to send the obtained first protocol standard protocol conversion message carrying the first identifier to the channel determination module;
and the channel determining module is used for determining whether the state of the channel corresponding to the first identifier is a smooth state.
16. The access device of claim 15, wherein the first protocol standard channel detection entity comprises the channel determination module and the message determination module.
17. The access device of claim 15, wherein the lookup module is specifically configured to extract a second identifier carried in the second protocol standard channel detection message; determining the extracted number in the second identifier; and searching a first protocol standard protocol conversion message which corresponds to the number which is the same as the number in the determined second identifier and carries the first identifier in a mapping table established among the first protocol standard protocol conversion message, the number and the second protocol standard protocol conversion message according to the number in the determined second identifier.
18. The access device of claim 15, wherein prior to establishing the mapping table between the first protocol standard negotiation packet, the number, and the second protocol standard negotiation packet, further comprising: an identification determination module;
the identification determining module is used for respectively determining a first identification and a second identification which are used for marking different channels according to the same determining rule; and determining a third identifier used for marking different channels in the second access equipment.
19. The access device according to claim 18, wherein the mapping table establishing module is specifically configured to determine the sending parameter of the first protocol standard channel detection packet in the first access device and the sending parameter of the second protocol standard channel detection packet in the second access device, respectively; determining a second protocol standard channel detection message used for replacing the first protocol standard channel detection message according to the determined first identifier, the second identifier and the third identifier and the sending parameter of the second protocol standard channel detection message, wherein the first identifier carried by the first protocol standard channel detection message is the same as the second identifier carried by the second protocol standard channel detection message replacing the first protocol standard channel detection message; determining a first protocol standard channel detection message used for replacing the received second protocol standard channel detection message according to the determined first identifier and the second identifier and the sending parameter of the first protocol standard channel detection message, wherein the second identifier carried by the second protocol standard channel detection message is the same as the first identifier carried by the first protocol standard channel detection message replacing the second protocol standard channel detection message; and establishing a mapping table among the first protocol standard protocol conversion message, the serial number and the second protocol standard protocol conversion message according to the determined second protocol standard protocol conversion message, the first identifier and the second identifier.
20. The access device of claim 19, wherein the transmitting module constitutes a forwarding chip;
the first protocol standard channel detection entity is arranged in the forwarding chip;
the searching module forms a first processing chip;
the mapping table establishing module and the identification determining module form a second processing chip.
21. The access device of claim 20, wherein prior to establishing the mapping table between the first protocol standard negotiation packet, the number, and the second protocol standard negotiation packet, further comprising: a path determination module;
when the first processing chip and the forwarding chip are set as bypasses, the path determining module is configured to set a transmission path of a first protocol standard channel detection packet, a second protocol standard channel detection packet, a first protocol standard protocol conversion packet, and a second protocol standard conversion packet between the first processing chip and the forwarding chip, respectively; or the like, or, alternatively,
and when the first processing chip and the forwarding chip are arranged in series, the path determining module is used for respectively intercepting the second protocol standard channel detection message received by the forwarding chip and the first protocol standard channel detection message determined by the first protocol standard channel detection entity.
22. The access device of any of claims 12-21, wherein the first protocol standard is an 802.1AG protocol standard; the second protocol standard is a bidirectional forwarding protocol detection (BFD) protocol standard or a TP-OAM protocol standard for operation management maintenance.
23. An access device supporting a second protocol standard, wherein the access device, as a second access device, comprises: the device comprises a channel determining module and a channel establishing module;
the channel establishing module is used for establishing a channel for carrying out channel detection message transmission with first access equipment supporting a first protocol standard;
the channel determining module is configured to determine, after a channel for performing channel detection packet transmission with a first access device supporting a first protocol standard is established, whether a second protocol standard protocol co-rotation packet which is sent by the first access device through a channel corresponding to a second identifier for marking a different channel according to a first preset period and carries the second identifier is received; the second protocol standard protocol conversion message is a channel detection message in accordance with a second protocol standard; when the second protocol standard coordination message sent through the channel corresponding to the second identifier is not received in three consecutive first preset periods, determining that the state of the channel corresponding to the second identifier is an interruption state; when the second protocol standard protocol conversion messages sent through the channel corresponding to the second identifier are received in three consecutive first preset periods, determining that the state of the channel corresponding to the second identifier is a smooth state;
wherein, the second protocol standard protocol conversion message is obtained by the following method: after the first access device establishes a mapping table between a first protocol standard protocol conversion message, a serial number and a second protocol standard conversion message, determining a first protocol standard channel detection message carrying first identifications for marking different channels according to a first preset period; searching a second protocol standard cooperation message which corresponds to the first identifier carried in the first protocol standard channel detection message and carries a second identifier with the same meaning as the first identifier according to the first identifier carried in the first protocol standard channel detection message and the established mapping table among the first protocol standard cooperation message, the serial number and the second protocol standard cooperation message;
the first identification and the second identification each comprise at least a number.
24. The access device of claim 23, after establishing a tunnel for tunnel detection messaging with a first access device supporting a first protocol standard, further comprising: a sending module;
the sending module is configured to send a second protocol standard channel detection packet carrying the second identifier to the first access device through the channel corresponding to the second identifier according to a second preset period, so that the first access device determines whether the channel corresponding to the first identifier is in a clear state.
25. The access device of claim 24, further comprising: an identification determination module;
the identifier determining module is configured to determine a second identifier used for marking a different channel in the first access device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711484064.3A CN108234241B (en) | 2017-12-29 | 2017-12-29 | Channel detection method and access device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711484064.3A CN108234241B (en) | 2017-12-29 | 2017-12-29 | Channel detection method and access device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108234241A CN108234241A (en) | 2018-06-29 |
CN108234241B true CN108234241B (en) | 2020-06-16 |
Family
ID=62646195
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711484064.3A Active CN108234241B (en) | 2017-12-29 | 2017-12-29 | Channel detection method and access device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108234241B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571466A (en) * | 2010-12-16 | 2012-07-11 | 中国移动通信集团安徽有限公司 | Method, device and system for testing service |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101378338B (en) * | 2008-09-24 | 2011-04-20 | 中兴通讯股份有限公司 | Method and apparatus for implementing bidirectional transmit-receive detection |
US9992039B2 (en) * | 2014-05-07 | 2018-06-05 | Cisco Technology, Inc. | Activating mobile backup link based on wired customer edge-provider edge (CE-PE) link status |
CN105281927A (en) * | 2014-05-28 | 2016-01-27 | 中兴通讯股份有限公司 | Method and device for multilink protection switching |
-
2017
- 2017-12-29 CN CN201711484064.3A patent/CN108234241B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571466A (en) * | 2010-12-16 | 2012-07-11 | 中国移动通信集团安徽有限公司 | Method, device and system for testing service |
Also Published As
Publication number | Publication date |
---|---|
CN108234241A (en) | 2018-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3154227B1 (en) | Packet transmission method, node, path management server and storage medium | |
JP6408602B2 (en) | Method and communication unit for service implementation in an NFV system | |
WO2019062836A1 (en) | Network slice management method, and device for same | |
CN103746911B (en) | A kind of SDN structure and its communication means | |
EP3257199B1 (en) | Service performance monitoring in a virtualized communication network | |
CN106685903B (en) | SDN-based data transmission method, SDN controller and SDN system | |
CN107257291B (en) | Network equipment data interaction method and system | |
CN103916275A (en) | BFD detection device and method | |
EP3203685B1 (en) | Method and apparatus for implementing operations, administration and maintenance function | |
US10182132B2 (en) | Method, apparatus and system for communication between OpenFlow device and IP network device | |
EP2874349B1 (en) | Communication path processing method and apparatus | |
CN107306215B (en) | Data processing method, system and node | |
US10873527B2 (en) | Link protection method in SDN, switching device, and network controller | |
KR20210151979A (en) | Message detection method, device, and system | |
CN102387028A (en) | Network system, network management server, and OAM test method | |
KR20210058720A (en) | Resource allocation method, apparatus, and system, and storage medium | |
JP2019519146A (en) | Routing establishment, packet transmission | |
CN105634935A (en) | Device and method for detecting service layer signal failure | |
EP2869641A1 (en) | Network path control method, device, and system | |
KR101478944B1 (en) | Switch migration method for software-defined-networks with a plurality of controllers | |
RU2687215C1 (en) | Method and device for transmitting information on openflow switch functions | |
CN107222883B (en) | Wireless controller backup method, backup switching method, device and system | |
CN104935614B (en) | Data transmission method and device | |
KR101996337B1 (en) | Switch processing method, controller, switch, and switch processing system | |
CN108234241B (en) | Channel detection method and access device |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 100094 First to Fifth Floors of Building 11, East Yard, No. 10 Wangdong Road, Northwest Haidian District, Beijing Applicant after: Raisecom Technology Inc. Address before: 100085 No. 2 Building, No. 28 Shangdi Sixth Street, Haidian District, Beijing Applicant before: Raisecom Technology Inc. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |