Method and device for generating flexible Ethernet service transmission configuration

By detecting the business model of network equipment and obtaining reference configurations, the target service transmission configuration is generated, and the problems of low efficiency and high error rate in the flexible Ethernet group are solved, and a more efficient configuration process is achieved.

CN115733745BActive Publication Date: 2025-02-07SUZHOU CENTEC COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211349549.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-31
Publication Date
2025-02-07
Estimated Expiration
2042-10-31

AI Technical Summary

Technical Problem

The service transmission configuration configuration of network devices in the flexible Ethernet group is low and has a high error rate problem.

Method used

By detecting the target service mode of the first network device in the flexible Ethernet group and obtaining the reference service transmission configuration on the second network device in the second service mode, the target service transmission configuration of the first network device is generated to control Its service transmission with the second network device in a flexible Ethernet group.

Benefits of technology

Improve the configuration efficiency of network equipment service transmission configuration in flexible Ethernet groups, and reduce the complexity and error rate of manual configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115733745B_ABST
    Figure CN115733745B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for generating a flexible Ethernet service transmission configuration, the method comprising: detecting a target service mode of a first network device in a flexible Ethernet group, wherein the network device in the flexible Ethernet group is allowed to operate in a first service mode or a second service mode, and a reference service transmission configuration is configured on a second network device in the flexible Ethernet group that operates in the second service mode; acquiring the reference service transmission configuration when the first network device operates in the first service mode; generating a target service transmission configuration of the first network device according to the reference service transmission configuration, wherein the target service transmission configuration is used to control service transmission between the first network device and the second network device in the flexible Ethernet group. The above technical solution is adopted to solve the problem of low configuration efficiency of service transmission configuration of network devices in the flexible Ethernet group in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a method and device for generating a flexible Ethernet service transmission configuration. Background Art

[0002] Flexible Ethernet (FlexE) technology was proposed by OIF (Optical Internetworking Forum). It is a low-cost, highly reliable, and dynamically configurable interface technology that is achieved by decoupling the Ethernet MAC (Media Access Control) layer from the PHY (Physical) layer. It has developed rapidly in recent years and has become an important interface technology for 5G bearer networks to achieve service isolation and network slicing.

[0003] According to the OIF FLEXE-02.1 protocol, after the FlexE Group (Flexible Ethernet Group) is successfully created at both ends, in order for the FlexE Client (Flexible Ethernet Client Service) to communicate normally, the Clinet related information needs to be configured and switched at both ends of the FlexE device, and the Clinet Number ID (Clinet NumberIdentity Document, Flexible Ethernet Client Service Number) at both ends must be consistent, and the number of time slots corresponding to each Clinet Number ID and the position of each time slot in the FlexE Group instance (Flexible Ethernet Group Instance) must be consistent. This method is heavily dependent on the operator's operating level, has extremely low work efficiency, and has a high error rate. In addition, the system products of different manufacturers vary greatly, and there is a certain probability that normal communication cannot be achieved.

[0004] With regard to the problems in the related art such as low configuration efficiency of service transmission configuration of network devices in a flexible Ethernet group, no effective solution has been proposed. Summary of the invention

[0005] The embodiments of the present application provide a method and apparatus for generating a flexible Ethernet service transmission configuration, so as to at least solve the problem of low configuration efficiency of the service transmission configuration of network devices in a flexible Ethernet group in the related art.

[0006] According to an embodiment of the present application, a method for generating a flexible Ethernet service transmission configuration is provided, comprising: detecting a target service mode of a first network device in a flexible Ethernet group, wherein the network devices in the flexible Ethernet group are allowed to operate in a first service mode or a second service mode, and a reference service transmission configuration is configured on a second network device in the flexible Ethernet group that operates in the second service mode; when the first network device operates in the first service mode, acquiring the reference service transmission configuration; generating a target service transmission configuration of the first network device according to the reference service transmission configuration, wherein the target service transmission configuration is used to control service transmission between the first network device and the second network device in the flexible Ethernet group.

[0007] Optionally, detecting the target business mode of the first network device in the flexible Ethernet group includes: detecting the enable status of the follow mode flag on the first network device; when the enable status is enabled, determining that the target business mode is the first business mode; when the enable status is not enabled, determining that the target business mode is the second business mode.

[0008] Optionally, obtaining the reference service transmission configuration includes: receiving a flexible Ethernet overhead frame sent by the second network device; and extracting information indicating a service transmission time slot from the flexible Ethernet overhead frame as the reference service transmission configuration.

[0009] Optionally, generating the target service transmission configuration of the first network device based on the reference service transmission configuration includes: extracting transmission services and service transmission time slots with corresponding relationships from the reference service transmission configuration; adding the transmission services and service transmission time slots with corresponding relationships to the initial service mapping table of the first network device to obtain the target service transmission configuration.

