Equipment port configuration method and system, storage medium and electronic equipment

By automatically switching port mode and storage service configuration in the intermediate management module of the device, the interoperability problem between FlexE and ETH modes is solved, the operation and maintenance costs and configuration complexity are reduced, and the automated interoperability and service recovery between devices are realized.

CN119071146AActive Publication Date: 2024-12-03FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411102127.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-12-03
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

During the communication process between SPN devices and IPRAN devices, due to the different encoding formats of FlexE mode and ETH mode, the devices cannot be directly interoperable. The existing technology requires manual configuration and port mode switching, resulting in high operation and maintenance costs and high configuration complexity. .

Method used

An intermediate management module is added between the control plane and the forwarding plane of the device, and the port mode is automatically switched according to the port working status, and the database storage service configuration and data format conversion are realized to realize the independent switching and recovery of the device port mode.

Benefits of technology

It improves the convenience of equipment maintenance and configuration, reduces operation and maintenance and configuration costs, and realizes automated interoperability and business recovery between equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071146A_ABST
    Figure CN119071146A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, and provides a device port configuration method and system, a storage medium and an electronic device.The method comprises the steps that whether existing service configuration exists in a home terminal device port or not is judged, and if yes, the service configuration is stored in a database; determining the working state of the home terminal equipment port, and judging whether to switch the port mode of the home terminal equipment port to an opposite terminal port mode; controlling a home terminal equipment port to establish connection with an opposite terminal equipment port, feeding back an opposite terminal port mode to a control plane, and converting a data format of a received message into a data format readable by the control plane; and detecting the working state of the home terminal equipment port, judging whether the port mode of the home terminal equipment port is recovered to the home terminal port mode or not, and recovering the service configuration of the home terminal equipment port. According to the method, the port mode of the home terminal equipment can be automatically switched according to the port mode of the port of the opposite terminal equipment, the convenience of equipment maintenance and equipment configuration is improved, and the cost of equipment operation and maintenance is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure belongs to the field of communication technology, and in particular, relates to a device port configuration method, system, storage medium and electronic device. Background Art

[0002] In the process of communication between SPN (Slicing Packet Network) equipment and IPRAN (Internet Protocol Radio Access Network, wireless access network based on IP technology) equipment, the default mode of SPN equipment port is FlexE (Flexible Ethernet) mode, and the default mode of IPRAN equipment port is ETH (Ethernet) mode. When the port in FlexE mode is connected with the port in ETH mode, since the FlexE mode needs to add a Shim layer to the physical layer (Physical Coding Sublayer), the FlexE mode and the ETH mode have different encoding formats and cannot communicate with each other.

[0003] During the opening or expansion phase of a network project, manual configuration and port mode switching are generally required to achieve interoperability between devices. Configured network devices usually have service configurations. If the port mode of the newly added network device is inconsistent with that of the original network device, it is necessary to manually delete the service configuration of the original network device, switch the device port mode to the same as the other end, and then reconfigure the service after interoperability. This is very costly in terms of convenience and operation and maintenance costs; or both the control plane and the forwarding plane are updated, and the network device needs to store all service configurations under the port and restore the full configuration after the devices are interoperable. The software implementation is complex, and configuration recovery is very time-consuming when the business volume is large. Summary of the invention

[0004] To solve the above problems, the present disclosure provides a device port configuration method and system, which adds an intermediate management module between the control plane and the forwarding plane of the device, and automatically switches the working mode of the port under the control of the intermediate management module according to the working status of the port.

[0005] The present invention is achieved through the following technical solutions:

[0006] In a first aspect, an embodiment of the present disclosure provides a port configuration method, the method comprising:

[0007] Determine whether there is an existing service configuration for the local device port, and store the service configuration of the local device port in a database according to the determination result;

[0008] Determine the working state of the local device port, and determine whether to switch the port mode of the local device port from the local port mode to the opposite port mode according to the working state of the local device port;

[0009] Control the local device port to establish a connection with the opposite device port, feed back the opposite port mode of the local device port to the control plane, convert the data format of the received message into a data format readable by the control plane, and send it to the control plane;

[0010] Detect the working status of the local device port, and determine whether to restore the port mode of the local device port from the opposite port mode to the local port mode according to the working status of the local device port, and restore the service configuration of the local device port.

[0011] Furthermore,

[0012] If the judgment result is that the local device port has an existing service configuration, the service configuration is stored in the database.

[0013] Furthermore,

