A FlexE port communication method, communication device and storage medium

By automatically identifying and switching port working modes in communication equipment, the problem of FlexE ports and ETH ports being unable to communicate with each other is solved, automatic communication between ports is realized, and network operation and maintenance costs and burdens are reduced.

CN113923276BActive Publication Date: 2024-09-24ZTE CORP
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202010576074.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-22
Publication Date
2024-09-24
Estimated Expiration
2040-06-22

AI Technical Summary

Technical Problem

The FlexE port and the ETH port cannot communicate with each other, causing device communication to be affected.

Method used

By realizing automatic identification and switching of port working modes in communication equipment, using fixed frame processing to determine the working mode priority of the port, and sending mode switching indication messages to switch the port working mode of the opposite end device to make it consistent with the local device. The working mode is consistent.

Benefits of technology

It realizes automatic intercommunication between FlexE ports and ETH ports, reduces network operation and maintenance costs and burdens, and improves the convenience of interoperability between communication devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113923276B
    Figure CN113923276B
Patent Text Reader

Abstract

The embodiments of the present invention provide a FlexE port communication method, a communication device and a storage medium. When the ports of two communication devices cannot communicate with each other under the default configuration, the device with a higher port working mode priority can automatically instruct the device with a lower port working mode priority to switch the working mode of its port, thereby automatically realizing the communication between the corresponding ports of the devices at both ends without relying on the intervention of management personnel, thereby improving the convenience of establishing links between communication devices and reducing the cost and burden of network operation and maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to, but are not limited to, the field of communications, and specifically, relate to, but are not limited to, a FlexE port communication method, a communication device, and a storage medium. Background Art

[0002] The FlexE (FlexEthernet) standard released by the Optical Internetworking Forum (OIF), an international organization for standardization, is an interface technology that provides channelization, port binding, and sub-rate features. FlexE technology defines a FlexE shim layer in the Ethernet PHY (Physical Layer) to decouple the MAC (Media Access Control) layer and the PHY layer. The FlexE shim function is located in the PCS (Physical Coding Sublayer), which is divided into an upper half and a lower half by the FlexE shim. Each FlexE customer has its own independent MAC functional entity and RS (Reconciliation Sublayer). The layers below the PCS layer are functionally consistent with the IEEE802.3 Ethernet standard, but for the entire port, the FlexE port and the ETH (Ethernet) port cannot communicate directly with each other because they are divided by the FlexE shim. Summary of the invention

[0003] The FlexE port communication method, communication device and storage medium provided in the embodiments of the present invention mainly solve the technical problem that the FlexE port and the ETH port in the related technology cannot communicate with each other, affecting the communication of the devices.

[0004] To solve the above technical problems, an embodiment of the present invention provides a FlexE port communication method, including:

[0005] Receiving, from the first port, first data sent by the opposite end device through its second port;

[0006] Performing framing processing on the first data, and determining the level of current working modes of the first port and the second port according to the framing result, where the working modes include an ETH mode and a FlexE mode;

[0007] If the priority of the current working mode of the first port is higher than the priority of the current working mode of the second port, a mode switching indication message is sent to the opposite device, wherein the mode switching indication message is used to instruct the opposite device to switch the working mode of the second port.

[0008] An embodiment of the present invention further provides a FlexE port communication method, including:

[0009] receiving, from the second port, second data sent by the opposite end device through its first port;

[0010] Performing framing processing on the second data, and determining the level of current working modes of the first port and the second port according to the framing result, where the working modes include Ethernet ETH mode and FlexE mode;

[0011] If the priority of the current working mode of the second port is lower than the priority of the current working mode of the first port, extracting a mode switching indication message from the second data;

[0012] The working mode of the second port is switched according to the mode switching indication message.

[0013] An embodiment of the present invention further provides a communication device, the communication device comprising a processor, a memory and a communication bus;

[0014] The communication bus is used to realize the connection and communication between the processor and the memory;

[0015] The processor is used to execute one or more programs stored in the memory to implement the steps of the first FlexE port communication method mentioned above; or, the processor is used to execute one or more programs stored in the memory to implement the steps of the second FlexE port communication method mentioned above.

[0016] An embodiment of the present invention also provides a storage medium, which stores at least one of a first port communication program and a second port communication program. The first port communication program can be executed by one or more processors to implement the steps of the above-mentioned first FlexE port communication method; the second port communication program can be executed by one or more processors to implement the steps of the above-mentioned second FlexE port communication method.