[0010] Optionally, after generating the target service transmission configuration of the first network device according to the reference service transmission configuration, the method further includes: upon receiving a switching request sent by the second network device, extracting a target switching type from the switching request, wherein the switching request is used to request switching of the service transmission sub-configuration used in the service transmission; and switching the service transmission sub-configuration used by the first network device in the service transmission according to a target switching process matching the target switching type.

[0011] Optionally, extracting the target switching type from the switching request includes: when the value of the switching negotiation field carried in the switching request is a first value, determining that the target switching type is a forced switching type, wherein the forced switching type is used to indicate that the second network device adopts a method of switching the service transmission sub-configuration according to the running status of the second network device; when the value of the switching negotiation field carried in the switching request is a second value, determining that the target switching type is a negotiated switching type, wherein the negotiated switching type is used to indicate that the second network device adopts a method of switching the service transmission sub-configuration according to the running status of the first network device.

[0012] Optionally, switching the service transmission subconfiguration used by the first network device in the service transmission according to the target switching process matching the target switching type includes: when the target switching type is the forced switching type, extracting a first subconfiguration identifier from the switching request, wherein the first subconfiguration identifier is used to indicate the service transmission subconfiguration to which the second network device has switched; switching the service transmission subconfiguration used by the first network device in the service transmission to a first service transmission subconfiguration identified by the first subconfiguration identifier, wherein the target service transmission configuration includes the first service transmission subconfiguration; and when the target switching type is the negotiated switching type, extracting a second subconfiguration from the switching request. A setting identifier, wherein the second sub-configuration identifier is used to identify the service transmission sub-configuration to be switched by the second network device; a switching confirmation indication is sent to the second network device, wherein the switching confirmation indication is used to indicate that the first network device confirms the switching of the service transmission sub-configuration, and the second network device is used to switch the service transmission sub-configuration to the service transmission sub-configuration identified by the second sub-configuration identifier in response to the switching confirmation indication; upon receiving the switching success indication sent by the second network device, the service transmission sub-configuration used by the first network device in the service transmission is switched to the second service transmission sub-configuration identified by the second sub-configuration identifier, wherein the target service transmission configuration includes the second service transmission sub-configuration.

[0013] According to another embodiment of the embodiment of the present application, a flexible Ethernet service transmission configuration device is also provided, including: a detection module, used to detect a target service mode of a first network device in a flexible Ethernet group, wherein the network devices in the flexible Ethernet group are allowed to operate in a first service mode or a second service mode, and a reference service transmission configuration is configured on a second network device in the flexible Ethernet group operating in the second service mode; an acquisition module, used to acquire the reference service transmission configuration when the first network device operates in the first service mode; and a generation module, used to generate a target service transmission configuration of the first network device based on the reference service transmission configuration, wherein the target service transmission configuration is used to control service transmission between the first network device and the second network device in the flexible Ethernet group.

[0014] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the method for generating the flexible Ethernet service transmission configuration when running.

[0015] According to another aspect of an embodiment of the present application, 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 method for generating the flexible Ethernet service transmission configuration through the computer program.

[0016] In an embodiment of the present application, a target service mode of a first network device in a flexible Ethernet group is detected, wherein the network device in the flexible Ethernet group is allowed to operate in the first service mode or the second service mode, and a reference service transmission configuration is configured on the second network device in the flexible Ethernet group that operates in the second service mode; when the first network device operates in the first service mode, the reference service transmission configuration is obtained; and a target service transmission configuration of the first network device is generated according to the reference service transmission configuration, wherein the target service transmission configuration is used to control service transmission between the first network device and the second network device in the flexible Ethernet group, that is, the network device in the flexible Ethernet group is allowed to operate in the first service mode or the second service mode, and a reference service transmission configuration is configured on the second network device that operates in the second service mode. At this time, the first network device in the flexible Ethernet group operates in the first service mode, and the reference service transmission configuration is obtained, and then the target service transmission configuration of the first network device is generated according to the reference service transmission configuration. Therefore, there is no need to configure service transmission configurations on both the first network device and the second network device in the flexible Ethernet group, and only the service transmission configuration needs to be configured on the second network device in the second service mode, and then the target service transmission configuration of the first network device can be generated according to the service transmission configuration configured on the second network device, thereby avoiding the cumbersome and complex manual configuration and the high error rate. The above technical solution solves the problem of low configuration efficiency of service transmission configuration of network devices in flexible Ethernet groups in related technologies, and achieves the technical effect of improving the configuration efficiency of service transmission configuration of network devices in flexible Ethernet groups. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0018] In order to more clearly illustrate the embodiments of the present application 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0019] Figure 1 It is a hardware environment schematic diagram of a method for generating a flexible Ethernet service transmission configuration according to an embodiment of the present application;

[0020] Figure 2 is a flow chart of a method for generating a flexible Ethernet service transmission configuration according to an embodiment of the present application;

[0021] Figure 3is an optional service transmission configuration flow chart according to an embodiment of the present application;

