CN114513406A - Interface configuration method and device - Google Patents

Interface configuration method and device Download PDF

Info

Publication number
CN114513406A
CN114513406A CN202011155545.1A CN202011155545A CN114513406A CN 114513406 A CN114513406 A CN 114513406A CN 202011155545 A CN202011155545 A CN 202011155545A CN 114513406 A CN114513406 A CN 114513406A
Authority
CN
China
Prior art keywords
mode
port
communication device
flexe
chip
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.)
Pending
Application number
CN202011155545.1A
Other languages
Chinese (zh)
Inventor
余美勇
邹洪伟
肖海军
李海峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202011155545.1A priority Critical patent/CN114513406A/en
Publication of CN114513406A publication Critical patent/CN114513406A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Communication Control (AREA)

Abstract

The embodiment of the application provides an interface configuration method, which can be executed by a first communication device. The first communication device includes a first port that may be used to communicate with a second port of a second communication device. In one example, the first communication device may determine a chip operating mode of the second port, and when the chip operating mode of the second port is determined to be an Eth mode, the first communication device may switch the chip operating mode of the first port from a FlexE mode to the Eth mode. In this way, the chip operating mode of the first port and the chip operating mode of the second port are both Eth modes, and therefore the first port and the second port can communicate normally. Therefore, by the aid of the scheme, a user does not need to manually configure the chip working mode of the first port, the first communication device can switch the chip working mode of the first port according to the chip working mode of the second port, and efficiency of configuring the first port is improved.

Description