[0017] The FlexE port communication method, communication device and storage medium provided by the embodiment of the present invention, the local device can receive the first data sent by the opposite device through its second port from its first port, and then perform framing processing on the first data, and determine the level of the current working mode of the first port and the second port according to the framing result. In an embodiment of the present invention, the working mode of the port may include ETH mode and FlexE mode. In ETH mode, the port works as an ETH port, and in FlexE mode, the port works as a FlexE port. The second port of the opposite communication device supports both ETH mode and FlexE mode. Therefore, when the local device determines that the priority of the current working mode of the first port is higher than the priority of the current working mode of the second port, it can send a mode switching indication message to the opposite device, instructing the opposite device to switch the working mode of the second port, so that the second port can be switched to the working mode of the first port, thereby realizing the intercommunication between the corresponding ports of the local device and the opposite device. In the solution provided by the embodiment of the present invention, when the ports of two communication devices cannot communicate with each other under the default configuration, the device with a higher port working mode priority can automatically instruct the device with a lower port working mode priority to switch the working mode of its port, thereby automatically achieving intercommunication between the corresponding ports of the devices at both ends without relying on the intervention of management personnel, thereby improving the convenience of establishing links between communication devices and reducing the cost and burden of network operation and maintenance.

[0018] Other features and corresponding beneficial effects of the present invention are described in the latter part of the specification, and it should be understood that at least part of the beneficial effects become obvious from the description in the specification of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a schematic diagram of the protocol layer division of the FlexE port shown in the first embodiment of the present invention;

[0020] Figure 2 A flowchart of the first communication device side of the FlexE port communication method provided in Embodiment 1 of the present invention;

[0021] Figure 3 A flow chart of the second communication device side of the FlexE port communication method provided in Embodiment 1 of the present invention;

[0022] Figure 4 A flow chart showing that the second communication device switches the working mode of the second port according to the mode switching indication message shown in the first embodiment of the present invention;

[0023] Figure 5 A schematic diagram of the working principle of the communication device port shown in the second embodiment of the present invention;

[0024] Figure 6 A flow chart of the first communication device side of the FlexE port communication method provided in Embodiment 2 of the present invention;

[0025] Figure 7 A flow chart of the second communication device side of the FlexE port communication method provided in the second embodiment of the present invention;

[0026] Figure 8 A schematic diagram of the hardware structure of the communication device provided in the third embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the following is a further detailed description of the embodiments of the present invention through specific implementation methods combined with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0028] Embodiment 1:

[0029] The OIF initiated the research of FlexE technology in March 2015 and formally voted on the relevant technical documents in March 2016. FlexE technology is achieved by setting a FlexE cushion layer in the PCS. Figure 1The schematic diagram of the protocol layer division of the FlexE port is shown: the Ethernet physical layer 10 includes PCS, PMA (Physical Medium Attachment) 12, PMD (Physical Medium Dependent) 13, and the addition of the FlexE pad layer 14 divides the PCS into the upper part 111 of the PCS and the lower part 112 of the PCS. FlexE technology provides a universal mechanism to transmit a series of services with different MAC rates, which can be a single service with a relatively large MAC rate or a collection of multiple services with relatively small MAC rates. It is no longer limited to services with a single MAC rate. FlexE uses 66b coding blocks as the basic unit for channelization processing to support multiple flexible Ethernet client signals. The rate of each client signal can correspond to the Ethernet interface rate defined by the existing IEEE802.3 standard or to multiple other rates. FlexE includes three general capabilities: bundling multiple Ethernet PHYs with the same rate to transmit services with a relatively high MAC rate, such as bundling three 100G Ethernet physical layer PHYs to support services with a MAC rate of 300G; sub-rate, such as transmitting a service with a MAC rate of 75G in a 100G Ethernet PHY; channelization, that is, using one Ethernet PHY or a group of Ethernet PHYs to transmit multiple services with different MAC rates, such as bundling two 100G Ethernet PHYs to transmit a service with a MAC rate of 150G and five services with a MAC rate of 10G.

[0030] Due to the presence of a FlexE pad in the FlexE port, the FlexE port and the ETH port cannot communicate with each other, which will result in communication devices being unable to communicate normally: for example, if a port in a network is an ETH port that does not support the FlexE function, then when performing engineering operations such as network expansion or upgrade in this network, if the port of the new device supports the FlexE function, then when the port of the new device is in the FlexE default configuration, it cannot be directly communicated with the ETH port of the old device, so it cannot be easily activated, which may cause the device to be out of management.

[0031] To solve the above problems, this embodiment provides a FlexE port communication method. Figure 2 A flow chart showing a FlexE port communication method:

[0032] S202: The first communication device receives, from the first port, first data sent by the opposite device through its second port.

[0033] It is assumed here that the devices that currently need to achieve port intercommunication are the first communication device and the second communication device, the port on the first communication device that communicates with the second communication device is the first port, and the port on the second communication device that communicates with the first communication device is the second port. Therefore, when the second communication device sends data to the first communication device, the data will be sent through the second port of the second communication device, and then enter the first communication device through the first port of the first communication device. If the first communication device sends data to the second communication device, the data will be sent from the first port of the first communication device, and then enter the second communication device from the second port of the second communication device.

[0034] In this embodiment, after the physical link layers of the first communication device and the second communication device are connected, data can be sent to each other. It is assumed here that the data sent by the second communication device to the first communication device is the first data.

[0035] S204: The first communication device performs framing processing on the first data, and determines the current working modes of the first port and the second port according to the framing result.

[0036] After the first communication device receives the first data from the first port, the first communication device can perform framing processing on the first data according to the FlexE technology. The framing processing includes detecting whether an overhead frame is received, framing the overhead frame, and framing the overhead multiframe. The processing result of the framing processing is either a successful framing or a failed framing. The successful framing requires that the first communication device successfully detects the overhead frame from the first data, frames the overhead frame successfully, and frames the overhead multiframe successfully. Otherwise, it can be determined that the framing fails, for example, if the first communication device does not receive the overhead frame within a preset interval, or the first communication device fails to frame the overhead frame, or the first communication device fails to frame the overhead multiframe after successfully framing the overhead frame.

[0037] It is understandable that if the first communication device successfully frames the first data, it means that the first data is data that complies with the FlexE communication standard. Therefore, the second port of the opposite device, that is, the second communication device, is operating in the FlexE mode. If the first communication device fails to frame the first data, it means that the first data does not comply with the FlexE communication standard, and the second port of the second communication device is not currently operating in the FlexE mode, but in the ETH mode. Therefore, after the first communication device performs framing processing on the first data, it can determine the priority of the current working modes of the first port and the second port based on the framing result and the current working mode of the first port.

[0038] The priority of the working mode can be set by the network management personnel according to the needs of network management. In some cases, the priority of the FlexE mode is higher than that of the ETH mode. For example, in a network management system, all ports work in the FlexE mode. In this case, if new equipment is to be used for capacity expansion, the ports of the new equipment should also be required to work in the FlexE mode to avoid adjusting the port mode of the existing equipment in the network management system. Therefore, the priority of the FlexE mode can be set higher than the ETH mode. In other cases, the priority of the ETH mode can also be higher than the FlexE mode. For example, if the ports of the existing equipment in the network management system do not support the FlexE mode, if capacity expansion is to be carried out on this basis, the ports of the new equipment can only work in the ETH mode. At this time, the network management personnel need to set the priority of the ETH mode higher than the FlexE mode.

[0039] S206: If the priority of the current working mode of the first port is higher than the priority of the current working mode of the second port, the first communication device sends a mode switching indication message to the opposite device.

[0040] After the first communication device determines the priority of the current working modes of the first port and the second port based on the framing result and the current working mode of its own first port, if it is determined that the priority of the current working mode of the first port is higher than the working mode of the second port, the first communication device can send a mode switching indication message to the second communication device, and use the mode switching indication message to instruct the second communication device to switch the working mode of the second port.

[0041] For example, in some examples, the priority of the FlexE mode is higher than the priority of the ETH mode, the first port currently operates in the FlexE mode, and the first communication device fails to frame the first data, so the first communication device can determine that the second port currently operates in the ETH mode, then the priority of the current working mode of the second port is lower than the priority of the working mode of the first port.

[0042] For example, in some other examples, the priority of the ETH mode is higher than the priority of the FlexE mode. The first port currently works in the ETH mode, and the first communication device successfully frames the first data, so the first communication device can determine that the second port currently works in the FlexE mode. Then the priority of the current working mode of the second port is lower than the priority of the working mode of the first port.

[0043] The mode switching indication message may include but is not limited to at least one of an LLDP (Link Layer Discovery Protocol) message and a DCN (Data Communication Network) neighbor configuration message. In some examples of this embodiment, the first communication device instructs the second communication device to perform mode switching on the second port by using an LLDP message as a mode switching indication message. In other examples of this embodiment, the first communication device instructs the second communication device to perform mode switching on the second port by using a DCN message as a mode switching indication message. Of course, in other examples, the mode switching indication message sent by the first communication device includes both an LLDP message and a DCN message.

[0044] After receiving the mode switching instruction message, the second communication device switches the working mode of the second port according to the mode switching instruction message, so that the second port also works in the current working mode of the first port.

[0045] Combine the following Figure 3 The process of the FlexE port communication method on the second communication device side is described below:

[0046] S302: The second communication device receives, from the second port, second data sent by the opposite device through its first port.

[0047] After the physical link layers of the first communication device and the second communication device are connected, data can be sent to each other. It is assumed here that the data sent by the first communication device to the second communication device is the second data.