[0022] Figure 4 is an optional service transmission sub-configuration switching flow chart according to an embodiment of the present application;

[0023] Figure 5 It is a structural block diagram of a device for generating a flexible Ethernet service transmission configuration according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal, a device terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 1 FIG. 1 is a schematic diagram of a hardware environment for a method for generating a flexible Ethernet service transmission configuration according to an embodiment of the present application. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. In an exemplary embodiment, the computer terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Equivalent functions or comparisons shown Figure 1 A different configuration with more features is shown.

[0027] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for sending message push in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0028] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0029] In this embodiment, a method for generating a flexible Ethernet service transmission configuration is provided, which is applied to the above-mentioned computer terminal. Figure 2 1 is a flow chart of a method for generating a flexible Ethernet service transmission configuration according to an embodiment of the present application, the flow comprising the following steps:

[0030] Step S202, detecting a target service mode of a first network device in a flexible Ethernet group, wherein the network devices in the flexible Ethernet group are allowed to operate in a first service mode or a second service mode, and a reference service transmission configuration is configured on a second network device in the flexible Ethernet group operating in the second service mode;

[0031] Step S204: when the first network device operates in the first service mode, obtaining the reference service transmission configuration;

[0032] Step S206: Generate a target service transmission configuration of the first network device according to the reference service transmission configuration, wherein the target service transmission configuration is used to control service transmission between the first network device and the second network device in the flexible Ethernet group.

[0033] Through the above steps, the network devices in the flexible Ethernet group are allowed to operate in the first business mode or the second business mode, and the reference business transmission configuration is configured on the second network device operating in the second business mode. At this time, the first network device in the flexible Ethernet group operates in the first business mode, and by obtaining the reference business transmission configuration, the target business transmission configuration of the first network device is generated according to the reference business transmission configuration. Therefore, it is not necessary to configure the business transmission configuration on both the first network device and the second network device in the flexible Ethernet group. It is only necessary to configure the business transmission configuration on the second network device in the second business mode, and then the target business transmission configuration of the first network device can be generated according to the business transmission configuration configured on the second network device, thereby avoiding the cumbersome and complex manual configuration and high error rate. The above technical solution solves the problems of low configuration efficiency of the business transmission configuration of the network devices in the flexible Ethernet group in the related technology, and achieves the technical effect of improving the configuration efficiency of the business transmission configuration of the network devices in the flexible Ethernet group.

[0034] In the technical solution provided in the above step S202, the first business mode is a working mode in which the network device generates its own business transmission configuration according to the business transmission configuration of other network devices in the flexible Ethernet group. The first business mode may include but is not limited to slave mode (following mode). There is no need to manually configure the business transmission configuration on the network device in slave mode. The network device in slave mode has the ability to generate its own business transmission configuration according to the business transmission configuration configured on other network devices in the flexible Ethernet group according to certain rules.

[0035] Optionally, in this embodiment, the reference service transmission configuration is used to indicate transmission time slot information used by the service data when transmitting the service data.

[0036] Optionally, in this embodiment, the second network device is a network device that has a data transmission relationship with the first network device. The second network device can be a device that transmits business data to the first network device, or it can also be a device that receives business data transmitted by the first network device. This solution does not limit this.

[0037] In the technical solution provided in the above step S204, the method for obtaining the reference transmission configuration can be a method of sending a notification message through the second network device to indicate the reference service transmission configuration of the second network device. For example, the second network device transmits the reference service transmission configuration configured on the second network device to the first network device through an overhead frame. The overhead frame is used to indicate the usage of the transmission time slot within the flexible Ethernet group, and then the first network device parses the received overhead frame to obtain the reference service transmission configuration configured on the second network device.

[0038] In the technical solution provided in the above step S206, the reference service configuration may include but is not limited to one or more service mapping tables, each of which is used to indicate a transmission time slot corresponding to service data transmitted in the flexible Ethernet group.

[0039] Optionally, in this embodiment, the method of generating the target service transmission configuration according to the reference service transmission configuration may be, but is not limited to, format conversion of the reference service transmission configuration to convert the reference service transmission configuration into a target service transmission configuration that matches the first network device, or screening the reference service transmission configuration according to the data type of the service data allowed to be transmitted by the first network device, and selecting the service content that matches the first network device therefrom, or converting the reference service transmission configuration to convert it into a service transmission configuration that matches the first network device, thereby generating a target service configuration for the first network device to control service transmission between the first network device and the second network device in the flexible Ethernet service group. For example, the reference service configuration includes multiple reference service mapping tables, each of which records the transmission time slots corresponding to the service data transmitted in the flexible Ethernet group. By parsing the multiple reference service mapping tables, a reference mapping table that matches the service data allowed to be transmitted by the first network device is determined, and then the target mapping table corresponding to the reference mapping table is configured for the first network device. Alternatively, multiple reference service mapping tables may be parsed and a target mapping table matching the format of the first network device is configured according to the content recorded in the reference service mapping table.