Interface configuration method and device
Technical Field
The present application relates to the field of communications, and in particular, to an interface configuration method and apparatus.
Background
The communication device may include a physical interface, and the physical interface on the communication device may be configured in an Ethernet (Eth) mode or a Flexible Ethernet (FlexE) mode. When two physical interfaces in a neighboring relationship with each other communicate, the two physical interfaces may both be configured in an Eth mode or a FlexE mode. However, if one of the physical interfaces is configured in the FlexE mode and the other physical interface is configured in the Eth mode, the two physical interfaces cannot normally communicate.
Currently, when two physical interfaces in a neighboring relationship with each other are configured in a FlexE mode and the other physical interface is configured in an Eth mode, a user, such as an operation and maintenance person, is required to manually configure one of the two physical interfaces so that the two physical interfaces can normally communicate, but this approach is inefficient.
Disclosure of Invention
The embodiment of the application provides an interface configuration method, which can improve the configuration efficiency of a physical interface.
In a first aspect, an embodiment of the present application provides an interface configuration method, which may be performed by a first communication device. The first communication device includes a first port that may be used to communicate with a second port of a second communication device. In one example, the first communication device may determine a chip operating mode of the second port, and when the chip operating mode of the second port is determined to be an Eth mode, the first communication device may switch the chip operating mode of the first port from a FlexE mode to the Eth mode. In this way, the chip operating mode of the first port and the chip operating mode of the second port are both Eth modes, and therefore the first port and the second port can communicate normally. Therefore, by the aid of the scheme, a user does not need to manually configure the chip working mode of the first port, the first communication device can switch the chip working mode of the first port according to the chip working mode of the second port, and efficiency of configuring the first port is improved.
In one implementation, it is contemplated that the first communication device may receive a FlexE overhead frame of the second communication device if a FlexE communication is established between the first communication device and the second communication device. Therefore, in an implementation manner, if the first communication apparatus does not receive the FlexE overhead frame sent by the second communication apparatus within a preset time, it is indicated that FlexE communication is not established between the first communication apparatus and the second communication apparatus, and at this time, the first communication apparatus may determine that the chip operating mode of the second port is an Eth mode.
In one implementation manner, after the first communication device configures the chip operating mode of the first port to the Eth mode, the first communication device may further receive first indication information sent by the second communication device, where the first indication information is used to indicate that the first communication device configures the chip operating mode of the first port to the FlexE mode. As such, in one example, the first communication device may configure the chip operating mode of the first port to the FlexE mode, thereby causing the first port to operate in the FlexE mode. In this case, if the second port is also operating in the FlexE mode, FlexE communication can be established between the first communication device and the second communication device.
In one implementation, the first indication information is a remote failure RF indication information. In one example, when the first communication device receives the RF indication from the second communication device, the first communication device may configure the chip operation mode of the first port to the FlexE mode.
In one implementation manner, the first indication information includes O of a first ethernet frame sent by the second communication device0Code blocks. In one example, when a first communication device receives a first ethernet frame from a second communication device, O of the first ethernet frame may be extracted0Value of code block and O of first Ethernet frame0When the value of the code block is a preset value, for example, 0X05, the chip operation mode of the first port is configured to be a FlexE mode.
In one implementation, the first indication information may be carried in an extended TLV field of the first ethernet frame sent by the second communication device. In one example, when the first communication device receives the first ethernet frame from the second communication device, the chip operation mode of the first port may be configured to be the FlexE mode according to the extended TLV field in the first ethernet frame.
In one implementation, the first communication device may further instruct the second communication device to configure the chip operation mode of the second port to a FlexE mode. For example, in one example, the first communication device may instruct the second communication device to configure the chip operating mode of the second port to the FlexE mode before configuring the chip operating mode of the first port to the FlexE mode. Then, the first communication device configures the chip operation mode of the first port to a FlexE mode. The second communication device may configure the chip operation mode of the second port to the FlexE mode based on the instruction of the first communication device. In this way, FlexE communication is established between the first port and the second port.
In one implementation, the first communication device may instruct the second communication device to configure the chip operation mode of the second port to the FlexE mode by periodically sending second indication information to the second communication device within a predetermined time. Wherein the second indication information is used for indicating the second communication device to configure the chip operating mode of the second port to a FlexE mode. And periodically sending second indication information to the second communication device within a preset time, wherein the second indication information is used for ensuring that the second communication device can receive the second indication information, so that the second communication device is ensured to configure the chip working mode of the second port into a Flexe mode, and further, Flexe communication can be established between the first port and the second port.
In one implementation, the second indication information is a remote failure RF indication information. In an example, when the second communication device receives the RF indication information from the first communication device, if the port configuration mode of the second port is the FlexE mode and the chip operation mode of the second port is the Eth mode, the second communication device may configure the chip operation mode of the second port as the FlexE mode.
In one implementation, the second indication information is a station numberO of fourth Ethernet frame transmitted by the first communication device0Code blocks. In one example, O of a fourth ethernet frame transmitted by the first communication device to the second communication device0The code block may have a value of 0X 05.
In one implementation, the second indication information may be carried in an extended TLV field of a fourth ethernet frame sent by the first communication device. In one example, when the second communication device receives the fourth ethernet frame from the first communication device, the chip operation mode of the second port may be configured to be the FlexE mode according to the extended TLV field in the first ethernet frame.
In an implementation manner, after the first communication device switches the chip operating mode of the first port from the Eth mode to the FlexE mode, the chip operating mode of the second port may be periodically detected, and when the chip operating mode of the second port is different from the chip operating mode of the first port, the chip operating mode of the first port is reconfigured, so that the chip operating mode of the first port and the chip operating mode of the second port are consistent. For example, in one example, when the first communication device determines that the chip operating mode of the second port is an Eth mode, the first communication device may switch the chip operating mode of the first port from a FlexE mode to the Eth mode.
In one implementation, after the first communication device switches the chip operating mode of the first port from the FlexE mode to the Eth mode, if the first communication device determines that the chip operating mode of the second port is the FlexE mode, the first communication device may switch the chip operating mode of the first port from the Eth mode to the FlexE mode.
In one implementation, when the chip operating mode of the first port is an Eth mode, if the chip operating mode of the second port is also an Eth mode, the first port may receive a block lock (block lock) signal from the second port. Therefore, if the first communication device does not receive the block lock signal sent by the second communication device within the preset time period, the first communication device may determine that the chip operating mode of the second port is the FlexE mode.
In one implementation, when the chip operation mode of the first port is an Eth mode, if the chip operation mode of the second port is also an Eth mode, the first port may receive an alignment marker lock (alignment marker lock) signal from the second port. Therefore, if the first communication device does not receive the alignment marker lock signal sent by the second communication device within the preset time period, the first communication device may determine that the chip operating mode of the second port is the FlexE mode.
In one implementation, the first communication device may be based on O transmitted by the second communication device0The value of the code block to determine the chip mode of operation of the second port. Wherein: when the second communication device transmits O0When the code block has a value of 0X05, the first communication device may determine that the chip operation mode of the second port is the FlexE mode.
In an implementation manner, when the chip operating mode of the first port is an Eth mode, the first communication device may determine the chip operating mode of the second port by sending a second ethernet frame to the second communication device, where the second ethernet frame is used to determine the chip operating mode of the second port. If the first communication device does not receive the response of the second communication device to the second ethernet frame, the first communication device may determine that the chip operation mode of the second port is the FlexE mode.
In one implementation, the second ethernet frame includes an extended type length value, TLV, field, and the extended TVL field includes third indication information, and the third indication information is used to determine a chip operation mode of the second port.
In one implementation, the port configuration mode of the first port is a FlexE mode. When the port configuration mode of the first port is the FlexE mode, it is described that the first port may be used as an Eth interface or a FlexE interface. In other words, the chip operation mode of the first port may be configured as either the FlexE mode or the Eth mode. If the port configuration mode of the first port is the Eth mode, the first port may only be able to serve as an Eth interface, and at this time, the chip operation mode of the first port may not be configured to be the FlexE mode.
In a second aspect, embodiments of the present application provide an interface configuration method, which may be performed by a first communication device. The first communication device includes a first port that may be used to communicate with a second port of a second communication device. In one example, the first communication device may receive first indication information sent by the second communication device, where the first indication information is used to instruct the first communication device to configure the chip operating mode of the first port to the FlexE mode. After receiving the first indication information, the first communication device may switch the chip operating mode of the first port from the Eth mode to the FlexE mode. Therefore, by the aid of the scheme, a user does not need to manually configure the chip working mode of the first port, the first communication device can configure the chip working mode of the first port according to the first indication information sent by the second communication device, and efficiency of configuring the first port is improved.
In one implementation, the first indication information is a remote failure RF indication information. In one example, when the first communication device receives the RF indication information from the second communication device, the first communication device may configure the chip operation mode of the first port to the FlexE mode.
In one implementation manner, the first indication information includes O of a first ethernet frame sent by the second communication device0Code blocks. In one example, when a first communication device receives a first ethernet frame from a second communication device, O of the first ethernet frame may be extracted0Value of code block and O of first Ethernet frame0When the value of the code block is a preset value, for example, 0X05, the chip operation mode of the first port is configured to be a FlexE mode.
In one implementation, the first indication information may be carried in an extended TLV field of the first ethernet frame sent by the second communication device. In one example, when the first communication device receives the first ethernet frame from the second communication device, the chip operation mode of the first port may be configured to be the FlexE mode according to the extended TLV field in the first ethernet frame.
In one implementation, the first communication device may further instruct the second communication device to configure the chip operation mode of the second port to a FlexE mode. For example, in one example, the first communication device may instruct the second communication device to configure the chip operating mode of the second port to the FlexE mode before configuring the chip operating mode of the first port to the FlexE mode. Then, the first communication device configures the chip operation mode of the first port to a FlexE mode. The second communication device may configure the chip operation mode of the second port to the FlexE mode based on the instruction of the first communication device. In this way, FlexE communication is established between the first port and the second port.
In one implementation, the first communication device may instruct the second communication device to configure the chip operation mode of the second port to the FlexE mode by periodically sending second indication information to the second communication device within a predetermined time. Wherein the second indication information is used for indicating the second communication device to configure the chip operating mode of the second port to a FlexE mode. And periodically sending second indication information to the second communication device within a preset time, wherein the second indication information is used for ensuring that the second communication device can receive the second indication information, so that the second communication device is ensured to configure the chip working mode of the second port into a Flexe mode, and further, Flexe communication can be established between the first port and the second port.
In one implementation manner, when the chip operating mode of the first port is a FlexE mode, the first communication device may determine the chip operating mode of the second port, and when the chip operating mode of the second port is determined to be an Eth mode, the first communication device may switch the chip operating mode of the first port from the FlexE mode to the Eth mode. In this way, the chip operating mode of the first port and the chip operating mode of the second port are both Eth modes, and therefore the first port and the second port can communicate normally. Therefore, by the aid of the scheme, a user does not need to manually configure the chip working mode of the first port, the first communication device can switch the chip working mode of the first port according to the chip working mode of the second port, and efficiency of configuring the first port is improved.
In one implementation, it is contemplated that the first communication device may receive a FlexE overhead frame of the second communication device if a FlexE communication is established between the first communication device and the second communication device. Therefore, in an implementation manner, if the first communication apparatus does not receive the FlexE overhead frame sent by the second communication apparatus within a preset time, it is indicated that FlexE communication is not established between the first communication apparatus and the second communication apparatus, and at this time, the first communication apparatus may determine that the chip operating mode of the second port is an Eth mode.
In an implementation manner, after the first communication device switches the chip operating mode of the first port from the Eth mode to the FlexE mode, the chip operating mode of the second port may be periodically detected, and when the chip operating mode of the second port is different from the chip operating mode of the first port, the chip operating mode of the first port is reconfigured, so that the chip operating mode of the first port and the chip operating mode of the second port are consistent. For example, in one example, when the first communication device determines that the chip operating mode of the second port is an Eth mode, the first communication device may switch the chip operating mode of the first port from a FlexE mode to the Eth mode.
In one implementation, after the first communication device switches the chip operating mode of the first port from the FlexE mode to the Eth mode, if the first communication device determines that the chip operating mode of the second port is the FlexE mode, the first communication device may switch the chip operating mode of the first port from the Eth mode to the FlexE mode.
In one implementation, when the chip operating mode of the first port is an Eth mode, if the chip operating mode of the second port is also an Eth mode, the first port may receive a block lock (block lock) signal from the second port. Therefore, if the first communication device does not receive the block lock signal sent by the second communication device within the preset time period, the first communication device may determine that the chip operating mode of the second port is the FlexE mode.
In one implementation, when the chip operation mode of the first port is an Eth mode, if the chip operation mode of the second port is also an Eth mode, the first port may receive an alignment marker lock (alignment marker lock) signal from the second port. Therefore, if the first communication device does not receive the alignment marker lock signal sent by the second communication device within the preset time period, the first communication device may determine that the chip operating mode of the second port is the FlexE mode.
In one implementation, the first communication device may be based on O transmitted by the second communication device0The value of the code block to determine the chip mode of operation of the second port. Wherein: when the second communication device transmits O0When the code block has a value of 0X05, the first communication device may determine that the chip operation mode of the second port is the FlexE mode.
In an implementation manner, when the chip operating mode of the first port is an Eth mode, the first communication device may determine the chip operating mode of the second port by sending a second ethernet frame to the second communication device, where the second ethernet frame is used to determine the chip operating mode of the second port. If the first communication device does not receive the response of the second communication device to the second ethernet frame, the first communication device may determine that the chip operation mode of the second port is the FlexE mode.
In one implementation, the second ethernet frame includes an extended type length value, TLV, field, and the extended TVL field includes third indication information, and the third indication information is used to determine a chip operation mode of the second port.
In one implementation, the port configuration mode of the first port is a FlexE mode. When the port configuration mode of the first port is the FlexE mode, it is described that the first port may be used as an Eth interface or a FlexE interface. In other words, the chip operation mode of the first port may be configured as either the FlexE mode or the Eth mode. If the port configuration mode of the first port is the Eth mode, the first port may only be able to serve as an Eth interface, and at this time, the chip operation mode of the first port may not be configured to be the FlexE mode.
In a third aspect, an embodiment of the present application provides an interface configuration method, which may be performed by a first communication device. The first communication device includes a first port that may be used to communicate with a second port of a second communication device. In one example, a first communication device may determine a chip operating mode of a second port and adjust the chip operating mode of a first port to a same chip operating mode as a second port when the chip operating mode of the second port is different from the chip operating mode of the first port. In other words, when the chip operating mode of the second port is different from the chip operating mode of the first port, the first communication device may adjust the chip operating mode of the first port, so that the adjusted chip operating mode of the first port is the same as the chip operating mode of the second port, thereby enabling the first port and the second port to communicate normally. Therefore, by the aid of the scheme, a user does not need to manually configure the chip working mode of the first port, the first communication device can switch the chip working mode of the first port according to the chip working mode of the second port, and efficiency of configuring the first port is improved.
In an implementation manner, when the chip operating mode of the first port is an Eth mode and the chip operating mode of the second port is a FlexE mode, the first communication device may adjust the chip operating mode of the first port from the Eth mode to the FlexE mode.
In an implementation manner, when the chip operating mode of the second port is an Eth mode and the chip operating mode of the first port is a FlexE mode, the first communication device may adjust the chip operating mode of the first port from the FlexE mode to the ethernet Eth mode.
In one implementation, it is contemplated that the first communication device may receive a FlexE overhead frame from the second communication device if a FlexE communication is established between the first communication device and the second communication device. Therefore, in an implementation manner, when the chip operating mode of the first port is the FlexE mode, if the first communication device does not receive the FlexE overhead frame sent by the second communication device within the preset time, it is indicated that FlexE communication is not established between the first communication device and the second communication device, and at this time, the first communication device may determine that the chip operating mode of the second port is the Eth mode.
In one implementation manner, after the first communication device configures the chip operating mode of the first port to the Eth mode, the first communication device may further receive first indication information sent by the second communication device, where the first indication information is used to indicate that the first communication device configures the chip operating mode of the first port to the FlexE mode. As such, in one example, the first communication device may configure the chip operating mode of the first port to the FlexE mode according to the first indication information, thereby causing the first port to operate in the FlexE mode. In this case, if the second port is also operating in the FlexE mode, FlexE communication can be established between the first communication device and the second communication device.
In one implementation, the first indication information is a remote failure RF indication information.
In one implementation manner, the first indication information includes O in a first ethernet frame sent by the second communication device0Code blocks.
In one implementation manner, the receiving the first indication information sent by the second communication device includes: receiving a first Ethernet frame sent by the second communication device, wherein the first Ethernet frame comprises an extended type length value TLV field, and the extended TLV field comprises the first indication information.
In one implementation, the first communication device may further instruct the second communication device to configure the chip operation mode of the second port to a FlexE mode. For example, in one example, the first communication device may instruct the second communication device to configure the chip operating mode of the second port to the FlexE mode before configuring the chip operating mode of the first port to the FlexE mode. Then, the first communication device configures the chip operation mode of the first port to a FlexE mode. The second communication device may configure the chip operation mode of the second port to the FlexE mode based on the instruction of the first communication device. In this way, FlexE communication is established between the first port and the second port.
In one implementation manner, the instructing the second communication device to configure the chip operating mode of the second port as a FlexE mode includes: and periodically sending second indication information to the second communication device within a preset time, wherein the second indication information is used for indicating the second communication device to configure the chip working mode of the second port into a Flexe mode.
In one implementation, the first communication device may instruct the second communication device to configure the chip operation mode of the second port to the FlexE mode by periodically sending second indication information to the second communication device within a predetermined time. Wherein the second indication information is used for indicating the second communication device to configure the chip operating mode of the second port to a FlexE mode. And periodically sending second indication information to the second communication device within a preset time, wherein the second indication information is used for ensuring that the second communication device can receive the second indication information, so that the second communication device is ensured to configure the chip working mode of the second port into a Flexe mode, and further, Flexe communication can be established between the first port and the second port.
In one implementation, the second indication information is a remote failure RF indication information. In an example, when the second communication device receives the RF indication information from the first communication device, if the port configuration mode of the second port is the FlexE mode and the chip operation mode of the second port is the Eth mode, the second communication device may configure the chip operation mode of the second port as the FlexE mode.
In one implementation, the second indication information is O of a fourth ethernet frame sent by the first communication device0Code blocks. In one example, O of a fourth ethernet frame transmitted by the first communication device to the second communication device0The code block may have a value of 0X 05.
In one implementation, the second indication information may be carried in an extended TLV field of a fourth ethernet frame sent by the first communication device. In one example, when the second communication device receives the fourth ethernet frame from the first communication device, the chip operation mode of the second port may be configured to be the FlexE mode according to the extended TLV field in the first ethernet frame.
In an implementation manner, when the chip operating mode of the first port is an Eth mode, the first communication device may determine that the chip operating mode of the second port is a FlexE mode when the first communication device does not detect that the alignment marker lock signal sent by the second communication device is locked within a preset time.
In an implementation manner, when the chip operating mode of the first port is an Eth mode, the first communication device may send the O according to the second communication device0And determining the chip working mode of the second port to be a Flexe mode according to the value of the code block. E.g. when the second communication device transmits an O0When the code block has a value of 0X05, the first communication device may determine that the chip operation mode of the second port is a FlexE mode.
In an implementation manner, when the chip operating mode of the first port is an Eth mode, the first communication device may determine the chip operating mode of the second port by sending a second ethernet frame to the second communication device. Wherein the second Ethernet frame is used for determining a chip working mode of the second port. For this case, if the first communication device does not receive the response of the second communication device to the second ethernet frame, the first communication device may determine that the chip operation mode of the second port is the FlexE mode.
In one implementation, the second ethernet frame includes an extended type length value, TLV, field, and the extended TVL field includes third indication information, and the third indication information is used to determine a chip operation mode of the second port.
In one implementation, the port configuration mode of the first port is a FlexE mode. When the port configuration mode of the first port is the FlexE mode, it is described that the first port may be used as an Eth interface or a FlexE interface. In other words, the chip operation mode of the first port may be configured as either the FlexE mode or the Eth mode. If the port configuration mode of the first port is the Eth mode, the first port may only be able to serve as an Eth interface, and at this time, the chip operation mode of the first port may not be configured to be the FlexE mode.
In a fourth aspect, an embodiment of the present application provides an interface configuration method, which may be performed by a second communication device. The second communication device includes a second port for communicating with the first port of the first communication device. In one example, the second communication device may obtain first indication information for indicating that the first communication device configures the chip operation mode of the first port to the FlexE mode. After the second communication device acquires the first indication information, the first indication information may be sent to the first communication device. Therefore, according to the scheme, a user does not need to manually configure the chip operating mode of the first port, the second communication device sends first indication information indicating that the first communication device configures the chip operating mode of the first port to the FlexE mode to the first communication device so as to indicate the first communication device to configure the chip operating mode of the first port, and the efficiency of configuring the first port is improved.
In one implementation manner, the second communication device may obtain the first indication information after receiving a configuration instruction sent by a control management entity, where the configuration instruction is used to instruct the second communication device to configure the second port in a FlexE mode. In one example, the second communication device may configure both the port configuration mode and the chip operation mode of the second port to a FlexE mode based on the configuration instruction. And the first communication device may configure the chip operation mode of the first port to the FlexE mode based on the first indication information. Thus, FlexE communication can be established between the first communication device and the second communication device.
In one implementation, the first indication information is a remote failure RF indication information.
In one implementation, the first indication information is O in a first ethernet frame sent by the second communication device0Code blocks.
In one implementation, the sending the first indication information to the first communication device includes: transmitting a first Ethernet frame to the first communication device, the first Ethernet frame comprising an extended type-length-value, TLV, field, the extended TLV field comprising the first indication information.
In one implementation, the sending the first indication information to the first communication device includes: periodically transmitting the first indication information to the first communication device within a predetermined time.
In one implementation, the method further comprises: and receiving second indication information sent by the first communication device, wherein the second indication information is used for indicating the second communication device to configure the chip working mode of the second port to a Flexe mode.
In one implementation, the method further comprises: and receiving a second Ethernet frame sent by the first communication device, wherein the second Ethernet frame is used for determining the chip working mode of the second port.
In one implementation, the method further comprises: and when the chip working mode of the second port is an Eth mode, sending a response aiming at the second Ethernet frame to the first communication device.
In one implementation, the second ethernet frame includes an extended type length value, TLV, field, and the extended TVL field includes third indication information, and the third indication information is used to determine a chip operation mode of the second port.
In one implementation, the second communication device sends the response to the first communication device for the second ethernet frame, which may be a third ethernet frame.
In one implementation, the third ethernet frame includes an extended type length value, TLV, field, and the extended TVL field includes fourth indication information, and the fourth indication information is used to indicate the response.
In a fifth aspect, an embodiment of the present application provides a first communications apparatus, including: a transceiving unit and a processing unit. The transceiver unit is configured to perform transceiving operations performed by the first communication device according to any one of the first aspect and the first aspect, and the processing unit is configured to perform other operations than transceiving operations performed by the first communication device according to any one of the first aspect and the first aspect; or, the transceiver unit is configured to perform transceiver operations performed by the first communication apparatus according to any one of the second aspect and the third aspect, and the processing unit is configured to perform operations other than the transceiver operations performed by the first communication apparatus according to any one of the second aspect and the third aspect; alternatively, the transceiver unit is configured to perform the transceiving operation performed by the first communication device according to any one of the third aspect and the fourth aspect, and the processing unit is configured to perform other operations than the transceiving operation performed by the first communication device according to any one of the third aspect and the fourth aspect.
In a sixth aspect, embodiments of the present application provide a first communication device, which includes a memory and a processor; the memory for storing program code; the processor is configured to execute instructions in the program code to cause the first communication device to perform the method according to any one of the first aspect and the first aspect, or to cause the first communication device to perform the method according to any one of the second aspect and the second aspect, or to cause the first communication device to perform the method according to any one of the third aspect and the third aspect.
In a seventh aspect, an embodiment of the present application provides a first communication device, where the first communication device includes a communication interface and a processor, where the processor is configured to perform the method according to any one of the above first aspect and first aspect, or the processor is configured to perform the method according to any one of the above second aspect and second aspect, or the processor is configured to perform the method according to any one of the above third aspect and third aspect.
In an eighth aspect, an embodiment of the present application provides a second communications apparatus, including: a transceiving unit and a processing unit. The transceiver unit is configured to perform transceiving operations performed by the second communication apparatus according to any one of the above fourth aspect and the fourth aspect, and the processing unit is configured to perform other operations than transceiving operations performed by the second communication apparatus according to any one of the above fourth aspect and the fourth aspect.
In a ninth aspect, embodiments of the present application provide a second communication device, which includes a memory and a processor; the memory is used for storing program codes; the processor is configured to execute the instructions in the program code to cause the second communication device to perform the method of any one of the fourth and fourth aspects.
In a tenth aspect, an embodiment of the present application provides a second communication device, which includes a communication interface and a processor, where the processor is configured to execute the method in any one of the above fourth aspect and fourth aspect.
In an eleventh aspect, the present invention provides a computer-readable storage medium, which is characterized by storing instructions that, when executed on a computer, cause the computer to perform the method of any one of the above first aspect and the first aspect, or cause the computer to perform the method of any one of the above second aspect and the second aspect, or cause the computer to perform the method of any one of the above third aspect and the third aspect, or cause the computer to perform the method of any one of the above fourth aspect and the fourth aspect.
In a twelfth aspect, the present invention provides a communication system, which includes the first communication apparatus described in the fifth aspect, the sixth aspect, or the seventh aspect, and the second communication apparatus described in the eighth aspect, the ninth aspect, or the tenth aspect.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1a is a schematic structural diagram of an Eth interface according to an embodiment of the present disclosure;
fig. 1b is a schematic structural diagram of a FlexE interface according to an embodiment of the present application;
FIG. 2a is a schematic diagram of an exemplary application scenario provided by an embodiment of the present application;
FIG. 2b is a diagram of an exemplary application scenario provided by an embodiment of the present application;
FIG. 2c is a diagram of an exemplary application scenario provided by an embodiment of the present application;
fig. 3 is a signaling interaction diagram of an interface configuration method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an ethernet frame 1 according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another interface configuration method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another interface configuration method according to an embodiment of the present application;
fig. 7 is a schematic flowchart of another interface configuration method according to an embodiment of the present application;
fig. 8 is a schematic flowchart of another interface configuration method according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a communication device according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides an interface configuration method, which is used for improving the configuration efficiency of a physical interface.
For ease of understanding, the relevant contents of Eth and FlexE will be described first.
For a physical interface, the physical interface may be configured as an Eth mode, and may also be configured as a FlexE mode. For convenience of description, in the following description of the present application, a physical interface operating in the FlexE mode is referred to as a "FlexE interface", and a physical interface operating in the Eth mode is referred to as an "Eth interface". Referring to fig. 1a and fig. 1b, fig. 1a is a schematic structural diagram of an Eth interface provided in an embodiment of the present application, and fig. 1b is a schematic structural diagram of a FlexE interface provided in the embodiment of the present application.
As shown in fig. 1a, the Eth interface includes a Media Access Control (MAC) layer, a coordination sublayer (RS), a Physical Coding Sublayer (PCS), a Physical Medium Attachment (PMA) sublayer, and a Physical Medium Dependent (PMD) sublayer. As shown in fig. 1b, the FlexE interface includes one more FlexE shim (shim) between the MAC layer and the PCS, in addition to the MAC layer, the RS, the PCS, the PMA sublayer and the PMD sublayer.
It should be noted that fig. 1a and 1b are only illustrated for convenience of understanding the structural difference between the Eth interface and the FlexE interface, and do not limit the embodiments of the present application. In some embodiments, the structure of the Eth interface and the FlexE interface is not limited to that shown in fig. 1a and 1 b.
Illustratively, the processing mode of the Eth interface to the packet is as follows: the PCS receives the data and directly transmits the data to the MAC layer, and the MAC layer assembles the data into an Eth message.
Illustratively, the FlexE interface has two message processing modes. The first processing mode is as follows: and the PCS receives the data and transmits the data to Flexe shim, the Flexe shim is transmitted to the MAC, and the MAC assembles the data into an Eth message. The second processing mode is as follows: the PCS of the Flexe interface 1 receives data and sends the data to the Flexe shim of the Flexe interface 1, the Flexe shim of the Flexe interface 1 sends the data to the Flexe shim of the Flexe interface 2, and the Flexe shim of the Flexe interface 2 sends the data from the PCS of the Flexe interface 2 to a link. The Flexe interface 1 and the Flexe interface 2 are in a neighbor relation with each other, and communication can be carried out between the two interfaces. The FlexE interface may determine, according to the configuration, to process the packet in one of the above two manners.
When two physical interfaces which are in a neighbor relation with each other communicate, if one of the two physical interfaces is configured in a FlexE mode and the other physical interface is configured in an Eth mode, the two physical interfaces cannot communicate normally. This is because, for a packet from some other device, for example, a user device, the Eth interface processes the packet in a different manner from the FlexE interface. In one example:
when the Eth interface sends a message, for a message from a certain user equipment, the Eth interface cuts the message into 64-bit data, adds 2 bit synchronization heads in front of the data to form a 66-bit information block (block), and then sends the 66-bit block to a link in sequence. For example, after the Eth interface processes the packet, 4 blocks are obtained, and then the Eth interface first sends block1 to the link, then sends block2 to the link, and then sends block3 and block4 to the link in sequence. For this case, the data sent by the Eth interface to the link is: block1| block2| block3| block 4. Where "a | B" indicates that two bit streams a and B are concatenated in sequence.
When a Flexe interface sends a message, the Flexe shim of the Flexe interface cuts the message into 64-bit data, 2 bit synchronization heads are added in front of the data to form 66-bit blocks, and the blocks are inserted into specific slots. For example, the FlexE interface comprises 4 slots, where slot 1 and slot 3 are used to forward messages from the user equipment 1, and slot 2 and slot 3 are not yet allocated. Then the FlexE interface processes the packet from the user equipment 1 to obtain 2 blocks, which are respectively block5 and block6, and then the FlexE interface schedules block5 to slot 1 for forwarding, schedules an empty block to slot 2 for forwarding, schedules block6 to slot 3 for forwarding, and schedules an empty block to slot 4 for forwarding. Wherein, an empty block means that the 66bit data of the block are all 0. For this case, the data sent by the FlexE interface to the link is: block5| empty block | block6| empty block.
Therefore, if the Eth interface and the FlexE interface interact, the Eth interface sends a message to the FlexE interface, and since the Eth interface sends data bit by bit and the FlexE receives data according to a specific number of slots (according to user configuration), the FlexE shim cannot resolve correct data. Correspondingly, the FlexE interface sends the message to the Eth interface, and the Eth interface cannot analyze correct data.
As can be seen from the above description of fig. 1a and 1b, if the physical interface supports being configured in the FlexE mode, the physical interface may be configured in both the Eth mode and the FlexE mode. When the physical interface is configured in Eth mode, FlexE shim of the physical interface does not do any processing on data. Whether the Flexe shim of the physical interface processes the data can be determined by the chip working mode of the physical interface. In one example, when the chip operating mode of the physical interface is configured as the Eth mode, the FlexE shim of the physical interface does not perform any processing on data, and at this time, the physical interface is an Eth interface; when the chip operating mode of the physical interface is configured to the FlexE mode, the FlexE shim of the physical interface is used to process data, for which case the physical interface actually operates in the FlexE mode, i.e. the physical interface is a FlexE interface.
It should be noted that, the aforementioned "physical interface support is configured in the FlexE mode", which means that the port configuration mode of the physical port can be configured in the FlexE mode. In other words, when configuring a physical port, in addition to configuring the chip operation mode of the physical interface, it is also necessary to configure the port configuration mode of the physical interface. Generally, the port configuration mode and the chip operation mode are consistent for one physical interface. For example, if the port configuration mode is the FlexE mode, the chip operating mode is also the FlexE mode; in another example, if the port configuration mode is an Eth mode, the chip operating mode is also the Eth mode. In one example, if the control management entity sends a configuration instruction 1 to the communication device, instructing the communication device to configure the physical port 1 in the FlexE mode, the communication device may configure both the port configuration mode and the chip operation mode of the physical port 1 in the FlexE mode based on the configuration instruction 1. In another example, if the control management entity issues a configuration instruction 2 to the communication apparatus, which instructs the communication apparatus to configure the physical port 1 as the Eth mode, the communication apparatus may configure both the port configuration mode and the chip operating mode of the physical port 1 as the Eth mode based on the configuration instruction 2.
The control management entity mentioned in the embodiment of the present application may be, for example, a device running a Network Management System (NMS), or may be a controller. The control management entity may be a functional module for implementing a control and/or management function, or may be a physical entity running a related functional module, for example, a server installed with related software for implementing the function of the control management entity. The embodiments of the present application are not particularly limited.
Unless otherwise specified, the port mentioned in the embodiments of the present application refers to a physical port of a communication device.
Next, possible application scenarios of the present application are introduced.
Referring to fig. 2a, the figure is a schematic diagram of an exemplary application scenario provided in the embodiment of the present application.
As shown in fig. 2a, the control management entity is connected to a communication device a, the communication device a is connected to a communication device B, and the communication device a communicates with a port B of the communication device 2 through a port a. Both port a and port b operate in Eth mode. Namely: the port configuration mode and the chip working mode of the port a are both Eth modes; the port configuration mode and the chip working mode of the port b are both Eth modes. At this time, the control management entity may manage the communication apparatus a and manage the communication apparatus B through the communication apparatus a (the instruction issued by the control management entity to the communication apparatus B is forwarded by the communication apparatus a).
If it is necessary to switch both the port a and the port B from the Eth mode to the FlexE mode, the switching times of the port a and the port B may not be strictly consistent, so that a phenomenon that normal communication cannot be performed between the communication apparatus a and the communication apparatus B may occur. In one example: when the port a is first switched to the FlexE mode, both the port a configuration mode and the chip operation mode are changed to the FlexE mode, and at this time, the port B still operates in the Eth mode, so that communication between the communication device a and the communication device B cannot be performed normally. Further, the control management entity cannot manage the communication device B any more (referred to as communication device B offline), because the command issued by the control management entity to the communication device B cannot be forwarded to the communication device B through the communication device a.
Referring to fig. 2b, the figure is a schematic diagram of an exemplary application scenario provided in the embodiment of the present application.
As shown in fig. 2B, the control management entity is connected to a communication device a, the communication device a is connected to a communication device B, and the communication device a communicates with a port B of the communication device 2 through a port a. Both port a and port b operate in Eth mode. Namely: the port configuration mode and the chip working mode of the port a are both Eth modes; the port configuration mode and the chip working mode of the port b are both Eth modes. At this time, the control management entity may manage the communication device a, and manage the communication device B through the communication device a.
If a communication device C is inserted between the communication device a and the communication device B, wherein the port C of the communication device C is used for communicating with the port a, the port d of the communication device C is used for communicating with the port B, and the port C and the port d both work in the FlexE mode. Namely: the port configuration mode and the chip working mode of the port c are both Flexe modes, and the port configuration mode and the chip working mode of the port d are both Flexe modes. At this time, since the port a operates in Eth mode and the port C operates in FlexE mode, normal communication between the communication device a and the communication device C is not possible, so that the communication device C and the communication device B are out of control. Further, since the port B operates in Eth mode and the port d operates in FlexE mode, normal communication between the communication device B and the communication device C is not possible.
Referring to fig. 2c, the figure is a schematic diagram of an exemplary application scenario provided in the embodiment of the present application.
As shown in fig. 2c, the control management entity is connected to the communication device a, the communication device a is connected to the communication device B, and the communication device a communicates with the port B of the communication device 2 through the port a. Both port a and port b operate in FlexE mode. Namely: the port configuration mode and the chip working mode of the port a are both Flexe modes; the port configuration mode and the chip working mode of the port b are both Flexe modes. At this time, the control management entity may manage the communication apparatus a, and manage the communication apparatus B through the communication apparatus a.
If a communication device C is inserted between the communication device a and the communication device B, wherein the port C of the communication device C is used for communicating with the port a, the port d of the communication device C is used for communicating with the port B, and both the port C and the port d work in the Eth mode. Namely: the port configuration mode and the chip working mode of the port c are both Eth modes, and the port configuration mode and the chip working mode of the port d are both Eth modes. At this time, since the port a operates in the FlexE mode and the port C operates in the Eth mode, normal communication between the communication device a and the communication device C is not possible, so that the communication device C and the communication device B are out of control. Further, since the port d operates in Eth mode and the port B operates in FlexE mode, normal communication between the communication device B and the communication device C is not possible.
As can be seen from the above description of fig. 2a, 2b and 2c, in the above scenario, two communication devices cannot normally communicate, and further, some communication devices may be out of control.
In view of this, the embodiments of the present application provide an interface configuration method, which can efficiently configure ports, so that normal communication between communication devices can be performed.
Next, a brief description is given of an interface configuration method provided in an embodiment of the present application with reference to the drawings.
Referring to fig. 3, this figure is a signaling interaction diagram of an interface configuration method provided in the embodiment of the present application. Fig. 3 shows an interface configuration method 100, wherein the communication device 1 in the method 100 includes a port 1, the communication device 2 in the method 100 includes a port 2, and the port 1 is used for communicating with the port 2. The method 100 may include, for example, S101-S106 as follows.
S101: the communication apparatus 1 determines that the chip operation mode of the port 2 is Eth mode.
In one example, before executing S101, both the port configuration mode and the chip operation mode of port 1 are FlexE modes.
In some embodiments, if FlexE communication is established between the communication apparatus 1 and the communication apparatus 2, the communication apparatus 1 may receive a FlexE overhead frame from the communication apparatus 2. Therefore, in one implementation, if the communication apparatus 1 does not receive the FlexE overhead frame sent by the communication apparatus 2 within the preset time, the communication apparatus 1 may determine that the chip operation mode of the port 2 is the Eth mode. Regarding the FlexE overhead frame, reference may be made to section 7.3.1 of the Optical Interconnection Forum (OIF) Flex ethernet2.0 standard, which is not described in detail herein.
S102: the communication apparatus 1 switches the chip operation mode of the port 1 to the Eth mode.
Since the chip operation mode of the port 1 is the FlexE mode, and the chip operation mode of the port 2 is the Eth mode, the port 1 and the port 2 cannot normally communicate, that is, the communication apparatus 1 and the communication apparatus 2 cannot normally communicate with each other. In order to enable normal communication between the communication device 1 and the communication device 2, in the embodiment of the present application, the communication device 1 may switch the chip operation mode of the port 1 to the Eth mode. In this way, the chip operation mode of the port 1 and the chip operation mode of the port 2 are both Eth modes, and thus normal communication between the communication device 1 and the communication device 2 is possible.
S103: the communication device 2 receives a configuration instruction 1 sent by the control management entity, and the configuration instruction 1 is used for instructing the communication device 2 to configure the port 2 into the FlexE mode.
In one example, both the port configuration mode and the chip configuration mode of port 2 are Eth mode before executing S103.
In this embodiment, if the communication device 2 is directly connected to the control management entity, the control management entity may directly issue the configuration instruction 1 to the communication device 2. If the communication device 1 is further included between the communication device 2 and the control management entity, the communication device 1 and the communication device 2 can communicate after S102 is executed, and therefore, the control management entity can issue the configuration instruction 1 to the communication device 2 through the communication device 1.
S104: the communication device 2 transmits instruction information 1 to the communication device 1, and the instruction information 1 instructs the communication device 1 to configure the chip operation mode of the port 1 to the FlexE mode.
S105: the communication device 2 configures both the port configuration mode and the chip operation mode of the port 2 to the FlexE mode.
After the communication device 2 receives the configuration instruction 1, in order to enable normal communication between the communication device 1 and the communication device 2 after the port 2 is configured based on the configuration instruction 1, the communication device 2 may send instruction information 1 to the communication device 1 before the port 2 is configured based on the configuration instruction 1, where the instruction information 1 is used for instructing the communication device 1 to configure the chip operation mode of the port 1 to the FlexE mode.
With respect to S105, it should be noted that, in one implementation, the communication apparatus 2 may configure the port configuration mode of the port 2 to the FlexE mode immediately after receiving the configuration instruction 1, then send the instruction information 1 to the communication apparatus 1, and configure the chip operation mode of the port 2 to the FlexE mode after sending the instruction information 1 to the communication apparatus 1. In still another implementation, after the communication apparatus 2 transmits the indication information 1 to the communication apparatus 1, the port configuration mode and the chip operation mode of the port 2 may be configured to be the FlexE mode.
The indication information 1 is not specifically limited in the embodiments of the present application, and in an example, the indication information 1 may be a Remote Fault (RF) indication. The RF indication is a PCS layer RF interrupt signal in the IEEE802.3 Eth standard, and reference may be made to the relevant description of the IEEE802.3 Eth standard for the RF indication, which is not described in detail herein.
In yet another example, the indication information 1 may be O in the ethernet frame 10Code blocks. When received O0When the code block value is 0X00, the chip working mode of the sending port is Eth mode, and when the received O is in the Eth mode0When the code block value is 0X05, the chip operation mode of the transmission port is the FlexE mode. With respect to O0For the description of the code block, reference may be made to the description part of IEEE802.3-2015, section 82.2.3.3, which is not described in detail here. In the embodiment of the present application, if the indication information 1 is O in the ethernet frame 10Code block of O0The code block may have a value of 0X 05.
In yet another example, the aforementioned indication information 1 may be carried in an ethernet frame 1 that the communication apparatus 2 transmits to the communication apparatus 1. The ethernet frame 1 may include an extended Type Length Value (TLV) field, and the extended TLV field is used to carry the indication information 1. In one implementation, a new type of ethernet frame may be defined, which is used to carry indication information 1. Referring to fig. 4, fig. 4 is a schematic structural diagram of an ethernet frame 1 according to an embodiment of the present disclosure.
As shown in fig. 4, the ethernet frame 1 includes a destination address field, a source address field, a type field, a chip mode switch notification field, and a Frame Check Sequence (FCS) field. Regarding the destination address field, the source address field, and the type field, reference may be made to the definition of the Eth frame in section 3.1.1 of IEEE802.3-2015, which is not described in detail herein. In this embodiment of the present application, the chip working mode switching notification field may be an extended TLV field, where the extended TLV field is used to carry the indication information 1. In one example, as shown in fig. 4, the chip operation mode switching notification field may include a message version (message version) field, a message type (message type) field, a message length (message length) field, and a message tlv (message tlv) field. The message TLV field may include a TLV type (type) field, a TLV length (length) field, and a TLV value (value) field.
For the ethernet frame 1 shown in fig. 4, the indication information 1 may be carried by the message type field, or may be carried by both the message type field and the message TLV field, which is not specifically limited in this embodiment of the application.
Regarding the ethernet frame 1 shown in fig. 1, in an example, the value of the type field may be 0x9100, the value of the message version field may be 0, the value of the message type may be 1, the value of the message length may be the length of the ethernet frame 1, the value of the TLV type field may be 1, and the content of the TLV length field is the length of the character string "HUAWEI ETH SWITCH FLEXE" carried by the character string "HUAWEI ETH SWITCH FLEXE".
In one implementation of the embodiment of the present application, in order to ensure that the communication apparatus 1 can receive the indication information 1, the communication apparatus 2 may periodically transmit the indication information 1 to the communication apparatus 1 within a predetermined time period. Taking the indication information 1 as an RF indication as an example, in the embodiment of the present application, the communication device 2 may periodically transmit the RF indication to the communication device 1 within 20 milliseconds, for example. The present embodiment does not specifically limit the predetermined time period, which may be continued for less than 1 second, for example, because the communication apparatus 1 may trigger an alarm if the communication apparatus 1 receives the RF indication for more than 1 second.
S106: the communication device 1 configures the chip operation mode of the port 1 to the FlexE mode based on the instruction information 1.
In one example, after the communication apparatus 1 receives the indication information 1, the chip operation mode of the port 1 may be configured to the FlexE mode based on the indication information 1. In this way, the port configuration mode and the chip operation mode of the port 1 are both FlexE modes, and the port configuration mode and the chip operation mode of the port 2 are both FlexE modes, so that FlexE communication can be normally performed between the port 1 and the port 2.
In an implementation manner of the embodiment of the present application, after executing S106, the communication device 1 may further periodically detect a chip operating mode of the port 2, and configure the chip operating mode of the port 1 when the chip operating mode of the port 2 is different from the chip operating mode of the port 1, so that the chip operating mode of the port 1 is consistent with the chip operating mode of the port 2.
As an example: after S106 is executed, the chip operating mode of the port 1 is the FlexE mode, and if the communication apparatus 1 determines that the chip operating mode of the port 2 is the Eth mode, the communication apparatus 1 may configure the chip operating mode of the port 1 as the Eth mode, so that the chip operating mode of the port 1 is the same as the chip operating mode of the port 2, and communication between the port 1 and the port 2 is possible. For a specific implementation that the communication apparatus 1 determines that the chip operating mode of the port 2 is the Eth mode, reference may be made to the above related description part of S101, which is not described in detail here.
As yet another example: after the communication device 1 may configure the chip operating mode of the port 1 to the Eth mode, if the communication device 1 determines that the chip operating mode of the port 2 is the FlexE mode, the communication device 1 may configure the chip operating mode of the port 1 to the FlexE mode, so that the chip operating mode of the port 1 is the same as the chip operating mode of the port 2, and thus, communication may be performed between the port 1 and the port 2.
In the embodiment of the present application, when the communication device 1 determines that the chip operating mode of the port 2 is the FlexE mode, there may be a plurality of implementation manners, and several possible implementation manners are described below.
In one implementation: considering that the port 1 may receive a block lock (lock lock) signal from the port 2 if the chip operation mode of the port 2 is Eth mode, if the communication apparatus 1 does not receive the block lock signal transmitted by the communication apparatus 2 within a preset time period, it may be determined that the chip operation mode of the port 2 is FlexE mode. Regarding the block lock signal, reference may be made to the relevant description part of section 82.2.19.3 of IEEE802.3-2015, which is not described in detail herein.
In one implementation: considering that if the chip operation mode of the port 2 is the Eth mode, the port 1 may receive an alignment mark lock (alignment mark lock) signal from the port 2, and therefore, if the communication apparatus 1 does not receive the alignment mark lock signal transmitted by the communication apparatus 2 within a preset time period, the chip operation mode of the port 2 may be determined to be the FlexE mode. For the alignment marker lock signal, reference may be made to the relevant description of section 82.2.19.3 of IEEE802.3-2015, which is not described in detail herein.
In one implementation: the communication device 1 can be based on O transmitted by the communication device 20The value of the code block to determine the chip mode of operation of port 2. Wherein: when communication device 2 transmits0When the code block has a value of 0X05, the communication apparatus 1 may determine that the chip operation mode of the port 2 is the FlexE mode; when communication device 2 transmits0When the code block has a value of 0X00, the communication apparatus 1 can determine that the chip operation mode of the port 2 is Eth mode.
In one implementation: the communication device 1 may send an ethernet frame 2 to the communication device 2, where the ethernet frame 2 may include indication information 2, and the indication information 2 is used to determine whether the chip operating mode of the port 2 is the Eth mode. If the chip operation mode of the port 2 is Eth mode, the communication device 2 may send a response to the ethernet frame 2 to the communication device 1. If the chip operation mode of the port 2 is the FlexE mode, the communication device 2 cannot correctly analyze the ethernet frame 2, and therefore the communication device 2 does not transmit a response to the ethernet frame 2 to the communication device 1. Therefore, for this case, if the communication apparatus 1 does not receive the response to the ethernet frame 2 transmitted by the communication apparatus 2 after transmitting the ethernet frame 2 to the communication apparatus 2, the communication apparatus 1 may determine that the chip operation mode of the port 2 is the Eth mode.
Regarding the ethernet frame 2, it should be noted that, referring to fig. 4, a structure of the ethernet frame 2 may refer to fig. 4, and in an example, the indication information 2 may be carried by a message type field of the ethernet frame 2, or may be carried by both the message type field of the ethernet frame 2 and the message TLV field, which is not specifically limited in the embodiment of the present application.
For example, the indication information 2 may be carried by a message type field of the ethernet frame 2, and the value of the message type field of the ethernet frame 2 may be 2. For another example, the indication information 2 is carried by the message type field and the message TLV field of the ethernet frame 2, and in this case, the value of the message type field of the ethernet frame 2 may be 1, and the value of the TLV type field of the ethernet frame 2 may be 2. In addition, the TLV value field of the ethernet frame 2 may be further used to indicate that the chip operating mode of the port 1 is an Eth mode, for example, which is not specifically limited in the embodiment of the present application.
In the embodiment of the present application, the response to the ethernet frame 2 sent by the communication apparatus 2 to the communication apparatus 1 may be, for example, an ethernet frame 3, where the ethernet frame 3 includes indication information 3, and the indication information 3 is used to indicate the response.
Regarding the ethernet frame 3, it should be noted that, with reference to fig. 4, the structure of the ethernet frame 3 may refer to fig. 4, and in an example, the indication information 3 may be carried by a message type field of the ethernet frame 3, or may be carried by both the message type field of the ethernet frame 3 and the message TLV field, which is not specifically limited in the embodiment of the present application.
For example, the indication information 3 may be carried by a message type field of the ethernet frame 3, and the value of the message type field of the ethernet frame 3 may be 3. For another example, the indication information 3 is carried by the message type field of the ethernet frame 3 and the message TLV field, and in this case, the value of the message type field of the ethernet frame 3 may be 1, and the value of the TLV type field of the ethernet frame 3 may be 3. In addition, the TLV value field of the ethernet frame 3 may also be used to indicate that the chip operating mode of the port 2 is an Eth mode, for example, which is not specifically limited in the embodiment of the present application.
In one implementation manner of the embodiment of the present application, when the port configuration mode of the port 1 is the FlexE mode and the chip operation mode is the Eth mode, the communication apparatus 1 may send the instruction information 4 to the communication apparatus 2, where the instruction information 4 is used to instruct the communication apparatus 2 to configure the chip operation mode of the port 2 as the FlexE mode. After the communication device 2 receives the instruction information 4, if the chip operation mode of the port 2 is the FlexE mode, the communication device 2 may ignore the instruction information 4. If the chip operation mode of the port 2 is the FlexE mode, the communication device 2 may configure the chip operation mode of the port 2 to the FlexE mode based on the instruction information 4.
Accordingly, if the port configuration mode of the port 2 is the FlexE mode and the chip operation mode is the Eth mode, the communication apparatus 2 may transmit the instruction information 5 to the communication apparatus 1, where the instruction information 5 instructs the communication apparatus 1 to configure the chip operation mode of the port 1 to the FlexE mode. For this case, the communication apparatus 1 may configure the chip operation mode of the port 1 to the FlexE mode after receiving the instruction information 5. And the communication device 2 may configure the chip operation mode of the port 2 to the FlexE mode after receiving the indication information 4. In this way, FlexE communication can be performed between the communication device 1 and the communication device 2.
The method 100 is described above, and a specific implementation manner of applying some or all of the steps of the method 100 to the scenarios shown in fig. 2a, fig. 2b and fig. 2c is described next.
For the application scenario shown in FIG. 2 a:
first, the control management entity issues a configuration instruction a to the communication device a, the configuration instruction a being used to instruct the communication device a to configure the port a in the FlexE mode. And the communication device A configures the port configuration mode and the chip working mode of the port a into a Flexe mode based on the configuration instruction a. Then, the communication device a determines that the chip operating mode of the port b is the Eth mode, so that the communication device a configures the chip operating mode of the port a to the Eth mode. The control management entity issues a configuration instruction B to the communication device B through the communication device A, wherein the configuration instruction B is used for instructing the communication device B to configure the port B into a Flexe mode. After receiving the configuration instruction B, the communication device B transmits instruction information 1 to the communication device a, wherein the instruction information 1 is used for instructing the communication device a to configure the chip operation mode of the port a into the FlexE mode. After receiving the instruction information 1, the communication device a switches the chip operation mode of the port a to the FlexE mode. The communication device B configures the port configuration mode of the port B to the FlexE mode after receiving the configuration instruction B, and configures the chip operation mode of the port B to the FlexE mode after transmitting the instruction information 1 to the communication device a. Thus, the port a and the port B realize switching from the Eth mode to the FlexE mode, and FlexE communication is possible between the communication device a and the communication device B, and the communication device B is not disconnected.
For the application scenario shown in FIG. 2 b:
first, the communication device C determines that the chip operation mode of the port a is the Eth mode, and thus the communication device C configures the chip operation mode of the port C to the Eth mode. The communication device C determines that the chip operation mode of the port b is the Eth mode, and thus the communication device C configures the chip operation mode of the port d to the Eth mode. Then, the control management entity issues a configuration instruction C to the communication device C through the communication device a, where the configuration instruction C is used to instruct the communication device C to configure the port C and the port d as an Eth mode. After receiving the configuration instruction C, the communication device C configures the port configuration modes of the port C and the port d into the Eth mode. Thus, the port C and the port d realize switching from the FlexE mode to the Eth mode, and the communication apparatus a and the communication apparatus C can perform Eth communication, the communication apparatus B and the communication apparatus C can perform Eth communication, and the communication apparatus B and the communication apparatus C do not become disconnected.
For the application scenario shown in fig. 2 c:
the communication device a determines that the chip operating mode of the port c is the Eth mode, so the communication device a configures the chip operating mode of the port a to the Eth mode. And the control management entity issues a configuration instruction d to the communication device C through the communication device A, wherein the configuration instruction d is used for instructing the communication device C to configure the port C and the port d into a Flexe mode. After receiving the configuration instruction d, the communication device C transmits instruction information 1 to the communication device a, where the instruction information 1 instructs the communication device a to configure the chip operation mode of the port a to the FlexE mode. After receiving the instruction information 1, the communication device a switches the chip operation mode of the port a to the FlexE mode. The communication device C configures the port configuration mode of the port C to the FlexE mode after receiving the configuration instruction d, and configures the chip operation mode of the port C to the FlexE mode after transmitting the instruction information 1 to the communication device a. After receiving the configuration instruction d, the communication device C may further configure both the port configuration mode and the chip operation mode of the port d to be a FlexE mode. Thus, the port C and the port d realize switching from the Eth mode to the FlexE mode, and FlexE communication is possible between the communication device a and the communication device C, FlexE communication is also possible between the communication device B and the communication device C, and the communication device B and the communication device C are not disconnected.
Fig. 5 is a schematic flowchart of another interface configuration method according to an embodiment of the present application. The interface configuration method 200 shown in fig. 5 may be performed by a first communication device, where the first communication device includes a first port, and the first communication device may establish a communication connection with a second port of a second communication device through the first port. The first communication device may be, for example, the communication device 1 mentioned in the above embodiment. The method 200 shown in fig. 5 may be used to implement the method 100 mentioned in the above embodiments, and is used to execute the steps performed by the communication device 1 in the above method 100. In the method 200: the second communication device may correspond to communication device 2 of method 100, the first port may correspond to port 1 of method 100, and the second port may correspond to port 2 of method 100.
The method 200 may include, for example, the following S201-S202.
S201: and determining that the chip working mode of the second port of the second communication device is an Eth mode.
S202: and switching the chip working mode of the first port of the first communication device from a Flexe mode to an Eth mode, wherein the first communication device is in communication connection with the second port of the second communication device through the first port.
In one implementation, the determining that the chip operating mode of the second port of the second communication device is an ethernet mode includes:
and determining that the chip working mode of the second port is an Ethernet mode in response to the fact that the Flexe overhead frame sent by the second communication device is not received within the preset time.
In one implementation, the method further comprises:
and receiving first indication information sent by the second communication device, wherein the first indication information is used for indicating the first communication device to configure the chip working mode of the first port to a Flexe mode.
The first indication information mentioned here may correspond to indication information 1 in the method 100.
In one implementation, the first indication information is a remote failure RF indication information.
In one implementation manner, the first indication information includes O in a first ethernet frame sent by the second communication device0Code blocks.
The first ethernet frame referred to herein may correspond to ethernet frame 1 of method 100.
In one implementation manner, the receiving the first indication information sent by the second communication device includes:
receiving a first Ethernet frame sent by the second communication device, wherein the first Ethernet frame comprises an extended type length value TLV field, and the extended TLV field comprises the first indication information.
The first ethernet frame referred to herein may correspond to ethernet frame 1 of method 100.
In one implementation, the method further comprises:
and switching the chip working mode of the first port from an Eth mode to a Flexe mode according to the first indication information.
In one implementation, the method further comprises:
instructing the second communication device to configure the chip operation mode of the second port to a FlexE mode.
In one implementation manner, the instructing the second communication device to configure the chip operating mode of the second port as a FlexE mode includes:
and periodically sending second indication information to the second communication device within a preset time, wherein the second indication information is used for indicating the second communication device to configure the chip working mode of the second port into a Flexe mode.
The second indication information mentioned here may correspond to the indication information 4 in the method 100.
In one implementation manner, after the first communication device switches the chip operation mode of the first port from the Eth mode to the FlexE mode, the method further includes:
determining that the chip working mode of the second port is an Eth mode;
and switching the chip working mode of the first port from a Flexe mode to an Eth mode.
In one implementation manner, after the first communication device switches the chip operation mode of the first port from the FlexE mode to the Eth mode, the method further includes:
determining that the chip working mode of the second port is a Flexe mode;
and switching the chip working mode of the first port from an Eth mode to a Flexe mode.
In one implementation manner, the determining that the chip operating mode of the second port is a FlexE mode includes:
and determining that the chip working mode of the second port is a Flexe mode in response to not detecting the information block lock signal sent by the second communication device within a preset time.
In one implementation manner, the determining that the chip operating mode of the second port is a FlexE mode includes:
and determining that the chip working mode of the second port is a Flexe mode in response to not detecting that the alignment mark lock signal sent by the second communication device is locked within a preset time.
In one implementation manner, the determining that the chip operating mode of the second port is a FlexE mode includes:
according to O sent by the second communication device0And determining the chip working mode of the second port to be a Flexe mode according to the value of the code block.
In one form of implementation, the first and second electrodes are,
the determining that the chip working mode of the second port is a FlexE mode includes:
sending a second ethernet frame to the second communication device, where the second ethernet frame is used to determine a chip operating mode of the second port;
and in response to not receiving the response of the second communication device to the second Ethernet frame, determining that the chip working mode of the second port is a Flexe mode.
The second ethernet frame referred to herein may correspond to ethernet frame 2 in method 100.
In one implementation, the second ethernet frame includes an extended type length value, TLV, field, and the extended TVL field includes third indication information, and the third indication information is used to determine a chip operation mode of the second port.
The third indication information mentioned here may correspond to indication information 2 in the method 100.
In one implementation, the port configuration mode of the first port is a FlexE mode.
Fig. 6 is a schematic flowchart of another interface configuration method according to an embodiment of the present application. The interface configuration method 300 shown in fig. 6 may be performed by a first communication device, where the first communication device includes a first port, and the first communication device may establish a communication connection with a second port of a second communication device through the first port. The first communication device may be, for example, the communication device 1 mentioned in the above embodiment. The method 300 shown in fig. 6 may be used to implement the method 100 mentioned in the above embodiments, and is used to execute the steps performed by the communication device 1 in the above method 100. In the method 300: the second communication device may correspond to communication device 2 of method 100, the first port may correspond to port 1 of method 100, and the second port may correspond to port 2 of method 100.
The method 300 may include, for example, S301-S302 as follows.
S301: receiving first indication information sent by a second communication device, wherein the first indication information is used for indicating a first communication device to configure a chip working mode of a first port into a flexible Ethernet Flexe mode, and the first communication device is in communication connection with the second communication device through the first port.
S302: and switching the chip working mode of the first port from an Ethernet mode to a Flexe mode.
The first indication mentioned here may correspond to indication 1 in method 100.
In one implementation, the first indication information is a remote failure RF indication information.
In one implementation manner, the first indication information includes O in a first ethernet frame sent by the second communication device0Code blocks.
The first ethernet frame mentioned here may correspond to ethernet frame 1 in method 100.
In one implementation manner, the receiving the first indication information sent by the second communication device includes:
receiving a first Ethernet frame sent by the second communication device, wherein the first Ethernet frame comprises an extended type length value TLV field, and the extended TLV field comprises the first indication information.
In one implementation, the method further comprises:
instructing the second communication device to configure a chip operation mode of a second port to a Flexe mode, wherein the second communication device is in communication connection with the first communication device through the second port.
In one implementation manner, the instructing the second communication device to configure the chip operating mode of the second port as a FlexE mode includes:
and periodically sending second indication information to the second communication device within a preset time, wherein the second indication information is used for indicating the second communication device to configure the chip working mode of the second port into a Flexe mode.
The second indication information mentioned here may correspond to the indication information 4 in the method 100.
In one implementation, the method further comprises:
determining that the chip working mode of the second port is an Ethernet mode;
and switching the chip working mode of the first port from a flexible Ethernet Flexe mode to an Eth mode.
In one implementation, the determining that the chip operating mode of the second port is an ethernet mode includes:
and determining that the chip working mode of the second port is an Ethernet Eth mode in response to that the FlexE overhead frame sent by the second communication device is not received within preset time.
In one implementation manner, after the chip operation mode of the first port is switched from the Eth mode to the FlexE mode, the method further includes:
determining that the chip working mode of the second port is an Eth mode;
and switching the chip working mode of the first port from a Flexe mode to an Eth mode.
In one implementation manner, after the first communication device switches the chip operation mode of the first port from the FlexE mode to the Eth mode, the method further includes:
determining that the chip working mode of the second port is a Flexe mode;
and switching the chip working mode of the first port from an Eth mode to a Flexe mode.
In one implementation manner, the determining that the chip operating mode of the second port is a FlexE mode includes:
and determining that the chip working mode of the second port is a Flexe mode in response to not detecting the information block lock signal sent by the second communication device within a preset time.
In one implementation manner, the determining that the chip operating mode of the second port is a FlexE mode includes:
and determining that the chip working mode of the second port is a Flexe mode in response to not detecting that the alignment mark lock signal sent by the second communication device is locked within a preset time.
In one implementation manner, the determining that the chip operating mode of the second port is a FlexE mode includes:
according to O sent by the second communication device0And determining the chip working mode of the second port to be a Flexe mode according to the value of the code block.
In one implementation, the method further comprises:
sending a second ethernet frame to the second communication device, where the second ethernet frame is used to determine a chip operating mode of the second port;
the determining that the chip working mode of the second port is a FlexE mode includes:
and in response to not receiving the response of the second communication device to the second Ethernet frame, determining that the chip working mode of the second port is a Flexe mode.
The second ethernet frame referred to herein may correspond to ethernet frame 2 in method 100.
In one implementation, the second ethernet frame includes an extended type length value, TLV, field, and the extended TVL field includes third indication information, and the third indication information is used to determine a chip operation mode of the second port.
The third indication information mentioned here may correspond to indication information 2 in the method 100.
In one implementation, the port configuration mode of the first port is a FlexE mode.
Fig. 7 is a schematic flowchart of another interface configuration method according to an embodiment of the present application. The interface configuration method 400 shown in fig. 7 may be performed by a first communication device, the first communication device including a first port through which the first communication device may establish a communication connection with a second port of a second communication device. The first communication device may be, for example, the communication device 1 mentioned in the above embodiment. The method 400 shown in fig. 7 may be used to implement the method 100 mentioned in the above embodiments, and is used to execute the steps performed by the communication device 1 in the above method 100. In the method 400: the second communication device may correspond to communication device 2 of method 100, the first port may correspond to port 1 of method 100, and the second port may correspond to port 2 of method 100.
The method 400 may include, for example, the following S401-S402.
S401: a chip operating mode of a second port of the second communication device is determined.
S402: when the chip working mode of the second port is different from the chip working mode of the first port, the chip working mode of the first port is adjusted to be the same as the chip working mode of the second port, wherein the first communication device is in communication connection with the second port of the second communication device through the first port.
In one implementation, the adjusting the chip operation mode of the first port to the same chip operation mode as the second port includes:
and adjusting the chip working mode of the first port from an Ethernet mode to a Flexe mode.
In one implementation, the adjusting the chip operation mode of the first port to the same chip operation mode as the second port includes:
and adjusting the chip working mode of the first port from a Flexe mode to an Ethernet mode.
In one implementation manner, the determining the chip operating mode of the second port includes:
and determining that the chip working mode of the second port is an Ethernet mode in response to the fact that the Flexe overhead frame sent by the second communication device is not received within the preset time.
In one implementation, the method further comprises:
and receiving first indication information sent by the second communication device, wherein the first indication information is used for indicating the first communication device to configure the chip working mode of the first port to a Flexe mode.
The first indication mentioned here may correspond to indication 1 in method 100.
In one implementation, the first indication information is a remote fault RF indication information.
In one implementation manner, the first indication information includes O in a first ethernet frame sent by the second communication device0Code blocks.
In one implementation manner, the receiving the first indication information sent by the second communication device includes:
receiving a first Ethernet frame sent by the second communication device, wherein the first Ethernet frame comprises an extended type length value TLV field, and the extended TLV field comprises the first indication information.
The first ethernet frame referred to herein may correspond to ethernet frame 1 of method 100.
In one implementation, the method further comprises:
and switching the chip working mode of the first port from an Eth mode to a Flexe mode according to the first indication information.
In one implementation, the method further comprises:
instructing the second communication device to configure the chip operation mode of the second port to a FlexE mode.
In one implementation manner, the instructing the second communication device to configure the chip operating mode of the second port as a FlexE mode includes:
and periodically sending second indication information to the second communication device within a preset time, wherein the second indication information is used for indicating the second communication device to configure the chip working mode of the second port into a Flexe mode.
The second indication information mentioned here may correspond to the indication information 4 in the method 100.
In one implementation manner, the determining that the chip operating mode of the second port is a FlexE mode includes:
and determining that the chip working mode of the second port is a Flexe mode in response to not detecting the information block lock signal sent by the second communication device within a preset time.
In one implementation manner, the determining that the chip operating mode of the second port is a FlexE mode includes:
and determining that the chip working mode of the second port is a Flexe mode in response to not detecting that the alignment mark lock signal sent by the second communication device is locked within a preset time.
In one implementation manner, the determining that the chip operating mode of the second port is a FlexE mode includes:
according to O sent by the second communication device0And determining the chip working mode of the second port to be a Flexe mode according to the value of the code block.
In one implementation, the method further comprises:
sending a second ethernet frame to the second communication device, where the second ethernet frame is used to determine a chip operating mode of the second port;
the determining that the chip working mode of the second port is a FlexE mode includes:
and in response to not receiving the response of the second communication device to the second Ethernet frame, determining that the chip working mode of the second port is a Flexe mode.
The second ethernet frame referred to herein may correspond to ethernet frame 2 in method 100.
In one implementation, the second ethernet frame includes an extended type length value, TLV, field, and the extended TVL field includes third indication information, and the third indication information is used to determine a chip operation mode of the second port.
The third indication information mentioned here may correspond to indication information 2 in the method 100.
In one implementation, the port configuration mode of the first port is a FlexE mode.
Fig. 8 is a schematic flowchart of another interface configuration method according to an embodiment of the present application. The interface configuration method 500 shown in fig. 8 may be performed by a second communication device, where the second communication device includes a second port, and the second communication device may establish a communication connection with the first port of the first communication device through the second port. The second communication device may be, for example, the communication device 2 mentioned in the above embodiment. The method 500 shown in fig. 8 may be used to implement the method 100 mentioned in the above embodiments, and is used to execute the steps performed by the communication device 2 in the above method 100. In the method 500: the first communication device may correspond to communication device 1 of method 100, the first port may correspond to port 1 of method 100, and the second port may correspond to port 2 of method 100.
The method 500 may include, for example, the following S501-S502.
S501: acquiring first indication information, wherein the first indication information is used for indicating the first communication device to configure the chip working mode of the first port to a flexible Ethernet Flexe mode.
S502: and sending the first indication information to the first communication device.
The first indication mentioned here may correspond to indication 1 in method 100.
In one implementation, before the obtaining the first indication information, the method further includes:
receiving a configuration instruction sent by a control management entity, wherein the configuration instruction is used for instructing the second communication device to configure the second port into a Flexe mode.
In one implementation, after receiving the configuration instruction sent by the control management entity, the method further includes:
and configuring the port configuration mode of the second port into a Flexe mode based on the configuration instruction.
In one implementation, the first indication information is a remote failure RF indication information.
In one form of implementation, the first and second electrodes are,the first indication information is O in a first ethernet frame sent by the second communication device0Code blocks.
The first ethernet frame referred to herein may correspond to ethernet frame 1 of method 100.
In one implementation, the sending the first indication information to the first communication device includes:
transmitting a first Ethernet frame to the first communication device, the first Ethernet frame comprising an extended type Length value, TLV, field, the extended TLV field comprising the first indication information.
In one implementation, after sending the first indication information to the first communication device, the method further includes:
and configuring the chip working mode of the second port into a Flexe mode.
In one implementation, the sending the first indication information to the first communication device includes:
periodically transmitting the first indication information to the first communication device for a predetermined time.
In one implementation, the method further comprises:
and receiving second indication information sent by the first communication device, wherein the second indication information is used for indicating the second communication device to configure the chip working mode of the second port to a Flexe mode.
The second indication information mentioned here may correspond to indication information 4 in method 100.
In one implementation, the method further comprises:
and receiving a second Ethernet frame sent by the first communication device, wherein the second Ethernet frame is used for determining the chip working mode of the second port.
The second ethernet frame referred to herein may correspond to ethernet frame 2 in method 100.
In one implementation, the method further comprises:
and the chip working mode of the second port is an Eth mode, and a response aiming at the second Ethernet frame is sent to the first communication device.
In one implementation, the second ethernet frame includes an extended type length value, TLV, field, and the extended TVL field includes third indication information, and the third indication information is used to determine a chip operation mode of the second port.
The third indication information mentioned here may correspond to indication information 2 in the method 100.
In one implementation, the sending the response to the first communication device for the second ethernet frame includes:
transmitting a third Ethernet frame to the first communication device.
The third ethernet frame referred to herein may correspond to ethernet frame 3 in method 100.
In one implementation, the third ethernet frame includes an extended type length value, TLV, field, and the extended TVL field includes fourth indication information, and the fourth indication information is used to indicate the response.
Here, the fourth indication information may correspond to indication information 3 in the method 100.
With respect to the specific implementation of the above methods 200, 300, 400 and 500, reference may be made to the above detailed description of the method 100, and the description is not repeated here.
In addition, an embodiment of the present application further provides a communication apparatus 900, which is shown in fig. 9. Fig. 9 is a schematic structural diagram of a communication device according to an embodiment of the present application. The communication apparatus 900 includes a transceiver 901 and a processing unit 902. The communication device 900 may be configured to perform the method 100, the method 200, the method 300, the method 400, or the method 500 in the above embodiments.
In one example, the communication device 900 may perform the method 100 in the above embodiment, and when the communication device 900 is used to perform the method 100 in the above embodiment, the communication device 900 is equivalent to the communication device 1 in the method 100. The transceiving unit 901 is configured to perform transceiving operations performed by the communication apparatus 1 in the method 100. The processing unit 902 is configured to perform operations other than transceiving operations performed by the communication apparatus 1 in the method 100. For example: the processing unit 902 is configured to determine that the chip operating mode of the port 2 is an Eth mode, and switch the chip operating mode of the port 1 to the Eth mode. For another example: the transceiver 901 is configured to receive indication information 1 sent by the communication apparatus 2, where the indication information 1 is used to instruct the communication apparatus 1 to configure the chip operating mode of the port 1 to the FlexE mode; the processing unit 902 is configured to configure the chip operation mode of the port 1 to the FlexE mode.
In one example, the communication device 900 may perform the method 100 in the above embodiment, and when the communication device 900 is used to perform the method 100 in the above embodiment, the communication device 900 is equivalent to the communication device 2 in the method 100. The transceiving unit 901 is configured to perform transceiving operations performed by the communication apparatus 2 in the method 100. Processing unit 902 is configured to perform operations other than transceiving operations performed by communication device 2 in method 100. For example: the processing unit 902 is configured to obtain indication information 1, where the indication information 1 is used to instruct the communication device 1 to configure the chip operating mode of the port 1 to be flexible in a FlexE mode; the transceiver 901 is configured to transmit the instruction information 1 to the communication apparatus 1.
In one example, the communication device 900 can perform the method 200 in the above embodiment, and when the communication device 900 is used to perform the method 200 in the above embodiment, the communication device 900 is equivalent to the first communication device in the method 200. The transceiving unit 901 is configured to perform transceiving operations performed by the first communication device in the method 200. The processing unit 902 is configured to perform operations other than transceiving operations performed by the first communication device in the method 200. For example: the processing unit 902 is configured to determine that the chip operating mode of the second port is an Eth mode, and switch the chip operating mode of the first port to the Eth mode.
In one example, the communication device 900 can perform the method 300 in the above embodiment, and when the communication device 900 is used to perform the method 300 in the above embodiment, the communication device 900 is equivalent to the first communication device in the method 300. The transceiving unit 901 is configured to perform transceiving operations performed by the first communication device in the method 300. The processing unit 902 is configured to perform operations other than transceiving operations performed by the first communication device in the method 300. For example: the transceiving unit 901 is configured to receive first indication information sent by the second communication apparatus, where the first indication information is used to indicate that the first communication apparatus configures a chip operating mode of the first port to a FlexE mode; the processing unit 902 is configured to configure the chip operation mode of the first port to a FlexE mode.
In one example, the communication device 900 can perform the method 400 in the above embodiment, and when the communication device 900 is used to perform the method 400 in the above embodiment, the communication device 900 is equivalent to the first communication device in the method 400. The transceiving unit 901 is configured to perform transceiving operations performed by the first communication device in the method 400. The processing unit 902 is configured to perform operations other than transceiving operations performed by the first communication device in the method 400. For example: the processing unit 902 is configured to determine a chip operating mode of a second port of the second communication device, and adjust the chip operating mode of the first port to a chip operating mode same as the second port when the chip operating mode of the second port is different from the chip operating mode of the first port.
In one example, the communication device 900 can perform the method 500 in the above embodiment, and when the communication device 900 is used to perform the method 500 in the above embodiment, the communication device 900 is equivalent to the second communication device in the method 500. The transceiving unit 901 is configured to perform transceiving operations performed by the second communication device in the method 500. The processing unit 902 is configured to perform operations other than transceiving operations performed by the second communication device in the method 500. For example: the processing unit 902 is configured to obtain first indication information, where the first indication information is used to instruct the first communication device to configure the chip operating mode of the first port to a flexible ethernet FlexE mode; the transceiving unit 901 is configured to send the first indication information to the first communication device.
In addition, an embodiment of the present application further provides a communication device 1000, and referring to fig. 10, fig. 10 is a schematic structural diagram of a communication device provided in an embodiment of the present application. The communication device 1000 includes a communication interface 1001 and a processor 1002 connected to the communication interface 1001. The communication device 1000 may be used to perform the method 100, the method 200, the method 300, the method 400, or the method 500 in the above embodiments.
In one example, the communication device 1000 may perform the method 100 in the above embodiment, and when the communication device 1000 is used to perform the method 100 in the above embodiment, the communication device 1000 is equivalent to the communication device 1 in the method 100. The communication interface 1001 is used to perform a transceiving operation performed by the communication apparatus 1 in the method 100. The processor 1002 is configured to perform operations other than transceiving operations performed by the communication apparatus 1 in the method 100. For example: the processor 1002 is configured to determine that the chip operating mode of the port 2 is an Eth mode, and switch the chip operating mode of the port 1 to the Eth mode. For another example: the communication interface 1001 is configured to receive indication information 1 sent by the communication device 2, where the indication information 1 is used to instruct the communication device 1 to configure the chip operating mode of the port 1 to the FlexE mode; the processor 1002 is configured to configure the chip operation mode of port 1 to the FlexE mode.
In one example, the communication device 1000 may perform the method 100 in the above embodiment, and when the communication device 1000 is used to perform the method 100 in the above embodiment, the communication device 1000 is equivalent to the communication device 2 in the method 100. The communication interface 1001 is used to perform a transceiving operation performed by the communication apparatus 2 in the method 100. Processor 1002 is configured to perform operations other than transceiving operations performed by communication device 2 in method 100. For example: the processor 1002 is configured to obtain indication information 1, where the indication information 1 is used to instruct the communication device 1 to configure the chip operating mode of the port 1 to the flexible ethernet FlexE mode; the communication interface 1001 is used to transmit instruction information 1 to the communication apparatus 1.
In one example, the communication device 1000 may perform the method 200 in the above embodiment, and when the communication device 1000 is used to perform the method 200 in the above embodiment, the communication device 1000 is equivalent to the first communication device in the method 200. The communication interface 1001 is used to perform transceiving operations performed by the first communication device in the method 200. The processor 1002 is configured to perform operations other than transceiving operations performed by the first communication device in the method 200. For example: the processor 1002 is configured to determine that the chip operating mode of the second port is an Eth mode, and switch the chip operating mode of the first port to the Eth mode.
In one example, the communication device 1000 can perform the method 300 in the above embodiment, and when the communication device 1000 is used to perform the method 300 in the above embodiment, the communication device 1000 is equivalent to the first communication device in the method 300. The communication interface 1001 is used to perform transceiving operations performed by the first communication device in the method 300. The processor 1002 is configured to perform operations other than transceiving operations performed by the first communication device in the method 300. For example: the communication interface 1001 is configured to receive first indication information sent by the second communication apparatus, where the first indication information is used to indicate that the first communication apparatus configures a chip operating mode of the first port to a FlexE mode; the processor 1002 is configured to configure the chip operation mode of the first port to a FlexE mode.
In one example, the communication device 1000 can perform the method 400 in the above embodiment, and when the communication device 1000 is used to perform the method 400 in the above embodiment, the communication device 1000 is equivalent to the first communication device in the method 400. The communication interface 1001 is used to perform transceiving operations performed by the first communication device in the method 400. The processor 1002 is configured to perform operations other than transceiving operations performed by the first communication device in the method 400. For example: the processor 1002 is configured to determine a chip working mode of a second port of the second communication device, and adjust the chip working mode of the first port to a same chip working mode as the second port when the chip working mode of the second port is different from the chip working mode of the first port.
In one example, the communication device 1000 can perform the method 500 in the above embodiment, and when the communication device 1000 is used to perform the method 500 in the above embodiment, the communication device 1000 is equivalent to the second communication device in the method 500. The communication interface 1001 is used to perform transceiving operations performed by the second communication device in the method 500. The processor 1002 is configured to perform operations other than transceiving operations performed by the second communication device in the method 500. For example: the processor 1002 is configured to obtain first indication information, where the first indication information is used to instruct the first communication device to configure the chip operating mode of the first port to a flexible ethernet FlexE mode; the communication interface 1001 is configured to send the first indication information to the first communication device.
In addition, an embodiment of the present application further provides a communication device 1100, referring to fig. 11, where fig. 11 is a schematic structural diagram of a communication device provided in an embodiment of the present application.
The communication device 1100 may be used to perform the method 100, the method 200, 300, the method 400, or the method 500 in the above embodiments.
As shown in fig. 11, the communications apparatus 1100 can include a processor 1110, a memory 1120 coupled to the processor 1110, and a transceiver 1130. The transceiver 1130 may be, for example, a communication interface, an optical module, etc. The processor 1110 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP. The processor may also be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof. The processor 1110 may refer to one processor or may include a plurality of processors. The memory 1120 may include a volatile memory (RAM), such as a random-access memory (RAM); the memory may also include a non-volatile memory (ROM), such as a read-only memory (ROM), a flash memory (flash memory), a hard disk (HDD) or a solid-state drive (SSD); the memory 1120 may also comprise a combination of memories of the kind described above. The memory 1120 may refer to one memory, or may include a plurality of memories. In one embodiment, the memory 1120 has stored therein computer-readable instructions comprising a plurality of software modules, such as a sending module 1121, a processing module 1122, and a receiving module 1123. The processor 1110 may perform corresponding operations according to the instructions of each software module after executing each software module. In this embodiment, the operations performed by a software module actually refer to the operations performed by processor 1110 according to the instructions of the software module.
In one example, the communication device 1100 may perform the method 100 in the above embodiment, and when the communication device 1100 is used to perform the method 100 in the above embodiment, the communication device 1100 is equivalent to the communication device 1 in the method 100. The transceiver 1130 is configured to perform transceiving operations performed by the communication apparatus 1 in the method 100. Processor 1110 is configured to perform operations other than transceiving operations performed by communication apparatus 1 in method 100. For example: the processor 1110 is configured to determine that the chip operating mode of the port 2 is an Eth mode, and switch the chip operating mode of the port 1 to the Eth mode. For another example: the transceiver 1130 is configured to receive indication information 1 sent by the communication device 2, where the indication information 1 is used to indicate that the communication device 1 configures the chip operating mode of the port 1 to the FlexE mode; processor 1110 is configured to configure the chip mode of operation for port 1 to FlexE mode.
In one example, the communication device 1100 may perform the method 100 in the above embodiment, and when the communication device 1100 is used to perform the method 100 in the above embodiment, the communication device 1100 is equivalent to the communication device 2 in the method 100. The transceiver 1130 is configured to perform transceiving operations performed by the communication apparatus 2 in the method 100. Processor 1110 is configured to perform operations other than transceiving operations performed by communication device 2 in method 100. For example: the processor 1110 is configured to obtain indication information 1, where the indication information 1 is used to instruct the communication device 1 to configure the chip operating mode of the port 1 to the flexible ethernet FlexE mode; the transceiver 1130 is used to transmit the indication information 1 to the communication apparatus 1.
In one example, the communication device 1100 can perform the method 200 in the above embodiment, and when the communication device 1100 is used to perform the method 200 in the above embodiment, the communication device 1100 is equivalent to the first communication device in the method 200. The transceiver 1130 is used to perform transceiving operations performed by the first communication device in the method 200. Processor 1110 is configured to perform operations other than transceiving operations performed by the first communications device in method 200. For example: the processor 1110 is configured to determine that the chip operating mode of the second port is an Eth mode, and switch the chip operating mode of the first port to the Eth mode.
In one example, the communication device 1100 can perform the method 300 in the above embodiment, and when the communication device 1100 is used to perform the method 300 in the above embodiment, the communication device 1100 is equivalent to the first communication device in the method 300. The transceiver 1130 is used to perform transceiving operations performed by the first communication device in the method 300. Processor 1110 is configured to perform operations other than transceiving operations performed by the first communications device in method 300. For example: the transceiver 1130 is configured to receive first indication information sent by the second communication apparatus, where the first indication information is used to instruct the first communication apparatus to configure the chip operating mode of the first port to the FlexE mode; the processor 1110 is configured to configure the chip operation mode of the first port to a FlexE mode.
In one example, the communication device 1100 can perform the method 400 in the above embodiment, and when the communication device 1100 is used to perform the method 400 in the above embodiment, the communication device 1100 is equivalent to the first communication device in the method 400. The transceiver 1130 is used to perform transceiving operations performed by the first communication device in the method 400. Processor 1110 is configured to perform operations in method 400 other than transceiving operations performed by the first communication device. For example: the processor 1110 is configured to determine a chip operating mode of a second port of the second communication device, and adjust the chip operating mode of the first port to a same chip operating mode as the second port when the chip operating mode of the second port is different from the chip operating mode of the first port.
In one example, the communication device 1100 can perform the method 500 in the above embodiment, and when the communication device 1100 is used to perform the method 500 in the above embodiment, the communication device 1100 is equivalent to the second communication device in the method 500. The transceiver 1130 is used to perform transceiving operations performed by the second communication device in the method 500. Processor 1110 is configured to perform operations in method 500 other than transceiving operations performed by a second communication device. For example: the processor 1110 is configured to obtain first indication information, where the first indication information is used to instruct the first communication device to configure the chip operating mode of the first port to a flexible ethernet FlexE mode; the transceiver 1130 is configured to transmit the first indication information to the first communication device.
Embodiments of the present application also provide a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to perform the steps performed by the first communication device in the above embodiments.
Embodiments of the present application also provide a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to perform the steps performed by the second communication device in the above embodiments.
The embodiment of the present application further provides a communication system, including any one of the first communication devices and any one of the second communication devices mentioned in the above embodiments.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be implemented in other sequences than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is only a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, each service unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a hardware form, and can also be realized in a software service unit form.
The integrated unit, if implemented in the form of a software business unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those skilled in the art will recognize that, in one or more of the examples described above, the services described in this disclosure may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the services may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The above embodiments are intended to explain the objects, aspects and advantages of the present invention in further detail, and it should be understood that the above embodiments are merely illustrative of the present invention.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present disclosure.