[0048] It is clear that, according to the above introduction, the second data sent by the first communication device to the second communication device is sent from the first port of the first communication device and enters the second communication device from the second port of the second communication device.

[0049] S304: The second communication device performs framing processing on the second data, and determines the current working modes of the first port and the second port according to the framing result.

[0050] After the second communication device receives the second data from the second port, the second communication device can perform framing processing on the second data according to the FlexE technology. The framing processing includes detecting whether an overhead frame is received, framing the overhead frame, and framing the overhead multiframe. The processing result of the framing processing is either a successful framing or a failed framing. The successful framing requires that the second communication device successfully detects the overhead frame from the second data, frames the overhead frame successfully, and frames the overhead multiframe successfully. Otherwise, it can be determined that the framing fails, for example, if the second communication device does not receive the overhead frame, or the second communication device fails to frame the overhead frame, or the second communication device fails to frame the overhead multiframe after successfully framing the overhead frame.

[0051] It is understandable that if the second communication device successfully frames the second data, it means that the second data is data that complies with the FlexE communication standard. Therefore, the peer device, that is, the first port of the first communication device, is operating in the FlexE mode. If the second communication device fails to frame the second data, it means that the second data does not comply with the FlexE communication standard, and the first port of the first communication device is not currently operating in the FlexE mode, but in the ETH mode. Therefore, after the second communication device performs framing processing on the second data, it can determine the priority of the second port and the current working mode of the first port based on the framing result and the current working mode of the second port.

[0052] The priority of the working mode can be set by the network management personnel according to the needs of network management. In some cases, the priority of the FlexE mode is higher than that of the ETH mode. For example, in a network management system, all ports work in the FlexE mode. In this case, if new equipment is to be used for capacity expansion, the ports of the new equipment should also be required to work in the FlexE mode to avoid adjusting the port mode of the existing equipment in the network management system. Therefore, the priority of the FlexE mode can be set higher than the ETH mode. In other cases, the priority of the ETH mode can also be higher than the FlexE mode. For example, if the ports of the existing equipment in the network management system do not support the FlexE mode, if capacity expansion is to be carried out on this basis, the ports of the new equipment can only work in the ETH mode. At this time, the network management personnel need to set the priority of the ETH mode higher than the FlexE mode.

[0053] S306: If the priority of the current working mode of the second port is lower than the priority of the current working mode of the first port, the second communication device extracts a mode switching indication message from the second data.

[0054] After the second communication device determines the priority of the current working modes of the second port and the first port based on the framing result and the current working mode of its second port, if it is determined that the priority of the current working mode of the first port is higher than the working mode of the second port, the second communication device determines that it needs to switch the working mode of the second port.

[0055] For example, in some examples, the priority of the FlexE mode is higher than the priority of the ETH mode, the second port currently operates in the ETH mode, and the second communication device successfully frames the second data, so the second communication device can determine that the first port is currently operating in the FlexE mode, then the priority of the second port operating mode is lower than the priority of the first port operating mode.

[0056] For example, in some other examples, the priority of the ETH mode is higher than the priority of the FlexE mode. The second port currently works in the FlexE mode, and the second communication device fails to frame the second data. Therefore, the second communication device can determine that the first port currently works in the ETH mode. Then the priority of the second port working mode is also lower than the priority of the first port working mode.

[0057] After determining that the priority of the current working mode of the second port is lower than the priority of the current working mode of the first port, the second communication device can extract a mode switching indication message from the second data, and the mode switching message can be at least one of an LLDP message or a DCN neighbor configuration message.

[0058] S308: The second communication device switches the working mode of the second port according to the mode switching instruction message.

[0059] After the second communication device extracts the mode switching indication message, it switches the working mode of the second port according to the mode switching indication message. In some examples of this embodiment, the second communication device switches the working mode of the second port according to the mode switching indication message. Figure 4 The process shown is used to switch the working mode of the second port:

[0060] S402: The second communication device determines a target mode corresponding to the mode switching instruction message.

[0061] The target mode is the working mode that the first communication device expects the second port to be in. For example, when the priority of the FlexE mode is higher than the ETH mode, the target mode indicated by the first communication device in the mode switching indication message should be the FlexE mode.

[0062] S404: The second communication device determines whether the current working mode of the second port is consistent with the target mode in the mode switching instruction message.

[0063] Before the second communication device switches the working mode of the second port, it first determines whether the current working mode of the second port is consistent with the target mode in the mode switching indication message, and if the determination result is yes, the switching process is exited. If the determination result is no, it means that the mode of the second port has not yet met the expectation of the first communication device, so S406 is executed.

[0064] S406: The second communication device switches the working mode of the second port to the target mode.