[0040] Optionally, in this embodiment, when the first network device is used to send service data to the second network device, the target service transmission configuration is used to control the first network device to map the service to be transmitted to the corresponding transmission time slot according to the transmission time slot specified by the target service transmission configuration; when the first network device is used to receive service data sent by the second network device, the target service transmission configuration is used to control the first network device to extract service data from the corresponding transmission time slot in the data stream carrying service data but no data sent by the second network device.

[0041] As an optional embodiment, detecting the target service mode of the first network device in the flexible Ethernet group includes:

[0042] Detecting an enable state of a follow mode flag bit on the first network device;

[0043] When the enabling state is enabled, determining that the target service mode is the first service mode;

[0044] When the enabling state is disabled, the target service mode is determined to be the second service mode.

[0045] Optionally, in this embodiment, the enable state of the follow mode flag may be detected but is not limited to the method of detecting the character value of the follow mode flag. When the character value is the target value, the enable state is determined to be enabled; when the character value is not the target value, the enable state is determined to be disabled.

[0046] Optionally, in this embodiment, the character value following the mode flag bit may be, but is not limited to, set according to the activation state of the program of the first business mode.

[0047] As an optional embodiment, the obtaining the reference service transmission configuration includes:

[0048] Receiving a flexible Ethernet overhead frame sent by the second network device;

[0049] Information indicating a service transmission time slot is extracted from the flexible Ethernet overhead frame as the reference service transmission configuration.

[0050] Optionally, in this embodiment, the overhead frames of the flexible Ethernet service are sent according to the target sending rules, for example, the overhead frames are sent once between network devices at every fixed time, or when the service transmission configuration configured on the network device changes, an overhead frame is sent once to the associated network devices in the flexible Ethernet group.

[0051] Optionally, in this embodiment, the Flexible Ethernet overhead frame carries usage status of each transmission time slot in the Flexible Ethernet group.

[0052] As an optional embodiment, generating a target service transmission configuration of the first network device according to the reference service transmission configuration includes:

[0053] Extracting transmission services and service transmission time slots having a corresponding relationship from the reference service transmission configuration;

[0054] The transmission services and service transmission time slots having a corresponding relationship are added to an initial service mapping table of the first network device to obtain the target service transmission configuration.

[0055] Optionally, in this embodiment, the same transmission service may correspond to one or more transmission time slots. For example, the service size of the transmission service is 10G, and a 100G PHY of the flexible Ethernet group is divided into 20 transmission time slots. Each transmission time slot is used to transmit a service data block of 5G. Therefore, when transmitting a transmission service with a transmission service size of 10G, two transmission time slots are required. The two transmission time slots may be two consecutive transmission time slots, or two discontinuous transmission time slots in the same PHY, or transmission time slots in different PHYs in the same flexible Ethernet group.

[0056] Optionally, in this embodiment, the initial service mapping table is a mapping table for storing transmission services and service transmission time slots. The initial service mapping table may be a generated mapping table that does not store any content, or may be a mapping table that has stored the initial transmission services and the corresponding initial service transmission time slots in the first network device, or may be a copy of a mapping table that has stored the initial transmission services and the corresponding initial service transmission time slots in the first network device, and the initial service mapping table is modified according to the transmission services and service transmission time slots with corresponding relationships, thereby obtaining an initial service mapping table that stores the transmission services and service transmission time slots with corresponding relationships.

[0057] Through the above steps, the first network device operates in the first service mode. At this time, there is no need to manually configure the service transmission configuration on the first network device. The target service transmission configuration of the first network device is configured by extracting the transmission services and service transmission time slots having a corresponding relationship from the reference service transmission configuration, thereby improving the service configuration rate and reducing the error rate in the service configuration process. Figure 3 is an optional service transmission configuration flow chart according to an embodiment of the present application, such as Figure 3 As shown, at least the following steps are included:

[0058] S301, detecting that the first network device enables the FlexE Slave mode (the first service mode mentioned above);

[0059] S302, configure the reference service transmission configuration on the second network device (such as adding a Client, configuring a ClientNumber ID, and allocating a corresponding time slot), and send an overhead frame to the first network device, and the overhead frame carries the usage of each transmission time slot in the flexible Ethernet group;

[0060] S303, after receiving the overhead frame, the first network device extracts the reference service configuration information in the overhead frame and configures the target service configuration information (such as the relevant information of the Clinet in the overhead frame, including the Clinet Number ID configured by the Clinet and the time slot corresponding to the Clinet Number ID, and when the first network device enables the FlexE Slave mode, the Clinet Number ID identical to that of the first network device is automatically configured on the Calender standby table of the first network device (the initial service mapping table mentioned above), and the Clinet Number ID is assigned the same number and position of time slots as those in the FlexE Group of the second network device).

[0061] As an optional embodiment, after generating the target service transmission configuration of the first network device according to the reference service transmission configuration, the method further includes:

[0062] In case of receiving a switching request sent by the second network device, extracting a target switching type from the switching request, wherein the switching request is used to request switching of a service transmission sub-configuration used in the service transmission;

[0063] The service transmission sub-configuration used by the first network device in the service transmission is switched according to a target switching process matching the target switching type.

[0064] Optionally, in this embodiment, the switching request may be generated before the second network device switches the service transmission sub-configuration used. The switching request may, but is not limited to, carry field information for indicating the switching type and the service transmission sub-configuration information that the second network device requests to switch to, thereby notifying the first network device to switch to the service transmission sub-configuration that matches the second network device.

[0065] Optionally, in this embodiment, extracting the target switching type from the switching request can be done by extracting field information carried in the switching request for indicating the switching type. The switching request carries a field for indicating the switching, and by identifying the field, the switching type indicated by the field is determined as the target switching type.

[0066] Optionally, in this embodiment, the target switching type may include, but is not limited to, a forced switching type and a negotiated switching type.

[0067] Through the above steps, by extracting the target switching type from the switching request, when the second network device switches the service transmission sub-configuration used, the first network device can switch the service transmission sub-configuration used by the first network device according to the switching process matching the target switching type, thereby ensuring that the service transmission sub-configuration of the first network device and the second network device are switched synchronously, avoiding switching anomalies caused by inconsistent switching processes used, thereby enabling communication between network devices from different manufacturers and improving the universality of network devices.

[0068] As an optional embodiment, extracting the target switching type from the switching request includes:

[0069] When the value of the handover negotiation field carried in the handover request is a first value, determining that the target handover type is a forced handover type, wherein the forced handover type is used to indicate that the second network device adopts a method of switching the service transmission sub-configuration according to the running state of the second network device;

[0070] When the value of the switching negotiation field carried in the switching request is a second numerical value, the target switching type is determined to be a negotiated switching type, wherein the negotiated switching type is used to indicate that the second network device adopts a method of switching the service transmission sub-configuration according to the operating status of the first network device.

[0071] Optionally, in this embodiment, the second network device switches the service transmission configuration according to the operating status of the second network device, and the switching may be performed when a switching instruction is received based on whether an instruction for instructing the second network device to switch the service transmission sub-configuration is received. Alternatively, the second network device may switch the service transmission sub-configuration used based on the type of service transmitted by the second network device when the service transmission sub-configuration used for the service to be transmitted is inconsistent with the service transmission sub-configuration currently used by the second device.

[0072] Optionally, in this embodiment, the operating status of the first network device is used to indicate whether the first network device has the conditions for switching the service transmission sub-configuration. For example, when the first network device detects that a service transmission sub-configuration matching the service transmission sub-configuration used by the second network device is configured on the first network device, it is determined that the first network device has the conditions for switching the service transmission sub-configuration.

[0073] Through the above steps, by extracting the handover negotiation field in the handover request, the corresponding target handover type is determined, and then the second network device and the first network device can synchronously switch the service transmission sub-configuration used according to the corresponding handover process, thereby avoiding the problem of different switching in the related technology, thereby enabling network devices from different manufacturers to communicate, and improving the universality of network devices. Figure 4 is an optional service transmission sub-configuration switching flow chart according to an embodiment of the present application, such as Figure 4 As shown, at least the following steps are included:

[0074] S401, a first network device receives a switching request from a second network device, and the request may be sent to the first network device by transmitting an overhead frame;

[0075] S402, detecting the value of the handover negotiation field in the handover negotiation request, for example, the first network device determines whether the handover negotiation field CR is 1, if it is 1, the target handover type is a negotiated handover type and step S403 is executed; if it is not 1, the target handover type is a forced handover type and step S405 is executed;

[0076] S403, the first network device sends a switching confirmation indication to the second network device in an overhead frame, for example, the first network device sets the CA value in the overhead frame to 1 and sends it to the second network device;

[0077] S404, when the second network device reads the CA value in the overhead frame as 1, the second network device switches to C and sends a notification message to the first network device indicating the service transmission sub-configuration currently used by the second network device;

[0078] S405, the first network device determines whether the second network device switches the service transmission sub-configuration according to the notification message;

[0079] S406, when the second network device switches the service transmission sub-configuration, the first network device performs synchronous switching;

[0080] S407: When the second network device does not switch the service transmission sub-configuration, the first network device does not switch.

[0081] As an optional embodiment, switching the service transmission sub-configuration used by the first network device in the service transmission according to the target switching process matching the target switching type includes:

[0082] In the case where the target switching type is the forced switching type, extracting a first sub-configuration identifier from the switching request, wherein the first sub-configuration identifier is used to indicate the service transmission sub-configuration to which the second network device has switched; switching the service transmission sub-configuration used by the first network device in the service transmission to a first service transmission sub-configuration identified by the first sub-configuration identifier, wherein the target service transmission configuration includes the first service transmission sub-configuration;