[0014] Polling the physical layer and the Sim layer of the local device port to determine the working status of the local device port;

[0015] When the working state of the local device port is abnormal, the port mode of the local device port is switched from the local port mode to the opposite port mode.

[0016] Furthermore,

[0017] Select a client of the local device port to establish a connection with the opposite device port;

[0018] Reporting the opposite port mode of the local device port to the control plane;

[0019] The data format in the received message is converted into a data format readable by the control plane, and sent to the control plane.

[0020] Furthermore,

[0021] A client with the smallest client ID in the local device port is selected to establish a connection with the opposite device port.

[0022] Furthermore,

[0023] Detecting the working state of the local device port, and when the detection result shows that the working state is abnormal, restoring the port mode of the local device port from the opposite port mode to the local port mode;

[0024] After the port mode of the local device port is restored to the local port mode, the service configuration of the local device port is restored.

[0025] Furthermore,

[0026] The service information of the control plane is intercepted and temporarily stored in the database.

[0027] In a second aspect, an embodiment of the present disclosure further provides a device port configuration system, the system comprising an intermediate management module, the intermediate management module comprising: a database, a transmission submodule and a state machine;

[0028] The database is used to store service configuration and service information of the device port;

[0029] The transmission submodule is used to convert the data format of the message and transmit the message between the control plane and the forwarding plane;

[0030] The state machine is used to switch the port mode of the device port.

[0031] In a third aspect, the embodiments of the present disclosure further provide a computer-readable storage medium storing one or more programs, wherein:

[0032] When the one or more programs are executed, any of the above-mentioned device port configuration methods can be implemented.

[0033] In a fourth aspect, an embodiment of the present disclosure further provides an electronic device, comprising a processor, a communication interface, the above-mentioned computer-readable storage medium and a communication bus; wherein the processor, the communication interface, and the computer-readable storage medium communicate with each other via the communication bus;

[0034] in,

[0035] The processor is configured to execute a program stored in a computer-readable storage medium.

[0036] Compared with the prior art, the present invention has the following advantages:

[0037] This enables the local device port to switch the port mode automatically according to the port mode of the opposite device port, which improves the convenience of device maintenance and device configuration and reduces the cost of device operation and maintenance and device configuration.

[0038] Other features and advantages of the present disclosure will be described in the following description, and partly become apparent from the description, or be understood by implementing the present disclosure. The purpose and other advantages of the present disclosure can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0040] Figure 1 A schematic diagram of a conventional device structure provided for an embodiment of the present disclosure;

[0041] Figure 2 A flow chart of a device port configuration method provided by an embodiment of the present disclosure;

[0042] Figure 3 A schematic diagram of establishing a connection between a device port provided in an embodiment of the present disclosure;

[0043] Figure 4 A schematic diagram of a device port structure provided in an embodiment of the present disclosure;

[0044] Figure 5 A schematic diagram of establishing a connection for a device provided in an embodiment of the present disclosure;

[0045] Figure 6 A schematic diagram of establishing a connection between another device provided in an embodiment of the present disclosure;

[0046] Figure 7 A schematic diagram of establishing a connection between another device port provided in an embodiment of the present disclosure;

[0047] Figure 8 A schematic diagram of a state machine provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0049] like Figure 1As shown in the figure, taking the local device as the SPN device and the opposite device as the IPRAN device as an example, the SPN device and the IPRAN device include a control plane and a forwarding plane, and the SPN device port and the IPRAN device port are located in the forwarding plane. When the SPN device and the IPRAN device communicate through the port, the port mode is different. The port mode of the SPN device is the FlexE mode. Correspondingly, the device port in the FlexE mode has a Shim layer added, and the port mode of the IPRAN device is the ETH mode. The SPN device and the IPRAN device cannot communicate directly. In order to enable the SPN device and the IPRAN device to communicate directly, an intermediate management module is added between the control plane and the forwarding plane.

[0050] In a first aspect, the present disclosure provides a method for configuring a device port. Figure 2 As shown, the device port configuration method of the embodiment of the present disclosure includes:

[0051] S1: Determine whether there is an existing service configuration on the local device port, and store the service configuration on the local device port in a database according to the determination result.

[0052] Specifically, the intermediate management module determines whether the current device port has a business configuration that is in use or an existing business. If there is an existing business configuration, the business configuration is stored in the database of the intermediate management module; if there is no existing business configuration, there is no need to store the configuration of the current device port in the database.