[0065] If the current working mode of the second port is inconsistent with the target mode in the mode switching indication message, it means that the working mode of the second port still needs to be switched. In this case, the second communication device will switch the working mode of the second port.

[0066] The FlexE port communication method provided in this embodiment enables the port of the communication device to support automatic switching of the working mode when the port of the communication device supports both the FlexE mode and the ETH mode: for a communication device, it can determine the working mode of the corresponding port of the opposite device by framing the data sent by the opposite device. In combination with the working mode of the corresponding port on this end, the port working mode switching strategy can be determined: if the working mode priority of the port on this end is higher, the opposite device is instructed to switch the working mode of its port; if the working mode priority of the port on this end is lower, the mode of its own port is switched according to the instruction of the opposite device, thereby ensuring that the two ports work in the same working mode and realizing port intercommunication. Since the identification and switching of the working mode of the port of the communication device can be realized by the communication device itself and does not rely on manual intervention, it can greatly reduce the burden on network management personnel and improve the convenience of network operation and maintenance.

[0067] Embodiment 2:

[0068] In order to make the advantages and details of the FlexE port communication method more clear to those skilled in the art, this embodiment will further explain the solution with examples:

[0069] In this embodiment, the port of the communication device supports working in both ETH mode and FlexE mode. Figure 5 A schematic diagram showing the working principle of the communication device port:

[0070] The port of the communication device includes a code block mapping processing module 51, a framing module 52, an OH (Overhead) extraction module 53 and a receiving processing module 54. In this embodiment, a first enabling control module 55 is provided between the code block mapping processing module 51 and the receiving processing module 54, and a second enabling control module 56 is provided between the code block mapping processing module 51 and the framing module 52, wherein the first enabling control module 55 mainly implements the bypass FlexE function, that is, when the first enabling control module 55 is enabled, the path between the code block mapping processing module 51 and the receiving processing module 54 is connected, and the data processed by the code block mapping processing module 51 can be directly uploaded to the receiving processing module 54 for processing without being processed by the framing module 52. When the second enabling control module 56 is enabled, the path between the code block mapping processing module 51 and the framing module 52 is connected, and the data processed by the code block mapping processing module 51 will be transmitted to the framing module 52. The framing module 52 performs framing processing on the received data. If the framing processing of the framing module 52 is successful, it will upload the received data to the receiving processing module 54. At the same time, it will also transmit the data to the OH extraction module 53, so that the OH extraction module 53 extracts the overhead data for use by other modules when restoring the received data. If the framing module 52 fails to frame, it will not transmit data to the OH extraction module 53 and the receiving processing module 54.

[0071] When the first enabling control module 55 is in a disabled state, that is, the bypass FlexE function is turned off, and the second enabling control module 56 is in an enabled state, the port works in the FlexE mode; and when the first enabling control module 55 is in an enabled state, the bypass FlexE function is turned on, and the second enabling control module 56 is in a disabled state, the port works in the ETH mode. It is worth noting that in this embodiment, the configured port can still perform framing and overhead data extraction on the received data even in the ETH mode, so in this embodiment, when the port works in the FlexE mode, the first enabling control module 55 is in a disabled state, and the second enabling control module 56 is in an enabled state; but if the port works in the ETH mode, both the first enabling control module 55 and the second enabling control module 56 are in an enabled state.

[0072] Therefore, for the communication device, the current state of the port can be determined according to the current state of the bypass FlexE function of the port. If the bypass FlexE function is on, the port is currently in ETH mode, and if the bypass FlexE function is off, the port is currently in FlexE mode.

[0073] When the port is in ETH mode, if the port of the communication device receives ETH data sent by the ETH port, the ETH data will be directly transmitted to the receiving processing module 54 based on the bypass function, so as to be processed according to the ETH protocol. On the other hand, the ETH data will also be transmitted to the framing module 52, but because the framing of the framing module 52 fails, the ETH data will not be transmitted to the receiving processing module 54 and the OH extraction module 53 by the framing module 52. If the port of the communication device receives FlexE data sent by the FlexE port, the FlexE data will be directly transmitted to the receiving processing module 54 based on the bypass function, so as to be processed according to the ETH protocol. On the other hand, the FlexE data will also be transmitted to the framing module 52. Because the framing module 52 processes FlexE data at this time, the framing will be successful. Subsequently, the framing module 52 will transmit the FlexE data to the receiving processing module 54 and the OH extraction module 53.