[0083] In a case where the target switching type is the negotiated switching type, extracting a second sub-configuration identifier from the switching request, wherein the second sub-configuration identifier is used to identify the service transmission sub-configuration to be switched by the second network device; sending a switching confirmation indication to the second network device, wherein the switching confirmation indication is used to indicate that the first network device confirms the switching of the service transmission sub-configuration, and the second network device is used to switch the service transmission sub-configuration to the service transmission sub-configuration identified by the second sub-configuration identifier in response to the switching confirmation indication; and upon receiving a switching success indication sent by the second network device, switching the service transmission sub-configuration used by the first network device in the service transmission to the second service transmission sub-configuration identified by the second sub-configuration identifier, wherein the target service transmission configuration includes the second service transmission sub-configuration.

[0084] Optionally, in this embodiment, the switching request may also carry a third sub-configuration identifier currently used by the second network device. When the third sub-configuration identifier matches the first sub-configuration identifier, the first network device switches to the service transmission sub-configuration used.

[0085] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0086] Figure 5 is a structural block diagram of a device for generating a flexible Ethernet service transmission configuration according to an embodiment of the present application; Figure 5As shown, it includes: a detection module 52, used to detect the target business mode of the first network device in the flexible Ethernet group, wherein the network device in the flexible Ethernet group is allowed to operate in the first business mode or the second business mode, and the second network device in the flexible Ethernet group operating in the second business mode is configured with a reference business transmission configuration; an acquisition module 54, used to acquire the reference business transmission configuration when the first network device operates in the first business mode; a generation module 56, used to generate the target business transmission configuration of the first network device according to the reference business transmission configuration, wherein the target business transmission configuration is used to control the business transmission between the first network device and the second network device in the flexible Ethernet group.

[0087] Through the above embodiment, the network devices in the flexible Ethernet group are allowed to operate in the first business mode or the second business mode, and the reference business transmission configuration is configured on the second network device operating in the second business mode. At this time, the first network device in the flexible Ethernet group operates in the first business mode, and obtains the reference business transmission configuration, and then generates the target business transmission configuration of the first network device according to the reference business transmission configuration. Therefore, it is not necessary to configure the business transmission configuration on both the first network device and the second network device in the flexible Ethernet group. It is only necessary to configure the business transmission configuration on the second network device in the second business mode, and then the target business transmission configuration of the first network device can be generated according to the business transmission configuration configured on the second network device, avoiding the cumbersome and complex manual configuration and high error rate. The above technical solution solves the problems of low configuration efficiency of the business transmission configuration of the network device in the flexible Ethernet group in the related technology, and achieves the technical effect of improving the configuration efficiency of the business transmission configuration of the network device in the flexible Ethernet group.

[0088] Optionally, the detection module includes: a detection unit for detecting the enable status of the follow mode flag on the first network device; a first determination unit for determining that the target business mode is the first business mode when the enable status is enabled; and a second determination unit for determining that the target business mode is the second business mode when the enable status is disabled.

[0089] Optionally, the acquisition module includes: a receiving unit, used to receive a flexible Ethernet overhead frame sent by the second network device; and an extraction unit, used to extract information indicating a service transmission time slot from the flexible Ethernet overhead frame as the reference service transmission configuration.

[0090] Optionally, the generation module includes: an extraction unit, used to extract transmission services and service transmission time slots with corresponding relationships from the reference service transmission configuration; and a processing unit, used to add the transmission services and service transmission time slots with corresponding relationships to the initial service mapping table of the first network device to obtain the target service transmission configuration.

[0091] Optionally, the device also includes: an extraction module for extracting a target switching type from the switching request sent by the second network device after generating the target service transmission configuration of the first network device according to the reference service transmission configuration, upon receiving the switching request sent by the second network device, wherein the switching request is used to request switching of the service transmission sub-configuration used in the service transmission; and a switching module for switching the service transmission sub-configuration used by the first network device in the service transmission according to a target switching process matching the target switching type.

[0092] Optionally, the extraction module includes: a third determination unit, used to determine that the target switching type is a forced switching type when the value of the switching negotiation field carried in the switching request is a first value, wherein the forced switching type is used to indicate that the second network device adopts a method of switching the service transmission sub-configuration according to the running status of the second network device; a fourth determination unit, used to determine that the target switching type is a negotiated switching type when the value of the switching negotiation field carried in the switching request is a second value, wherein the negotiated switching type is used to indicate that the second network device adopts a method of switching the service transmission sub-configuration according to the running status of the first network device.