[0053] S2: Determine the working state of the local device port, and determine whether to switch the port mode of the local device port from the local port mode to the opposite port mode according to the working state of the local device port.

[0054] Specifically, when the intermediate management module of the local device determines that the working state of the local device port is abnormal, for example: the port mode of the local device port is FlexE mode, and it is determined that the physical layer of the local device port works normally, but the Shim layer of the local device port cannot work normally, then the working state of the local device port at this time is abnormal; the port mode of the local device port is switched from the local port mode to the opposite port mode. After the port mode of the local device port is changed, the control plane of the device does not change the data format processed by the control plane, that is, the control plane processes the data format received in the local port mode.

[0055] S3: Control the local device port to establish a connection with the peer device port, feed back the peer port mode of the local device port to the control plane, convert the data format of the received message into a data format readable by the control plane, and send it to the control plane.

[0056] Specifically, if the port mode of the local device port changes, the transmission submodule of the intermediate management module reports the peer port mode of the local device port to the control plane; if the local device port mode changes to the peer port mode, the peer port mode of the local device port is reported to the control plane. Since the port mode of the local device port changes, the data format of the message received by the local device also changes accordingly. Therefore, the transmission submodule of the intermediate management module converts the data format of the received message into a data format readable by the control plane, and then sends the message to the control plane.

[0057] S4: Detect the working status of the local device port, and determine whether to restore the port mode of the local device port from the peer port mode to the local port mode according to the working status of the local device port, and restore the service configuration of the local device port.

[0058] Specifically, after a period of time, the intermediate management module detects the working status of the local device port, and when the detection result shows that the working status is abnormal, the port mode of the local device port is restored from the opposite port mode to the local port mode. After the port mode of the local device port is restored to the local port mode, the intermediate management module retrieves the previously stored service configuration from the database, and then restores the service configuration to the device port.

[0059] In some examples, determining whether there is an existing service configuration for the local device port, and storing the service configuration for the local device port in a database according to the determination result, specifically includes:

[0060] S11: If the judgment result is that the local device port has an existing service configuration, the service configuration is stored in the database.

[0061] Specifically, the intermediate management module determines whether the current local device port has a business configuration that is in use or an existing business. If there is an existing business configuration, the business configuration is stored in the database of the intermediate management module; if there is no existing business configuration, there is no need to store the current local device port configuration in the database. The local device port may include multiple clients, and the business configuration on only one client may be saved, for example: the client with the smallest client ID is selected, and when there is an existing business configuration, the business configuration is stored in the database.

[0062] In some examples, determining the working state of the local device port, and judging whether to switch the port mode of the local device port from the local port mode to the peer port mode according to the working state of the local device port, specifically includes:

[0063] S21: poll the physical layer and the Sim layer of the local device port to determine the working status of the local device port.

[0064] Specifically, the port mode of the local device port is FlexE mode, the local device port includes a physical layer and a Shim layer, the intermediate management module polls the physical layer and the Shim layer of the local device port, and confirms the working state of the local device port according to the state of the physical layer and the Shim layer. In addition to the physical layer and the Shim layer, the device port may also include other structures, and the intermediate management module may perform polling according to the actual structure of the port.

[0065] S22: When the working state of the port of the local device is abnormal, the port mode of the local device is switched from the local port mode to the opposite port mode.

[0066] Specifically, the port mode of the local device port is FlexE mode. When the intermediate management module determines that the working state of the local device port is abnormal, for example, when the physical layer of the local device port works normally and the Sim layer of the device port cannot work normally, the working state of the local device port at this time is abnormal; the local device port mode is switched from the local port mode to the opposite port mode. After the port mode of the local device port is changed, the control plane of the device does not change the data format processed by the control plane, that is, the control plane processes the data format received in the local port mode. For example, when the local device port is an SPN device port, the port mode of the SPN device port is FlexE mode, the opposite device port is an IPRAN device port, the port mode of the IPRAN device port is ETH mode, and the working state of the SPN device port is abnormal, the port mode of the SPN device port is converted from FlexE mode to ETH mode.

[0067] In some examples, controlling the local device port to establish a connection with the peer device port, feeding back the peer port mode of the local device port to the control plane, converting the data format of the received message into a data format readable by the control plane, and sending it to the control plane specifically includes:

[0068] S31: Select a client of the local device port to establish a communication connection with the opposite device port.

