CN113923276A - Flexe port communication method, communication equipment and storage medium - Google Patents
Flexe port communication method, communication equipment and storage medium Download PDFInfo
- Publication number
- CN113923276A CN113923276A CN202010576074.5A CN202010576074A CN113923276A CN 113923276 A CN113923276 A CN 113923276A CN 202010576074 A CN202010576074 A CN 202010576074A CN 113923276 A CN113923276 A CN 113923276A
- Authority
- CN
- China
- Prior art keywords
- port
- mode
- flexe
- data
- communication device
- 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.)
- Granted
Links
- 238000004891 communication Methods 0.000 title claims abstract description 230
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000009432 framing Methods 0.000 claims description 80
- 238000012545 processing Methods 0.000 claims description 36
- 230000006870 function Effects 0.000 claims description 27
- 238000005516 engineering process Methods 0.000 claims description 10
- 238000012423 maintenance Methods 0.000 abstract description 4
- 238000007726 management method Methods 0.000 description 19
- 230000008569 process Effects 0.000 description 13
- 238000013507 mapping Methods 0.000 description 9
- 238000004590 computer program Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 239000000284 extract Substances 0.000 description 5
- 238000000605 extraction Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000013075 data extraction Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/30—Definitions, standards or architectural aspects of layered protocol stacks
- H04L69/32—Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
- H04L69/321—Interlayer communication protocols or service data unit [SDU] definitions; Interfaces between layers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/24—Negotiation of communication capabilities
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The embodiment of the invention provides a Flexe port communication method, communication equipment and a storage medium, wherein when the ports of two pieces of communication equipment cannot be intercommunicated in default configuration, equipment with high port working mode priority can automatically indicate equipment with low port working mode priority to switch the working modes of the ports, so that the intercommunication of the corresponding ports of the equipment at two ends is automatically realized without depending on the intervention of management personnel, the convenience of intercommunicating and chain building between the communication equipment is improved, and the cost and the burden of network operation and maintenance are reduced.
Description
Technical Field
The embodiment of the invention relates to the field of communication, in particular to but not limited to a Flexe port communication method, communication equipment and a storage medium.
Background
The FlexE (flexible ethernet) standard promulgated by the international organization for standardization OIF (Optical interconnection Forum) is an interface technology that provides channelization, port binding, and subrate features. The FlexE technology defines a FlexE shim (shim) Layer in an ethernet PHY (Physical Layer) for decoupling a MAC (Media Access Control) Layer and a PHY Layer. The FlexE pad function is located in a PCS (Physical Coding Sublayer) that is divided into an upper half and a lower half by the FlexE pad. Each FlexE client has its own independent MAC functional entity and RS (Reconciliation Sublayer). The layers below the PCS layer are functionally in accordance with the IEEE802.3 Ethernet standard, but for the entire port, the FlexE port and the ETH (Ethernet) port cannot directly communicate with each other because they are separated by the FlexE shim.
Disclosure of Invention
The FlexE port communication method, the communication device and the storage medium provided by the embodiment of the invention mainly solve the technical problems that: the problem that the communication of equipment is influenced because a FlexE port and an ETH port cannot be communicated in the related technology.
To solve the foregoing technical problem, an embodiment of the present invention provides a FlexE port communication method, including:
receiving first data sent by opposite terminal equipment through a second port of the opposite terminal equipment from a first port;
performing framing processing on the first data, and determining the current working modes of the first port and the second port according to a framing result, wherein the working modes comprise an ETH mode and a Flexe mode;
and if the priority of the current working mode of the first port is higher than that of the current working mode of the second port, sending a mode switching indication message to the opposite terminal equipment, wherein the mode switching indication message is used for indicating the opposite terminal equipment to switch the working mode of the second port.
The embodiment of the invention also provides a Flexe port communication method, which comprises the following steps:
receiving second data sent by the opposite terminal equipment through the first port of the opposite terminal equipment from the second port;
performing framing processing on the second data, and determining the current working modes of the first port and the second port according to a framing result, wherein the working modes comprise an Ethernet (ETH) mode and a Flexe mode;
if the priority of the current working mode of the second port is lower than that of the current working mode of the first port, extracting a mode switching indication message from the second data;
and switching the working mode of the second port according to the mode switching indication message.
The embodiment of the invention also provides communication equipment, which comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing one or more programs stored in the memory so as to realize the steps of the first Flexe port communication method; or the processor is configured to execute one or more programs stored in the memory to implement the steps of the second FlexE port communication method.
The embodiment of the present invention further provides a storage medium, where 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 first FlexE port communication method; the second port communication program may be executable by one or more processors to implement the steps of the second FlexE port communication method described above.
According to the FlexE port communication method, the communication device and the storage medium provided by the embodiment of the invention, the local device can receive the first data sent by the opposite device through the second port from the first port of the local device, then frame the first data, and determine the current working modes of the first port and the second port according to the frame result. In an embodiment of the present invention, the operation modes of the port may include an ETH mode in which the port operates as an ETH port and a FlexE mode in which the port operates as a FlexE port. The second port of the opposite-end communication device supports both an ETH mode and a Flexe mode, so that when the local-end device determines that the priority of the current working mode of the first port is higher than that of the current working mode of the second port, the local-end device can send a mode switching indication message to the opposite-end device to indicate the opposite-end 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, and the intercommunication between the local-end device and the corresponding port of the opposite-end device is realized. In the scheme provided by the embodiment of the invention, when the ports of two communication devices cannot be intercommunicated in default configuration, the device with the higher priority of the port working mode can automatically instruct the device with the lower priority of the port working mode to switch the working modes of the ports, so that the intercommunication of the ports corresponding to the devices at the two ends is automatically realized without depending on the intervention of management personnel, the convenience of intercommunicating and chain building between the communication devices is improved, and the cost and the burden of network operation and maintenance are reduced.
Additional features and corresponding advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a schematic diagram illustrating protocol layer division of a FlexE port according to a first embodiment of the present invention;
fig. 2 is a flowchart of a first communication device side of a FlexE port communication method according to a first embodiment of the present invention;
fig. 3 is a flowchart of a second communication device side of a FlexE port communication method according to a first embodiment of the present invention;
fig. 4 is a flowchart illustrating that the second communication device switches the working mode of the second port according to the mode switching indication message according to the first embodiment of the present invention;
fig. 5 is a schematic diagram of the working principle of the port of the communication device shown in the second embodiment of the present invention;
fig. 6 is a flowchart of a first communication device side of a FlexE port communication method according to a second embodiment of the present invention;
fig. 7 is a flowchart of a second communication device side of a FlexE port communication method according to a second embodiment of the present invention;
fig. 8 is a schematic diagram of a hardware structure of a communication device according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention are described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The first embodiment is as follows:
the FlexE technique was initiated by OIF at month 3 2015 and formally documented through related techniques at month 3 2016. The FlexE technology is implemented by setting a FlexE shim in the PCS, please refer to the protocol layer division diagram of the FlexE port shown in fig. 1: the ethernet Physical layer 10 includes a PCS, a Physical Medium Attachment (PMA) 12, a Physical Medium Dependent (PMD) 13, and a FlexE shim 14 added to divide the PCS into an upper PCS half 111 and a lower PCS half 112. The FlexE technology provides a general mechanism to transmit a series of services with different MAC rates, which may be a service with a relatively large single MAC rate or a collection of services with relatively small multiple MAC rates, and is not limited to a service with a single MAC rate. The FlexE channelizes the 66b encoded block as a basic unit to support multiple flexible ethernet client signals, and the rate of each client signal may correspond to the ethernet interface rate defined by the existing IEEE802.3 standard, or may be other multiple rates. FlexE contains three general capabilities: binding a plurality of ethernet PHYs with the same rate to transmit services with a larger MAC rate, for example, binding 3 ethernet PHYs with a rate of 100G to support services with a MAC rate of 300G; subrate, such as transmitting a 75G MAC rate service in a 100G Ethernet PHY; channelizing, that is, using one ethernet PHY or a group of ethernet PHYs to transmit a plurality of services with different MAC rates, for example, binding 2 ethernet PHYs with 100G for transmitting a service with 150G MAC rate and 5 services with 10G MAC rate.
Because the FlexE cushion layer exists in the FlexE port, the FlexE port and the ETH port cannot be intercommunicated, which may cause abnormal communication between the communication devices: for example, if a port in a network is an ETH port that does not support a FlexE function, when engineering operations such as network expansion or upgrade are performed in such a network, if a port of a new device supports a FlexE function, the port of the new device cannot directly communicate with an ETH port of an old device when the port of the new device is in a FlexE default configuration, so that convenient and fast provisioning cannot be performed, which may cause the device to be disconnected.
In order to solve the above problem, the present embodiment provides a FlexE port communication method, please refer to a flowchart of the FlexE port communication method shown in fig. 2:
s202: the first communication device receives first data sent by the opposite terminal device through the second port of the opposite terminal device from the first port.
It is assumed here that the devices currently required to implement port interworking are a first communication device and a second communication device, a port on the first communication device, which communicates with the second communication device, is a first port, and a port on the second communication device, which communicates with the first communication device, is a second port. Therefore, when the second communication device transmits data to the first communication device, the data is transmitted through the second port of the second communication device and then enters the first communication device through the first port of the first communication device. If a first communication device sends data to a second communication device, the data is sent out from a first port of the first communication device and then enters the second communication device from a second port of the second communication device.
In this embodiment, after the physical link layer of the first communication device and the second communication device is opened, the data may be transmitted to the other side, and it is assumed here that the data transmitted by the second communication device to the first communication device is the first data.
S204: the first communication equipment carries out framing processing on the first data, and determines the height of the current working mode of the first port and the second port according to a framing result.
After the first communication device receives the first data from the first port, the first communication device may perform framing processing on the first data according to a FlexE technique, the framing processing including detecting whether an overhead frame is received, framing an overhead frame, and framing an overhead multiframe. The processing result of the framing processing is either successful framing or failed framing, and besides the successful framing requires that the first communication device successfully detects the overhead frame from the first data, the framing for the overhead frame is successful and the framing for the overhead multiframe is successful, the framing failure may be determined, for example, if the first communication device does not receive the overhead frame within a preset period of time, or the first communication device fails to frame the overhead frame, or the framing for the overhead multiframe fails after the framing for the overhead frame is successful by the first communication device.
It will be appreciated that if the first communication device frames the first data successfully, this indicates that the first data is data according to the FlexE communication standard, and therefore the peer device, i.e. the second port of the second communication device, is operating in the FlexE mode. If the first communication device fails to frame the first data, indicating that the first data does not comply with the FlexE communication standard, the second port of the second communication device is currently not operating in the FlexE mode, but rather in the ETH mode. Therefore, after the first communication device frames the first data, the priority of the current working mode of the first port and the priority of the current working mode of the second port can be determined according to the framing result and the current working mode of the first port.
The level of the priority of the working mode may be set by a network administrator according to the requirement of network management, and 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, and in this case, if a new device is to be used for capacity expansion, the port of the new device should be required to work in the FlexE mode, so as to avoid adjusting the port mode of the existing device in the network management system. Therefore, the FlexE mode can be set to have priority over the ETH mode at this time. In other cases, the priority of the ETH mode may also be higher than that of the FlexE mode, for example, if the ports of the existing devices in the network management system do not support the FlexE mode, on this basis, if capacity expansion is to be performed, the ports of the new devices can only be made to operate in the ETH mode, and at this time, the network management personnel need to set the priority of the ETH mode higher than that of the FlexE mode.
S206: and if the priority of the current working mode of the first port is higher than that of the current working mode of the second port, the first communication equipment sends a mode switching indication message to the opposite terminal equipment.
After the first communication device determines the priority of the current working mode of the first port and the second port according to the framing result and the current working mode of the first port, if the priority of the current working mode of the first port is determined to be higher than the working mode of the second port, the first communication device may send a mode switching indication message to the second communication device, and the mode switching indication message is adopted to indicate the second communication device to switch the working mode of the second port.
For example, in some examples, the priority of the FlexE mode is higher than the priority of the ETH mode, the first port is currently operating in the FlexE mode, and the first communication device fails to frame the first data, so the first communication device may determine that the second port is currently operating in the ETH mode, and then the priority of the current operating mode of the second port is lower than the priority of the operating mode of the first port.
For another example, in other examples, the priority of the ETH mode is higher than the priority of the FlexE mode, the first port is currently operating in the ETH mode, and the first communication device frames the first data successfully, so the first communication device may determine that the second port is currently operating in the FlexE mode, and then the priority of the current operating mode of the second port is lower than the priority of the operating mode of the first port.
The mode switch 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 the present embodiment, the first communication device instructs the second communication device to switch the mode of the second port through the LLDP message as the mode switch indication message, and in other examples of the present embodiment, the first communication device instructs the second communication device to switch the mode of the second port through the DCN message as the mode switch indication message. Of course, in some other examples, the mode switch indication message sent by the first communication device includes both the LLDP message and the DCN message.
After the second communication device receives the mode switching indication message, the working mode of the second port is switched according to the mode switching indication message, so that the second port also works in the current working mode of the first port.
The following explains the flow of the FlexE port communication method on the second communication device side with reference to fig. 3:
s302: and the second communication equipment receives second data sent by the opposite end equipment through the first port from the second port.
After the physical link layer of the first communication device and the physical link layer of the second communication device are opened, the data can be transmitted to the other party, and it is assumed that the data transmitted from the first communication device to the second communication device is the second data.
It is needless to say that, according to the foregoing description, 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.
S304: and the second communication equipment performs framing processing on the second data and determines the height of the current working mode of the first port and the second port according to a framing result.
After the second communication device receives the second data from the second port, the second communication device may perform framing processing on the second data according to a FlexE technique, where the framing processing includes detecting whether an overhead frame is received, framing an overhead frame, and framing an overhead multiframe. In addition to the fact that the framing is successful, which requires the second communication device to successfully detect the overhead frame from the second data, and the framing for the overhead frame is successful and the framing for the overhead multiframe is successful, the framing failure may be determined, for example, if the second communication device does not receive the overhead frame, or the framing for the overhead frame by the second communication device is failed, or the framing for the overhead multiframe is failed after the framing for the overhead frame by the second communication device is successful.
It will be appreciated that if the second communication device frames the second data successfully, this indicates that the second data is data according to the FlexE communication standard, and therefore the peer device, i.e. 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, indicating that the second data does not comply with the FlexE communication standard, the first port of the first communication device is currently not operating in the FlexE mode, but rather in the ETH mode. Therefore, after the second communication device performs framing processing on the second data, the priority level of the current working mode of the second port and the priority level of the current working mode of the first port can be determined according to the framing result and in combination with the current working mode of the second port.
The level of the priority of the working mode may be set by a network administrator according to the requirement of network management, and 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, and in this case, if a new device is to be used for capacity expansion, the port of the new device should be required to work in the FlexE mode, so as to avoid adjusting the port mode of the existing device in the network management system. Therefore, the FlexE mode can be set to have priority over the ETH mode at this time. In other cases, the priority of the ETH mode may also be higher than that of the FlexE mode, for example, if the ports of the existing devices in the network management system do not support the FlexE mode, on this basis, if capacity expansion is to be performed, the ports of the new devices can only be made to operate in the ETH mode, and at this time, the network management personnel need to set the priority of the ETH mode higher than that of the FlexE mode.
S306: and if the priority of the current working mode of the second port is lower than that of the current working mode of the first port, the second communication equipment extracts the mode switching indication message from the second data.
After the second communication device determines that the priority of the current working mode of the second port and the priority of the current working mode of the first port are higher than the priority of the current working mode of the second port according to the framing result and the current working mode of the second port, the second communication device determines that the second communication device needs to switch the working mode of the second port 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.
For example, in some examples, the FlexE mode has a higher priority than the ETH mode, the second port is currently operating in the ETH mode, and the second communication device frames the second data successfully, so the second communication device can determine that the first port is currently operating in the FlexE mode, and then the second port operating mode has a lower priority than the first port operating mode.
For another example, in other examples, the priority of the ETH mode is higher than the priority of the FlexE mode, the second port is currently operating in the FlexE mode, and the second communication device fails to frame the second data, so the second communication device can determine that the first port is currently operating in the ETH mode, and then the priority of the second port operating mode is also lower than the priority of the first port operating mode.
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 may extract a mode switching indication message from the second data, where the mode switching indication message may be at least one of an LLDP message or a DCN neighbor configuration message.
S308: and the second communication equipment switches the working mode of the second port according to the mode switching indication message.
And after the second communication equipment extracts the mode switching indication message, switching the working mode of the second port according to the mode switching indication message. In some examples of the present embodiment, the second communication device may switch the operation mode of the second port according to the process shown in fig. 4:
s402: and the second communication equipment determines a target mode corresponding to the mode switching indication message.
The target mode is the mode of operation in which the first communication device expects the second port to be. For example, in the case where the FlexE mode has higher priority than the ETH mode, the target mode indicated by the first communication device in the mode switch indication message should be the FlexE mode.
S404: and the second communication equipment judges whether the current working mode of the second port is consistent with the target mode in the mode switching indication message.
Before the second communication device switches the working mode of the second port, it will first determine 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 result of the determination is no, it indicates that the mode of the second port has not reached the expectation of the first communication device, so S406 is performed.
S406: and the second communication equipment switches the working mode of the second port to the target mode.
If the current working mode of the second port is not consistent with the target mode in the mode switching indication message, it indicates that the working mode of the second port needs to be switched, and in this case, the second communication device will switch the working mode of the second port.
In the FlexE port communication method provided in this embodiment, when the port of the communication device simultaneously supports the FlexE mode and the ETH mode, the port of the communication device supports automatic switching of the working mode: for a communication device, the working mode of the port corresponding to the peer device can be determined by framing data sent by the peer device. Under the condition of combining the working mode of the port corresponding to the local terminal, the switching strategy of the working mode of the output port can be determined as follows: if the working mode priority of the port of the local terminal is higher, the opposite terminal equipment is indicated to switch the working mode of the port of the opposite terminal equipment; if the working mode priority of the port of the local terminal is lower, the mode switching is carried out on the port of the local terminal according to the indication of the opposite terminal equipment, thereby ensuring that the two ports work under the same working mode and realizing the intercommunication of the ports. Because the identification and switching of the working modes of the communication equipment ports can be realized by the communication equipment and do not depend on manual intervention, the burden of network management personnel can be reduced to a great extent, and the convenience of network operation and maintenance is improved.
Example two:
in order to make the advantages and details of the FlexE port communication method clear to those skilled in the art, the present embodiment will be further described with reference to the following examples:
in this embodiment, the ports of the communication device support operation in both ETH and FlexE modes. Fig. 5 shows a schematic diagram of the working principle of a port of a communication device:
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 disposed between the code block mapping processing module 51 and the receiving processing module 54, and a second enabling control module 56 is disposed between the code block mapping processing module 51 and the framing module 52, where the first enabling control module 55 mainly implements 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 without being processed by the framing module 52. When the second enabling control module 56 is enabled, the channel between the code block mapping processing module 51 and the framing module 52 is connected, the data processed by the code block mapping processing module 51 is transmitted to the framing module 52, the framing module 52 frames the received data, if the framing processing of the framing module 52 is successful, the received data is uploaded to the receiving processing module 54, and meanwhile, the data is transmitted to the OH extraction module 53, so that the OH extraction module 53 extracts overhead data, and the overhead data is used by other modules when the received data is restored. If the framing module 52 fails to frame, it will not transmit data to the OH extraction module 53 and the reception processing module 54.
When the first enable control module 55 is in a non-enabled state, that is, when the bypass FlexE function is off, and the second enable control module 56 is in an enabled state, the port operates in a FlexE mode; and when the first enable control module 55 is in the enabled state, the bypass FlexE function is turned on, and the second enable control module 56 is in the disabled state, the port operates in the ETH mode. It should be noted that the port configured in this embodiment can still perform framing and overhead data extraction on the received data even in the ETH mode, so in this embodiment, when the port operates in the FlexE mode, the first enable control module 55 is in the disable state, and the second enable control module 56 is in the enable state; however, if the port is operating in the ETH mode, the first enable control module 55 and the second enable control module 56 are both enabled.
Therefore, for the communication device, the current state of the port can be determined according to the current state of the port bypass FlexE function, if the bypass FlexE function is in an on state, the port is currently in an ETH mode, and if the bypass FlexE function is in an off state, the port is currently in a FlexE mode.
When the port is in the ETH mode, if the port of the communication device receives ETH data sent by the ETH port, the ETH data is directly transmitted to the reception 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 is also transmitted to the framing module 52, but because the framing module 52 fails to frame, the ETH data is not transmitted to the receiving processing module 54 and the OH extracting module 53 by the framing module 52. If the port of the communication device receives the FlexE data sent by the FlexE port, the FlexE data is 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 is also transmitted to the framing module 52. Because the framing module 52 processes the 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.
In this embodiment, it is assumed that the first port of the first communication device is originally configured by the user to operate in the FlexE mode, and the second port of the second communication device is originally configured by the user to operate in the ETH mode, and meanwhile, it is assumed that the FlexE mode has higher priority than the ETH mode. It can be understood that, the user configures the first port to operate in the FlexE mode, so that the first communication device will close the bypass function of the first port after receiving the configuration instruction of the user; and after receiving the configuration instruction of the user, the second communication device will start the bypass function of the second port.
Referring now to fig. 6, a flow chart of a method for a first communication device to perform FlexE port communication is shown:
s602: the first communication device receives first data sent by the second communication device from the first port.
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.
S604: the first communication device frames the first data.
The framing module 52 of the first port frames the first data after receiving the first data subjected to the code block mapping process.
S604: the first communication device determines whether the frame is successful.
If the framing is successful, the process is ended, which indicates that the second port of the opposite-end communication device also works in the FlexE mode, so that port switching negotiation is not needed for a while, and the first data can be directly and normally processed according to the FlexE, otherwise, indicates that the second port of the opposite-end communication device works in the ETH mode, and the working mode of the second port is different from that of the first port of the local end, but because the priority of the FlexE mode is higher than that of the ETH mode, the first communication device does not switch its own first port, but instructs the second communication device to switch the mode of the second port, so the first communication device can execute S606.
S606: the first communication device sends a mode switch indication message to the second communication device.
The mode switching indication message sent by the first communication device may be an LLDP message or a DCN neighbor configuration message, where the LLDP message or the DCN neighbor configuration message may carry information indicating that the target mode is a FlexE mode. It is understood that in some examples, the first communication device may send the mode switch indication message to the second communication device immediately after determining that the framing for the first data has failed, but in other examples of the embodiment, the first communication device does not send the mode switch indication message immediately after determining that the framing for the first data has failed, but generates the overhead warning information first. For example, if framing of the overhead frame fails, an LOF alarm is generated, and if framing of the overhead multiframe fails, an LOMF alarm is generated. The first communication device may record the overhead alert information. On the other hand, the first communication device will periodically poll to determine whether the overhead warning information exists currently, and if the polling result is that the overhead warning information exists, the first communication device will send a mode switching indication message to the second communication device according to the overhead warning information.
Referring now to fig. 7, a flow chart of a method for implementing FlexE port communication by a second communication device is shown:
s702: the second communication device monitors whether an overhead frame is received.
If the overhead frame is received, S704 is executed, otherwise, S702 is continuously executed.
S704: the second communication device frames the overhead frame.
S706: the second communication device determines whether framing for the overhead frame was successful.
If the framing of the overhead frame is successful, S708 is executed, otherwise, the process is ended.
S708: the second communication device frames the overhead multiframe.
S710: the second communication device determines whether framing for the overhead multiframe is successful.
If the framing of the overhead frame is successful, S712 is executed, otherwise, the process is ended.
S712: the second communication device extracts the mode switch indication message in the overhead multiframe management channel.
S714: and the second communication equipment determines a target mode corresponding to the mode switching indication message.
In this embodiment, the target mode corresponding to the mode switch indication message sent by the first communication device should be the FlexE mode.
S716: and the second communication equipment judges whether the target mode is consistent with the current working mode of the second port.
If so, go to step S718, otherwise, end the process.
S718: the second communication device switches the second port to FlexE mode.
After the working mode of the second port is switched, the second port can be communicated with the first port.
According to the above description, in this embodiment, under the condition that the ports are not originally intercommunicated, negotiation may be completed through automatic negotiation between the devices, and the working modes of the ports are switched to be consistent, which is not only suitable for the scenario of capacity expansion of the network management system, but also suitable for the scenario of unified switching of the working modes of all the communication device ports in the network management system. For example, in some examples, a network administrator wants to uniformly switch the working mode of each port in the network management system from the ETH mode to the FlexE mode, and then the network administrator can manually modify the working mode of the port to the FlexE mode only on the near-end device, for example, an access network element, and set the priority of the FlexE mode to be higher than that of the ETH mode, and then each communication device in the network management system will automatically complete the switching of the port mode from near to far, which greatly improves the convenience of network provisioning and network management, and reduces the burden of the network administrator.
Example three:
the present embodiments provide a storage medium including volatile or non-volatile, removable or non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, computer program modules or other data. Storage media 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 disk Read-Only Memory), Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer.
The storage medium may store one or more computer programs that can be read, compiled, and executed by one or more processors, and 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 may be used by one or more processors to execute the process of implementing the first communication device side in any one of the FlexE port communication methods described in the foregoing embodiments. The second FlexE port communication program may be used by one or more processors to execute the process of implementing the second communication device side in any one of the FlexE port communication methods described in the foregoing embodiments. It will be appreciated that the first communication device is actually a device with higher port operating mode priority and the second communication device is actually a device with lower port operating mode priority, but for any communication device, the port operating mode has higher priority than the port operating mode of the end device in some scenarios, but the port operating mode has lower priority than the port operating mode of the end device in other scenarios, 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.
The present embodiments also provide a computer program product comprising a computer readable means on which a computer program as shown above is stored. The computer readable means in this embodiment may include a computer readable storage medium as shown above. For example, the computer program product comprises a communication device, as shown in fig. 8: the communication device 8 comprises a processor 81, a memory 82 and a communication bus 83 for connecting the processor 81 and the memory 82, wherein the memory 82 may be the aforementioned storage medium storing at least one of the first FlexE port communication program and the second FlexE port communication program.
In some examples, the processor 81 may read the first FlexE port communication program, compile and execute a flow on the first communication device side for implementing the FlexE port communication method described in the foregoing embodiments:
the processor 81 receives first data sent by the peer device through the second port from the first port, performs framing processing on the first data, and determines the current working modes of the first port and the second port according to a framing result, where the working modes include an ethernet ETH mode and a FlexE mode. If the priority of the current working mode of the first port is higher than that of the current working mode of the second port, the processor 81 sends a mode switching indication message to the opposite terminal device, where the mode switching indication message is used to indicate the opposite terminal device to switch the working mode of the second port.
In some examples, if framing for the first data fails and the first port is determined to be in FlexE mode, processor 81 determines that the priority of the current operating mode of the first port is higher than the priority of the current operating mode of the second port.
When the processor 81 determines that the first port is in the FlexE mode, the state of the bypass FlexE function of the first port may be determined first, and the bypass FlexE function of the first port is used to directly process the 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 the off state, the processor 81 determines that the first port is in the FlexE mode.
In this embodiment, the mode switching indication message includes at least one of an LLDP message and a DCN neighbor configuration message.
In other examples, the processor 81 may read a second FlexE port communication program, compile and execute a flow on the second communication device side for implementing the FlexE port communication method described in the foregoing embodiment:
receiving second data sent by the opposite terminal equipment through the first port of the opposite terminal equipment from the second port;
framing the second data, and determining the current working modes of the first port and the second port according to the framing result, wherein the working modes comprise an Ethernet (ETH) mode and a Flexe mode;
if the priority of the current working mode of the second port is lower than that of the current working mode of the first port, extracting a mode switching indication message from the second data;
and switching the working mode of the second port according to the mode switching indication message.
In some examples, if framing for the second data is successful and the second port is determined to be in the ETH mode, then the priority of the current operating mode of the second port is determined to be lower than the priority of the current operating mode of the first port.
Alternatively, when the processor 81 determines that the second port is in the ethernet Eth mode, the switch state of the bypass FlexE function of the second port may be determined first, and the bypass FlexE function of the second port is used to directly process the data received by the second port as Eth data without being processed by the FlexE technique. If the bypass FlexE function of the second port is in the on state, the processor 81 determines that the second port is in the ETH mode.
Optionally, when the processor 81 switches the working mode of the second port according to the mode switching indication message, the processor may first determine a 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.
In this embodiment, the working modes of the port may include an ETH mode and a FlexE mode, in the ETH mode, the port works as an ETH port, and in the FlexE mode, the port works as a FlexE port. The second port of the opposite-end communication device supports both an ETH mode and a Flexe mode, so that when the local-end device determines that the priority of the current working mode of the first port is higher than that of the current working mode of the second port, the local-end device can send a mode switching indication message to the opposite-end device to indicate the opposite-end 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, and the intercommunication between the local-end device and the corresponding port of the opposite-end device is realized. In the scheme provided by the embodiment of the invention, when the ports of two communication devices cannot be intercommunicated in default configuration, the device with the higher priority of the port working mode can automatically instruct the device with the lower priority of the port working mode to switch the working modes of the ports, so that the intercommunication of the ports corresponding to the devices at the two ends is automatically realized without depending on the intervention of management personnel, the convenience of intercommunicating and chain building between the communication devices is improved, and the cost and the burden of network operation and maintenance are reduced.
It will be apparent to those skilled in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software (which may be implemented in computer program code executable by a computing device), firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
In addition, communication media typically embodies computer readable instructions, data structures, computer program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to one of ordinary skill in the art. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is a more detailed description of embodiments of the present invention, and the present invention is not to be considered limited to such descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.
Claims (10)
1. A flexible Ethernet Flexe port communication method comprises the following steps:
receiving first data sent by opposite terminal equipment through a second port of the opposite terminal equipment from a first port;
performing framing processing on the first data, and determining the current working modes of the first port and the second port according to a framing result, wherein the working modes comprise an Ethernet (ETH) mode and a Flexe mode;
and if the priority of the current working mode of the first port is higher than that of the current working mode of the second port, sending a mode switching indication message to the opposite terminal equipment, wherein the mode switching indication message is used for indicating the opposite terminal equipment to switch the working mode of the second port.
2. The FlexE port communication method according to claim 1, wherein said determining the priority of the current operation mode of the first port and the second port according to the framing result comprises:
and if the framing of the first data fails and the first port is determined to be in a Flexe mode, determining that the priority of the current working mode of the first port is higher than that of the current working mode of the second port.
3. The FlexE port communication method of claim 2, wherein said determining that said first port is in FlexE mode comprises:
determining the state of the bypass Flexe function of the first port, wherein the bypass Flexe function of the first port is used for directly processing the data received by the first port as ETH data without being processed by a Flexe technology;
and if the bypass Flexe function of the first port is in a closed state, determining that the first port is in a Flexe mode.
4. The Flexe port communication method according to any of claims 1-3, wherein the mode switch indication message comprises 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 comprises the following steps:
receiving second data sent by the opposite terminal equipment through the first port of the opposite terminal equipment from the second port;
performing framing processing on the second data, and determining the current working modes of the first port and the second port according to a framing result, wherein the working modes comprise an Ethernet (ETH) mode and a Flexe mode;
if the priority of the current working mode of the second port is lower than that of the current working mode of the first port, extracting a mode switching indication message from the second data;
and switching the working mode of the second port according to the mode switching indication message.
6. The Flexe port communication method according to claim 5, wherein the determining the priority of the current working modes of the first port and the second port according to the framing result comprises:
and if the framing for the second data is successful and the second port is determined to be in the ETH mode, determining that the priority of the current working mode of the second port is lower than that of the current working mode of the first port.
7. The Flexe port communication method according to claim 6, wherein said determining that said second port is in Ethernet Eth mode comprises:
determining the switch state of the bypass Flexe function of the second port, wherein the bypass Flexe function of the second port is used for directly processing the data received by the second port as ETH data without being processed by a Flexe technology;
and if the bypass Flexe function of the second port is in an open state, determining that the second port is in an ETH mode.
8. A Flexe port communication method according to any one of claims 5 to 7, wherein said switching the operation mode of said second port according to said mode switch indication message comprises:
determining a target mode corresponding to the mode switching indication message;
and switching the working mode of the second port when the current working mode of the second port is different from the target mode.
9. A communication device comprising a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the FlexE port communication method according to any of claims 1 to 4; or the processor is adapted to execute one or more programs stored in the memory to implement the steps of the FlexE port communication method according to any of the claims 5 to 8.
10. A storage medium storing at least one of a first port communication program and a second port communication program, the first port communication program being executable by one or more processors to implement the steps of the FlexE port communication method according to any one of claims 1 to 4; the second port communication program is executable by one or more processors to implement the steps of the FlexE port communication method according to any of claims 5 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010576074.5A CN113923276B (en) | 2020-06-22 | 2020-06-22 | FlexE port communication method, communication equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010576074.5A CN113923276B (en) | 2020-06-22 | 2020-06-22 | FlexE port communication method, communication equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113923276A true CN113923276A (en) | 2022-01-11 |
CN113923276B CN113923276B (en) | 2024-09-24 |
Family
ID=79231241
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010576074.5A Active CN113923276B (en) | 2020-06-22 | 2020-06-22 | FlexE port communication method, communication equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113923276B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103795518A (en) * | 2012-10-31 | 2014-05-14 | 杭州华三通信技术有限公司 | Method, device, and system for synchronizing port modes between devices |
CN104283976A (en) * | 2013-07-10 | 2015-01-14 | 中兴通讯股份有限公司 | Switching method of network interfaces and access equipment |
US9049113B1 (en) * | 2012-11-15 | 2015-06-02 | Qlogic, Corporation | Systems and methods for primitive sequence capture and retransmission in a network device |
CN108631873A (en) * | 2017-03-21 | 2018-10-09 | 中兴通讯股份有限公司 | Receiving/transmission method, device, sending device and the receiving device of network management information |
WO2019019906A1 (en) * | 2017-07-24 | 2019-01-31 | 华为技术有限公司 | Communication method and device, and storage medium |
CN109728968A (en) * | 2017-10-31 | 2019-05-07 | 华为技术有限公司 | Obtain method, relevant device and the system in object transmission path |
CN110289978A (en) * | 2018-03-19 | 2019-09-27 | 华为技术有限公司 | A kind of switching method and its relevant device of port mode |
-
2020
- 2020-06-22 CN CN202010576074.5A patent/CN113923276B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103795518A (en) * | 2012-10-31 | 2014-05-14 | 杭州华三通信技术有限公司 | Method, device, and system for synchronizing port modes between devices |
US9049113B1 (en) * | 2012-11-15 | 2015-06-02 | Qlogic, Corporation | Systems and methods for primitive sequence capture and retransmission in a network device |
CN104283976A (en) * | 2013-07-10 | 2015-01-14 | 中兴通讯股份有限公司 | Switching method of network interfaces and access equipment |
CN108631873A (en) * | 2017-03-21 | 2018-10-09 | 中兴通讯股份有限公司 | Receiving/transmission method, device, sending device and the receiving device of network management information |
WO2019019906A1 (en) * | 2017-07-24 | 2019-01-31 | 华为技术有限公司 | Communication method and device, and storage medium |
CN109302372A (en) * | 2017-07-24 | 2019-02-01 | 华为技术有限公司 | A kind of communication means, equipment and storage medium |
CN109728968A (en) * | 2017-10-31 | 2019-05-07 | 华为技术有限公司 | Obtain method, relevant device and the system in object transmission path |
CN110289978A (en) * | 2018-03-19 | 2019-09-27 | 华为技术有限公司 | A kind of switching method and its relevant device of port mode |
Also Published As
Publication number | Publication date |
---|---|
CN113923276B (en) | 2024-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20100074121A1 (en) | Wireless device and method of controlling and monitoring wireless device | |
US6262973B1 (en) | SDH wireless transmission apparatus | |
RU2466505C2 (en) | Method, device and system of communication for protection of alarm transfer | |
US20160036625A1 (en) | Method and device for protecting service reliability and network virtualization system | |
US8325742B2 (en) | Network bridge and a method of operating thereof | |
CN111343019B (en) | Reconnection method, reconnection device and storage medium | |
CN113873598B (en) | Network switching method, device, network equipment and storage medium | |
EP2093935B1 (en) | Method, device and system of test access equipment configuration identification | |
US6173184B1 (en) | Network system for mobile radio communication with line switching | |
US20140050092A1 (en) | Load sharing method and apparatus | |
US8401034B2 (en) | Transport apparatus and transport method | |
CN113923276B (en) | FlexE port communication method, communication equipment and storage medium | |
CN112217661A (en) | Port mode self-adaption method and device | |
CN101527650B (en) | Communication management system, communication management method and communication device | |
EP1808973B1 (en) | A method for detecting and resuming maintenance link | |
CN114513406A (en) | Interface configuration method and device | |
CN115499270B (en) | Network control method and device, vehicle and computer readable storage medium | |
CN115733729A (en) | Communication fault processing method, system and equipment | |
CN101394642A (en) | Method, device and system for uploading link exception information | |
CN112995004B (en) | Interface negotiation method, processor, network equipment and network system | |
CN111224803B (en) | Multi-master detection method in stacking system and stacking system | |
CN114499674A (en) | Optical path configuration method, equipment and system | |
CN115514623A (en) | Fault processing method, stacking device and storage medium | |
CN113783805B (en) | Transmission method and system of FC switching network | |
JP3769537B2 (en) | Base station ATM bus uninterruptible switching method and base station ATM bus uninterruptible switching method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |