A control method and device of flexible Ethernet, a storage medium and an electronic device
By detecting configuration switching requests and parameters at the flexible Ethernet receiver, identifying link interruptions and performing repair operations, the configuration failure problem caused by link interruptions during flexible Ethernet connection is resolved, improving the reliability and management efficiency of network connections.
Patent Information
- Application Number
- CN202111663238.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-30
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2041-12-30
AI Technical Summary
In flexible Ethernet connectivity, when a link interruption causes configuration failure, it cannot be detected, and existing technologies have not effectively addressed this issue.
By detecting whether a configuration switching request is received from the sender at the flexible Ethernet receiver, the system determines whether the data transmission configuration of the sender has been switched based on the configuration parameters. If no switching request is received and the parameters indicate a switch, it is determined to be a brief interruption event, and a repair operation is performed.
It enables effective monitoring and repair of configuration failures caused by intermittent link interruptions during flexible Ethernet connections, thereby improving the reliability and management efficiency of network connections.
Smart Images

Figure CN116418659B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communications, and more specifically, to a flexible Ethernet control method, apparatus, storage medium, and electronic device. Background Technology
[0002] The essential difference between the process of establishing a connection in Flexible Ethernet and that in Traditional Ethernet is that while Ethernet connection establishment is the successful establishment of a Physical Coding Sublayer (PCS) connection at a specified rate, Flexible Ethernet connection establishment, on the basis of the successful establishment of the PCS connection, combines the time slots of the Physical Entity (PHY) of Flexible Ethernet, and establishes the client's connection by configuring the transmission through three schedulers, thereby realizing flexible functions such as bundling, channelization, and sub-rate.
[0003] The reliability of the three-stage scheduler configuration is crucial during the establishment of a Flexible Ethernet connection. If the link status is a complete Flexible Ethernet disconnection, or other persistent errors, administrators can easily identify and resolve the problem. However, for intermittent physical link disconnections, especially if they occur precisely after the sender modifies the 3 C bits of the FlexE instance's overhead frame and before the receiver receives the 3 C bits, configuration failures may go unnoticed and remain untroubleshooted.
[0004] There is currently no effective solution to the problem that configuration failures caused by link interruptions during the connection establishment process for flexible Ethernet clients cannot be detected. Summary of the Invention
[0005] This invention provides a control method, apparatus, storage medium, and electronic device for Flexible Ethernet, which at least addresses the problem in the related art where configuration failures caused by link interruptions during the establishment of a connection with a Flexible Ethernet client cannot be detected, and no effective solution has yet been proposed.
[0006] According to one embodiment of the present invention, a control method for Flexible Ethernet is provided, comprising: at the end of the current configuration process of Flexible Ethernet, detecting whether the receiving end of Flexible Ethernet has received a configuration switching request sent by the sending end of Flexible Ethernet, wherein the current configuration process is a process in which the sending end and the receiving end confirm the data transmission configuration, and the configuration switching request is used to request a switch to the confirmed data transmission configuration;
[0007] If it is determined that the receiving end has not received the configuration switching request, the data transmission configuration of the sending end is determined to have been switched based on the configuration parameters sent by the sending end.
[0008] If it is determined that the data transmission configuration of the sending end has been switched, a brief interruption event is determined to have occurred in the Flexible Ethernet.
[0009] Optionally, at the end of the current configuration process of Flexible Ethernet, it is detected whether the receiving end of Flexible Ethernet has received a configuration switching request sent by the sending end of Flexible Ethernet, including:
[0010] Detect whether the receiving end receives a configuration confirmation signal during the current configuration process, wherein the configuration confirmation signal is a signal sent by the sending end to the receiving end to confirm the data transmission configuration with the receiving end;
[0011] If the configuration confirmation signal is detected, it is detected whether the receiving end receives a configuration switching signal, wherein the configuration switching signal is a signal sent by the sending end to the receiving end to instruct the receiving end to switch the data transmission configuration;
[0012] If the configuration switching signal is not detected, it is determined that the receiving end has not received the configuration switching request.
[0013] Optionally, if it is determined that the receiving end has not received the configuration switching request, the system determines whether the data transmission configuration of the sending end has been switched based on the configuration parameters sent by the sending end, including:
[0014] The receiving end receives the configuration parameters sent by the sending end;
[0015] The data transmission configuration of the sending end is determined based on the configuration parameters to determine whether the data transmission configuration of the sending end has been switched.
[0016] Optionally, the step of collecting the configuration parameters sent by the sending end and received by the receiving end includes:
[0017] Multiple type parameters indicating the data transmission configuration of the receiving end are obtained from the instructions issued by the sending end and received by the receiving end at a preset period.
[0018] The configuration parameters are obtained by arranging the multiple type parameters in the order of receipt.
[0019] Optionally, determining whether the data transmission configuration of the sending end has been switched based on the configuration parameters includes:
[0020] According to the order of the plurality of type parameters, the first number of type parameters arranged at the beginning position are determined as the initial parameter set, wherein the initial parameter set is used to indicate the configuration type of the data transmission configuration currently used by the receiving end;
[0021] According to the order of the plurality of type parameters, the second number of type parameters arranged at the end position are determined as the target parameter set, wherein the target parameter set is used to indicate the configuration type of the data transmission configuration to which the receiving end is to switch, and the initial parameter set and the target parameter set do not intersect;
[0022] If the configuration type of the currently used data transmission configuration is different from the configuration type of the data transmission configuration that the receiving end is to switch to, it is determined that the data transmission configuration of the sending end has been switched.
[0023] Optionally, after determining that a flashover event has occurred in the Flexible Ethernet, the method further includes:
[0024] Obtain the data transmission configuration used by the sending end as the target configuration;
[0025] A repair operation is determined based on the target configuration, wherein the repair operation is used to switch the data transmission configuration of the receiving end to the target configuration;
[0026] The repair operation is performed on the receiving end.
[0027] Optionally, determining the repair operation based on the target configuration includes one of the following:
[0028] The scheduler at the receiving end switches the data transmission configuration used by the receiving end to the target configuration.
[0029] Control the receiving end to resend the data transmission configuration to the sending end.
[0030] According to another embodiment of the present invention, a control device for Flexible Ethernet is also provided, comprising: a detection module, configured to detect whether the receiving end of the Flexible Ethernet receives a configuration switching request sent by the sending end of the Flexible Ethernet at the end of the current configuration process of the Flexible Ethernet, wherein the current configuration process is a process in which the sending end and the receiving end confirm the data transmission configuration, and the configuration switching request is used to request a switch to the confirmed data transmission configuration;
[0031] The first determining module is used to determine whether the data transmission configuration of the sending end has been switched based on the configuration parameters sent by the sending end when it is determined that the receiving end has not received the configuration switching request.
[0032] The second determining module is used to determine that a brief interruption event has occurred in the Flexible Ethernet when the data transmission configuration of the sending end is switched.
[0033] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is configured to execute the above-described flexible Ethernet control method at runtime.
[0034] According to another aspect of the present invention, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the aforementioned flexible Ethernet control method via the computer program.
[0035] In this embodiment of the invention, at the end of the current configuration process of Flexible Ethernet, it is detected whether the receiving end of Flexible Ethernet has received a configuration switching request sent by the sending end of Flexible Ethernet. The current configuration process is a process in which the sending end and the receiving end confirm the data transmission configuration, and the configuration switching request is used to request a switch to the confirmed data transmission configuration. If it is determined that the receiving end has not received a configuration switching request, it is determined whether the data transmission configuration of the sending end has been switched based on the configuration parameters sent by the sending end. If it is determined that the data transmission configuration of the sending end has been switched, it is determined that a Flexible Ethernet interruption event has occurred. That is, the current configuration process of Flexible Ethernet is a process in which the sending end and the receiving end of Flexible Ethernet confirm the data transmission configuration. After the sending end and the receiving end confirm the data transmission configuration, the sending end instructs the receiving end to perform a configuration switching according to the determined data transmission configuration, and then it is detected whether the receiving end of Flexible Ethernet has received a configuration switching request sent by the sending end of Flexible Ethernet. If the receiving end does not receive a configuration switch request, the system determines whether the data transmission configuration of the sending end has switched based on the configuration parameters sent by the sending end. If the data transmission configuration of the sending end has switched, it can be inferred that the sending end has sent the configuration parameters to the receiving end. However, since the receiving end is not detected to have received a configuration switch request, it is determined that a brief interruption event has occurred in the Flexible Ethernet connection, causing the sending end of the Flexible Ethernet connection to fail to send the configuration switch request to the receiving end. This technical solution addresses the problem in related technologies where configuration failures caused by brief link interruptions during the connection establishment process for Flexible Ethernet clients cannot be detected, and no effective solution has yet been proposed. This solution achieves the technical effect of effectively monitoring configuration failures caused by brief link interruptions during the connection establishment process for Flexible Ethernet clients. Attached Figure Description
[0036] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this invention, illustrate exemplary embodiments of the invention and are used to explain the invention, but do not constitute an undue limitation of the invention. In the drawings:
[0037] Figure 1 This is a hardware structure block diagram of a computer terminal for a flexible Ethernet control method according to an embodiment of the present invention.
[0038] Figure 2 This is a flowchart of a flexible Ethernet control method according to an embodiment of the present invention;
[0039] Figure 3 It is an overhead frame of a flexible Ethernet instance according to an embodiment of the present invention;
[0040] Figure 4 This is a schematic diagram of a flexible Ethernet connection establishment process;
[0041] Figure 5 This is a basic schematic diagram of a flexible Ethernet control method according to an embodiment of the present invention;
[0042] Figure 6 This is a schematic diagram of a flexible Ethernet control process according to an embodiment of the present invention;
[0043] Figure 7 This is a structural block diagram of a flexible Ethernet control device according to an embodiment of the present invention. Detailed Implementation
[0044] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0045] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0046] The method embodiments provided in this invention can be executed on a computer terminal, a computer terminal, or a similar computing device. Taking running on a computer terminal as an example, Figure 1 This is a hardware structure block diagram of a computer terminal for a flexible Ethernet control method according to an embodiment of the present invention. Figure 1 As shown, a computer terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. In one exemplary embodiment, the computer terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the computer terminal described above. For example, the computer terminal may also include components that are more complex than those described above. Figure 1 The more or fewer components shown, or having the same Figure 1 Equivalent functions or ratios shown Figure 1 The functions shown have more different configurations.
[0047] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to a flexible Ethernet control method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thus implementing the aforementioned method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to a computer terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0048] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider for the computer terminal. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.
[0049] This embodiment provides a flexible Ethernet control method applied to the aforementioned computer terminal. Figure 2 This is a flowchart of a flexible Ethernet control method according to an embodiment of the present invention, the process including the following steps:
[0050] Step S202: When the current configuration process of Flexible Ethernet ends, it is detected whether the receiving end of Flexible Ethernet has received a configuration switching request sent by the sending end of Flexible Ethernet. The current configuration process is the process in which the sending end and the receiving end confirm the data transmission configuration. The configuration switching request is used to request to switch the confirmed data transmission configuration.
[0051] Step S204: If it is determined that the receiving end has not received the configuration switching request, determine whether the data transmission configuration of the sending end has been switched according to the configuration parameters sent by the sending end;
[0052] Step S206: If it is determined that the data transmission configuration of the sending end has been switched, it is determined that the Flexible Ethernet has experienced a brief interruption event.
[0053] Through the above steps, the current configuration process of Flexible Ethernet involves the sending and receiving ends confirming the data transmission configuration. After confirmation, the sending end sends a configuration switching request instructing the receiving end to switch the configuration according to the determined data transmission configuration. Then, it checks whether the receiving end has received the configuration switching request from the sending end. If the receiving end has not received the configuration switching request, it determines whether the sending end's data transmission configuration has switched based on the configuration parameters sent by the sending end. If the sending end's data transmission configuration has switched, it can be inferred that the sending end has sent the configuration parameters to the receiving end. However, since the receiving end has not received the configuration switching request, it is determined that a brief interruption event has occurred in Flexible Ethernet, causing the sending end to fail to send the configuration switching request to the receiving end. This technical solution solves the problem in related technologies where configuration failures caused by brief link interruptions during the connection establishment process for Flexible Ethernet clients cannot be detected, and no effective solution has yet been proposed. This solution achieves the technical effect of effectively monitoring configuration failures caused by brief link interruptions during the connection establishment process for Flexible Ethernet clients.
[0054] In the technical solution provided in step S202 above, at the end of the current configuration process of Flexible Ethernet, it is detected whether the receiving end of Flexible Ethernet has received a configuration switching request sent by the sending end of Flexible Ethernet. That is, the current configuration process of Flexible Ethernet may be, but is not limited to, the process by which the sending end and receiving end of Flexible Ethernet determine the data transmission configuration. At the end of the above current configuration process, it is detected whether the receiving end of Flexible Ethernet has received a configuration switching request sent by the sending end of Flexible Ethernet. The configuration request may be, but is not limited to, a signal instructing the receiving end to switch the current data transmission configuration to the determined data transmission configuration.
[0055] Optionally, in this embodiment, the Flexible Ethernet can be, but is not limited to, a client / group architecture definition that can support the mapping and transmission of any number of different interface Flexible Ethernet Clients on any group of physical layer entities (FlexE Group), thereby enabling a network with functions such as bundling, channelization, and sub-rate.
[0056] Optionally, in this embodiment, the sending end and receiving end can be, but are not limited to, two devices that interact with data in Flexible Ethernet. They can include, but are not limited to, the initiator of the connection and the receiver of the connection.
[0057] Optionally, in this embodiment, the above-mentioned data transmission configuration may be, but is not limited to, data indicating the data transmission configuration of the flexible Ethernet transmitter and receiver, wherein the data type may be, but is not limited to, a signal containing the data transmission configuration.
[0058] Optionally, in this embodiment, the above data transmission configuration may be, but is not limited to, a combination of subdivided time slots for data transmission at the Ethernet physical layer for the flexible Ethernet transmitter and receiver.
[0059] In one exemplary embodiment, at the end of the current configuration process of Flexible Ethernet, it can be detected whether the receiving end of Flexible Ethernet has received a configuration switching request sent by the sending end of Flexible Ethernet in the following manner, but not limited to: detecting whether the receiving end has received a configuration confirmation signal during the current configuration process, wherein the configuration confirmation signal is a signal sent by the sending end to the receiving end to confirm the data transmission configuration with the receiving end; if the configuration confirmation signal is detected, detecting whether the receiving end has received a configuration switching signal, wherein the configuration switching signal is a signal sent by the sending end to the receiving end to instruct the receiving end to switch the data transmission configuration; if the configuration switching signal is not detected, determining that the receiving end has not received the configuration switching request.
[0060] Optionally, in this embodiment, Figure 3 This is an overhead frame of a flexible Ethernet instance according to an embodiment of the present invention, such as Figure 3 As shown, the configuration confirmation signal may be, but is not limited to, a signal indicating the time slot configuration information of the transmitting and receiving ends, such as: a CR signal and a CA signal containing valid time slot configuration; or, the configuration switching signal may be, but is not limited to, a signal indicating that the receiving end should switch the current time slot configuration to the aforementioned time slot configuration information, such as: modifying the overhead frame of a flexible Ethernet instance after 3 C bits.
[0061] Optionally, in this embodiment, whether the receiving end receives a configuration confirmation signal and a configuration switching signal during the current configuration process can be detected by, but is not limited to, by setting a high-precision MCU in the receiving direction and sampling the CR, CA, and C bits in the receiving direction at the microsecond level.
[0062] In the technical solution provided in step S204 above, if it is determined that the receiving end has not received the configuration switching request, the configuration parameters sent by the sending end can be monitored. Since the configuration parameters can indicate the data transmission configuration of the sending end, when the data transmission configuration indicated by the configuration parameters is a confirmed data transmission configuration, it means that the data transmission configuration of the sending end has been switched and the configuration parameters have been sent to the receiving end. Using the above method, by monitoring the configuration parameters sent by the sending end, it is possible to effectively identify whether the data transmission configuration of the sending end has been switched.
[0063] Optionally, in this embodiment, whether the data transmission configuration of the sending end has been switched can be determined, but is not limited to, by means of the configuration parameters sent by the sending end: collecting the configuration parameters sent by the sending end received by the receiving end; and determining whether the data transmission configuration of the sending end has been switched based on the configuration parameters.
[0064] Optionally, in this embodiment, the configuration parameter may be, but is not limited to, the value of C bits. The value of C bits may be, but is not limited to, determined by multiple C bits. For example, the value of C bits may be determined by the majority principle, that is, the value that appears most often among multiple C bits is taken as the value of C bits.
[0065] Optionally, in this embodiment, the configuration parameters and data transmission configuration types may be, but are not limited to, a one-to-one correspondence. The configuration parameters and data transmission configuration types may include, but are not limited to, the following situations: when the configuration parameter is a first parameter, the corresponding data transmission configuration type is a first configuration type; when the configuration parameter is a second parameter, the corresponding data transmission configuration type is a second configuration type.
[0066] In one exemplary embodiment, the configuration parameters received by the receiver from the sender can be acquired, but are not limited to, by: obtaining multiple type parameters indicating the configuration type of the data transmission configuration of the receiver from the instructions issued by the sender received by the receiver at a preset period; arranging the multiple type parameters in the order of receipt to obtain the configuration parameters.
[0067] Optionally, in this embodiment, the preset period setting value can ensure that a sufficient number of data transmission configuration types are collected within a preset period. The preset period can be set to a small value, such as 50 microseconds.
[0068] Optionally, in this embodiment, the type parameter may be, but is not limited to, a parameter sent by the sender to the receiver to indicate the configuration type of the receiver.
[0069] In one exemplary embodiment, it can be determined, but is not limited to, whether the data transmission configuration of the sending end has been switched based on configuration parameters in the following manner: determining a first number of type parameters arranged at the beginning position of the plurality of type parameters according to the order of the plurality of type parameters as an initial parameter set, wherein the initial parameter set is used to indicate the configuration type of the data transmission configuration currently used by the receiving end; determining a second number of type parameters arranged at the end position of the plurality of type parameters according to the order of the plurality of type parameters as a target parameter set, wherein the target parameter set is used to indicate the configuration type of the data transmission configuration to which the receiving end is to switch, and the initial parameter set and the target parameter set do not intersect; determining that the data transmission configuration of the sending end has been switched if the configuration type of the currently used data transmission configuration is different from the configuration type of the data transmission configuration to which the receiving end is to switch.
[0070] Optionally, in this embodiment, the first quantity and the second quantity may be, but are not limited to, equal. For example, data is collected 20 times and divided into 4 groups in the order of receipt. The 5 data points in the first group at the starting position are determined as the initial parameter set, and the 5 data points in the first group at the ending position are determined as the target parameter set.
[0071] In the technical solution provided in step S206 above, after determining that the flexible Ethernet has experienced a brief interruption event, the method further includes: obtaining the data transmission configuration used by the transmitting end as a target configuration; determining a repair operation based on the target configuration, wherein the repair operation is used to switch the data transmission configuration of the receiving end to the target configuration; and performing the repair operation on the receiving end.
[0072] Optionally, in this embodiment, the interruption event may include, but is not limited to, a physical link interruption.
[0073] Optionally, in this embodiment, the repair operation may include, but is not limited to, switching the data transmission configuration of the receiving end to the target configuration, for example, automatically calling the software switching interface to perform a scheduler configuration switch in the receiving direction.
[0074] In one exemplary embodiment, determining a repair operation based on the target configuration includes one of the following: executing the scheduler of the receiving end to switch the data transmission configuration used by the receiving end to the target configuration; controlling the receiving end to retransmit the data transmission configuration to the sending end.
[0075] Optionally, in this embodiment, the type of scheduler may be, but is not limited to, a device that uses relevant scheduling algorithms to determine the task that needs to be executed, such as a cooperative scheduler, a preemptive scheduler, and a time-slice scheduler.
[0076] To better understand the process of the above-mentioned flexible Ethernet control method, the implementation flow of the above-mentioned flexible Ethernet control process will be described below in conjunction with optional embodiments, but this is not intended to limit the technical solution of the embodiments of the present invention.
[0077] Based on the content of the above embodiments, as an optional embodiment, Figure 4 This is a schematic diagram of a flexible Ethernet connection establishment process, such as... Figure 4 As shown:
[0078] Step 1: The initiator of the connection (Device A) notifies the other party (Device B) by sending a scheduler request (CR). The CR bit has the same value as the valid timeslot configuration of Device A.
[0079] Step 2: Device B receives the CR bit from Device A and responds with a scheduler acknowledgment (CA). The CA bit has the same value as the valid timeslot configuration contained in the CR.
[0080] Step 3: Device A informs Device B's scheduler that the slot configuration has changed by modifying the value of 3 C bits in the overhead frame of the FlexE instance.
[0081] These three scheduler configurations are causally linked. If step 1 fails, step 2 will not be executed; if step 2 fails, step 3 will not be executed. However, if step 3 fails, and there is no subsequent configuration based on step 3, the following consequences will occur: Device A's hardware / driver believes that the C bits have been sent, completing the time slot configuration for the transmission direction; however, Device B has not received them, and neither device's hardware nor software has a means to notify the user / network administrator / upper-level monitoring program. This increases the difficulty and cost of deploying and diagnosing the entire network environment.
[0082] If the link status is a complete disconnection of the physical layer entity (PHY) of Flexible Ethernet, or other persistent errors, the administrator can easily identify and resolve the problem.
[0083] If a physical link experiences a brief interruption, and this happens to occur exactly after Device A modifies the overhead frame of the FlexE instance (3 C bits) and before Device B receives the 3 C bits, then the aforementioned untroublesome problem will occur.
[0084] Therefore, a management mechanism is needed to automatically detect the success or failure of the third-step scheduler configuration and make automatic corrections to resolve anomalies that occur during the network deployment and connection establishment process of flexible Ethernet, and to help administrators and software control programs solve hidden problems in a timely and effective manner.
[0085] For the aforementioned problems that cannot be identified, the following methods can be used, but are not limited to: setting up precise monitoring at the receiving end (Device B) to obtain the current state machine of the scheduler configuration in real time; based on the state machine's state, sampling and analyzing the information received in the receiving direction configured by the scheduler in the third time in real time; quickly determining the cause of the problem based on the analysis results; and automatically executing a repair program to fix the problem based on the cause.
[0086] Figure 5 This is a basic schematic diagram of a flexible Ethernet control method according to an embodiment of the present invention, such as... Figure 5 As shown, by setting a high-precision MCU in the receiving direction and sampling the C-bit value in the receiving direction at the microsecond level, the system can automatically determine whether there is a fault in the receiving direction.
[0087] This embodiment provides a flexible Ethernet control method. Figure 6 This is a schematic diagram of a flexible Ethernet control process according to an embodiment of the present invention, such as... Figure 6 As shown:
[0088] Step S1: Determine the current connection establishment status of the FlexE client signal of the current device. If the device is in the state of receiving a CR request but not receiving a C bit switching request, this scan request has the highest priority. Once the scan does not meet the execution conditions, it will immediately exit unconditionally.
[0089] Step S2: Start continuous scanning with a thread to sample the switching operation of lost receiving direction using a high-precision MCU. Three conditions must be met simultaneously:
[0090] Condition 1: The receiving direction first continuously receives a fixed value of C bits;
[0091] Condition 2, and finally, a fixed value of C bits is received;
[0092] Condition 3: The C-bit values of these two fixed values are different;
[0093] Since this is under the premise of "receiving a CR request but not receiving a C bit switching request" in the previous step S1, the present invention can accurately locate the lost switching request. In order to achieve the three conditions in step S2, a large amount of sampling data is required. Therefore, the present invention samples 20 consecutive data as the raw information for processing.
[0094] Step S3: After detecting an abnormal state, the present invention will automatically call the software switching interface to perform a scheduler configuration switch for the receiving direction.
[0095] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present invention.
[0096] Figure 7 This is a structural block diagram of a flexible Ethernet control device according to an embodiment of the present invention; as shown below. Figure 7 As shown, it includes:
[0097] The detection module 72 is used to detect whether the receiving end of the flexible Ethernet has received a configuration switching request sent by the sending end of the flexible Ethernet when the current configuration process of the flexible Ethernet ends, wherein the current configuration process is the process in which the sending end and the receiving end confirm the data transmission configuration, and the configuration switching request is used to request to switch the confirmed data transmission configuration.
[0098] The first determining module 74 is used to determine whether the data transmission configuration of the sending end has been switched based on the configuration parameters sent by the sending end when it is determined that the receiving end has not received the configuration switching request.
[0099] The second determining module 76 determines that a brief interruption event has occurred in the Flexible Ethernet when it is determined that the data transmission configuration of the sending end has been switched.
[0100] Through the above embodiments, the current configuration process of Flexible Ethernet is a process in which the sending end and receiving end of Flexible Ethernet confirm the data transmission configuration. After the sending end and receiving end confirm the data transmission configuration, the sending end sends a configuration switching request to instruct the receiving end to switch the configuration according to the determined data transmission configuration. Then, it is detected whether the receiving end of Flexible Ethernet has received the configuration switching request sent by the sending end of Flexible Ethernet. If it is determined that the receiving end has not received the configuration switching request, it is determined whether the data transmission configuration of the sending end has been switched based on the configuration parameters sent by the sending end. If it is determined that the data transmission configuration of the sending end has been switched, it can be inferred that the sending end has sent the configuration parameters to the receiving end. However, since it is detected that the receiving end has not received the configuration switching request, it is determined that a brief interruption event has occurred in Flexible Ethernet, causing the sending end of Flexible Ethernet to fail to send the configuration switching request to the receiving end. By adopting the above technical solution, the problem that configuration failure caused by a brief interruption of the link during the connection establishment process of Flexible Ethernet clients cannot be detected in related technologies has not yet been effectively solved. This achieves the technical effect of effectively monitoring the event of configuration failure caused by a brief interruption of the link during the connection establishment process of Flexible Ethernet clients.
[0101] In one exemplary embodiment, the detection module includes:
[0102] The first detection unit is used to detect whether the receiving end receives a configuration confirmation signal during the current configuration process, wherein the configuration confirmation signal is a signal sent by the sending end to the receiving end to confirm the data transmission configuration with the receiving end;
[0103] The second detection unit is used to detect whether the receiving end has received a configuration switching signal when the configuration confirmation signal is detected, wherein the configuration switching signal is a signal sent by the sending end to the receiving end to instruct the receiving end to switch the data transmission configuration;
[0104] The first determining unit is configured to determine that the receiving end has not received the configuration switching request if the configuration switching signal is not detected.
[0105] In an exemplary embodiment, the first determining module includes:
[0106] The acquisition unit is used to acquire the configuration parameters sent by the sending end and received by the receiving end;
[0107] The second determining unit is used to determine whether the data transmission configuration of the sending end has been switched based on the configuration parameters.
[0108] In one exemplary embodiment, the acquisition unit is configured to:
[0109] Multiple type parameters indicating the data transmission configuration of the receiving end are obtained from the instructions issued by the sending end and received by the receiving end at a preset period.
[0110] The configuration parameters are obtained by arranging the multiple type parameters in the order of receipt.
[0111] In one exemplary embodiment, the second determining unit is configured to:
[0112] According to the order of the plurality of type parameters, the first number of type parameters arranged at the beginning position are determined as the initial parameter set, wherein the initial parameter set is used to indicate the configuration type of the data transmission configuration currently used by the receiving end;
[0113] According to the order of the plurality of type parameters, the second number of type parameters arranged at the end position are determined as the target parameter set, wherein the target parameter set is used to indicate the configuration type of the data transmission configuration to which the receiving end is to switch, and the initial parameter set and the target parameter set do not intersect;
[0114] If the configuration type of the currently used data transmission configuration is different from the configuration type of the data transmission configuration that the receiving end is to switch to, it is determined that the data transmission configuration of the sending end has been switched.
[0115] In an exemplary embodiment, the first determining module includes:
[0116] The acquisition unit is used to acquire the data transmission configuration used by the sending end as the target configuration;
[0117] The third determining unit is used to determine a repair operation based on the target configuration, wherein the repair operation is used to switch the data transmission configuration of the receiving end to the target configuration;
[0118] An execution unit is used to perform the repair operation on the receiving end.
[0119] In one exemplary embodiment, the third determining unit is used for one of the following:
[0120] The scheduler at the receiving end switches the data transmission configuration used by the receiving end to the target configuration.
[0121] Control the receiving end to resend the data transmission configuration to the sending end.
[0122] Embodiments of the present invention also provide a storage medium comprising a stored program, wherein the program, when executed, performs any of the methods described above.
[0123] Optionally, in this embodiment, the storage medium may be configured to store program code for performing the following steps:
[0124] S1, at the end of the current configuration process of Flexible Ethernet, it is detected whether the receiving end of Flexible Ethernet has received a configuration switching request sent by the sending end of Flexible Ethernet, wherein the current configuration process is the process of the sending end and the receiving end confirming the data transmission configuration, and the configuration switching request is used to request to switch the confirmed data transmission configuration.
[0125] S2, if it is determined that the receiving end has not received the configuration switching request, determine whether the data transmission configuration of the sending end has been switched according to the configuration parameters sent by the sending end;
[0126] S3, if it is determined that the data transmission configuration of the sending end has been switched, it is determined that the flexible Ethernet has experienced a brief interruption event.
[0127] Embodiments of the present invention also provide an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.
[0128] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0129] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0130] S1, at the end of the current configuration process of Flexible Ethernet, it is detected whether the receiving end of Flexible Ethernet has received a configuration switching request sent by the sending end of Flexible Ethernet, wherein the current configuration process is the process of the sending end and the receiving end confirming the data transmission configuration, and the configuration switching request is used to request to switch the confirmed data transmission configuration.
[0131] S2, if it is determined that the receiving end has not received the configuration switching request, determine whether the data transmission configuration of the sending end has been switched according to the configuration parameters sent by the sending end;
[0132] S3, if it is determined that the data transmission configuration of the sending end has been switched, it is determined that the flexible Ethernet has experienced a brief interruption event.
[0133] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0134] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.
[0135] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0136] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A flexible Ethernet control method, characterized in that, include: At the end of the current configuration process of Flexible Ethernet, it is detected whether the receiving end of Flexible Ethernet has received a configuration switching request sent by the sending end of Flexible Ethernet. The current configuration process is the process in which the sending end and the receiving end confirm the data transmission configuration, and the configuration switching request is used to request to switch the confirmed data transmission configuration. If it is determined that the receiving end has not received the configuration switching request, the data transmission configuration of the sending end is determined to have been switched based on the configuration parameters sent by the sending end. If it is determined that the data transmission configuration of the sending end has been switched, a brief interruption event is determined to have occurred in the Flexible Ethernet.
2. The method according to claim 1, characterized in that, The step of detecting whether the receiving end of the Flexible Ethernet has received a configuration switching request from the sending end of the Flexible Ethernet at the end of the current configuration process includes: Detect whether the receiving end receives a configuration confirmation signal during the current configuration process, wherein the configuration confirmation signal is a signal sent by the sending end to the receiving end to confirm the data transmission configuration with the receiving end; If the configuration confirmation signal is detected, it is detected whether the receiving end receives a configuration switching signal, wherein the configuration switching signal is a signal sent by the sending end to the receiving end to instruct the receiving end to switch the data transmission configuration; If the configuration switching signal is not detected, it is determined that the receiving end has not received the configuration switching request.
3. The method according to claim 1, characterized in that, The step of determining whether the data transmission configuration of the sending end has changed based on the configuration parameters sent by the sending end includes: The receiving end receives the configuration parameters sent by the sending end; The data transmission configuration of the sending end is determined based on the configuration parameters to determine whether the data transmission configuration of the sending end has been switched.
4. The method according to claim 3, characterized in that, The process of collecting the configuration parameters sent by the sending end and received by the receiving end includes: Multiple type parameters indicating the data transmission configuration of the receiving end are obtained from the instructions issued by the sending end and received by the receiving end at a preset period. The configuration parameters are obtained by arranging the multiple type parameters in the order of receipt.
5. The method according to claim 4, characterized in that, The step of determining whether the data transmission configuration of the sending end has been switched based on the configuration parameters includes: According to the order of the plurality of type parameters, the first number of type parameters arranged at the beginning position are determined as the initial parameter set, wherein the initial parameter set is used to indicate the configuration type of the data transmission configuration currently used by the receiving end; According to the order of the plurality of type parameters, the second number of type parameters arranged at the end position are determined as the target parameter set, wherein the target parameter set is used to indicate the configuration type of the data transmission configuration to which the receiving end is to switch, and the initial parameter set and the target parameter set do not intersect; If the configuration type of the currently used data transmission configuration is different from the configuration type of the data transmission configuration that the receiving end is to switch to, it is determined that the data transmission configuration of the sending end has been switched.
6. The method according to claim 1, characterized in that, After determining that a brief interruption event has occurred in the flexible Ethernet, the method further includes: Obtain the data transmission configuration used by the sending end as the target configuration; A repair operation is determined based on the target configuration, wherein the repair operation is used to switch the data transmission configuration of the receiving end to the target configuration; The repair operation is performed on the receiving end.
7. The method according to claim 6, characterized in that, The step of determining the repair operation based on the target configuration includes one of the following: The scheduler at the receiving end switches the data transmission configuration used by the receiving end to the target configuration. Control the receiving end to resend the data transmission configuration to the sending end.
8. A flexible Ethernet control device, characterized in that, include: The detection module is used to detect whether the receiving end of the flexible Ethernet has received a configuration switching request sent by the sending end of the flexible Ethernet when the current configuration process of the flexible Ethernet ends. The current configuration process is the process in which the sending end and the receiving end confirm the data transmission configuration, and the configuration switching request is used to request to switch the confirmed data transmission configuration. The first determining module is used to determine whether the data transmission configuration of the sending end has been switched based on the configuration parameters sent by the sending end when it is determined that the receiving end has not received the configuration switching request. The second determining module is used to determine that a brief interruption event has occurred in the Flexible Ethernet when the data transmission configuration of the sending end is switched.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method described in any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 7 through the computer program.
Citation Information
Patent Citations
Method of switching timeslot configuration in flexible Ethernet protocol, and related device
CN109688016A
Data transmission method and device for network slices and storage medium
CN113382430A