[0069] Specifically, the local device port may include multiple clients, one client corresponds to one virtual client, and the client is used to connect to the opposite device port. The intermediate management module selects a client to connect to the opposite device port. Of course, if the client has a service configuration, the service configuration is saved to the database in step S1. The client uses a 66B code stream. It is understandable that the opposite device port can also include multiple clients, and one-to-one corresponds to one virtual client.

[0070] S32: Report the peer port mode of the local device port to the control plane.

[0071] Specifically, since the port mode of the local device port has changed, the intermediate management module reports the changed opposite port mode to the control plane. Usually, after the port mode of the local device port is changed from the local port mode to the opposite port mode, the opposite port mode of the local device port is reported to the control plane.

[0072] S33: Convert the data format in the received message into a data format readable by the control plane, and send the data to the control plane.

[0073] Specifically, since the port mode of the local device port changes, the data format of the message received by the local device also changes accordingly, so the transmission submodule of the intermediate management module converts the data format of the received message into a data format readable by the control plane and then sends it to the control plane. The message may be a DCN (Data Communication Network) message.

[0074] In some examples, detecting the working state of the local device port, judging whether to restore the port mode of the local device port from the peer port mode to the local port mode according to the working state of the local device port, and restoring the service configuration of the local device port specifically includes:

[0075] S41: Detecting the working state of the port of the local device, and when the detection result shows that the working state is abnormal, restoring the port mode of the port of the local device from the opposite port mode to the local port mode.

[0076] Specifically, after a period of time, the intermediate management module detects the working status of the port of the local device. When the detection result is that the working status is abnormal, for example, the port mode of the port of the opposite device changes, or the opposite device stops interacting with messages for a period of time, the port mode of the local device port is restored from the opposite port mode to the local port mode.

[0077] S42: After the port mode of the local device port is restored to the local port mode, the service configuration of the local device port is restored.

[0078] Specifically, after the port mode of the local device port is restored to the local port mode, the intermediate management module retrieves the previously stored service configuration from the database, and then restores the service configuration to the local device port. Correspondingly, when the database saves the service configuration of a client of the local device port, the service configuration of the corresponding client is restored.

[0079] In some examples, selecting a client of a local device port to establish a connection with a peer device port specifically includes:

[0080] S311: Select the client with the smallest client ID in the local device port, and establish a communication connection with the opposite device port.

[0081] Specifically, each client in the local device port corresponds to a client ID, and when selecting a client for establishing a connection with the opposite device port, the client with the smallest client ID is selected.

[0082] In the disclosed embodiment, when the working modes of the control plane and the local device port are inconsistent, for example, the control plane of the SPN device processes the data format of the FlexE mode, and the SPN device port has switched to the ETH mode. At this time, if the local device needs to process the service of the data format corresponding to the control plane, for example, the local device needs to send a message to other devices; the intermediate management module intercepts the service information and temporarily stores it in the database. When the working mode of the device port is switched back to the local port mode, the local device port configuration is updated from the database.

[0083] In order to more clearly illustrate a device port configuration method in the present disclosure, a specific embodiment is provided below.

[0084] like Figure 3 , 4 As shown, take the local device as an SPN device and the opposite device as an IPRAN device as an example. The initial state of the local device port is FlexE mode; the port mode of the opposite device port is ETH mode, and the port mode of the local device port is inconsistent with the port mode of the opposite device port. Therefore, the opposite device and the local device cannot directly establish communication. The local device port includes multiple FlexE clients, one FlexE client corresponds to a virtual client, and the virtual client is connected to the message processing module. The message processing module is used to process and analyze the received messages. When the local device port switches the port mode, the configuration of the virtual client will not be changed. This method can avoid the linkage refresh of all services on the port due to the change of the port's working mode.

[0085] like Figure 5 , 6As shown, the local device has established a connection with the opposite device, and the two are connected through the device port in FlexE mode. At this time, it is necessary to add a new device between the local device and the opposite device, and the port mode of the port of the new device is ETH mode. At this time, the local device uses the above method to automatically switch the port mode of the port of the local device from FlexE mode to ETH mode, so as to realize automatic connection between the new device and the local device without manual configuration. After the local device and the new device are connected, the local device can set the port of the new device to change the port mode of the port connected to the opposite device, that is, change the port mode of the port of the new device from ETH mode to FlexE mode, so that the new device can directly establish a connection with the opposite device.

[0086] The intermediate management module of the local device determines whether there is an existing service configuration on the local device port, for example, whether the client with the smallest client ID in the local device port has a service configuration. If there is a service configuration, it is stored in the database of the central management module.