[0074] In this embodiment, it is assumed that the first port of the first communication device is originally configured by the user to work in the FlexE mode, and the second port of the second communication device is originally configured by the user to work in the ETH mode, and at the same time, it is assumed that the FlexE mode has a higher priority than the ETH mode. It is understandable that the user configures the first port to work in the FlexE mode, so after the first communication device receives the user's configuration instruction, it will turn off the bypass function of the first port; and after the second communication device receives the user's configuration instruction, it will turn on the bypass function of the second port.

[0075] See below Figure 6 A flow chart of a FlexE port communication method executed by a first communication device is shown:

[0076] S602: The first communication device receives first data sent by the second communication device from the first port.

[0077] After the first port of the first communication device receives the first data, the code block mapping processing module 51 of the first port processes the first data, and then transmits the processed first data to the framing module 52 of the first port.

[0078] S604: The first communication device performs framing processing on the first data.

[0079] After receiving the first data processed by the code block mapping, the framing module 52 of the first port performs framing processing on the first data.

[0080] S604: The first communication device determines whether the framing is successful.

[0081] If the framing is successful, the process ends, which means that the second port of the opposite communication device also works in FlexE mode, so there is no need to perform port switching negotiation temporarily, and the first data can be processed normally according to FlexE. Otherwise, it means that the second port of the opposite communication device works in ETH mode, and its working mode is different from the working mode of the first port of this end. However, because the priority of the FlexE mode is higher than the ETH mode, the first communication device will not switch its first port, but will instruct the second communication device to switch the mode of the second port. Therefore, the first communication device will execute S606.

[0082] S606: The first communication device sends a mode switching indication message to the second communication device.

[0083] The mode switching indication message sent by the first communication device may be an LLDP message or a DCN neighbor configuration message, and the LLDP message or the DCN neighbor configuration message may carry information indicating that the target mode is a FlexE mode. It can be understood that in some examples, after the first communication device determines that the framing of the first data fails, it will immediately send a mode switching indication message to the second communication device, but in some other examples of this embodiment, after the first communication device determines that the framing of the first data fails, it does not immediately send a mode switching indication message, but first generates overhead alarm information. For example, if the framing of the overhead frame fails, a LOF alarm is generated, and if the framing of the overhead multiframe fails, a LOMF alarm is generated. The first communication device will record the overhead alarm information. On the other hand, the first communication device will periodically poll to determine whether there is currently any overhead alarm information. If the polling result is that there is overhead alarm information, the first communication device will send a mode switching indication message to the second communication device according to the overhead alarm information.

[0084] See below Figure 7 A flow chart of a second communication device executing a FlexE port communication method is shown:

[0085] S702: The second communication device monitors whether an overhead frame is received.

[0086] If an overhead frame is received, execute S704; otherwise, continue to execute S702.

[0087] S704: The second communication device frames the overhead frame.

[0088] S706: The second communication device determines whether the framing of the overhead frame is successful.

[0089] If the overhead frame is framed successfully, execute S708, otherwise, end the process.

[0090] S708: The second communication device performs framing on the overhead multiframe.

[0091] S710: The second communication device determines whether framing of the overhead multiframe is successful.

[0092] If the overhead frame is framed successfully, execute S712; otherwise, end the process.

[0093] S712: The second communication device extracts the mode switching indication message in the overhead multiframe management channel.

[0094] S714: The second communication device determines the target mode corresponding to the mode switching instruction message.

[0095] In this embodiment, the target mode corresponding to the mode switching indication message sent by the first communication device should be the FlexE mode.

[0096] S716: The second communication device determines whether the target mode is consistent with the current working mode of the second port.

[0097] If the judgment result is yes, execute S718, otherwise, end the process.

[0098] S718: The second communication device switches the second port to the FlexE mode.

[0099] After the working mode of the second port is switched, it can communicate with the first port.

[0100] According to the above introduction, in this embodiment, when the ports are not originally interoperable, negotiation can be completed through automatic negotiation between devices to switch the port working mode to be consistent. This is not only applicable to the scenario of network management system expansion, but also to the scenario of unified switching of the working modes of all communication device ports in the network management system. For example, in some examples, the network management personnel want to uniformly switch the working mode of each port in the network management system from ETH mode to FlexE mode. Then the network management personnel can only manually change the working mode of the port to FlexE mode on the near-end device, such as the access network element, and set the priority of FlexE mode higher than ETH mode. Then, each communication device in the network management system will automatically complete the port mode switching from near to far, which greatly improves the convenience of network activation and network management and reduces the burden on network management personnel.

[0101] Embodiment three:

[0102] The present embodiment provides a storage medium, which includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules or other data). The storage medium includes, but is not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage device, or any other medium that can be used to store the desired information and can be accessed by a computer.