[0093] Optionally, the switching module includes: a second processing unit, used to extract a first sub-configuration identifier from the switching request when the target switching type is the forced switching type, wherein the first sub-configuration identifier is used to indicate the service transmission sub-configuration to which the second network device has switched; switch the service transmission sub-configuration used by the first network device in the service transmission to the first service transmission sub-configuration identified by the first sub-configuration identifier, wherein the target service transmission configuration includes the first service transmission sub-configuration; a third processing unit, used to extract a second sub-configuration identifier from the switching request when the target switching type is the negotiated switching type, wherein the second sub-configuration identifier is used to identify the service transmission sub-configuration to be switched to by the second network device; send a switching confirmation indication to the second network device, wherein the switching confirmation indication is used to indicate that the first network device confirms the switching of the service transmission sub-configuration, and the second network device is used to switch the service transmission sub-configuration to the service transmission sub-configuration identified by the second sub-configuration identifier in response to the switching confirmation indication; and upon receiving the switching success indication sent by the second network device, switch the service transmission sub-configuration used by the first network device in the service transmission to the second service transmission sub-configuration identified by the second sub-configuration identifier, wherein the target service transmission configuration includes the second service transmission sub-configuration.

[0094] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein when the program is run, any of the above-mentioned methods for generating a flexible Ethernet service transmission configuration is executed.

[0095] Optionally, in this embodiment, the above-mentioned storage medium can be configured to store program codes for executing the following steps: detecting a target business mode of the first network device in a flexible Ethernet group, wherein the network devices in the flexible Ethernet group are allowed to operate in the first business mode or the second business mode, and a reference business transmission configuration is configured on the second network device in the flexible Ethernet group operating in the second business mode; when the first network device operates in the first business mode, obtaining the reference business transmission configuration; generating a target business transmission configuration of the first network device based on the reference business transmission configuration, wherein the target business transmission configuration is used to control business transmission between the first network device and the second network device in the flexible Ethernet group.

[0096] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any of the above-mentioned embodiments of the method for generating a flexible Ethernet service transmission configuration.

[0097] 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.

[0098] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program: detecting a target service mode of the first network device in the flexible Ethernet group, wherein the network devices in the flexible Ethernet group are allowed to operate in the first service mode or the second service mode, and a reference service transmission configuration is configured on the second network device in the flexible Ethernet group that operates in the second service mode; obtaining a reference service transmission configuration when the first network device operates in the first service mode; generating a target service transmission configuration for the first network device based on the reference service transmission configuration, wherein the target service transmission configuration is used to control service transmission between the first network device and the second network device in the flexible Ethernet group.

[0099] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0100] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0101] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0102] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for generating a flexible Ethernet service transmission configuration, characterized in that: include: Detecting a target service mode of a first network device in a flexible Ethernet group, wherein the network devices in the flexible Ethernet group are allowed to operate in a first service mode or a second service mode, and a reference service transmission configuration is configured on a second network device in the flexible Ethernet group that operates in the second service mode; When the first network device operates in the first service mode, acquiring the reference service transmission configuration; Generating a target service transmission configuration of the first network device according to the reference service transmission configuration, wherein the target service transmission configuration is used to control service transmission of the first network device and the second network device in the flexible Ethernet group; Wherein, after generating the target service transmission configuration of the first network device according to the reference service transmission configuration, the method further includes: upon receiving a switching request sent by the second network device, extracting a target switching type from the switching request, wherein the switching request is used to request switching of the service transmission sub-configuration used in the service transmission, the switching request is generated before the second network device switches the service transmission sub-configuration used, and the switching request carries field information for indicating the switching type and the service transmission sub-configuration information requested to be switched by the second network device; switching the service transmission sub-configuration used by the first network device in the service transmission according to the target switching process matching the target switching type; The extracting of the target switching type from the switching request includes: when the value of the switching negotiation field carried in the switching request is a first value, determining that the target switching type is a forced switching type, wherein the forced switching type is used to indicate that the second network device adopts a method of switching the service transmission sub-configuration according to the running state of the second network device; when the value of the switching negotiation field carried in the switching request is a second value, determining that the target switching type is a negotiated switching type, wherein the negotiated switching type is used to indicate that the second network device adopts a method of switching the service transmission sub-configuration according to the running state of the first network device; The method of switching the service transmission sub-configuration used by the first network device in the service transmission according to the target switching process matching the target switching type includes: when the target switching type is the forced switching type, extracting a first sub-configuration identifier from the switching request, wherein the first sub-configuration identifier is used to indicate the service transmission sub-configuration to which the second network device has switched; switching the service transmission sub-configuration used by the first network device in the service transmission to a first service transmission sub-configuration identified by the first sub-configuration identifier, wherein the target service transmission configuration includes the first service transmission sub-configuration; and when the target switching type is the negotiated switching type, extracting a second sub-configuration identifier from the switching request. identification, wherein the second sub-configuration identifier is used to identify the service transmission sub-configuration to be switched by the second network device; sending a switching confirmation indication to the second network device, wherein the switching confirmation indication is used to instruct the first network device to confirm the switching of the service transmission sub-configuration, and the second network device is used to switch the service transmission sub-configuration to the service transmission sub-configuration identified by the second sub-configuration identifier in response to the switching confirmation indication; in the case of receiving the switching success indication sent by the second network device, switching the service transmission sub-configuration used by the first network device in the service transmission to the second service transmission sub-configuration identified by the second sub-configuration identifier, wherein the target service transmission configuration includes the second service transmission sub-configuration; The method of generating the target service transmission configuration of the first network device according to the reference service transmission configuration includes: extracting transmission services and service transmission time slots with corresponding relationships from the reference service transmission configuration; adding the transmission services and service transmission time slots with corresponding relationships to the initial service mapping table of the first network device to obtain the target service transmission configuration, wherein the initial service mapping table is obtained by modifying a copy table according to transmission services and service transmission time slots with corresponding relationships, and the copy table is obtained by copying a mapping table that has stored the initial transmission services and the corresponding initial service transmission time slots in the first network device.