[0087] The intermediate management module of the local device polls the physical layer and the Shim layer of the local device port; when the physical layer of the local device port works normally and the Shim layer of the local device port does not work normally, the local device port cannot establish a communication connection with the opposite device port. The intermediate management module of the local device needs to control the port mode of the local device port to switch from the FlexE mode to the ETH mode of the opposite device port.

[0088] After the port mode of the local device port is changed to ETH mode, the intermediate management module reports the current port mode to the control plane. The data in the message received by the local device port is ETH mode data, and the control plane of the local device cannot process the ETH mode data at this time. The transmission submodule of the intermediate management module converts the ETH mode data into FlexE mode data and then sends it to the control plane. The message replied by the control plane can also be converted into data mode in the intermediate management module and then sent to other devices, thereby realizing message communication; for example, DCN protocol message communication.

[0089] If the local device port does not send or receive messages for a long time, or cannot send or receive messages for a period of time, the port mode of the local device port is changed from ETH mode to FlexE mode. For example, if the local device port does not receive messages sent by the opposite device port for 20 minutes, the intermediate management module of the local device port controls the port mode to change from ETH mode to FlexE mode.

[0090] like Figure 7As shown, the peer device can also add an intermediate management module between the control plane and the forwarding plane, and can also execute the above device port configuration method.

[0091] In the second aspect, based on the same inventive concept, the embodiment of the present disclosure also provides a device port configuration system, the system includes an intermediate management module: the intermediate management module includes: a database, a transmission submodule and a state machine. The database is used to store the service configuration and service information of the device port; the transmission submodule is used to convert the data format of the message and transmit the message between the control plane and the forwarding plane; the state machine is used to switch the port mode of the device port.

[0092] like Figure 8 As shown, the state machine is used to switch the port mode according to the instruction, and the state machine is divided into: ST_INIT state, ST_FLEXE state, ST_WAIT state, ST_FLEXE_2_ETH state, ST_ETH state and ST_PRE_2_ETH state.

[0093] The ST_INIT state is the initialization state, and the FlexE port is added according to the FlexE PHY add command.

[0094] The ST_FLEXE state is the FlexE mode state, the device port is in FlexE mode, and according to the instruction PCS_UP_SHIM_DOWN, it enters the ST_WAIT state. Among them, PCS_UP_SHIM_DOWN means that the physical layer (PCS) state of the device port is UP (normal state), and the Shim layer state of the device port is DOWN (abnormal state).

[0095] The ST_WAIT state is a negotiation waiting state. Usually, the next instruction is executed after waiting for 10 seconds. After waiting for 10 seconds, if there is no other instruction, it enters the ST_PRE_2_ETH state. According to the instruction ETH_PHY_CFG, it enters the ST_ETH state. According to the instructions PCS_DOWN, PCS_UP_SHIM_UP, and DCN_OFF, it returns to the ST_FLEXE state. Among them, PCS_DOWN means that the physical layer (PCS) state of the device port is DOWN (abnormal state); DCN OFF means that the DCN communication function is disabled, that is, the DCN message communication stops.

[0096] The ST_PRE_2_ETH state is the pre-switching state of the ETH mode. At this time, the service configuration of the device port is backed up to the database; according to the instruction ETH_PHY_CFG, it enters the ST_ETH state; according to the instructions PCS_DOWN, PCS_UP_SHIM_UP, DCN_OFF, it returns to the ST_FLEXE state; according to the instruction SWITCH_ETH, it enters the ST_FLEXE_2_ETH state.

[0097] The ST_FLEXE_2_ETH state is to switch from FLEXE mode to ETH mode; according to the instruction ETH_PHY_CFG, enter the ST_ETH state; according to the instruction PCS_DOWN / DCN_OFF / 20Min Tmeout, return to the ST_FLEXE state. Among them, 20MinTimeout means that if the state machine does not receive the instruction to switch the port mode within 20 minutes, it will be judged as a timeout at the 20th minute. For example, within 20 minutes, if the port of the local device does not need to switch the port mode, the state machine does not receive the instruction to switch the port mode from FlexE mode to ETH mode, or does not receive the instruction to switch the port mode from ETH mode to FlexE mode, then at the 20th minute, the state machine returns from the ST_FLEXE_2_ETH state to the ST_FLEXE state, and the port mode of the port of the local device will be switched back from Eth mode to FlexE mode; at this time, the local device waits for the next DCN auto-negotiation and implements DCN message communication.