Claims (70)

1. A method for configuring an interface, the method comprising:
determining that a chip working mode of a second port of a second communication device is an Eth mode;
switching a chip working mode of a first port of a first communication device from a flexible Ethernet Flexe mode to an Eth mode, wherein the first communication device is in communication connection with a second port of a second communication device through the first port.
2. The method of claim 1, wherein the determining that the chip operating mode of the second port of the second communication device is an ethernet Eth mode comprises:
and determining that the chip working mode of the second port is an Ethernet Eth mode in response to that the FlexE overhead frame sent by the second communication device is not received within preset time.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and receiving first indication information sent by the second communication device, wherein the first indication information is used for indicating the first communication device to configure the chip working mode of the first port to a Flexe mode.
4. The method of claim 3, wherein the first indication is a remote failure RF indication.
5. The method of claim 3, wherein the first indication information comprises O in a first Ethernet frame sent by the second communication device0Code blocks.
6. The method of claim 3, wherein receiving the first indication information sent by the second communication device comprises:
receiving a first Ethernet frame sent by the second communication device, wherein the first Ethernet frame comprises an extended type length value TLV field, and the extended TLV field comprises the first indication information.
7. The method according to any one of claims 3-6, further comprising:
and switching the chip working mode of the first port from an Eth mode to a Flexe mode according to the first indication information.
8. The method according to any one of claims 1-7, further comprising:
instructing the second communication device to configure the chip operation mode of the second port to a FlexE mode.
9. The method according to claim 8, wherein said instructing the second communication device to configure the chip operation mode of the second port to a FlexE mode comprises:
periodically sending second indication information to the second communication device within a preset time, wherein the second indication information is used for indicating the second communication device to configure the chip working mode of the second port to a Flexe mode.
10. The method according to claim 7, wherein after the first communication device switches the chip operation mode of the first port from the Eth mode to the FlexE mode, the method further comprises:
determining that the chip working mode of the second port is an Eth mode;
and switching the chip working mode of the first port from a Flexe mode to an Eth mode.
11. The method according to claim 10, wherein after the first communication device switches the chip operation mode of the first port from FlexE mode to Eth mode, the method further comprises:
determining that the chip working mode of the second port is a Flexe mode;
and switching the chip working mode of the first port from an Eth mode to a Flexe mode.
12. The method according to claim 11, wherein the determining that the chip operation mode of the second port is a FlexE mode comprises:
and determining that the chip working mode of the second port is a Flexe mode in response to not detecting the information block lock signal sent by the second communication device within a preset time.
13. The method according to claim 11, wherein the determining that the chip operation mode of the second port is a FlexE mode comprises:
and determining that the chip working mode of the second port is a Flexe mode in response to not detecting that the alignment mark lock signal sent by the second communication device is locked within a preset time.
14. The method according to claim 11, wherein determining that the chip operation mode of the second port is a FlexE mode comprises:
according to O sent by the second communication device0And determining the chip working mode of the second port to be a Flexe mode according to the value of the code block.
15. The method of claim 11,
the determining that the chip working mode of the second port is a FlexE mode includes:
sending a second ethernet frame to the second communication device, where the second ethernet frame is used to determine a chip operating mode of the second port;
and in response to not receiving the response of the second communication device to the second Ethernet frame, determining that the chip working mode of the second port is a Flexe mode.
16. The method of claim 15, wherein the second ethernet frame comprises an extended type length value, TLV, field, and wherein the extended TVL field comprises third indication information, and wherein the third indication information is used to determine a chip operation mode of the second port.
17. The method according to any of claims 1-16, wherein the port configuration mode of the first port is a FlexE mode.
18. A method for configuring an interface, the method comprising:
receiving first indication information sent by a second communication device, wherein the first indication information is used for indicating a first communication device to configure a chip working mode of a first port into a flexible Ethernet Flexe mode, and the first communication device is in communication connection with the second communication device through the first port;
and switching the chip working mode of the first port from an Ethernet (Eth) mode to a Flexe mode.
19. The method of claim 18, wherein the first indication is a remote failure RF indication.
20. The method of claim 18, wherein the first indication information comprises O in a first ethernet frame sent by the second communications device0Code blocks.
21. The method of claim 18, wherein the receiving the first indication information sent by the second communication device comprises:
receiving a first Ethernet frame sent by the second communication device, wherein the first Ethernet frame comprises an extended type length value TLV field, and the extended TLV field comprises the first indication information.
22. The method according to any one of claims 18-21, further comprising:
and instructing the second communication device to configure the chip working mode of the second port into a Flexe mode, wherein the second communication device is in communication connection with the first communication device through the second port.
23. The method according to claim 22, wherein said instructing the second communication device to configure the chip operation mode of the second port to a FlexE mode comprises:
and periodically sending second indication information to the second communication device within a preset time, wherein the second indication information is used for indicating the second communication device to configure the chip working mode of the second port into a Flexe mode.
24. The method according to any one of claims 18-23, further comprising:
determining that the chip working mode of the second port is an Ethernet mode;
and switching the chip working mode of the first port from a flexible Ethernet Flexe mode to an Eth mode.
25. The method of claim 24, wherein the determining that the chip operating mode of the second port is an ethernet Eth mode comprises:
and determining that the chip working mode of the second port is an Ethernet mode in response to the fact that the Flexe overhead frame sent by the second communication device is not received within the preset time.
26. The method according to any of claims 18-25, wherein after switching the chip operation mode of the first port from Eth mode to FlexE mode, the method further comprises:
determining that the chip working mode of the second port is an Eth mode;
and switching the chip working mode of the first port from a Flexe mode to an Eth mode.
27. The method according to claim 26, wherein after the first communication device switches the chip operation mode of the first port from FlexE mode to Eth mode, the method further comprises:
determining that the chip working mode of the second port is a Flexe mode;
and switching the chip working mode of the first port from an Eth mode to a Flexe mode.
28. The method according to claim 27, wherein the determining that the chip operation mode of the second port is a FlexE mode comprises:
and determining that the chip working mode of the second port is a Flexe mode in response to not detecting the information block lock signal sent by the second communication device within a preset time.
29. The method according to claim 27, wherein the determining that the chip operation mode of the second port is a FlexE mode comprises:
and determining that the chip working mode of the second port is a Flexe mode in response to not detecting that the alignment mark lock signal sent by the second communication device is locked within a preset time.
30. The method according to claim 27, wherein the determining that the chip operation mode of the second port is a FlexE mode comprises:
according to O sent by the second communication device0And determining the chip working mode of the second port to be a Flexe mode according to the value of the code block.
31. The method of claim 27, further comprising:
sending a second ethernet frame to the second communication device, where the second ethernet frame is used to determine a chip operating mode of the second port;
the determining that the chip working mode of the second port is a FlexE mode includes:
and in response to not receiving the response of the second communication device to the second Ethernet frame, determining that the chip working mode of the second port is a Flexe mode.
32. The method of claim 31, wherein the second ethernet frame comprises an extended type length value, TLV, field, and wherein the extended TVL field comprises third indication information, and wherein the third indication information is used to determine a chip operation mode of the second port.
33. The method according to any of claims 18-32, wherein the port configuration mode of the first port is a FlexE mode.
34. A method for configuring an interface, the method comprising:
determining a chip working mode of a second port of a second communication device;
when the chip working mode of the second port is different from the chip working mode of the first port, the chip working mode of the first port is adjusted to be the same as the chip working mode of the second port, wherein the first communication device is in communication connection with the second port of the second communication device through the first port.
35. The method of claim 34, wherein the adjusting the chip operation mode of the first port to the same chip operation mode as the second port comprises:
and adjusting the chip working mode of the first port from an Ethernet mode to a Flexe mode.
36. The method of claim 34, wherein the adjusting the chip operation mode of the first port to the same chip operation mode as the second port comprises:
and adjusting the chip working mode of the first port from a Flexe mode to an Ethernet mode.
37. The method according to claim 34 or 36, wherein the chip operation mode of the first port is a FlexE mode, and the determining the chip operation mode of the second port comprises:
and determining that the chip working mode of the second port is an Ethernet Eth mode in response to that the FlexE overhead frame sent by the second communication device is not received within preset time.
38. The method of any one of claims 34-37, further comprising:
and receiving first indication information sent by the second communication device, wherein the first indication information is used for indicating the first communication device to configure the chip working mode of the first port to a Flexe mode.
39. The method of claim 38 wherein the first indication is a remote fault RF indication.
40. The method of claim 38, wherein the first indication information comprises O in a first ethernet frame sent by the second communications device0Code blocks.
41. The method of claim 38, wherein receiving the first indication information sent by the second communication device comprises:
receiving a first Ethernet frame sent by the second communication device, wherein the first Ethernet frame comprises an extended type length value TLV field, and the extended TLV field comprises the first indication information.
42. The method of any one of claims 38-41, further comprising:
and switching the chip working mode of the first port from an Eth mode to a Flexe mode according to the first indication information.
43. The method of any one of claims 34-42, further comprising:
instructing the second communication device to configure the chip operation mode of the second port to a FlexE mode.
44. The method according to claim 43, wherein said instructing the second communication device to configure the chip operation mode of the second port to a Flexe mode comprises:
and periodically sending second indication information to the second communication device within a preset time, wherein the second indication information is used for indicating the second communication device to configure the chip working mode of the second port into a Flexe mode.
45. The method according to claim 35, wherein the determining that the chip operation mode of the second port is a FlexE mode comprises:
and determining that the chip working mode of the second port is a Flexe mode in response to not detecting the information block lock signal sent by the second communication device within a preset time.
46. The method according to claim 35, wherein the determining that the chip operation mode of the second port is a FlexE mode comprises:
and determining that the chip working mode of the second port is a Flexe mode in response to not detecting that the alignment mark lock signal sent by the second communication device is locked within a preset time.
47. The method according to claim 35, wherein the determining that the chip operation mode of the second port is a FlexE mode comprises:
according to O sent by the second communication device0Value of code block, determining the chip size of the second portThe operation mode is a FlexE mode.
48. The method of claim 35, further comprising:
sending a second ethernet frame to the second communication device, where the second ethernet frame is used to determine a chip operating mode of the second port;
the determining that the chip working mode of the second port is a FlexE mode includes:
and in response to not receiving the response of the second communication device to the second Ethernet frame, determining that the chip working mode of the second port is a Flexe mode.
49. The method of claim 48, wherein the second Ethernet frame comprises an extended Type Length Value (TLV) field, and wherein the extended TVL field comprises third indication information, wherein the third indication information is used to determine a chip mode of operation for the second port.
50. The method according to any of claims 34-49, wherein the port configuration mode of the first port is a Flexe mode.
51. An interface configuration method performed by a second communication device communicatively coupled to a first port of a first communication device via a second port, the method comprising:
acquiring first indication information, wherein the first indication information is used for indicating the first communication device to configure the chip working mode of the first port into a flexible Ethernet Flexe mode;
and sending the first indication information to the first communication device.
52. The method of claim 51, wherein before the obtaining the first indication information, the method further comprises:
receiving a configuration instruction sent by a control management entity, wherein the configuration instruction is used for instructing the second communication device to configure the second port into a Flexe mode.
53. The method according to claim 51 or 52, wherein after receiving the configuration instruction sent by the control management entity, the method further comprises:
and configuring the port configuration mode of the second port into a Flexe mode based on the configuration instruction.
54. The method according to any of claims 51-53, wherein the first indication is a remote fault RF indication.
55. The method according to any of claims 51-53, wherein the first indication information is O in a first Ethernet frame sent by the second communication device0Code blocks.
56. The method of any of claims 51-53, wherein sending the first indication to the first communication device comprises:
transmitting a first Ethernet frame to the first communication device, the first Ethernet frame comprising an extended type-length-value, TLV, field, the extended TLV field comprising the first indication information.
57. The method of any of claims 51-56, wherein after sending the first indication to the first communications device, the method further comprises:
and configuring the chip working mode of the second port into a Flexe mode.
58. The method of any of claims 51-57, wherein said sending the first indication to the first communication device comprises:
periodically transmitting the first indication information to the first communication device for a predetermined time.
59. The method of any one of claims 51-58, further comprising:
and receiving second indication information sent by the first communication device, wherein the second indication information is used for indicating the second communication device to configure the chip working mode of the second port to a Flexe mode.
60. The method of any one of claims 51 to 59, further comprising:
and receiving a second Ethernet frame sent by the first communication device, wherein the second Ethernet frame is used for determining the chip working mode of the second port.
61. The method of claim 60, further comprising:
and when the chip working mode of the second port is an Eth mode, sending a response aiming at the second Ethernet frame to the first communication device.
62. The method as claimed in claim 60 or 61, wherein the second Ethernet frame comprises an extended type length value TLV field, and wherein the extended TVL field comprises third indication information for determining a chip operation mode of the second port.
63. The method according to claim 61, wherein said sending a response to the first communication device for the second Ethernet frame comprises:
transmitting a third Ethernet frame to the first communication device.
64. The method of claim 63, wherein the third Ethernet frame comprises an extended Type Length Value (TLV) field, and wherein the extended TVL field comprises fourth indication information, wherein the fourth indication information is indicative of the response.
65. A first communications device, wherein the first communications device comprises a memory and a processor;
the memory for storing program code;
the processor, configured to execute instructions in the program code to cause the first communication device to perform the method of any of claims 1-50 above.
66. A first communication device, comprising a communication interface and a processor configured to perform the method of any of claims 1-50 above.
67. A second communication device, wherein the second communication device comprises a memory and a processor;
the memory is used for storing program codes;
the processor, configured to execute instructions in the program code to cause the second communication device to perform the method of any of claims 51-64.
68. A second communication device, characterized in that the second communication device comprises a communication interface and a processor for performing the method of any of the preceding claims 51-64.
69. A computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to perform the method of any one of claims 1-50 above or cause the computer to perform the method of any one of claims 51-64 above.
70. A communication system comprising a first communication device according to claim 65 or 66 and a second communication device according to claim 67 or 68.
CN202011155545.1A 2020-10-26 2020-10-26 Interface configuration method and device Pending CN114513406A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011155545.1A CN114513406A (en) 2020-10-26 2020-10-26 Interface configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011155545.1A CN114513406A (en) 2020-10-26 2020-10-26 Interface configuration method and device