2. The method according to claim 1, characterized in that The detecting a target service mode of the first network device in the flexible Ethernet group includes: Detecting an enable state of a follow mode flag bit on the first network device; When the enabling state is enabled, determining that the target service mode is the first service mode; When the enabling state is disabled, the target service mode is determined to be the second service mode.

3. The method according to claim 1, characterized in that The obtaining the reference service transmission configuration includes: Receiving a flexible Ethernet overhead frame sent by the second network device; Information indicating a service transmission time slot is extracted from the flexible Ethernet overhead frame as the reference service transmission configuration.

4. A device for generating a flexible Ethernet service transmission configuration, characterized in that: include: a detection module, configured to detect a target service mode of a first network device in a flexible Ethernet group, wherein the network devices in the flexible Ethernet group are allowed to operate in a first service mode or a second service mode, and a reference service transmission configuration is configured on a second network device in the flexible Ethernet group operating in the second service mode; an acquisition module, configured to acquire the reference service transmission configuration when the first network device operates in the first service mode; A generating module, configured to generate a target service transmission configuration of the first network device according to the reference service transmission configuration, wherein the target service transmission configuration is used to control service transmission between the first network device and the second network device in the flexible Ethernet group; The device further includes: an extraction module for extracting a target switching type from a switching request sent by the second network device after the target service transmission configuration of the first network device is generated according to the reference service transmission configuration, upon receiving the switching request sent by the second network device, wherein the switching request is used to request switching of the service transmission sub-configuration used in the service transmission, the switching request is generated before the second network device switches the service transmission sub-configuration used, and the switching request carries field information for indicating the switching type and service transmission sub-configuration information requested to be switched by the second network device; a switching module for switching the service transmission sub-configuration used by the first network device in the service transmission according to a target switching process matching the target switching type; The extraction module includes: a third determination unit, configured to determine that the target switching type is a forced switching type when the value of the switching negotiation field carried in the switching request is a first value, wherein the forced switching type is used to indicate that the second network device adopts a method of switching the service transmission sub-configuration according to the running state of the second network device; a fourth determination unit, configured to determine that the target switching type is a negotiated switching type when the value of the switching negotiation field carried in the switching request is a second value, wherein the negotiated switching type is used to indicate that the second network device adopts a method of switching the service transmission sub-configuration according to the running state of the first network device; The switching module includes: a second processing unit, configured to extract a first sub-configuration identifier from the switching request when the target switching type is the forced switching type, wherein the first sub-configuration identifier is used to indicate the service transmission sub-configuration to which the second network device has switched; switch the service transmission sub-configuration used by the first network device in the service transmission to the first service transmission sub-configuration identified by the first sub-configuration identifier, wherein the target service transmission configuration includes the first service transmission sub-configuration; a third processing unit, configured to extract a second sub-configuration identifier from the switching request when the target switching type is the negotiated switching type, wherein the second sub-configuration identifier is used to identify the service transmission sub-configuration to be switched by the second network device; send a switching confirmation indication to the second network device, wherein the switching confirmation indication is used to indicate that the first network device confirms the switching of the service transmission sub-configuration, and the second network device is used to switch the service transmission sub-configuration to the service transmission sub-configuration identified by the second sub-configuration identifier in response to the switching confirmation indication; and upon receiving the switching success indication sent by the second network device, switch the service transmission sub-configuration used by the first network device in the service transmission to the second service transmission sub-configuration identified by the second sub-configuration identifier, wherein the target service transmission configuration includes the second service transmission sub-configuration; The generation module also includes: an extraction unit, used to extract transmission services and service transmission time slots with corresponding relationships from the reference service transmission configuration; an adding unit, used to add the transmission services and service transmission time slots with corresponding relationships to the initial service mapping table of the first network device to obtain the target service transmission configuration, wherein the initial service mapping table is obtained by modifying the copy table according to the transmission services and service transmission time slots with corresponding relationships, and the copy table is obtained by copying the mapping table that has stored the initial transmission services and the corresponding initial service transmission time slots in the first network device.

5. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 3 when executed.

6. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 3 through the computer program.

Citation Information

Patent Citations

  • Automatic WiFi configuration method of mobile terminals

    CN108366382A

  • Configuration method and devices for FlexE link

    CN109379214A