Flexible ethernet configuration method, terminal device, and computer-readable storage medium
By adopting static configuration mode in FlexE configuration, presetting Calendar template and time slot information, and updating the physical hardware module of the terminal device, the problems of high FlexE configuration delay and low stability are solved, and a more efficient and stable Ethernet is achieved. Communication configuration.
Patent Information
- Application Number
- PCT/CN2023/113077
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-18
- Filing Date
- 2023-08-15
- Publication Date
- 2024-10-24
AI Technical Summary
The existing Flexible Ethernet (FlexE) configuration method has problems of high transmission delay and low stability. Especially when the configuration information of the sender and receiver does not meet the transmission conditions, it is easy to cause communication disconnection.
Use the static configuration mode to configure the physical hardware module of the terminal device through the preset Calendar template and time slot information, generate the target Calendar template, and update the Calendar template and time slot information of the physical hardware module of the device to avoid the dynamic negotiation configuration process. Improve the efficiency and stability of FlexE configuration.
It significantly improves the efficiency and stability of FlexE configuration, reduces transmission delay, effectively avoids data transmission loss when configuration information does not match, and enhances the reliability of communication links.
Smart Images

Figure CN2023113077_24102024_PF_FP_ABST
Abstract
Description
Flexible Ethernet configuration method, terminal device, and computer-readable storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application No. 202310457335.5 filed on April 18, 2023, the contents of which are incorporated herein by reference in their entirety. Technical Field
[0003] The embodiments of the present application relate to the field of communication technologies, and in particular to a flexible Ethernet configuration method, a terminal device, and a computer-readable storage medium. Background Art
[0004] Since current Ethernet interface standards all have fixed rates, the Optical Internetworking Forum (OIF) has released Flexible Ethernet (FlexE) to meet the demand for higher bandwidth. FlexE, based on a client / group architecture, is a technology that uses Ethernet-based multi-rate sub-interfaces on multiple physical layer (PHY) links. It can support the mapping and transmission of any number of different FlexE clients on any set of PHYs, forming a FlexE group. This allows the Ethernet interface rate to flexibly match a variety of service scenarios.
[0005] FlexE uses time division multiplexing (TDM) to divide time slots, achieving hard isolation of transmission channel bandwidth. A service data flow can be allocated to one or more time slots, matching the Ethernet interface rate to various rate services. However, existing FlexE configuration methods have problems with high transmission latency and low stability.
[0006] Public content
[0007] In a first aspect, an embodiment of the present application provides a flexible Ethernet configuration method, which is applied to a first device, including: when the Flexible Ethernet (FlexE) configuration mode is a static configuration mode, determining a preset Calendar template; configuring the preset Calendar template according to preset time slot information to generate a target Calendar template; and updating the Calendar template and time slot information of the physical hardware module of the first device according to the target Calendar template.
[0008] In a second aspect, an embodiment of the present application also provides a terminal device, comprising a processor, a memory, a computer program stored on the memory and executable by the processor, and a data bus for realizing connection and communication between the processor and the memory. When the computer program is executed by the processor, the flexible Ethernet configuration method provided in the present application is implemented.
[0009] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores at least one computer program, and the at least one computer program can be executed by at least one processor to implement the flexible Ethernet configuration method provided in the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] FIG1 is a schematic diagram of a flow chart of a flexible Ethernet configuration method provided in an embodiment of the present application;
[0011] FIG2 is a schematic diagram of a flow chart of a flexible Ethernet configuration method provided in an embodiment of the present application;
[0012] FIG3 is a block diagram showing a structure of an overhead frame provided in an embodiment of the present application;
[0013] FIG4 is a block diagram showing a structure of an overhead frame provided in an embodiment of the present application;
[0014] FIG5 is a schematic diagram of a flow chart of a flexible Ethernet configuration method provided in an embodiment of the present application;
[0015] FIG6 is a schematic diagram of a scenario of a flexible Ethernet configuration method provided in an embodiment of the present application;
[0016] FIG7 is a schematic diagram of a scenario of a flexible Ethernet configuration method provided in an embodiment of the present application; and
[0017] FIG8 is a schematic block diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0019] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, combined, or partially merged, so the actual execution order may vary depending on the actual situation.
[0020] It should be understood that the terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit this application. As used in this specification, the singular forms "a", "an" and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0021] Since current Ethernet interface standards all have fixed rates, the OIF organization has released FlexE to meet the demand for higher bandwidth. FlexE, based on the Client / Group architecture, is a technology that uses Ethernet-based multi-rate sub-interfaces on PHY links. It can support the mapping and transmission of any number of different FlexE clients on any set of PHYs, forming a FlexE Group. This allows the Ethernet interface rate to flexibly match various service scenarios.
[0022] FlexE uses TDM to divide time slots, achieving hard isolation of transmission channel bandwidth. A service data stream can be allocated to one or more time slots, matching the Ethernet interface rate to various service rates. The sender and receiver must synchronize configuration information before data transmission or adjust the configuration information during transmission. Communication only occurs when the configuration information of the sender and receiver meets the transmission conditions. If the configuration information of the sender and receiver does not meet the transmission conditions, the communication between the sender and receiver will be disconnected. Currently, the configuration information of the sender and receiver is set based on dynamic negotiation, which has the problems of high transmission latency and low stability.
[0023] Embodiments of the present application provide a flexible Ethernet configuration method, a terminal device, and a computer-readable storage medium. When the FlexE configuration mode is static, configuring a preset calendar template accurately obtains a target calendar template. The calendar template and time slot information of the physical hardware module of a first device are updated based on the target calendar template, significantly improving the efficiency and stability of FlexE configuration.
[0024] The flexible Ethernet configuration method can be applied to terminal devices, which can be mobile phones, tablet computers, laptops, desktop computers, routers, servers and other devices.
[0025] The following describes some embodiments of the present application in detail with reference to the accompanying drawings. In the absence of conflict, the following embodiments and features therein may be combined with each other.
[0026] Please refer to Figure 1, which is a flowchart of a flexible Ethernet configuration method provided in an embodiment of the present application.
[0027] As shown in FIG1 , the flexible Ethernet configuration method includes steps S101 to S103 .
[0028] Step S101: When the Flexible Ethernet (FlexE) configuration mode is the static configuration mode, a preset Calendar template is determined.
[0029] It should be noted that, when the flexible Ethernet configuration method is applied to a first device, the device that communicates and transmits with the first device is the second device; when the flexible Ethernet configuration method is applied to a second device, the device that communicates and transmits with the second device is the first device, that is, the first device and the second device are only distinguished by the name, and the first device and the second device cannot limit the specific devices in the application scenario of the embodiment of the present application. The first device and the second device can be selected according to actual conditions, and the embodiment of the present application does not make specific restrictions on this. For example, the first device can be a mobile phone, tablet computer, laptop computer, desktop computer, router, server and other devices, and the second device can be a mobile phone, tablet computer, laptop computer, desktop computer, router, server and other devices.
[0030] The static configuration mode is a configuration mode in which only the calendar template and time slot information of the physical hardware module of the first device need to be updated according to the time slot information set by the technician. The calendar template includes Calendar A and Calendar B.
[0031] In some implementations, the FlexE configuration mode of the first device is set to static configuration mode. By setting the FlexE configuration mode of the first device to static configuration mode, the first device updates the calendar template and time slot information of the physical hardware module based on the time slot information configured by the technician. This avoids the configuration process of parsing and negotiating the second overhead frame sent by the second device, improving the stability of the FlexE configuration, reducing latency, and significantly enhancing the accuracy and efficiency of the FlexE configuration.
[0032] It should be noted that the method of triggering the setting of the FlexE configuration mode of the first device to the static configuration mode can be set according to actual conditions. The embodiment of the present application does not specifically limit this. For example, the FlexE configuration mode of the first device is set to the static configuration mode by triggering a preset time. The preset time can be set according to actual conditions. For example, the preset time can be set to 24 hours; or, upon receiving a configuration instruction from a technician, the FlexE configuration mode of the first device is set to the static configuration mode according to the configuration instruction.
[0033] For example, a preset time is stored in the first device, and the preset time is 00:00:00 on the 1st of each month. Then, at 00:00:00 on the 1st of each month, the FlexE configuration mode of the first device is set to the static configuration mode. For another example, when a technician sets a configuration instruction in the first device, the FlexE configuration mode of the first device is set to the static configuration mode according to the configuration instruction. For another example, a configuration instruction is received from a central control device used by the technician, and the FlexE configuration mode of the first device is set to the static configuration mode according to the configuration instruction. The central control device can be selected according to actual conditions. For example, the central control device can be a mobile phone or a computer.
[0034] In some implementations, preset configuration information set by a technician is obtained, and a preset calendar template is determined based on the preset configuration information. This preset configuration information is pre-set by the technician and can be stored in the memory of the first device. Alternatively, the configuration information can be obtained from the technician setting the configuration information on the first device during FlexE configuration. This configuration information allows for accurate determination of the calendar template, significantly improving the efficiency and accuracy of FlexE configuration.
[0035] In some implementations, the preset calendar template can be determined as: Calendar A if the preset configuration information includes a first instruction; Calendar B if the preset configuration information includes a second instruction. Based on the instructions included in the preset configuration information, the type of calendar template can be accurately determined, greatly improving the efficiency and accuracy of FlexE configuration.
[0036] Step S102: Configure the preset Calendar template according to the preset time slot information to generate a target Calendar template.
[0037] The preset time slot information is pre-configured time slot information. The acquisition of the preset time slot information can be set according to actual conditions. The embodiments of the present application do not make specific limitations on this. For example, the preset time slot information can be pre-stored in the memory of the first device; the preset time slot information can also be in a static configuration mode, and the time slot information set by the technician is received to obtain the preset time slot information.
[0038] In some embodiments, after determining the preset Calendar template, the preset time slot information is written into the preset Calendar template to complete the configuration of the time slot information in the Calendar template and generate the target Calendar template. Writing the preset time slot information into the preset Calendar template can accurately obtain the target Calendar template.
[0039] For example, when the preset Calendar template is Calendar A, the preset time slot information is written into Calendar A to generate the target Calendar A. By writing the preset time slot information into Calendar A, the target Calendar A can be accurately generated.
[0040] Exemplarily, when the preset Calendar template is Calendar B, the preset time slot information is written into Calendar B to generate the target Calendar B. By writing the preset time slot information into Calendar B, the target Calendar B can be accurately generated.
[0041] Step S103: Update the Calendar template and time slot information of the physical hardware module of the first device according to the target Calendar template.
[0042] The physical hardware module is a hardware module run by the first device, and the physical hardware module includes but is not limited to a central processing unit chip, a transmission chip, and a graphics processing unit chip.
[0043] In some embodiments, the target calendar template is transmitted to a physical hardware module of the first device and written into the physical hardware module to update the calendar template and time slot information of the physical hardware module. Writing the target calendar template into the physical hardware module allows accurate and efficient updates of the calendar template and time slot information of the physical hardware module, significantly improving the efficiency and stability of the FlexE configuration.
[0044] In this solution, when the FlexE configuration mode is static configuration mode, the first device only needs to update the calendar template and time slot information of the physical hardware module according to the time slot information and calendar template of the local end when performing FlexE configuration. There is no need to dynamically negotiate with the second device on the other end to configure FlexE. This can avoid the negotiation process of overhead frames during the FlexE configuration process, greatly improving the efficiency and stability of FlexE configuration.
[0045] The above-mentioned flexible Ethernet configuration method, when the flexible Ethernet FlexE configuration mode is the static configuration mode, determines a preset Calendar template; then configures the preset Calendar template based on preset time slot information to generate a target Calendar template; and updates the Calendar template and time slot information of the physical hardware module of the first device based on the target Calendar template. In this solution, when the FlexE configuration mode is the static configuration mode, the preset Calendar template is configured to accurately obtain the target Calendar template, and the Calendar template and time slot information of the physical hardware module of the first device are updated based on the target Calendar template. This solution can accurately update the Calendar template and time slot information of the physical hardware module of the first device, greatly improving the efficiency and stability of the FlexE configuration.
[0046] Please refer to FIG. 2 , which is a flow chart of a flexible Ethernet configuration method provided in an embodiment of the present application.
[0047] As shown in FIG2 , the flexible Ethernet configuration method includes step S201 .
[0048] Step S201: Configure a preset overhead frame according to the target Calendar template to generate a first overhead frame, and send the first overhead frame to a second device so that the second device stores the first overhead frame.
[0049] The first overhead frame includes Calendar template information and time slot information.
[0050] In some implementations, when the target calendar template is Calendar A, the CR bit, CA bit, and C bit in the overhead frame are all set to 0, and the timeslot information is written into the CR bit, CA bit, and C bit to generate a first overhead frame. By setting the CR bit, CA bit, and C bit in the overhead frame to 0, the overhead frame negotiation process during FlexE configuration can be avoided, significantly improving the efficiency and stability of FlexE configuration.
[0051] Exemplarily, as shown in FIG3 , the preset overhead frame includes 8 overhead blocks. When the target Calendar template is Calendar A, the Calendar template in the third overhead block in the preset overhead frame is adjusted to Calendar A, the C bit of the first overhead block is set to 0, the CR bit and the CA bit in the third overhead block are both set to 0, the time slot information is written into the CR bit, the CA bit and the C bit, and the overhead blocks are integrated to generate a first overhead frame 11. The first overhead frame 11 includes 8 overhead blocks, and the overhead blocks include a first overhead block, a second overhead block, a third overhead block, a fourth overhead block, a fifth overhead block, a sixth overhead block, a seventh overhead block and an eighth overhead block; the first overhead block includes 0x4B, C, OMF, RPF, SC, FlexE Group Number, 0x5 and 0x000_0000; the second overhead block includes C, Flex EMap, FlexE Instance Number and Reserves; the third overhead frame includes C, Client Calendar A, CR, CA and Reserves; the fourth overhead frame includes Management Channel-Section (two 66B blocks); the fifth overhead frame includes Management Channel-Section (two 66B blocks); the sixth overhead frame includes Management Channel-Shim to Shim or Synchronization Messaging Channel; the seventh overhead frame includes Management Channel-Shim to Shim (two or three 66B blocks); the eighth overhead frame includes Management Channel-Shim to Shim (two or three 66B blocks).
[0052] In some implementations, when the target calendar template is Calendar B, the CR bit, CA bit, and C bit in the overhead frame are all set to 1, and the timeslot information is written into the CR bit, CA bit, and C bit to generate a first overhead frame. By setting the CR bit, CA bit, and C bit in the overhead frame to 1, the overhead frame negotiation process during FlexE configuration can be avoided, significantly improving the efficiency and stability of FlexE configuration.
[0053] Exemplarily, as shown in FIG4 , the preset overhead frame includes 8 overhead blocks. When the target Calendar template is Calendar B, the Calendar template in the third overhead block in the preset overhead frame is adjusted to Calendar B, the C bit of the first overhead block is set to 1, the CR bit and the CA bit in the third overhead block are both set to 1, the time slot information is written into the CR bit, the CA bit and the C bit, and the overhead blocks are integrated to generate a first overhead frame 12. The first overhead frame 12 includes 8 overhead blocks, and the overhead blocks include a first overhead block, a second overhead block, a third overhead block, a fourth overhead block, a fifth overhead block, a sixth overhead block, a seventh overhead block and an eighth overhead block; the first overhead block includes 0x4B, C, OMF, RPF, SC, FlexE Group Number, 0x5 and 0x000_0000; the second overhead block includes C, Flex EMap, FlexE Instance Number and Reserves; the third overhead frame includes C, Client Calendar B, CR, CA and Reserves; the fourth overhead frame includes Management Channel-Section (two 66B blocks); the fifth overhead frame includes Management Channel-Section (two 66B blocks); the sixth overhead frame includes Management Channel-Shim to Shim or Synchronization Messaging Channel; the seventh overhead frame includes Management Channel-Shim to Shim (two or three 66B blocks); the eighth overhead frame includes Management Channel-Shim to Shim (two or three 66B blocks).
[0054] In some implementations, after generating the first overhead frame, the first overhead frame is sent to the second device, which receives and stores the first overhead frame. This storage of the first overhead frame by the second device avoids the negotiation process for the cancellation frame, significantly improving the efficiency and stability of the FlexE configuration.
[0055] In some embodiments, the FlexE configuration mode of the second device is set to a static configuration mode. By setting the FlexE configuration mode of the second device to a static configuration mode, the second device updates the Calendar template and time slot information of the physical hardware module according to the time slot information configured by the technician, thereby avoiding the configuration process of parsing and negotiating the first overhead frame sent by the first device, thereby improving the stability of the FlexE configuration, reducing latency, and greatly improving the accuracy and efficiency of the FlexE configuration.
[0056] In some embodiments, the second device obtains preset configuration information set by a technician and determines a preset calendar template based on the preset configuration information. This preset configuration information is pre-set by the technician and can be stored in the memory of the second device. Alternatively, the configuration information can be obtained from the technician's settings on the second device during FlexE configuration. This configuration information allows for accurate determination of the calendar template, significantly improving the efficiency and accuracy of FlexE configuration.
[0057] In some implementations, the preset calendar template can be determined as: Calendar A if the preset configuration information includes a first instruction; Calendar B if the preset configuration information includes a second instruction. Based on the instructions included in the preset configuration information, the type of calendar template can be accurately determined, greatly improving the efficiency and accuracy of FlexE configuration.
[0058] In some embodiments, after determining the preset Calendar template, the preset time slot information is written into the preset Calendar template to complete the configuration of the time slot information in the Calendar template and generate the target Calendar template. Writing the preset time slot information into the preset Calendar template can accurately obtain the target Calendar template.
[0059] In some implementations, the target calendar template is transferred to a physical hardware module of the second device and written into the physical hardware module to update the physical hardware module's calendar template and time slot information. Writing the target calendar template into the physical hardware module allows for accurate and efficient updates of the physical hardware module's calendar template and time slot information, significantly improving the efficiency and stability of FlexE configurations.
[0060] In some implementations, the second device configures a preset overhead frame based on the target Calendar template, generates a second overhead frame, and sends the second overhead frame to the first device, causing the first device to store the second overhead frame. The second device sends the FlexE configuration to the first device via the second overhead frame, thereby improving FlexE configuration efficiency.
[0061] In some embodiments, as shown in FIG5 , step S201 is followed by steps S202 to S203 .
[0062] Step S202: Obtain a second overhead frame sent by the second device, and store the second overhead frame.
[0063] The first device obtains and stores a second overhead frame generated by the second device by configuring a preset overhead frame based on the target Calendar template. Storing the received second overhead frame avoids the negotiation process for the cancellation frame, significantly improving the efficiency and stability of FlexE configuration.
[0064] Step S203: Determine whether the first device and the second device meet the transmission conditions based on the first overhead frame and the second overhead frame.
[0065] Step S203 includes determining whether the time slot information in the first overhead frame and the second overhead frame is the same. If the time slot information in the first overhead frame and the second overhead frame is the same, determining that the first device and the second device meet the transmission condition; if the time slot information in the first overhead frame and the second overhead frame is different, determining that the first device and the second device do not meet the transmission condition. By determining whether the time slot information in the first overhead frame and the second overhead frame is the same, it is possible to accurately determine whether the first device and the second device meet the transmission condition.
[0066] In some embodiments, if it is determined that the first device and the second device do not meet the transmission conditions, the transmission link between the first device and the second device is disconnected, and a preset alarm is output. Disconnecting the transmission link between the first device and the second device when the first device and the second device do not meet the transmission conditions can effectively avoid data loss.
[0067] In some embodiments, the preset alarm includes but is not limited to issuing an alarm, issuing a voice prompt, and generating a pop-up interface prompt.
[0068] For example, as shown in FIG6, step S301, the first device 10 sets the FlexE configuration mode to the static configuration mode, determines the preset Calendar template, configures the preset Calendar template according to the preset time slot information, generates a target Calendar template, and updates the Calendar template and time slot information of the physical hardware module of the first device according to the target Calendar template; step S302, configures the preset overhead frame according to the target Calendar template to generate a first overhead frame; step S303, sends the first overhead frame to the second device 20; step S304, the second device 20 receives and stores the first overhead frame; step S305, the second device 20 sets the FlexE configuration mode to the static configuration mode, determines the preset Calendar template, and generates a target Calendar template; step S306, the first overhead frame is sent to the second device 20; step S307, the second device 20 receives and stores the first overhead frame; step S308, the second device 20 sets the FlexE configuration mode to the static configuration mode, determines the preset Calendar template, and generates a target Calendar template; step S309, the first overhead frame is sent to the second device 20; step S310, the second device 20 receives and stores the first overhead frame; step S311, the second device 20 sets the FlexE configuration mode to the static configuration mode, determines the preset Calendar template, and generates a target Calendar template; step S312, the first overhead frame is sent to the second device 20; step S313, the second device 20 receives and stores the first overhead frame; step S314, the second device 20 sets the FlexE configuration mode to the static configuration mode, determines the preset Calendar template, and generates a target Calendar template; step S315, the first overhead frame is sent to the second device 20; step S316, the second device 20 receives and stores the first overhead frame; step S317, the second device 20 sets the FlexE configuration mode to the static configuration mode, determines the preset Calendar template, and generates a target Calendar template; step S318, the first overhead frame is sent In step S306, the preset overhead frame is configured according to the target Calendar template to generate a second overhead frame; in step S307, the second overhead frame is sent to the first device 10; in step S308, the first device 10 receives and stores the second overhead frame; in step S309, whether the first device and the second device meet the transmission conditions according to the first overhead frame and the second overhead frame, and if the first device and the second device do not meet the transmission conditions, the transmission link between the first device and the second device is disconnected, and a preset alarm is output.
[0069] For example, as shown in FIG7 , in step S401, when the FlexE configuration mode of the first device 30 is the static configuration mode, the preset Calendar template is Calendar A, and the CR bit, CA bit, and C bit in the overhead frame are all set to 0, or the preset Calendar template is Calendar B, and the CR bit, CA bit, and C bit in the overhead frame are all set to 1 and written into the overhead frame to generate a first overhead frame 21; in step S402, when the FlexE configuration mode of the second device 40 is the static configuration mode, the preset Calendar template is Calendar A, and the CR bit, CA bit, and C bit in the overhead frame are all set to 0, or the preset Calendar template is Calendar B. B, sets the CR bit, CA bit, and C bit in the overhead frame to 1 and writes them into the overhead frame to generate a second overhead frame 22; step S403, the first device 30 transmits the first overhead frame 21 to the second device 40, which receives and stores the first overhead frame 21; step S404, the second device 40 transmits the second overhead frame 22 to the first device 30, which receives and stores the second overhead frame 22; step S405, the first device 30 writes the time slot information in the Calendar template in the first overhead frame 21 into the hardware physical module 23 of the first device 30; step S406, the second device 40 writes the time slot information in the Calendar template in the second overhead frame 22 into the hardware physical module 24 of the second device 40. It should be noted that some parameters of the overhead frame are omitted in Figure 7. For details of the omitted parts, please refer to the contents of Figures 3 and / or 4.
[0070] The above-mentioned flexible Ethernet configuration method, when the FlexE configuration mode is static configuration mode, configures the preset Calendar template, can accurately obtain the target Calendar template, and updates the Calendar template and time slot information of the physical hardware module of the first device according to the target Calendar template. It can accurately update the Calendar template and time slot information of the physical hardware module of the first device, greatly improving the efficiency and stability of FlexE configuration.
[0071] Please refer to FIG8 , which is a schematic block diagram of the structure of a terminal device provided in an embodiment of the present application.
[0072] As shown in FIG8 , a terminal device 500 includes a processor 501 and a memory 502 . The processor 501 and the memory 502 are connected via a bus 503 , which is, for example, an I 2 C (Inter-Integrated Circuit) bus.
[0073] The processor 501 is configured to provide computing and control capabilities to support the operation of the entire terminal device. The processor 501 can be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor, or the processor can also be any conventional processor, etc.
[0074] The memory 502 may be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a mobile hard disk.
[0075] Those skilled in the art will understand that the structure shown in Figure 8 is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the terminal device to which the solution of the present application is applied. The specific terminal device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0076] The processor 501 is configured to run a computer program stored in the memory 502 and implement the flexible Ethernet configuration method provided in the embodiment of the present application when executing the computer program.
[0077] In some embodiments, the processor 501 is configured to run a computer program stored in a memory, and implement the following steps when executing the computer program: when the Flexible Ethernet (FlexE) configuration mode is a static configuration mode, determine a preset Calendar template; configure the preset Calendar template according to preset time slot information to generate a target Calendar template; and update the Calendar template and time slot information of the physical hardware module of the first device according to the target Calendar template.
[0078] In some implementations, the Calendar template includes Calendar A and Calendar B.
[0079] In some embodiments, when the processor 501 determines the preset Calendar template in the case where the Flexible Ethernet (FlexE) configuration mode is a static configuration mode, it is configured to implement: when the preset configuration information includes a first instruction, the preset Calendar template is determined to be Calendar A; when the preset configuration information includes a second instruction, the preset Calendar template is determined to be Calendar B.
[0080] In some embodiments, the processor 501 is further configured to implement: configuring a preset overhead frame according to the target Calendar template, generating a first overhead frame, and sending the first overhead frame to a second device so that the second device stores the first overhead frame.
[0081] In some embodiments, when the processor 501 configures the preset overhead frame according to the target Calendar template to generate the first overhead frame, it is configured to: when the target Calendar template is Calendar A, set the CR bit, CA bit and C bit in the overhead frame to 0; write the time slot information into the CR bit, CA bit and C bit to generate the first overhead frame.
[0082] In some embodiments, when the processor 501 configures the preset overhead frame according to the target Calendar template to generate the first overhead frame, it is configured to implement: when the target Calendar template is Calendar B, the CR bit, CA bit and C bit in the overhead frame are all set to 1; the time slot information is written into the CR bit, CA bit and C bit to generate the first overhead frame.
[0083] In some embodiments, after implementing the sending of the first overhead frame to the second device, the processor 501 is further configured to implement: obtaining a second overhead frame sent by the second device and storing the second overhead frame; and determining whether the first device and the second device meet the transmission conditions based on the first overhead frame and the second overhead frame.
[0084] In some embodiments, after implementing the determination of whether the first device and the second device meet the transmission conditions based on the first overhead frame and the second overhead frame, the processor 501 is further configured to implement: when it is determined that the first device and the second device do not meet the transmission conditions, disconnect the transmission link between the first device and the second device and output a preset alarm.
[0085] It should be noted that those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the terminal device described above can refer to the corresponding process in the aforementioned flexible Ethernet configuration method, and will not be repeated here.
[0086] An embodiment of the present application further provides a computer-readable storage medium, wherein the storage medium stores at least one computer program, and the at least one computer program can be executed by at least one processor to implement the flexible Ethernet configuration method provided in the present application.
[0087] The computer-readable storage medium may be an internal storage unit of the aforementioned terminal device, such as a hard disk or memory of the terminal device. The storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash memory card, etc. equipped on the terminal device.
[0088] It will be appreciated by those skilled in the art that all or some of the steps in the method disclosed above, and the functional modules / units in the device can be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor (such as a central processing unit, a digital signal processor, or a microprocessor), or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As is well known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable, and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media generally embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0089] It should be understood that the term "and / or" used in this specification refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system that includes a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements that are inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system that includes the element.
[0090] The serial numbers of the above-mentioned embodiments of this application are for descriptive purposes only and do not represent the advantages or disadvantages of the embodiments. The above description is only a specific embodiment of this application, but the scope of protection of this application is not limited to this. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the scope of protection of this application.
Claims
1. A flexible Ethernet configuration method, applied to a first device, comprising: When the flexible Ethernet (FlexE) configuration mode is the static configuration mode, determining a preset Calendar template; The preset Calendar template is configured according to the preset time slot information to generate a target Calendar template; as well as The Calendar template and time slot information of the physical hardware module of the first device are updated according to the target Calendar template.
2. The flexible Ethernet configuration method according to claim 1, wherein: The Calendar template includes Calendar A and Calendar B.
3. The flexible Ethernet configuration method according to claim 2, wherein: When the flexible Ethernet (FlexE) configuration mode is a static configuration mode, determining the preset Calendar template includes: In a case where the preset configuration information includes the first instruction, determining that the preset Calendar template is Calendar A; When the preset configuration information includes the second instruction, it is determined that the preset Calendar template is Calendar B.
4. The flexible Ethernet configuration method according to claim 2, further comprising: The preset overhead frame is configured according to the target Calendar template to generate a first overhead frame, and the first overhead frame is sent to the second device so that the second device stores the first overhead frame.
5. The flexible Ethernet configuration method according to claim 4, wherein: The configuring a preset overhead frame according to the target Calendar template to generate a first overhead frame includes: When the target Calendar template is Calendar A, The CR bit, CA bit and C bit in the pin frame are all set to 0; and The time slot information is written into the CR bit, CA bit and C bit to generate the first overhead frame.
6. The flexible Ethernet configuration method according to claim 4, wherein: The configuring a preset overhead frame according to the target Calendar template to generate a first overhead frame includes: When the target Calendar template is Calendar B, setting the CR bit, the CA bit, and the C bit in the overhead frame to 1; and The time slot information is written into the CR bit, CA bit and C bit to generate the first overhead frame.
7. The flexible Ethernet configuration method according to claim 4, further comprising: After sending the first overhead frame to the second device, acquiring a second overhead frame sent by the second device, and storing the second overhead frame; as well as It is determined whether the first device and the second device meet transmission conditions according to the first overhead frame and the second overhead frame.
8. The flexible Ethernet configuration method according to claim 7, further comprising: After determining whether the first device and the second device meet the transmission conditions based on the first overhead frame and the second overhead frame, if it is determined that the first device and the second device do not meet the transmission conditions, the transmission link between the first device and the second device is disconnected and a preset alarm is output.
9. The flexible Ethernet configuration method according to claim 1, further comprising: In the case where the Flexible Ethernet (FlexE) configuration mode is the static configuration mode, before determining the preset Calendar template, the FlexE configuration mode of the first device is set to the static configuration mode.
10. A terminal device, comprising a processor, a memory, a computer program stored in the memory and executable by the processor, and a data bus for realizing connection communication between the processor and the memory, wherein when the computer program is executed by the processor, the flexible Ethernet configuration method according to any one of claims 1 to 9 is realized.
11. A computer-readable storage medium storing at least one computer program, wherein the at least one computer program can be executed by at least one processor to implement the flexible Ethernet configuration method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Method and device for transmitting service flow based on FlexE
CN113452623A
Business interface creation method, device and system, equipment and medium
CN113595670A
Flexible ethernet encryption systems and methods
US20190173856A1
Configuration method and device of slot container
WO2020169009A1
Data processing method for flexible ethernet, and related apparatus
WO2022227640A1