[0103] The storage medium may store one or more computer programs that can be read, compiled and executed by one or more processors. In this embodiment, the storage medium may store at least one of the first FlexE port communication program and the second FlexE port communication program. The first FlexE port communication program can be used by one or more processors to execute the process on the first communication device side in any of the FlexE port communication methods described in the aforementioned embodiments. The second FlexE port communication program can be used by one or more processors to execute the process on the second communication device side in any of the FlexE port communication methods described in the aforementioned embodiments. It can be understood that the first communication device is actually a device with a higher priority in the port working mode, and the second communication device is actually a device with a lower priority in the port working mode, but for any communication device, the priority of its port working mode is higher than the priority of the port working mode of the opposite device in some scenarios, but in other scenarios, the priority of its port working mode is lower than the priority of the port working mode of the opposite device, so in more examples, the storage medium in the communication device stores the first FlexE port communication program and the second FlexE port communication program at the same time.

[0104] This embodiment also provides a computer program product, including a computer readable device, on which the computer program as shown above is stored. In this embodiment, the computer readable device may include the computer readable storage medium as shown above. For example, the computer program product includes a communication device, such as Figure 8As shown: the communication device 8 includes a processor 81, a memory 82 and a communication bus 83 for connecting the processor 81 and the memory 82, wherein the memory 82 can be the aforementioned storage medium storing at least one of the first FlexE port communication program and the second FlexE port communication program.

[0105] In some examples, the processor 81 may read the first FlexE port communication program, compile and execute the process on the first communication device side of the FlexE port communication method described in the aforementioned embodiment:

[0106] The processor 81 receives the first data sent by the peer device through its second port from the first port, then performs framing processing on the first data, and determines the level of the current working modes of the first port and the second port according to the framing result, wherein the working modes include Ethernet ETH mode and FlexE mode. If the priority of the current working mode of the first port is higher than the priority of the current working mode of the second port, the processor 81 sends a mode switching indication message to the peer device, and the mode switching indication message is used to instruct the peer device to switch the working mode of the second port.

[0107] In some examples, if framing for the first data fails and it is determined that the first port is in FlexE mode, the processor 81 determines that the priority of the current working mode of the first port is higher than the priority of the current working mode of the second port.

[0108] When the processor 81 determines that the first port is in FlexE mode, it can first determine the state of the bypassFlexE function of the first port, and the bypassFlexE function of the first port is used to process the data received by the first port directly as ETH data without FlexE technology processing. If the bypassFlexE function of the first port is in a closed state, the processor 81 determines that the first port is in FlexE mode.

[0109] In this embodiment, the mode switching indication message includes at least one of an LLDP message and a DCN neighbor configuration message.

[0110] In other examples, the processor 81 may read the second FlexE port communication program, compile and execute the process on the second communication device side of the FlexE port communication method described in the aforementioned embodiment:

[0111] receiving, from the second port, second data sent by the opposite end device through its first port;

[0112] Performing framing processing on the second data, and determining the current working modes of the first port and the second port according to the framing result, where the working modes include Ethernet ETH mode and FlexE mode;

[0113] If the priority of the current working mode of the second port is lower than the priority of the current working mode of the first port, extracting a mode switching indication message from the second data;

[0114] The working mode of the second port is switched according to the mode switching indication message.

[0115] In some examples, if the framing for the second data is successful and it is determined that the second port is in ETH mode, it is determined that the priority of the current working mode of the second port is lower than the priority of the current working mode of the first port.

[0116] Optionally, when the processor 81 determines that the second port is in Ethernet Eth mode, the switch state of the bypassFlexE function of the second port can be determined first, and the bypassFlexE function of the second port is used to process the data received by the second port directly as ETH data without FlexE technology processing. If the bypassFlexE function of the second port is in the on state, the processor 81 determines that the second port is in ETH mode.

[0117] Optionally, when the processor 81 switches the working mode of the second port according to the mode switching indication message, it may first determine the target mode corresponding to the mode switching indication message, and then switch the working mode of the second port when the current working mode of the second port is different from the target mode.

[0118] In this embodiment, the working mode of the port may include ETH mode and FlexE mode. In ETH mode, the port works as an ETH port, and in FlexE mode, the port works as a FlexE port. The second port of the opposite communication device supports both ETH mode and FlexE mode. Therefore, when the local device determines that the priority of the current working mode of the first port is higher than the priority of the current working mode of the second port, it can send a mode switching indication message to the opposite device to instruct the opposite device to switch the working mode of the second port, so that the second port can be switched to the working mode of the first port, thereby realizing the intercommunication between the corresponding ports of the local device and the opposite device. In the scheme provided by the embodiment of the present invention, when the ports of two communication devices cannot be intercommunication in the default configuration, the device with a high priority of the port working mode can automatically instruct the device with a low priority of the port working mode to switch the working mode of its port, thereby automatically realizing the intercommunication of the corresponding ports of the two end devices without relying on the intervention of the management personnel, improving the convenience of intercommunication and link establishment between communication devices, and reducing the cost and burden of network operation and maintenance.