Publications (1)

Publication Number Publication Date
CN114513406A true CN114513406A (en) 2022-05-17

Family

ID=81546947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011155545.1A Pending CN114513406A (en) 2020-10-26 2020-10-26 Interface configuration method and device

Country Status (1)

Country Link
CN (1) CN114513406A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024001874A1 (en) * 2022-06-30 2024-01-04 华为技术有限公司 Mode negotiation method and apparatus, device, system, and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024001874A1 (en) * 2022-06-30 2024-01-04 华为技术有限公司 Mode negotiation method and apparatus, device, system, and computer readable storage medium

Similar Documents

Publication Publication Date Title
US8886831B2 (en) System and methodology for fast link failover based on remote upstream failures
EP1895721B1 (en) Method and apparatus for end-to-end link detection and policy routing switching
CN104255002A (en) Redundant network connections
CN102833167B (en) Data transmission method and system between local area network (LAN)
EP2862315B1 (en) Self-configuring transport network
CN104579727A (en) Method and device for managing network connection of network nodes
KR20200037368A (en) Communication method, communication device and storage medium
JP2019511861A (en) Basic service set identifier BSSID update
CN110581774A (en) Network communication method and device
CN101909006B (en) BFD (Bidirectional Forwarding Detection) message sending and receiving methods as well as device and communication system thereof
CN114513406A (en) Interface configuration method and device
EP1497956A2 (en) Lan-based inter-unit communication
CN102820986A (en) Self-adaptation method, device and network equipment for working mode of fiber channel interface
JP6383232B2 (en) Relay system and switch device
EP4084406A1 (en) Method and equipment for sending interface message
CN116233279A (en) Message processing method, device and system
CN101465762B (en) Method, equipment and system for detecting error connection between protection set ports
CN102811153A (en) VLAN state negotiating method and edge device
JP5518771B2 (en) Redundant network system, termination device and relay point adjacent device
CN103125099B (en) Transmission equipment, transmission system and failure notification method
CN115152192B (en) PCE controlled network reliability
CN101645840B (en) Method, system and routing equipment for retransmitting message
US8553530B1 (en) Operating state control in redundancy protection systems
US20230283541A1 (en) Communication Method and System Applied to Metro Transport Network MTN or Slicing Packet Network SPN
JP5760729B2 (en) COMMUNICATION DEVICE, NETWORK, AND COMMUNICATION METHOD USED FOR THEM

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