[0098] In a third aspect, the embodiments of the present disclosure further provide a computer-readable storage medium storing one or more programs, which, when executed, can implement the aforementioned device port configuration method.

[0099] In a fourth aspect, based on the same inventive concept, an embodiment of the present disclosure further provides an electronic device, including a processor, a communication interface, a memory, and a communication bus. The processor, the communication interface, and the memory communicate with each other via the communication bus. The processor is used to execute the program stored in the aforementioned computer-readable storage medium.

[0100] It should be noted that the electrical connection between the above-mentioned units does not necessarily mean the connection between lines. An indirect connection method can be applied to the embodiments of the present disclosure as long as the purpose of the present disclosure is achieved.

[0101] Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure.

Claims

1. A device port configuration method, characterized in that: The method comprises: Determine whether there is an existing service configuration for the local device port, and store the service configuration of the local device port in a database according to the determination result; Determine the working state of the local device port, and determine whether to switch the port mode of the local device port from the local port mode to the opposite port mode according to the working state of the local device port; Control the local device port to establish a connection with the peer device port, feed back the peer port mode of the local device port to the control plane, convert the data format of the received message into a data format readable by the control plane, and send it to the control plane; Detect the working status of the local device port, and determine whether to restore the port mode of the local device port from the opposite port mode to the local port mode according to the working status of the local device port, and restore the service configuration of the local device port.

2. The method according to claim 1, characterized in that The determining whether there is an existing service configuration on the local device port and storing the service configuration on the local device port in a database according to the determination result includes: If the judgment result is that the local device port has an existing service configuration, the service configuration is stored in the database.

3. The method according to claim 1, characterized in that The determining the working state of the local device port and judging whether to switch the port mode of the local device port from the local port mode to the opposite port mode according to the working state of the local device port include: Polling the physical layer and the Shim layer of the local device port to determine the working status of the local device port; When the working state of the local device port is abnormal, the port mode of the local device port is switched from the local port mode to the opposite port mode.

4. The method according to claim 1, characterized in that The control of establishing a connection between the local device port and the opposite device port, feeding back the opposite port mode of the local device port to the control plane, converting the data format of the received message into a data format readable by the control plane, and sending it to the control plane includes: Select a client of the local device port to establish a connection with the opposite device port; Reporting the opposite port mode of the local device port to the control plane; The data format in the received message is converted into a data format readable by the control plane, and sent to the control plane.

5. The method according to claim 4, characterized in that The step of selecting a client of a local device port to establish a connection with a peer device port includes: A client with the smallest client ID in the local device port is selected to establish a connection with the opposite device port.

6. The method according to claim 1, characterized in that The detecting the working state of the local device port, judging whether to restore the port mode of the local device port from the opposite port mode to the local port mode according to the working state of the local device port, and restoring the service configuration of the local device port includes: Detecting the working state of the local device port, and when the detection result shows that the working state is abnormal, restoring the port mode of the local device port from the opposite port mode to the local port mode; After the port mode of the local device port is restored to the local port mode, the service configuration of the local device port is restored.

7. The method according to claim 1, characterized in that The detecting the working state of the local device port, judging whether to restore the port mode of the local device port from the opposite end port mode to the local end port mode according to the working state of the local device port, and restoring the service configuration of the local device port also includes: The service information of the control plane is intercepted and temporarily stored in the database.

8. A device port configuration system, characterized in that: The system includes an intermediate management module, which includes: a database, a transmission submodule and a state machine; The database is used to store service configuration and service information of the device port; The transmission submodule is used to convert the data format of the message and transmit the message between the control plane and the forwarding plane; The state machine is used to switch the port mode of the device port.

9. A computer-readable storage medium storing one or more programs, characterized in that: When the one or more programs are executed, the device port configuration method described in any one of claims 1 to 7 can be implemented.

10. An electronic device comprising a processor, a communication interface, the computer-readable storage medium of claim 9, and a communication bus; wherein: The processor, the communication interface, and the computer-readable storage medium communicate with each other via a communication bus; It is characterized in that The processor is configured to execute a program stored in a computer-readable storage medium.

Citation Information

Patent Citations

  • Programmable network equipment managing and controlling method based on virtual address spaces

    CN104539632A

  • Method and device for managing port configuration mode

    CN111988162A

  • Port mode self-adaption method and port mode self-adaption device

    CN112217661A

  • Interface negotiation method, processor, network device and network system

    CN112995004A

  • FlexE port communication method, communication device and storage medium

    CN113923276A