[0119] It can be seen that those skilled in the art should understand that all or some of the steps, systems, and functional modules / units in the above disclosed methods can be implemented as software (which can be implemented with computer program code executable by a computing device), firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component can have multiple functions, or a function or step can be performed by several physical components in cooperation. Some or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit.

[0120] In addition, it is well known to those skilled in the art that communication media generally contain computer readable instructions, data structures, computer program modules or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery media. Therefore, the present invention is not limited to any specific hardware and software combination.

[0121] The above contents are further detailed descriptions of the embodiments of the present invention in combination with specific implementation methods, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the scope of protection of the present invention.

Claims

1. A flexible Ethernet FlexE port communication method, comprising: Receiving, from the first port, first data sent by the opposite end device through its second port; Performing framing processing on the first data, and determining the level of current working modes of the first port and the second port according to the framing result, wherein the working modes include Ethernet ETH mode and FlexE mode; If the priority of the current working mode of the first port is higher than the priority of the current working mode of the second port, a mode switching indication message is sent to the opposite device, wherein the mode switching indication message is used to instruct the opposite device to switch the working mode of the second port.

2. The FlexE port communication method according to claim 1, characterized in that: The determining the priority of the current working modes of the first port and the second port according to the framing result includes: If framing fails for the first data and it is determined that the first port is in FlexE mode, it is determined that the priority of the current working mode of the first port is higher than the priority of the current working mode of the second port.

3. The FlexE port communication method according to claim 2, characterized in that: The determining that the first port is in FlexE mode includes: Determine a state of a bypass FlexE function of the first port, where the bypass FlexE function of the first port is used to directly process data received by the first port as ETH data without being processed by the FlexE technology; If the bypass FlexE function of the first port is in a disabled state, it is determined that the first port is in a FlexE mode.

4. The FlexE port communication method according to any one of claims 1 to 3, characterized in that: The mode switching indication message includes at least one of a link layer discovery protocol LLDP message and a data communication network DCN neighbor configuration message.

5. A FlexE port communication method, comprising: receiving, from the second port, second data sent by the opposite end device through its first port; Performing framing processing on the second data, and determining the level of current working modes of the first port and the second port according to the framing result, where the working modes include Ethernet ETH mode and FlexE mode; If the priority of the current working mode of the second port is lower than the priority of the current working mode of the first port, extracting a mode switching indication message from the second data; The working mode of the second port is switched according to the mode switching indication message.

6. The FlexE port communication method according to claim 5, characterized in that: The determining the priority of the current working modes of the first port and the second port according to the framing result includes: If the framing of the second data is successful and it is determined that the second port is in ETH mode, it is determined that the priority of the current working mode of the second port is lower than the priority of the current working mode of the first port.

7. The FlexE port communication method according to claim 6, characterized in that: The determining that the second port is in Ethernet Eth mode includes: Determine a switch state of a bypass FlexE function of the second port, where the bypass FlexE function of the second port is used to directly process data received by the second port as ETH data without being processed by the FlexE technology; If the bypass FlexE function of the second port is in an enabled state, it is determined that the second port is in ETH mode.

8. The FlexE port communication method according to any one of claims 5 to 7, characterized in that: The switching of the working mode of the second port according to the mode switching indication message comprises: Determine a target mode corresponding to the mode switching indication message; When the current working mode of the second port is different from the target mode, the working mode of the second port is switched.

9. A communication device, comprising a processor, a memory and a communication bus; The communication bus is used to realize the connection and communication between the processor and the memory; The processor is used to execute one or more programs stored in the memory to implement the steps of the FlexE port communication method as described in any one of claims 1 to 4; or, the processor is used to execute one or more programs stored in the memory to implement the steps of the FlexE port communication method as described in any one of claims 5 to 8.

10. A storage medium, characterized in that: The storage medium stores at least one of a first port communication program and a second port communication program, and the first port communication program can be executed by one or more processors to implement the steps of the FlexE port communication method as described in any one of claims 1 to 4; the second port communication program can be executed by one or more processors to implement the steps of the FlexE port communication method as described in any one of claims 5 to 8.

Citation Information

Patent Citations

  • Method, device, and system for synchronizing port modes between devices

    CN103795518A

  • Switching method of network interfaces and access equipment

    CN104283976A

  • Method and device for transmitting / receiving network management information, transmitting apparatus and receiving apparatus

    CN108631873A

  • Communication method and equipment as well as storage medium

    CN109302372A

  • Method, related equipment and system for obtaining target transmission path

    CN109728968A